/* ===== Cabecera y pie compartidos (v3/partes/cabecera.php y pie.php) =====
   Los usa la portada y también las páginas antiguas (cabeza2.php / pie.php), que cargan Bootstrap 3.
   Todo va bajo .cdf-shell para no tocar el contenido de esas páginas. .cdf-shell usa display: contents,
   así la cabecera sigue siendo sticky respecto del body. */

/* Bootstrap 3 fija html en 10px y este diseño usa rem: el contenido antiguo está en px, no le afecta. */
html {
  font-size: 16px;
}

.cdf-shell {
  display: contents;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.cdf-shell *,
.cdf-shell *::before,
.cdf-shell *::after {
  box-sizing: border-box;
}

.cdf-shell a,
.cdf-shell a:where(:hover, :focus) {
  color: inherit;
  text-decoration: none;
}

.cdf-shell button,
.cdf-shell input {
  margin: 0;
  font: inherit;
}

.cdf-shell img,
.cdf-shell svg {
  max-width: 100%;
}

.cdf-shell img {
  display: block;
}

.cdf-shell p {
  margin: 1em 0;
  font-size: inherit;
  line-height: inherit;
}

.cdf-shell h2 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.cdf-shell ul {
  margin: 0;
}

.cdf-shell label {
  margin: 0;
  font-weight: inherit;
}

.cdf-shell .container {
  width: var(--container);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.cdf-shell .container::before,
.cdf-shell .container::after {
  content: none;
}

:root {
  --navy: #081c34;
  --navy-2: #0d2948;
  --blue: #0077c8;
  --blue-dark: #0067ad;
  --cyan: #32c5e8;
  --ice: #f3f8fc;
  --white: #fff;
  --ink: #102237;
  --muted: #65778a;
  --line: rgba(8, 28, 52, .13);
  --shadow: 0 18px 50px rgba(8, 28, 52, .12);
  --radius: 1.25rem;
  --container: min(1320px, calc(100% - 2.5rem));
}

.cdf-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cdf-shell .skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  color: var(--navy);
  background: #fff;
  border-radius: .5rem;
}

.cdf-shell .skip-link:focus {
  transform: none;
}

.cdf-shell .utility-bar {
  color: #cfe2f2;
  background: #06172b;
  font-size: .78rem;
}

.cdf-shell .utility-bar__inner {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cdf-shell .utility-bar p {
  margin: 0;
  color: #fff;
  font-weight: 750;
  letter-spacing: .035em;
}

.cdf-shell .utility-bar__links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.cdf-shell .utility-bar__links strong {
  color: #fff;
}

.cdf-shell .utility-bar a:hover {
  color: var(--cyan);
}

.cdf-shell .site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.cdf-shell .header-main {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 220px minmax(280px, 620px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cdf-shell .brand {
  width: 194px;
}

.cdf-shell .brand img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.cdf-shell .header-search {
  height: 3rem;
  display: grid;
  grid-template-columns: 1fr 3.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  overflow: hidden;
}

.cdf-shell .header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 1.25rem;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
}

.cdf-shell .header-search input::placeholder {
  color: #738497;
}

.cdf-shell .header-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, .12);
}

.cdf-shell .header-search button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
}

.cdf-shell .header-search button:hover {
  background: var(--blue-dark);
}

.cdf-shell .header-search svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cdf-shell .cart-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.8rem;
  padding: .4rem;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.cdf-shell .cart-button svg {
  width: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cdf-shell .cart-count {
  min-width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: .75rem;
}

.cdf-shell .main-nav {
  border-top: 1px solid var(--line);
}

.cdf-shell .main-nav__inner {
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: .86rem;
  font-weight: 750;
}

.cdf-shell .main-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.5rem);
}

.cdf-shell .main-nav a {
  position: relative;
}

.cdf-shell .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.42rem;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}

.cdf-shell .main-nav a:hover::after,
.cdf-shell .main-nav a:focus-visible::after {
  right: 0;
}

.cdf-shell .main-nav .main-nav__quote {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}

.cdf-shell .main-nav .main-nav__quote::after {
  display: none;
}

.cdf-shell .main-nav .main-nav__quote:hover {
  background: var(--blue-dark);
}

.cdf-shell .mobile-only,
.cdf-shell .mobile-menu {
  display: none;
}

.cdf-shell .site-footer {
  color: #c0d0dd;
  background: #041120;
}

.cdf-shell .footer-main {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 4rem;
  padding-block: 4.5rem;
}

.cdf-shell .footer-brand img {
  width: 215px;
  height: 78px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .92;
}

.cdf-shell .footer-brand p {
  max-width: 320px;
  color: #8fa7ba;
}

.cdf-shell .footer-main>div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}

.cdf-shell .footer-main h2 {
  margin: .3rem 0 1rem;
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.cdf-shell .footer-main a:hover {
  color: var(--cyan);
}

.cdf-shell .footer-main span {
  color: #8fa7ba;
}

.cdf-shell .footer-bottom {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f96a8;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .cdf-shell .main-nav__quote {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .cdf-shell .utility-bar__links>span {
    display: none;
  }

  .cdf-shell .header-main {
    min-height: 5.2rem;
    grid-template-columns: 3rem minmax(135px, 180px) 1fr auto;
    gap: 1rem;
  }

  .cdf-shell .mobile-only {
    display: grid;
  }

  .cdf-shell .icon-button {
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #fff;
    cursor: pointer;
  }

  .cdf-shell .icon-button span {
    width: 1.2rem;
    height: 2px;
    display: block;
    background: var(--navy);
  }

  .cdf-shell .brand {
    width: 170px;
  }

  .cdf-shell .header-search {
    grid-column: 3;
  }

  .cdf-shell .main-nav {
    display: none;
  }

  .cdf-shell .mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem var(--container);
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 35px rgba(8, 28, 52, .12);
  }

  .cdf-shell .mobile-menu:not([hidden]) {
    display: grid;
  }

  .cdf-shell .mobile-menu a {
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 750;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 2rem, 1320px);
  }

  .cdf-shell .utility-bar__inner {
    min-height: 2.25rem;
  }

  .cdf-shell .utility-bar p {
    display: none;
  }

  .cdf-shell .utility-bar__links {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .cdf-shell .utility-bar__links>a:nth-child(3) {
    display: none;
  }

  .cdf-shell .header-main {
    grid-template-columns: 2.8rem 1fr auto;
    padding-block: .55rem;
  }

  .cdf-shell .brand {
    width: 155px;
  }

  .cdf-shell .brand img {
    height: 56px;
  }

  .cdf-shell .header-search {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }

  .cdf-shell .cart-button__label {
    display: none;
  }

  .cdf-shell .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .cdf-shell .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 470px) {
  :root {
    --container: calc(100% - 1.5rem);
  }

  .cdf-shell .utility-bar {
    font-size: .75rem;
  }

  .cdf-shell .header-main {
    gap: .55rem;
  }

  .cdf-shell .brand {
    width: 138px;
  }

  .cdf-shell .footer-main {
    grid-template-columns: 1fr;
  }

  .cdf-shell .footer-brand {
    grid-column: auto;
  }

  .cdf-shell .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding-block: 1rem;
  }

  .cdf-shell .footer-bottom p {
    margin: 0;
  }
}

.cdf-shell .utility-bar {
  position: relative;
  z-index: 35;
}

.cdf-shell .phone-menu {
  position: relative;
}

.cdf-shell .phone-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 1.65rem;
  padding: 0 .7rem 0 .6rem;
  border: 1px solid rgba(50, 197, 232, .45);
  border-radius: 999px;
  color: #fff;
  background: rgba(50, 197, 232, .1);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, border-color .2s ease;
}

.cdf-shell .phone-menu summary::-webkit-details-marker {
  display: none;
}

.cdf-shell .phone-menu summary::marker {
  content: "";
}

.cdf-shell .phone-menu summary:hover,
.cdf-shell .phone-menu[open] summary {
  border-color: var(--cyan);
  background: rgba(50, 197, 232, .2);
}

.cdf-shell .phone-menu summary b {
  padding: .1rem .4rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--cyan);
  font-size: .68rem;
  font-weight: 800;
}

.cdf-shell .phone-menu summary svg {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cdf-shell .phone-menu summary .phone-menu__wa-icon {
  stroke: var(--cyan);
}

.cdf-shell .phone-menu__chevron {
  transition: transform .2s ease;
}

.cdf-shell .phone-menu[open] .phone-menu__chevron {
  transform: rotate(180deg);
}

.cdf-shell .phone-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  width: 24rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 70px rgba(8, 28, 52, .32);
  font-size: .85rem;
  transform-origin: top right;
  animation: phone-menu-in .18s ease-out;
}

@keyframes phone-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cdf-shell .phone-menu__head {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.15rem .95rem;
  color: #fff;
  background: linear-gradient(120deg, var(--navy), #0b2947);
}

.cdf-shell .phone-menu__head strong {
  font-size: 1rem;
}

.cdf-shell .phone-menu__head span {
  color: #9fb8cc;
  font-size: .78rem;
}

.cdf-shell .phone-menu__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .85rem 1rem 0;
}

.cdf-shell .phone-menu__featured a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--ice);
  transition: border-color .2s ease, background .2s ease;
}

.cdf-shell .phone-menu__featured a:hover {
  border-color: var(--blue);
  background: #fff;
}

.cdf-shell .phone-menu__featured a.is-wa {
  border-color: rgba(18, 140, 74, .3);
  background: #ecf8f1;
}

.cdf-shell .phone-menu__featured a.is-wa:hover {
  border-color: #128c4a;
}

.cdf-shell .phone-menu__featured small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.cdf-shell .phone-menu__featured a.is-wa small {
  color: #128c4a;
}

.cdf-shell .utility-bar .phone-menu__panel strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cdf-shell .utility-bar .phone-menu__head strong {
  color: #fff;
}

.cdf-shell .phone-menu__featured strong {
  font-size: .95rem;
}

.cdf-shell .utility-bar .phone-menu__label {
  margin: 1rem 1.15rem .2rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cdf-shell .phone-menu__list {
  margin: 0;
  padding: 0 1rem .6rem;
  list-style: none;
}

.cdf-shell .phone-menu__list li {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .15rem;
  border-top: 1px solid var(--line);
}

.cdf-shell .phone-menu__list li:first-child {
  border-top: 0;
}

.cdf-shell .phone-menu__list li div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cdf-shell .phone-menu__list li span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.cdf-shell .phone-menu__list li strong {
  font-size: 1.02rem;
}

.cdf-shell .pm-act {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.cdf-shell .pm-act svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cdf-shell .utility-bar .pm-act:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.cdf-shell .pm-act--wa {
  color: #fff;
  border-color: #128c4a;
  background: #128c4a;
}

.cdf-shell .utility-bar .pm-act--wa:hover {
  border-color: #0e6f3a;
  background: #0e6f3a;
}

.cdf-shell .wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

.cdf-shell .wa-float summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.4rem;
  padding: 0 1.15rem 0 1rem;
  border-radius: 999px;
  color: #fff;
  background: #128c4a;
  box-shadow: 0 12px 30px rgba(8, 28, 52, .3);
  font-weight: 800;
  cursor: pointer;
}

.cdf-shell .wa-float summary::-webkit-details-marker {
  display: none;
}

.cdf-shell .wa-float summary::marker {
  content: "";
}

.cdf-shell .wa-float summary svg {
  width: 1.6rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
}

.cdf-shell .wa-float[open] summary {
  background: var(--navy);
}

.cdf-shell .wa-float__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .6rem);
  width: min(19rem, calc(100vw - 2rem));
  padding: .5rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.cdf-shell .wa-float__panel p {
  margin: .6rem 0 .3rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cdf-shell .wa-float__panel a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.cdf-shell .wa-float__panel a:last-child {
  border-bottom: 0;
}

.cdf-shell .wa-float__panel a span {
  color: var(--muted);
  font-size: .85rem;
}

.cdf-shell .wa-float__panel a strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.cdf-shell .wa-float__panel a:hover strong {
  color: #128c4a;
}

@media (max-width: 720px) {
  .cdf-shell .phone-menu {
    position: static;
  }

  .cdf-shell .phone-menu__panel {
    left: .75rem;
    right: .75rem;
    top: calc(100% + .25rem);
    width: auto;
  }

  .cdf-shell .utility-bar .phone-menu__label {
    display: block;
  }
}

@media (max-width: 470px) {
  .cdf-shell .wa-float summary span {
    display: none;
  }

  .cdf-shell .wa-float summary {
    padding: 0 1rem;
  }
}

:root {
  --ember: #ff7a3d;
  --ember-deep: #d9461c;
  --ember-soft: #ffb48a;
  --ember-ink: #b23a12;
}

.cdf-shell .utility-social {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.cdf-shell .utility-social a {
  display: grid;
  place-items: center;
}

.cdf-shell .utility-social svg,
.cdf-shell .mobile-menu__social svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.cdf-shell .mobile-menu__social {
  display: flex;
  gap: 1.5rem;
  padding-top: .75rem;
}

.cdf-shell .mobile-menu .mobile-menu__social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-bottom: 0;
}

.cdf-shell .footer-main {
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
}

@media (max-width: 1100px) {
  .cdf-shell .footer-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .cdf-shell .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cdf-shell .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 470px) {
  .cdf-shell .footer-main {
    grid-template-columns: 1fr;
  }
}
