/* =========================================================
   ARTISTIK’S · estilos
   Colores principales: cámbialos aquí y se aplican en toda la página
   ========================================================= */
:root {
  /* Colores tomados del logo */
  --guinda: #86003C;
  --guinda-oscuro: #5C0029;
  --guinda-claro: #A3124F;
  --oro: #FD8C09;        /* naranja del logo */
  --oro-texto: #FFB566;  /* naranja más claro para TEXTO sobre guinda (se lee mejor) */
  --gris-logo: #777A7B;
  --crema: #F8F3EC;
  --papel: #FFFDF9;
  --tinta: #2A1E22;
  --gris: #6F6468;
  --linea: #E7DDD2;
  --whatsapp: #1C8549;   /* verde WhatsApp más profundo: el texto blanco se lee bien (4.7:1) */
  --whatsapp-hover: #166C3B;

  /* ---- Colores por función (modo claro). El modo oscuro los cambia más abajo ---- */
  color-scheme: light;
  --fondo: var(--crema);            /* fondo general */
  --fondo-alt: var(--papel);        /* secciones alternas (colecciones, reseñas) */
  --superficie: #fff;               /* tarjetas, menú, campos */
  --superficie-2: var(--papel);     /* cajas grandes y ventanas */
  --texto: var(--tinta);
  --texto-suave: var(--gris);
  --borde: var(--linea);
  --acento: var(--guinda);          /* textos y enlaces de acento */
  --relleno: var(--guinda);         /* botones y bandas guinda (texto blanco encima) */
  --relleno-hover: var(--guinda-claro);
  --resalte: rgba(134, 0, 60, .07); /* fondo al pasar o enfocar */
  --barra-fondo: #fff;
  --redes-fondo: var(--guinda-oscuro);
  --pie-fondo: #2A0013;
  --campo-fondo: #fff;
  --estrella: #C46200;              /* naranja más profundo: se distingue sobre blanco */
  --ok: #1E7B45;
  --error: #B3261E;
  --foco: var(--guinda);            /* contorno del elemento enfocado con teclado */
  --sombra-suave: 0 4px 18px rgba(74, 18, 32, .08);
  /* Movimiento: tiempos breves y una misma curva suave en toda la página */
  --curva: cubic-bezier(.2, .7, .2, 1);
  --rapido: .18s;
  --medio: .32s;

  --alto-barra: 84px;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(74, 18, 32, .12);
  /* Tipografía (archivos en css/fuentes/, ver @font-face más abajo) */
  /* Newsreader: títulos 400 y 500; cursiva 400 solo para acentos breves (.ligera, .h1-ligera) */
  --font-heading: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  /* Manrope: lectura 400; navegación, etiquetas y botones 500 o 600 */
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- TEMA NAVIDEÑO: verde profundo y vino que se alternan por sección, dorado y marfil ---- */
:root[data-tema="navidad"] {
  color-scheme: dark;
  --fondo: #0D261D;                 /* verde pino profundo */
  --fondo-alt: #3B0E1B;             /* vino (colecciones y reseñas) */
  --superficie: #153B2F;            /* tarjetas verde abeto */
  --superficie-2: #11322A;
  --texto: #FBF3E4;                 /* marfil */
  --texto-suave: #D8CCB6;
  --borde: #41604C;
  --acento: #E8C66E;                /* dorado */
  --relleno: #8E1B2C;               /* vino para botones */
  --relleno-hover: #A82236;
  --resalte: rgba(232, 198, 110, .12);
  --barra-fondo: #0A1F17;
  --redes-fondo: #0A1F17;
  --pie-fondo: #06140E;
  --campo-fondo: #0B2119;
  --estrella: #E8C66E;
  --ok: #8FE0AE;
  --error: #FFA197;
  --foco: #F2D27F;
  --oro-texto: #F2D27F;
  --sombra: 0 10px 30px rgba(0, 0, 0, .5);
  --sombra-suave: 0 4px 18px rgba(0, 0, 0, .4);
  --dorado: #C9A24A;
}

/* ---- MODO OSCURO: fondos vino-carbón en varios tonos y texto claro ---- */
:root[data-tema="oscuro"] {
  color-scheme: dark;
  --fondo: #161012;
  --fondo-alt: #1E1619;
  --superficie: #2A2024;
  --superficie-2: #231B1E;
  --texto: #F3ECE7;
  --texto-suave: #C4B7B2;
  --borde: #47393E;
  --acento: #EFA6C4;                /* guinda aclarado para leerse sobre fondo oscuro */
  --relleno: #8E0841;
  --relleno-hover: #A5124F;
  --resalte: rgba(255, 255, 255, .07);
  --barra-fondo: #1B1417;
  --redes-fondo: #2B0B19;
  --pie-fondo: #0E090B;
  --campo-fondo: #1A1316;
  --estrella: var(--oro);
  --ok: #7EDBA5;
  --error: #FF9A90;
  --foco: var(--oro);
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --sombra-suave: 0 4px 18px rgba(0, 0, 0, .35);
}

/* Fuentes incluidas en el sitio (copias de Google Fonts, licencia SIL OFL; solo caracteres latinos:
   español e inglés completos con acentos, ñ, ¿ ¡ y ’). Son fuentes variables: un archivo cubre varios pesos. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fuentes/manrope.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fuentes/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("fuentes/newsreader-italica.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--alto-barra); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* iPhone: no agrandar el texto al girar */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; font-optical-sizing: auto; margin: 0; }
p { line-height: 1.65; }
/* Segunda línea de los títulos: mismo tipo, más ligera (la cursiva queda solo en el título de la portada) */
.ligera { font-weight: 400; opacity: .85; }
button { font: inherit; color: inherit; }
.oculto { position: absolute; left: -9999px; }
/* Texto solo para lectores de pantalla */
.solo-lector { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Foco visible y claro al navegar con teclado (en todo el sitio) */
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
/* En fondos guinda u oscuros el contorno va en naranja */
.portada, .contactanos__intro, .redes, .pie, .ventana__cab, .zoom { --foco: var(--oro); }
section { scroll-margin-top: var(--alto-barra); }

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--acento);
  margin: 0 0 10px;
}
.titulo-seccion { text-align: center; max-width: 720px; margin: 0 auto 44px; padding: 0 20px; }
.titulo-seccion h2 { font-size: clamp(32px, 4.6vw, 50px); color: var(--texto); }
.titulo-seccion h2 .ligera { display: block; }
.titulo-seccion > p:last-child { color: var(--texto-suave); margin: 12px 0 0; }
.titulo-seccion--claro h2 { color: #fff; }
.titulo-seccion--claro .eyebrow { color: var(--oro-texto); }

/* =================== BARRA SUPERIOR =================== */
.barra {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--alto-barra);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--barra-fondo);
  border-bottom: 3px solid var(--guinda);
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
}
/* =================== LOGO ===================
   Tres versiones del logo registrado (img/marca/Artistiks-{claro,oscuro,navideno}-web.png, 440×324),
   copias ligeras de los originales de 1460×1077 que están sin modificar en fuentes/marca/v3/.
   Sin filtros, sombras ni fondos: cada archivo ya trae los colores para su fondo.
   Caja visible del dibujo en el archivo original (gallo, nombre y ®), las tres casi iguales:
     claro x 25–1436 y 190–858 · oscuro x 23–1441 y 188–860 · navideño x 26–1438 y 187–860
   El .logo-marco muestra la unión de las tres + 5 px de seguridad (x 18–1446, y 182–865 = 1429×684),
   así el ® nunca se corta. Su alto (--logo-h) es el alto VISIBLE del logo.
     img: alto = 1077/684 = 157.456 % del marco; arriba = −182/684 = −26.608 %; izquierda = −18/1429 = −1.260 %.
   Qué versión va en cada lugar (según el fondo real):
     Encabezado: Claro (#FFFFFF) → claro · Oscuro (#1B1417) → oscuro · Navideño (#0A1F17) → navideño
     Pie (oscuro en los 3 temas): Claro (#2A0013) y Oscuro (#0E090B) → oscuro · Navideño (#06140E) → navideño */
.barra__logo { display: flex; align-items: center; min-height: 44px; border-radius: 8px; flex: none; } /* área de toque ≥ 44 px */
.logo-marco {
  --logo-h: 60px;
  position: relative;
  display: block;
  height: var(--logo-h);
  aspect-ratio: 1429 / 684;
  overflow: hidden;
}
.logo-marco img {
  position: absolute;
  top: -26.608%;
  left: -1.260%;
  height: 157.456%;
  width: auto;
  max-width: none;
  display: none;
}
.barra .logo-v-claro,
[data-tema="oscuro"] .barra .logo-v-oscuro,
[data-tema="navidad"] .barra .logo-v-navideno { display: block; }
:is([data-tema="oscuro"], [data-tema="navidad"]) .barra .logo-v-claro { display: none; }

/* Botones del encabezado: "Cotizar" y "Menú" son cápsulas de la misma altura,
   así logo, Cotizar y Menú quedan sobre la misma línea central */
.barra__controles { display: flex; align-items: center; gap: 8px; }
.control {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--acento);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--acento);
  cursor: pointer;
  transition: background var(--rapido);
}
.control:hover { background: var(--resalte); }
.control__icono { width: 22px; height: 22px; display: grid; place-items: center; }
.control__texto { font-size: 16px; font-weight: 600; line-height: 1.1; color: var(--texto); }
.control__icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* ---- Tema (dentro del menú): opciones con radio ---- */
.opciones { margin: 0; padding: 14px 16px 18px; border: 0; border-top: 1px solid var(--borde); display: grid; gap: 8px; }
.opcion[hidden] { display: none; }
.opciones__titulo { display: flex; align-items: center; gap: 8px; padding: 0 4px 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acento); }
.opciones__titulo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.opcion {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
  transition: border-color var(--rapido), background var(--rapido);
}
.opcion:hover { background: var(--resalte); }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opcion:has(input:focus-visible) { outline: 3px solid var(--foco); outline-offset: 2px; }
.opcion__icono { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--resalte); color: var(--acento); }
.opcion__icono svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opcion--navidad .opcion__icono { background: #1E5A3A; color: #F2D27F; }
.opcion__texto { display: grid; gap: 1px; flex: 1; min-width: 0; }
.opcion > .opcion__nombre { flex: 1; }
.opcion__nombre { font-size: 16px; font-weight: 600; }
.opcion__desc { font-size: 13px; color: var(--texto-suave); line-height: 1.3; }
.opcion__check { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--acento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity var(--rapido), transform var(--medio) var(--curva); }
.opcion:has(input:checked) { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); }
.opcion:has(input:checked) .opcion__check { opacity: 1; transform: none; }
.control:active { transform: scale(.97); }
.rayas { display: grid; gap: 5px; }
.rayas i { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .2s; }
.menu-abierto .rayas i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-abierto .rayas i:nth-child(2) { opacity: 0; }
.menu-abierto .rayas i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: absolute;
  top: calc(var(--alto-barra) - 3px);
  right: clamp(16px, 4vw, 48px);
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100svh - var(--alto-barra) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-top: 0;
  border-radius: 0 0 var(--radio) var(--radio);
  box-shadow: var(--sombra);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity var(--rapido) ease, transform var(--medio) var(--curva), visibility 0s linear var(--medio);
}
.menu-abierto .menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--rapido) ease, transform var(--medio) var(--curva), visibility 0s; }
.menu ul { list-style: none; margin: 0; padding: 10px 0; }
/* Las opciones entran una tras otra, muy rápido */
.menu li { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .25s var(--curva); }
.menu-abierto .menu li { opacity: 1; transform: none; }
.menu-abierto .menu li:nth-child(2) { transition-delay: .03s; }
.menu-abierto .menu li:nth-child(3) { transition-delay: .06s; }
.menu-abierto .menu li:nth-child(4) { transition-delay: .09s; }
.menu-abierto .menu li:nth-child(5) { transition-delay: .12s; }
.menu-abierto .menu li:nth-child(6) { transition-delay: .15s; }
.menu-abierto .menu li:nth-child(7) { transition-delay: .18s; }
.menu a {
  display: block;
  padding: 14px 26px;
  color: var(--texto);
  font-weight: 500;
  text-decoration: none;
  font-size: 17px;
  border-left: 3px solid transparent;
  transition: background var(--rapido), border-color var(--rapido), color var(--rapido), padding-left var(--medio) var(--curva);
}
.menu a:hover, .menu a:focus-visible { background: var(--resalte); color: var(--acento); border-left-color: var(--oro); padding-left: 32px; }
.menu a:focus-visible { outline-offset: -3px; }

/* ---- Selector de idioma (dentro del menú) ---- */
.idiomas {
  margin: 0;
  padding: 14px 16px 18px;
  border: 0;
  border-top: 1px solid var(--borde);
  display: grid;
  gap: 8px;
}
.idiomas__titulo {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acento);
}
.idiomas__titulo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.idioma {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
  transition: border-color var(--rapido), background var(--rapido);
}
.idioma:hover { background: var(--resalte); }
/* El radio se oculta a la vista pero sigue funcionando con teclado y lector de pantalla */
.idioma input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.idioma:has(input:focus-visible) { outline: 3px solid var(--foco); outline-offset: 2px; }
.idioma__texto { display: grid; gap: 2px; min-width: 0; }
.idioma__fila { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.idioma__nombre { font-size: 16px; font-weight: 600; }
.idioma__etiqueta {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--texto-suave);
}
.idioma__lema { font-size: 13.5px; color: var(--texto-suave); line-height: 1.35; }
.idioma__check { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--acento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity var(--rapido), transform var(--medio) var(--curva); }
/* Español: casilla destacada (idioma principal) */
.idioma--principal { padding: 12px 14px; background: var(--resalte); border-color: color-mix(in srgb, var(--acento) 40%, var(--borde)); }
/* Idioma seleccionado: borde de acento + palomita */
.idioma:has(input:checked) { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); }
.idioma:has(input:checked) .idioma__check { opacity: 1; transform: none; }

/* =================== 1. PORTADA =================== */
.portada {
  position: relative;
  margin-top: var(--alto-barra);
  height: calc(100svh - var(--alto-barra));
  min-height: 480px;
  max-height: 900px;
  overflow: hidden;
  background: var(--guinda-oscuro);
}
.portada__pista {
  display: flex;
  height: 100%;
  transition: transform .9s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.portada__slide { flex: 0 0 100%; height: 100%; }
.portada__slide img { width: 100%; height: 100%; object-fit: cover; }
.portada__slide img { object-position: 78% 50%; } /* en pantallas angostas conserva el lado de los libros */

/* Capas sobre las fotos (el texto va encima, sin transparencia).
   --oscuridad: qué tanto se oscurecen las fotos (0 = nada, 1 = negro).
   Se probó 70%: el texto se lee bien, pero los libros casi no se ven. Con 55% + el degradado
   de abajo, la zona del texto queda igual o más oscura que con 70% y los libros se aprecian mejor. */
.portada { --oscuridad: .55; }
.portada__capa,
.portada__degradado {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.portada__capa { background: rgba(0, 0, 0, var(--oscuridad)); }
/* Un poco más oscuro del lado del texto */
.portada__degradado { background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.58) 36%, transparent 72%); }

.portada__texto {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(20px, 6vw, 96px);
  transform: translateY(-50%);
  max-width: min(780px, calc(100vw - 2 * clamp(20px, 6vw, 96px))); /* cabe la frase más larga (inglés) */
  color: #fff;
}
.portada__pre { margin: 0 0 12px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--oro); }
.portada h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.04; }
.portada h1 span { white-space: nowrap; } /* cada parte del título en una sola línea */
.h1-fuerte { display: block; font-weight: 500; }
.h1-ligera { display: block; font-style: italic; font-weight: 400; }
.portada__sub { font-size: clamp(17px, 1.6vw, 20px); margin: 18px 0 30px; max-width: 520px; }
/* Dos acciones: ver el catálogo (blanco) y cotizar por WhatsApp (verde) */
.portada__botones { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-claro {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--guinda);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.btn-claro:hover { background: #F6E9EE; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  min-height: 48px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .2s, box-shadow .2s;
}
.btn-whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-1px); }
.btn-whatsapp--chico { padding: 12px 24px; font-size: 16px; }

/* "Cotizar" en el encabezado: siempre a la vista */
.btn-cotizar {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  margin-right: 4px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--rapido), transform var(--rapido) var(--curva);
}
.btn-cotizar svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-cotizar:hover { background: var(--whatsapp-hover); }
.btn-cotizar:active { transform: scale(.97); }

/* Accesos directos en el encabezado (solo pantallas anchas; en las demás están en el menú) */
.barra__nav { display: none; }
@media (min-width: 1100px) {
  .barra__nav { display: flex; gap: 2px; margin-left: auto; margin-right: 12px; }
  .barra__nav a { padding: 10px 14px; border-radius: 999px; color: var(--texto); font-weight: 600; font-size: 16px; text-decoration: none; transition: background var(--rapido), color var(--rapido); }
  .barra__nav a:hover { background: var(--resalte); color: var(--acento); }
}

/* =================== 2. CONTÁCTANOS =================== */
.contactanos { padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); background: var(--fondo-alt); }
.contactanos__caja {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--superficie-2);
  border: 1px solid var(--borde);
  border-radius: 22px;
  box-shadow: var(--sombra);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  overflow: hidden;
}
.contactanos__intro {
  background: var(--relleno);
  color: #fff;
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.contactanos__intro .eyebrow { color: var(--oro-texto); }
.contactanos__intro h2 { font-size: clamp(30px, 3.4vw, 44px); }
.contactanos__intro h2 .ligera { display: block; }
.contactanos__intro p:last-child { opacity: .9; margin: 18px 0 0; }

.form {
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  align-content: center;
}
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo--ancho { grid-column: 1 / -1; }
.campo span { font-weight: 500; font-size: 15px; }
.campo em { font-style: normal; color: var(--texto-suave); font-weight: 400; }
.campo input {
  font: inherit;
  padding: 16px 18px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--campo-fondo);
  color: var(--texto);
  transition: border-color .2s, box-shadow .2s;
}
.campo input::placeholder { color: var(--texto-suave); opacity: .85; }
.campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--resalte); }
.campo input:focus-visible { outline: 3px solid var(--foco); outline-offset: 1px; }
.aviso-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--texto-suave); cursor: pointer; }
.aviso-check input { margin-top: 1px; accent-color: var(--relleno); width: 24px; height: 24px; flex: none; }
.aviso-check { min-height: 44px; align-items: center; } /* toda la frase marca la casilla */
.aviso-check a { color: var(--acento); }
.form__pie { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primario {
  padding: 16px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--relleno);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primario:hover { background: var(--relleno-hover); transform: translateY(-1px); }
.btn-primario:disabled { opacity: .6; cursor: wait; transform: none; }
.form__estado { margin: 0; font-size: 16px; flex: 1; min-width: 200px; }
.form__estado.ok { color: var(--ok); }
.form__estado.error { color: var(--error); }
.form__estado a { color: var(--acento); }

/* Mensaje de envío exitoso (reemplaza al formulario) */
.exito {
  padding: clamp(24px, 3.5vw, 44px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.exito[hidden], .form[hidden] { display: none; }
.exito:focus { outline: none; }
.exito__icono { position: relative; width: 88px; height: 88px; margin-bottom: 18px; }
.exito__icono svg { width: 100%; height: 100%; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.exito__circulo { stroke: var(--acento); fill: var(--resalte); stroke-dasharray: 227; stroke-dashoffset: 227; }
.exito__palomita { stroke: var(--oro); stroke-dasharray: 50; stroke-dashoffset: 50; }
.exito__confeti { position: absolute; inset: 0; pointer-events: none; }
.exito__confeti i {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; margin: -4.5px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
}
.exito__titulo { font-size: clamp(30px, 3.4vw, 38px); color: var(--acento); }
.exito__texto { max-width: 440px; margin: 12px 0 0; color: var(--texto); }
.exito__nota { margin: 8px 0 22px; font-size: 16px; color: var(--texto-suave); }
.exito__nota a { color: var(--acento); font-weight: 600; }
.exito__titulo, .exito__texto, .exito__nota, .exito .btn-secundario { opacity: 0; }
.btn-secundario {
  padding: 13px 30px;
  border: 1.5px solid var(--acento);
  border-radius: 999px;
  background: transparent;
  color: var(--acento);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-secundario:hover { background: var(--relleno); border-color: var(--relleno); color: #fff; }

/* Animación: círculo que se dibuja, palomita, confeti y textos que suben */
.exito.visible .exito__icono svg { animation: exito-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.exito.visible .exito__circulo { animation: exito-trazo .6s ease-out .1s forwards; }
.exito.visible .exito__palomita { animation: exito-trazo .35s ease-out .65s forwards; }
.exito.visible .exito__confeti i { animation: exito-confeti 1s ease-out .7s forwards; }
.exito.visible .exito__titulo  { animation: exito-subir .5s ease-out .85s forwards; }
.exito.visible .exito__texto   { animation: exito-subir .5s ease-out 1s forwards; }
.exito.visible .exito__nota    { animation: exito-subir .5s ease-out 1.1s forwards; }
.exito.visible .btn-secundario { animation: exito-subir .5s ease-out 1.2s forwards; }
@keyframes exito-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes exito-trazo { to { stroke-dashoffset: 0; } }
@keyframes exito-confeti {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}
@keyframes exito-subir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =================== 2. CATÁLOGO =================== */
.colecciones { padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); background: var(--fondo-alt); }
.colecciones .titulo-seccion { margin-bottom: 26px; }
/* Filtros por área: botones grandes con texto (aria-pressed marca el activo) */
.filtros { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 32px; }
.filtro {
  min-height: 46px;
  padding: 8px 20px;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--rapido), border-color var(--rapido), color var(--rapido), transform var(--rapido) var(--curva);
}
.filtro:hover { border-color: var(--acento); }
.filtro[aria-pressed="true"] { background: var(--relleno); border-color: var(--relleno); color: #fff; }
.filtro:active { transform: scale(.97); }
/* Cuadrícula: 4 columnas en computadora, 3 en tableta, 2 en celular */
.catalogo {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.col-card {
  display: flex; flex-direction: column;
  padding: 0;
  background: var(--superficie);
  color: var(--texto);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.col-card[hidden] { display: none; }
.col-card:hover, .col-card:focus-visible { transform: translateY(-4px); box-shadow: var(--sombra); }
.col-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--borde); }
.col-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.col-card:hover .col-card__img img { transform: scale(1.04); }
.col-card__info { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 18px; flex: 1; }
.col-card__area { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acento); }
.col-card__nombre { font-family: var(--font-heading); font-size: 23px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.col-card__desc { color: var(--texto-suave); font-size: 15.5px; line-height: 1.45; }
.col-card__idioma { font-size: 14px; font-weight: 500; color: var(--texto-suave); }
.col-card__ver { margin-top: auto; padding-top: 10px; color: var(--acento); font-weight: 600; font-size: 16px; }

/* Botón con flecha (en la imagen ampliada) */
.flecha {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--relleno);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  transition: background .2s;
}
.flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flecha:hover { background: var(--relleno-hover); }

/* =================== VENTANAS (dialog) =================== */
.ventana {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--superficie-2);
  color: var(--texto);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
}
#dlgColeccion { width: min(960px, calc(100vw - 32px)); }
.ventana[open] { display: flex; flex-direction: column; animation: aparecer .3s ease; }
.ventana::backdrop { background: rgba(30, 10, 16, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ventana__cab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 16px 24px;
  background: var(--relleno);
  color: #fff;
}
.ventana__cab h3 { font-size: 27px; }
.cerrar {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.cerrar span { font-size: 24px; line-height: 0; }
.cerrar:hover { background: rgba(255,255,255,.15); }

.tomos__nota { margin: 0; padding: 12px 24px 0; font-size: 15px; font-weight: 500; color: var(--texto-suave); }
.tomos__nota[hidden] { display: none; }
/* Una fila por tomo: título arriba y sus 3 imágenes de lado */
.tomos {
  display: grid;
  gap: 28px;
  padding: 24px;
  overflow: auto;
  overflow-anchor: none; /* que no baje sola mientras cargan las imágenes */
}
.tomo { display: flex; flex-direction: column; }
.tomo__imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tomo__img {
  padding: 0; border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--borde);
  aspect-ratio: 1 / 1;
}
.tomo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tomo__img:hover img { transform: scale(1.04); }
.tomo__titulo {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--acento);
}
/* Aviso "Ampliar" sobre cada imagen: deja claro que se puede tocar */
.tomo__img { position: relative; }
.tomo__lupa {
  position: absolute; right: 7px; bottom: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: rgba(20, 6, 10, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}
.tomo__lupa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Pie de la ventana: cotizar la colección */
.ventana__pie { flex: none; display: flex; justify-content: center; padding: 14px 20px; border-top: 1px solid var(--borde); background: var(--superficie-2); }
/* Imagen ampliada: foto arriba y, abajo, Anterior · 2 de 9 · Siguiente */
.zoom {
  position: absolute; inset: 0;
  z-index: 5;
  background: rgba(20, 6, 10, .95);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center; align-items: center;
  gap: 14px;
  padding: 68px 16px 16px;
}
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.cerrar--zoom { position: absolute; top: 14px; right: 14px; }
.zoom__nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.zoom__contador { min-width: 70px; text-align: center; color: #fff; font-weight: 600; font-size: 16px; }

.ventana--texto { width: min(720px, calc(100vw - 32px)); }
.legal { padding: 8px 28px 28px; overflow: auto; font-size: 16px; }
.legal h4 { font-size: 21px; margin: 22px 0 6px; color: var(--acento); }
.legal p { margin: 10px 0; }
.legal a { color: var(--acento); }

/* =================== 3. CÓMO COMPRAR =================== */
.comprar { padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); }
.caminos { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.camino {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 18px;
  box-shadow: var(--sombra-suave);
}
.camino--destacado { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento), var(--sombra-suave); }
.camino h3 { font-size: clamp(26px, 2.6vw, 32px); }
.camino p { margin: 0; }
.camino__etiqueta { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.camino__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.camino__lista li { position: relative; padding-left: 28px; }
.camino__lista li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 15px; height: 8px;
  border-left: 2.5px solid var(--acento); border-bottom: 2.5px solid var(--acento);
  transform: rotate(-45deg);
}
.camino .btn-whatsapp { margin-top: auto; align-self: center; }
.camino .tiendas__botones { justify-content: center; gap: 14px; margin: 4px 0; width: 100%; }
.camino .tienda { flex: 1 1 150px; max-width: 220px; width: auto; height: 84px; box-shadow: 0 0 0 1px var(--borde), var(--sombra-suave); }
.camino .tiendas__nota { margin: 0; font-size: 15.5px; color: var(--texto-suave); }
.camino .tiendas__nota strong { color: var(--texto); }

/* Preguntas frecuentes: siempre visibles (sin acordeones que haya que adivinar) */
.faq__titulo { text-align: center; font-size: clamp(26px, 3vw, 34px); margin: clamp(48px, 6vw, 64px) 0 22px; }
.faq { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq__item { padding: 20px 22px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); }
.faq dt { font-family: var(--font-heading); font-size: 21px; font-weight: 500; line-height: 1.2; color: var(--texto); }
.faq dd { margin: 8px 0 0; line-height: 1.6; }

/* =================== 4. QUIÉNES SOMOS =================== */
.nosotros { padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); background: var(--fondo-alt); }
.nosotros .titulo-seccion { max-width: 820px; margin-bottom: 34px; }
.nosotros .titulo-seccion > p:last-child { color: var(--texto); font-size: 18px; line-height: 1.7; }
.datos-marca { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.datos-marca li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  font-weight: 600;
}
.datos-marca svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--acento); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* =================== 5. MÉXICO EN SUS PÁGINAS =================== */
.mexico { padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); }
.lugares { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lugar {
  display: flex; flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}
.lugar img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--borde); }
.lugar__cuerpo { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 22px 22px; }
.lugar__nombre { font-size: 23px; }
.lugar__libro { margin: 0 0 14px; color: var(--acento); font-weight: 600; }
.btn-leer { margin-top: auto; }

/* Ventana "Leer historia" */
.ventana--lugar { width: min(820px, calc(100vw - 32px)); }
.historia { overflow: auto; padding-bottom: 28px; }
.historia img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 56svh; object-fit: cover; }
.historia > :not(picture) { margin-left: clamp(18px, 4vw, 32px); margin-right: clamp(18px, 4vw, 32px); }
.historia__libro { margin-top: 18px; margin-bottom: 0; color: var(--acento); font-weight: 600; }
.historia__sub { margin-top: 22px; font-size: 21px; color: var(--acento); }
.historia__cita { margin-top: 8px; padding-left: 16px; border-left: 3px solid var(--oro); }

/* =================== 6. REDES Y CONTACTO =================== */
.redes {
  padding: clamp(64px, 9vw, 100px) 20px;
  background: var(--redes-fondo);
  color: #fff;
  text-align: center;
}
.redes .titulo-seccion { margin-bottom: 34px; }
.redes__iconos { list-style: none; display: flex; justify-content: center; gap: 14px 22px; padding: 0; margin: 0 0 54px; flex-wrap: wrap; }
/* Cada red: símbolo en círculo y su nombre debajo */
.redes__iconos a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 76px;
  padding: 4px;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
}
.red__icono {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.45);
  transition: background .25s, border-color .25s, transform .25s;
}
.red__icono svg { width: 26px; height: 26px; fill: #fff; transition: fill .25s; }
.red__nombre { font-size: 15px; font-weight: 600; }
.redes__iconos a:hover .red__icono { background: var(--oro); border-color: var(--oro); transform: translateY(-3px); }
.redes__iconos a:hover svg { fill: var(--guinda-oscuro); }
.redes__datos {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.redes__datos li {
  padding: 24px 16px;
  border-radius: var(--radio);
  background: rgba(255,255,255,.06);
  display: grid; gap: 6px;
}
.dato__etiqueta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); font-weight: 600; }
.redes__datos a { display: inline-block; padding: 9px 4px; text-decoration: none; font-size: 18px; word-break: break-word; } /* área de toque ≥ 44 px */
.redes__datos a:hover { text-decoration: underline; }

/* Tiendas en línea (en "Cómo comprar") */
.tiendas__botones { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tienda {
  width: 220px; height: 88px;
  border-radius: var(--radio);
  display: grid; place-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.01em;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s;
}
.tienda:hover, .tienda:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
/* Logos equilibrados a simple vista (los archivos ya no tienen márgenes transparentes):
   no la misma altura sino el mismo "peso": ML 74×66 y Amazon 106×36 (ML ocupa algo más de área
   porque su texto azul es pequeño y Amazon es negro y de alto contraste),
   y un ligero ajuste óptico hacia abajo porque el "peso" de ambos logos está arriba de su centro
   (Amazon: la palabra pesa más que la sonrisa; ML: el óvalo pesa más que el texto). */
.tienda img { display: block; max-width: none; max-height: none; object-fit: contain; }
.tienda--ml img { height: 66px; width: auto; transform: translateY(2px); }
.tienda--amazon img { width: 106px; height: auto; transform: translate(1px, 3px); }
.tienda.con-logo span { display: none; }
.tienda--ml { background: #FFE600; color: #2D3277; }
.tienda--amazon { background: #fff; color: #131921; }
/* En modo oscuro los paneles de las tiendas siguen claros (los logos conservan sus colores),
   con un blanco más suave y un borde para que no deslumbren */
[data-tema="oscuro"] .tienda.con-logo,
[data-tema="oscuro"] .tienda--amazon,
[data-tema="navidad"] .tienda.con-logo { background: #F4EFEA; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.4); }
.tienda--amazon small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: #555; }
.tienda.con-logo { background: #fff; }
.tienda { transition: transform var(--rapido) var(--curva), box-shadow var(--medio); } /* sin fundido de color al aparecer el logo */

/* =================== PIE =================== */
.pie {
  background: var(--pie-fondo);
  color: rgba(255,255,255,.78);
  text-align: center;
  padding: 26px 20px;
  font-size: 14px;
}
.pie p { margin: 4px 0; }

/* Cinta del pie: franja blanca delgada con el logo claro repetido (mismo tamaño y separación)
   que se recorre a la izquierda en ciclo continuo. La pista tiene 2 grupos idénticos y se mueve
   exactamente la mitad de su ancho, así el ciclo no da saltos. Se detiene con "Pausar movimiento"
   y queda quieta con "reducir movimiento". */
.cinta {
  margin: -26px -20px 24px;          /* de borde a borde (anula el relleno del pie) */
  height: 54px;
  overflow: hidden;
  background: #fff;
  display: flex; align-items: center;
}
.cinta:not(:has(img)) { display: none; } /* sin JS no se muestra vacía */
.cinta__pista { display: flex; width: max-content; animation: cinta 45s linear infinite; }
.cinta__grupo { display: flex; }
.cinta__item { padding: 0 26px; }      /* separación igual entre logos */
.cinta .logo-marco { --logo-h: 30px; }
.cinta .logo-marco img { display: block; }
@keyframes cinta { to { transform: translateX(-50%); } }
.nav-pausa .cinta__pista { animation-play-state: paused; }
[data-tema="claro"] .cinta { border-top: 1px solid var(--guinda); border-bottom: 1px solid var(--guinda); }
@media (max-width: 767px) {
  .cinta { height: 46px; }
  .cinta .logo-marco { --logo-h: 24px; }
  .cinta__item { padding: 0 18px; }
  .cinta__pista { animation-duration: 35s; }
}
.pie__links { display: flex; justify-content: center; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.pie__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 4px; }
.pie__links a:hover { text-decoration: underline; }
/* Tema Claro: pie blanco para que el logo nuevo (hecho para fondo claro) se vea con sus colores */
[data-tema="claro"] .pie { background: #fff; color: var(--texto-suave); border-top: 3px solid var(--guinda); --foco: var(--guinda); }
[data-tema="claro"] .pie__links a { color: var(--guinda); }


/* =================== ANIMACIONES Y TRANSICIONES ===================
   Reglas generales (movimiento moderado):
   - Solo se mueven opacidad y transform (no cambian el tamaño de nada: sin saltos y fluido en celular).
   - No hay entradas al desplazarse: el contenido está visible desde el inicio.
   - El único movimiento continuo son las fotos de la portada (y, en temporada, la decoración navideña);
     ambos se detienen con "Pausar movimiento". */

/* Línea naranja bajo la etiqueta de cada sección (fija: sin animaciones al desplazarse) */
.titulo-seccion .eyebrow::after {
  content: "";
  display: block;
  width: 36px; height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--oro);
}

/* 2. Respuesta al tocar o hacer clic: un leve "hundirse" (funciona igual con dedo, ratón o teclado) */
.btn-primario, .btn-secundario, .btn-whatsapp, .btn-claro, .flecha, .cerrar, .portada__pausa { transition: background var(--rapido), color var(--rapido), border-color var(--rapido), box-shadow var(--medio), transform var(--rapido) var(--curva); }
.btn-primario:active, .btn-secundario:active, .btn-whatsapp:active, .btn-claro:active, .flecha:active, .cerrar:active, .portada__pausa:active { transform: scale(.97); }
.tienda:active { transform: translateY(-1px) scale(.98); }
.col-card:active { transform: translateY(-2px) scale(.99); }
/* El ícono de WhatsApp y las flechas se asoman en la dirección de la acción */
.btn-whatsapp svg, .flecha svg { transition: transform var(--medio) var(--curva); }
.btn-whatsapp:hover svg, .btn-whatsapp:focus-visible svg { transform: rotate(-8deg) scale(1.08); }
/* "Ver libros →": la flecha avanza cuando la tarjeta recibe el cursor o el foco */
.col-card__ver { display: inline-flex; gap: 4px; transition: color var(--rapido); }
.col-card__ver::after { content: ""; }
.col-card:hover .col-card__ver, .col-card:focus-visible .col-card__ver { color: var(--texto); }
/* Redes: el mismo efecto con el cursor que con el teclado */
.redes__iconos a:focus-visible .red__icono { background: var(--oro); border-color: var(--oro); transform: translateY(-3px); }
.redes__iconos a:focus-visible svg { fill: var(--guinda-oscuro); }
.redes__iconos a:active .red__icono { transform: scale(.94); }
/* Enlaces dentro del texto: el subrayado se engrosa en lugar de aparecer de golpe */
.legal a, .aviso-check a, .exito__nota a, .form__estado a, .redes__datos a, .pie__links a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--rapido), text-underline-offset var(--rapido), color var(--rapido);
}
.redes__datos a { text-decoration-color: transparent; }
.legal a:hover, .aviso-check a:hover, .exito__nota a:hover, .form__estado a:hover, .redes__datos a:hover, .pie__links a:hover,
.legal a:focus-visible, .aviso-check a:focus-visible, .exito__nota a:focus-visible, .form__estado a:focus-visible, .redes__datos a:focus-visible, .pie__links a:focus-visible {
  text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: currentColor;
}

/* 3. Ventanas: el fondo se oscurece con suavidad y la imagen ampliada aparece desde un poco más chica */
.ventana[open]::backdrop { animation: fondo-aparece .3s ease; }
@keyframes fondo-aparece { from { opacity: 0; } }
.zoom:not([hidden]) img { animation: zoom-aparece .35s var(--curva); }
@keyframes zoom-aparece { from { opacity: 0; transform: scale(.94); } }
.tomo__img img { transition: transform .5s var(--curva); }

/* 4. Cambio entre modo claro y oscuro: fundido sutil de 0.35 s
   - Navegadores modernos: fundido de toda la página (View Transitions, lo pide main.js).
   - Los demás: los colores cambian suavemente con la clase .tema-transicion. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
html.tema-transicion, html.tema-transicion *, html.tema-transicion *::before, html.tema-transicion *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease, box-shadow .4s ease !important;
}

/* 5. Botón "Pausar movimiento" de la portada (texto visible; mismo estado que "Animaciones" del menú) */
.portada__pausa {
  position: absolute;
  z-index: 3;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 28px);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.portada__pausa:hover { background: rgba(0,0,0,.65); }
.portada__pausa svg { width: 18px; height: 18px; fill: currentColor; }
.portada__pausa .icono-play { display: none; }
.portada__pausa[data-pausado="true"] .icono-pausa { display: none; }
.portada__pausa[data-pausado="true"] .icono-play { display: block; }


/* =================== TEMA NAVIDEÑO: DECORACIÓN Y ANIMACIONES ===================
   Todo lo decorativo lo crea js/navidad.js con clases "nav-…", lleva aria-hidden
   y pointer-events: none (nunca bloquea clics ni tapa controles). Al cambiar a
   Claro u Oscuro, navidad.js lo elimina todo.
   - html.nav-pausa: el visitante pausó el movimiento ("Pausar movimiento" o "Animaciones"; lo pone main.js).
   - html.nav-oculta: la pestaña no está visible.
   - prefers-reduced-motion: decoración estática, sin nieve, trineo ni desplazamientos. */

[data-tema="navidad"] .barra { border-bottom-color: var(--dorado); }
[data-tema="navidad"] .portada__pre { color: #F2D27F; }
.nav-host { position: relative; }

/* --- Guirnaldas de luces: cable dorado en curvas y focos que se encienden en secuencia --- */
.nav-guirnalda {
  position: absolute; left: 0; right: 0; top: 0;
  height: 30px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.nav-guirnalda::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 16px;
  background-image: radial-gradient(ellipse 50% 100% at 50% 0, transparent calc(100% - 2px), rgba(201, 162, 74, .85) calc(100% - 1.4px), rgba(201, 162, 74, .85) 100%, transparent calc(100% + .6px));
  background-size: calc(100% / var(--n, 12)) 14px;
  background-repeat: repeat-x;
}
.barra .nav-guirnalda { top: 100%; margin-top: 3px; z-index: -1; } /* detrás del menú y del panel de tema */
.nav-foco {
  position: absolute;
  top: 11px;
  width: 8px; height: 12px;
  margin-left: -4px;
  border-radius: 50% 50% 46% 46%;
  background: var(--c);
  opacity: .55;
  animation: nav-foco 3.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * .2s);
}
.nav-foco::before { content: ""; position: absolute; left: 1.5px; top: -3px; width: 5px; height: 4px; border-radius: 1px; background: #C9A24A; }
.nav-foco::after {
  content: "";
  position: absolute; inset: -9px -9px -7px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0, transparent 68%);
  opacity: .15;
  animation: nav-brillo 3.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * .2s);
}
@keyframes nav-foco { to { opacity: 1; } }
@keyframes nav-brillo { to { opacity: .65; } }

/* --- Esferas colgantes: balanceo suave (el desplazamiento con el scroll lo calcula navidad.js) --- */
.nav-esfera { position: absolute; top: 0; pointer-events: none; z-index: 1; will-change: transform; }
.nav-esfera svg { display: block; transform-origin: 50% 0; animation: nav-balanceo var(--dur, 5s) ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes nav-balanceo { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }

/* --- Ramas con estrella bajo la etiqueta de cada sección (reemplazan la línea naranja) --- */
[data-tema="navidad"] .titulo-seccion .eyebrow::after {
  width: 112px; height: 22px;
  margin-top: 10px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 22'%3E%3Cg fill='none' stroke='%23E8C66E' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M47 11C36 11 22 9 6 5M41 11l-3-4M35 10.6l-3-4M29 9.8l-3-4M23 8.8l-3-4M17 7.6l-3-4M11 6.2l-3-4M41 11l-3 4M35 10.7l-3 4M29 10l-3 4M23 9l-3 4M17 7.8l-3 4'/%3E%3Cpath d='M65 11c11 0 25-2 41-6M71 11l3-4M77 10.6l3-4M83 9.8l3-4M89 8.8l3-4M95 7.6l3-4M101 6.2l3-4M71 11l3 4M77 10.7l3 4M83 10l3 4M89 9l3 4M95 7.8l3 4'/%3E%3C/g%3E%3Cpath fill='%23E8C66E' d='M56 3l2 5.4 5.7.2-4.5 3.5 1.6 5.5L56 14.4l-4.8 3.2 1.6-5.5-4.5-3.5 5.7-.2z'/%3E%3Ccircle cx='44' cy='15' r='1.8' fill='%23D9475B'/%3E%3Ccircle cx='47' cy='16.5' r='1.6' fill='%23D9475B'/%3E%3Ccircle cx='68' cy='15' r='1.8' fill='%23D9475B'/%3E%3Ccircle cx='65' cy='16.5' r='1.6' fill='%23D9475B'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Paneles de compra: marco dorado y moño (los logos no se tocan) --- */
[data-tema="navidad"] .tienda, [data-tema="navidad"] .tienda.con-logo { position: relative; box-shadow: 0 0 0 2px var(--dorado), 0 0 0 6px rgba(201, 162, 74, .18), 0 8px 22px rgba(0, 0, 0, .45); }
[data-tema="navidad"] .tiendas__botones { gap: 26px 22px; padding-top: 6px; } /* espacio para los moños */
[data-tema="navidad"] .tienda::before {
  content: "";
  position: absolute; left: 50%; top: -13px;
  width: 40px; height: 22px; margin-left: -20px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cpath fill='%238E1B2C' stroke='%23C9A24A' stroke-width='1.2' d='M20 9C14 1 4 1 4 7s9 6 16 2zM20 9c6-8 16-8 16-2s-9 6-16 2z'/%3E%3Cpath fill='%238E1B2C' stroke='%23C9A24A' stroke-width='1.2' d='M18 10l-6 11 4-1 2 2 2-12zM22 10l6 11-4-1-2 2-2-12z'/%3E%3Ccircle cx='20' cy='9.5' r='3.2' fill='%23C9A24A'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Tarjetas, reseñas y botones: respuestas festivas sutiles --- */
[data-tema="navidad"] :is(.col-card, .camino, .faq__item, .datos-marca li, .lugar) { border-color: rgba(232, 198, 110, .28); }
[data-tema="navidad"] .camino--destacado { border-color: var(--dorado); box-shadow: inset 0 0 0 1px var(--dorado), var(--sombra-suave); }
[data-tema="navidad"] .col-card:hover, [data-tema="navidad"] .col-card:focus-visible { border-color: rgba(232, 198, 110, .7); box-shadow: 0 0 0 1px rgba(232, 198, 110, .35), 0 12px 30px rgba(0, 0, 0, .45); }
[data-tema="navidad"] .contactanos__caja { border-color: rgba(232, 198, 110, .3); }
[data-tema="navidad"] :is(.btn-primario, .btn-secundario, .flecha, .btn-whatsapp, .btn-claro) { position: relative; overflow: hidden; }
[data-tema="navidad"] :is(.btn-primario, .btn-secundario, .flecha, .btn-whatsapp, .btn-claro)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 200, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--curva);
  pointer-events: none;
}
[data-tema="navidad"] :is(.btn-primario, .btn-secundario, .flecha, .btn-whatsapp, .btn-claro):is(:hover, :focus-visible)::after { transform: translateX(120%); }
/* Destellos dorados al pulsar (los crea navidad.js en el punto del toque) */
.nav-chispa {
  position: fixed; z-index: 70;
  width: 9px; height: 9px; margin: -4.5px;
  pointer-events: none;
  background: #F2D27F;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: nav-chispa .65s ease-out forwards;
}
@keyframes nav-chispa { to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(70deg); opacity: 0; } }

/* --- Nieve (lienzo detrás del encabezado; no recibe clics) --- */
.nav-nieve { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* --- Bienvenida: Santa Claus en su trineo cruza de derecha a izquierda (una vez por activación) --- */
.nav-trineo {
  position: fixed; left: 0;
  top: calc(var(--alto-barra) + 3vh);
  width: min(500px, 74vw);
  z-index: 46;
  pointer-events: none;
  animation: nav-cruce 6.2s cubic-bezier(.4, .05, .5, .95) forwards;
}
.nav-trineo svg { display: block; width: 100%; height: auto; animation: nav-vaiven 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
@keyframes nav-cruce {
  0%   { transform: translate(102vw, 34px); opacity: 0; }
  7%   { opacity: 1; }
  50%  { transform: translate(calc(50vw - 50%), -6px); }
  93%  { opacity: 1; }
  100% { transform: translate(-104%, 26px); opacity: 0; }
}
@keyframes nav-vaiven { from { transform: translateY(-4px) rotate(-1deg); } to { transform: translateY(4px) rotate(1deg); } }
.nav-trineo .patas { transform-box: fill-box; transform-origin: 50% 0; animation: nav-galope .42s ease-in-out infinite alternate; }
.nav-trineo .patas.atras { animation-delay: .21s; }
@keyframes nav-galope { from { transform: rotate(-14deg); } to { transform: rotate(12deg); } }
.nav-trineo .estela circle, .nav-trineo .estela path { animation: nav-titila 1.6s ease-in-out infinite alternate; }
.nav-trineo .estela :nth-child(2n) { animation-delay: .5s; }
.nav-trineo .estela :nth-child(3n) { animation-delay: .9s; }
@keyframes nav-titila { from { opacity: .25; } to { opacity: 1; } }

/* --- Botón "Animaciones" dentro del menú: pausa TODO el movimiento (fotos de portada y decoración).
       Mismo estado que "Pausar movimiento" de la portada (main.js pone html.nav-pausa). --- */
.nav-anim {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 6px 16px 6px 6px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
  text-align: left;
  transition: background var(--rapido), border-color var(--rapido);
}
.nav-anim:hover { background: var(--resalte); }
.nav-anim__icono { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--relleno); color: #fff; }
[data-tema="navidad"] .nav-anim { border-color: var(--dorado); }
[data-tema="navidad"] .nav-anim__icono { background: #1E5A3A; color: #F2D27F; }
.nav-anim__icono svg { width: 18px; height: 18px; fill: currentColor; }
.nav-anim__play { display: none; }
.nav-pausa .nav-anim__pausa { display: none; }
.nav-pausa .nav-anim__play { display: block; }
.nav-anim__texto { display: grid; line-height: 1.15; }
.nav-anim__titulo { font-size: 13px; font-weight: 500; color: var(--texto-suave); }
.nav-anim__accion { font-size: 15px; font-weight: 600; }


/* --- Pausa (por el visitante o porque la pestaña no se ve) --- */
:is(.nav-pausa, .nav-oculta) :is(.nav-foco, .nav-foco::after, .nav-esfera svg, .nav-trineo, .nav-trineo *) { animation-play-state: paused !important; }
.nav-pausa .nav-trineo { display: none; }

/* =================== CELULAR Y TABLET =================== */
@media (max-width: 1100px) {
  .catalogo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .contactanos__caja { grid-template-columns: 1fr; }
  .caminos, .faq { grid-template-columns: 1fr; max-width: 640px; }
  .datos-marca { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 767px) {
  :root { --alto-barra: 68px; }
  body { font-size: 17px; } /* texto cómodo para leer en celular */
  .barra .logo-marco { --logo-h: 50px; }
  .barra__controles { gap: 4px; }
  .btn-cotizar { padding: 8px 13px 8px 10px; font-size: 15px; }
  .nav-trineo { top: calc(var(--alto-barra) + 64vw); width: 86vw; } /* en celular cruza por la foto, debajo del título */
  .control { padding: 8px 13px 8px 10px; gap: 6px; }
  .control__texto { font-size: 15px; }

  /* En celular la imagen se ve completa (3:4) y el texto va arriba, donde la foto está despejada */
  .portada { height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 4; }
  .portada__slide img { object-position: 50% 50%; }
  /* En celular el texto va arriba: el degradado baja desde arriba */
  .portada__degradado { background: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.56) 42%, transparent 72%); }
  .portada__texto { top: 20px; left: 20px; right: 20px; transform: none; }
  .portada__pre { font-size: 13px; letter-spacing: .16em; margin-bottom: 6px; }
  .portada h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .portada h1 span { white-space: normal; } /* en celular, si una traducción es larga, pasa al siguiente renglón */
  .portada__sub { font-size: 16px; line-height: 1.45; margin: 10px 0 16px; }
  .portada__botones { gap: 10px; }
  .portada .btn-claro, .portada .btn-whatsapp { padding: 11px 18px; font-size: 16px; min-height: 46px; }
  .portada .btn-whatsapp svg { width: 20px; height: 20px; }
  .portada__pausa { padding: 6px 12px 6px 10px; font-size: 14px; }

  .form { grid-template-columns: 1fr; }

  .catalogo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .col-card__info { padding: 12px 12px 14px; }
  .col-card__area { font-size: 11.5px; letter-spacing: .08em; }
  .col-card__nombre { font-size: 19px; }
  .col-card__desc { font-size: 14.5px; }
  .col-card__ver { font-size: 15px; }
  .filtro { padding: 8px 16px; font-size: 15px; }
  .redes__iconos { gap: 14px 10px; }

  .tomos { padding: 16px; gap: 22px; }
  .tomo__imgs { gap: 8px; }
  .tomo__img { border-radius: 8px; }
  .tomo__lupa { right: 5px; bottom: 5px; padding: 3px 8px 3px 5px; font-size: 12px; }
  .ventana__cab h3 { font-size: 24px; }
  .ventana__cab { padding: 12px 12px 12px 18px; }
  .ventana__pie { padding: 12px; }
  .btn-whatsapp--chico { width: 100%; justify-content: center; }
  #dlgColeccion { width: calc(100vw - 24px); }
  .zoom { padding: 66px 10px 12px; }
  .zoom__nav { gap: 8px; }
  .zoom .flecha { padding: 10px 14px; }

  .lugares { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 400px) {
  .barra { padding: 0 12px; }
  .barra .logo-marco { --logo-h: 46px; }
  .catalogo { gap: 10px; }
  .col-card__nombre { font-size: 17.5px; }
  .tomo__lupa span, .tomo__lupa { font-size: 0; gap: 0; padding: 5px; } /* muy angosto: solo la lupa */
  .tomo__lupa svg { width: 17px; height: 17px; }
}
/* Teléfonos muy angostos (≈320 px): logo y botones un poco más compactos para que nada se encime */
@media (max-width: 345px) {
  .barra { padding: 0 8px; }
  .barra .logo-marco { --logo-h: 37px; }
  .barra__controles { gap: 6px; }
  .btn-cotizar { padding: 8px 10px 8px 8px; font-size: 14px; gap: 6px; }
  .control { padding: 8px 10px 8px 8px; }
  .control__texto { font-size: 14px; }
  .zoom .flecha span { display: none; } /* las flechas bastan; el contador sigue a la vista */
  .redes__iconos { gap: 12px 4px; }
  .redes__iconos a { min-width: 62px; } /* las 4 redes en una sola fila */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada__pista { transition-duration: .4s; }
  .rayas i { transition: none; }
  /* Nada se desplaza, gira ni cambia de escala */
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity, fill, stroke, text-decoration-color !important; animation: none !important; }
  .menu, .menu li { transform: none !important; }
  /* Sin movimiento: el mensaje de éxito aparece completo de inmediato */
  .exito.visible * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .exito__confeti { display: none; }
  /* Navideño estático: luces encendidas sin parpadeo, esferas quietas, sin trineo ni nieve */
  .nav-foco { opacity: 1 !important; }
  .nav-foco::after { opacity: .45 !important; }
  .nav-trineo, .nav-chispa, .nav-nieve { display: none !important; }
}
