/* Lista 5 (5 nov 2026): estilos de menu. Modo oscuro: html[data-tema=oscuro] … */

/* ---------- Logo: «EL CANTARITO 44» en Arboria Black (licencia del dueño) ---------- */
@font-face {
  font-family: "Arboria";
  src: url("/tema/fuentes/arboria-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
.c44-brand__text {
  font-family: "Arboria", "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900; font-stretch: normal; text-transform: uppercase; letter-spacing: .01em; line-height: .95;
}
.c44-brand__el { letter-spacing: .32em; }
.c44-brand__word { letter-spacing: .005em; word-spacing: -.22em; }

/* ---------- Menú de compu: con «Blog» siguen cabiendo los 8 enlaces y los botones en una línea
   (medido a 990, 1100, 1280, 1366, 1440 y 1920 px; desde 1440 el encabezado mide lo mismo: 1300 px) */
@media (min-width: 1440px) {
  .header__inline-menu .header__menu-item { padding: 1.2rem .45rem; font-size: 1.2rem; letter-spacing: .01em; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .header__inline-menu .header__menu-item { padding: 1.2rem .4rem; }
}
@media (min-width: 990px) and (max-width: 1099px) {
  .header__inline-menu .header__menu-item { padding: 1.2rem .3rem; font-size: 1.05rem; }
  .header .c44-brand__word { font-size: 1.45rem; }
  .header .c44-brand img { width: 3rem; }
}

/* ---------- Menú del celular compacto: cabe en una pantalla (390 × 844) ---------- */
@media (max-width: 989px) {
  .menu-drawer .menu-drawer__navigation-container { display: flex; flex-direction: column; justify-content: flex-start; }
  .menu-drawer .menu-drawer__navigation { flex: none; padding: .4rem 0 0; }
  .menu-drawer .menu-drawer__menu { padding-block: .6rem 0; }
  .menu-drawer .menu-drawer__menu-item { font-size: 1.7rem; padding: .7rem 2.4rem; line-height: 1.25; }
  .c44-drawer-cta.c44-drawer-cta--fila { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.2rem 2.4rem 0; }
  .c44-drawer-cta--fila .c44-btn { min-height: 4.4rem; padding: .6rem .8rem; font-size: 1.25rem; letter-spacing: .02em; line-height: 1.15; text-align: center; white-space: normal; }
  .menu-drawer .menu-drawer__utility-links { margin-top: auto; padding: 1.6rem 2.4rem calc(1.6rem + env(safe-area-inset-bottom)); }
  .menu-drawer .c44-drawer-redes { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: .4rem; padding: 0; margin: 0; }
  .menu-drawer .c44-drawer-redes .list-social__link { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; padding: 0; border-radius: 50%; background: var(--c44-tarjeta); color: var(--c44-tinta); }
  .menu-drawer .c44-drawer-redes svg { width: 2rem; height: 2rem; }
}
@media (max-width: 989px) and (max-height: 700px) {
  .menu-drawer .menu-drawer__menu-item { padding-block: .45rem; font-size: 1.6rem; }
}
html[data-tema=oscuro] .menu-drawer .c44-drawer-redes .list-social__link { background: var(--osc-campo); color: var(--osc-texto); }

/* ---------- Pastillas de colecciones en la tienda ---------- */
.c44-pastillas {
  position: sticky; top: var(--header-height, 6.4rem); z-index: 3;
  background: color-mix(in srgb, var(--c44-papel) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.c44-pastillas__lista {
  list-style: none; margin: 0 auto; padding-block: 1rem; display: flex; gap: .8rem;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
}
.c44-pastillas__lista::-webkit-scrollbar { display: none; }
.c44-pastillas__lista li { flex: 0 0 auto; scroll-snap-align: start; }
.c44-pastilla {
  display: inline-flex; align-items: center; min-height: 3.8rem; padding: 0 1.8rem; border-radius: 999px;
  font-size: 1.45rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: var(--c44-tinta); background: var(--c44-tarjeta); box-shadow: inset 0 0 0 1px var(--c44-linea);
  transition: background .2s, color .2s, transform .2s var(--c44-ease);
}
.c44-pastilla:hover { transform: translateY(-1px); }
.c44-pastilla[aria-current="page"] { background: var(--c44-loteria); color: var(--c44-tinta); box-shadow: none; }
.c44-pastilla:focus-visible { outline: 2px solid var(--c44-barro); outline-offset: 2px; }
@media (min-width: 990px) { .c44-pastillas__lista { justify-content: center; padding-block: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .c44-pastilla { transition: none; } .c44-pastilla:hover { transform: none; } }
html[data-tema=oscuro] .c44-pastillas { background: color-mix(in srgb, var(--osc-fondo) 88%, transparent); }
html[data-tema=oscuro] .c44-pastilla { background: var(--osc-tarjeta); color: var(--osc-texto); box-shadow: none; }
html[data-tema=oscuro] .c44-pastilla[aria-current="page"] { background: var(--osc-acento); color: var(--osc-noche); }

/* ---------- Encabezado de compu ordenado (lista 5, 5 nov): un solo estilo para cada cosa ----------
   Barra de arriba: 3 controles iguales (idioma, moneda, apariencia) sin colores fuertes.
   Encabezado: logo | menú centrado con aire | Reservar (amarillo, el único botón) + 4 iconos iguales. */
@media (min-width: 990px) {
  .c44-topbar__inner { gap: 2.4rem; }
  .c44-topbar__contact { gap: 1.8rem; }
  .c44-topbar__loc { gap: 1rem; align-items: center; }
  .c44-topbar .c44-cur, .c44-topbar .c44-lang, .c44-topbar .c44-tema {
    display: inline-flex; align-items: center; gap: .2rem; padding: .2rem; margin: 0;
    border-radius: 999px; background: rgba(250, 248, 245, .1); box-shadow: none;
  }
  .c44-topbar .c44-cur a, .c44-topbar .c44-lang a, .c44-topbar .c44-tema button {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-width: 3.4rem; height: 2.4rem; padding: 0 .9rem; border: 0; border-radius: 999px;
    background: none !important; color: rgba(250, 248, 245, .62) !important;
    font: inherit; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
    text-decoration: none; transition: background .2s, color .2s;
  }
  .c44-topbar .c44-tema button { min-width: 2.8rem; padding: 0 .6rem; }
  .c44-topbar .c44-tema button svg { width: 1.4rem; height: 1.4rem; }
  .c44-topbar .c44-cur a:hover, .c44-topbar .c44-lang a:hover, .c44-topbar .c44-tema button:hover { color: #FAF8F5 !important; }
  .c44-topbar .c44-cur a.is-on, .c44-topbar .c44-lang a.is-on, .c44-topbar .c44-tema button[aria-pressed=true] {
    background: rgba(250, 248, 245, .2) !important; color: #FAF8F5 !important;
  }

  /* Encabezado: el menú ocupa el centro y los enlaces respiran */
  .header.page-width { grid-template-columns: auto 1fr auto; column-gap: 2.4rem; }
  .header .header__inline-menu { justify-self: center; }
  .header .header__inline-menu .list-menu--inline { display: flex; flex-wrap: nowrap; gap: .2rem; }
  .header .header__inline-menu .header__menu-item {
    padding: 1rem .9rem; font-size: 1.3rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap;
    border-radius: 999px; text-decoration: none; transition: background .2s, color .2s;
  }
  .header .header__inline-menu .header__menu-item span { text-decoration: none !important; }
  .header .header__inline-menu .header__menu-item:hover { background: rgba(var(--color-foreground), .06); }
  .header .header__inline-menu .header__menu-item[aria-current=page] { background: rgba(var(--color-foreground), .08); }

  /* Derecha: «Comprar mixes» sobra (Tienda ya está en el menú); WhatsApp como icono igual a los demás */
  .header .c44-header-shop { display: none !important; }
  .header .header__icons { display: flex; align-items: center; gap: .4rem; }
  .header .header__icons .c44-btn.c44-header-cta {
    margin: 0 .8rem 0 0; height: 4rem; padding: 0 2rem; display: inline-flex; align-items: center;
    background: var(--c44-loteria) !important; color: var(--c44-tinta) !important; border: 0 !important; box-shadow: none !important;
    font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; border-radius: 999px;
  }
  .header .header__icons .c44-btn.c44-header-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
  .header .c44-header-wa, .header .header__icons .header__icon, .header .c44-menu-cuenta > summary, .header .c44-menu-cuenta > a, .header .c44-menu-cuenta > button {
    width: 4rem; height: 4rem; margin: 0; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center; background: none; color: rgb(var(--color-foreground));
    transition: background .2s; transform: none;
  }
  .header .c44-header-wa:hover, .header .header__icons .header__icon:hover, .header .c44-menu-cuenta > summary:hover, .header .c44-menu-cuenta > a:hover, .header .c44-menu-cuenta > button:hover {
    background: rgba(var(--color-foreground), .07); transform: none;
  }
  .header .c44-header-wa svg { width: 2rem; height: 2rem; }
}
/* Pantallas medianas: el correo se va a Contacto y el menú se aprieta un poco, sin amontonarse */
@media (min-width: 990px) and (max-width: 1199px) {
  .c44-topbar .c44-topbar__email { display: none; }
  .c44-topbar .c44-topbar__ship { display: none; }
  .header.page-width { column-gap: .8rem; }
  .header .header__inline-menu .header__menu-item { padding: .8rem .35rem; font-size: 1.05rem; letter-spacing: .02em; }
  .header .header__icons .c44-btn.c44-header-cta { padding: 0 1.1rem; margin-right: .2rem; font-size: 1.1rem; height: 3.6rem; }
  .header .c44-header-wa { display: none; }
  .header .header__icons .header__icon { width: 3.4rem; height: 3.4rem; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .c44-topbar .c44-topbar__email { display: none; }
  .header.page-width { column-gap: 1.2rem; }
  .header .header__inline-menu .header__menu-item { padding: .9rem .55rem; font-size: 1.15rem; letter-spacing: .03em; }
  .header .header__icons .c44-btn.c44-header-cta { padding: 0 1.4rem; margin-right: .4rem; }
  .header .c44-header-wa, .header .header__icons .header__icon { width: 3.6rem; height: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) { .header .header__icons .c44-btn.c44-header-cta:hover { transform: none; } }
html[data-tema=oscuro] .header .header__icons .c44-btn.c44-header-cta { background: var(--osc-acento) !important; color: var(--osc-noche) !important; }

/* ---------- Menú del celular como panel (5 nov, foto de Alfonso): no cubre toda la pantalla ----------
   Botones uno debajo del otro, redes debajo de los botones, el panel mide lo que su contenido
   (ancho ~3/4 de la pantalla) y atrás se ve la página oscurecida (summary::before de Dawn). */
@media (max-width: 989px) {
  .js .menu-drawer {
    width: min(30rem, 80vw); height: auto;
    max-height: calc(var(--viewport-height, 100vh) - var(--header-bottom-position, 6rem));
    border-radius: 0 0 2rem 0; overflow-y: auto;
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .22);
  }
  .menu-drawer .menu-drawer__inner-container, .menu-drawer .menu-drawer__navigation-container { height: auto; }
  .menu-drawer .menu-drawer__menu-item { padding: .65rem 2.4rem; }
  .c44-drawer-cta.c44-drawer-cta--fila { grid-template-columns: 1fr; gap: .8rem; padding: 1.4rem 2.4rem 0; }
  .c44-drawer-cta--fila .c44-btn { min-height: 4.6rem; font-size: 1.3rem; }
  .menu-drawer .menu-drawer__utility-links { margin-top: 0; background: none; padding: 1.6rem 2.4rem calc(2rem + env(safe-area-inset-bottom)); }
  .menu-drawer .c44-drawer-redes { justify-content: flex-start; gap: .6rem; }
  .menu-drawer .c44-drawer-redes .list-social__link { width: 4rem; height: 4rem; background: var(--c44-papel); }
  .menu-drawer .c44-drawer-redes svg { width: 1.8rem; height: 1.8rem; }
}

/* Pie de página: en el celular ya no se sale 6 px de lado (columna del grid con minmax(0, …)) */
@media (max-width: 989px) { .c44-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .c44-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .c44-footer__brand { grid-template-columns: minmax(0, 1fr) auto; }
  .c44-footer__brand > * { min-width: 0; }
}

/* Barra de arriba en el celular: los mismos 3 controles iguales que en compu (sin pastilla blanca) */
@media (max-width: 989px) {
  .c44-topbar .c44-cur, .c44-topbar .c44-lang, .c44-topbar .c44-tema { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem; margin: 0; border-radius: 999px; background: rgba(250, 248, 245, .1); }
  .c44-topbar .c44-cur a, .c44-topbar .c44-lang a, .c44-topbar .c44-tema button { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4rem; height: 2.6rem; padding: 0 .8rem; border: 0; border-radius: 999px; background: none !important; color: rgba(250, 248, 245, .62) !important; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; line-height: 1; text-decoration: none; }
  .c44-topbar .c44-tema button { min-width: 2.8rem; padding: 0 .6rem; }
  .c44-topbar .c44-cur a.is-on, .c44-topbar .c44-lang a.is-on, .c44-topbar .c44-tema button[aria-pressed=true] { background: rgba(250, 248, 245, .2) !important; color: #FAF8F5 !important; }
}
