/* =========================================================================
   CASA SUCA — Hoja de estilos principal
   Paleta basada en el azul del logo + acentos textiles andinos.
   Sin imágenes de fondo: fondo sólido cálido tipo papel.
   ========================================================================= */

:root {
  /* Colores de marca */
  --azul-suca: #4678c3;
  --azul-suca-oscuro: #2c4d84;
  --azul-profundo: #16223a;
  --oro-andino: #d9a441;
  --oro-andino-claro: #f2c877;
  --terracota: #c1592f;

  /* Colores por región (armonizados, ya no neón) */
  --color-luces: #8858b0;
  --color-costa: #2c5aa0;
  --color-sierra: #c1592f;
  --color-selva: #4c7a52;
  --color-internacional: #b8862b;

  /* Bandera del Tahuantinsuyo (arcoíris cusqueño) — para acentos y animaciones */
  --tah-rojo: #e0212b;
  --tah-naranja: #f47b20;
  --tah-amarillo: #ffd400;
  --tah-verde: #2fa84f;
  --tah-celeste: #00a9e0;
  --tah-azul: #1c4fa0;
  --tah-violeta: #92278f;
  --arcoiris: linear-gradient(90deg,
    var(--tah-rojo), var(--tah-naranja), var(--tah-amarillo),
    var(--tah-verde), var(--tah-celeste), var(--tah-azul), var(--tah-violeta));

  /* Fondo (papel cálido, sin imagen) */
  --fondo: #faf6ee;
  --fondo-panel: #ffffff;
  --texto: #2a2620;
  --texto-suave: #6b6459;
  --borde: #e6ddc9;

  /* Tipografía */
  --fuente-display: 'Fraunces', Georgia, serif;
  --fuente-cuerpo: 'Work Sans', 'Segoe UI', sans-serif;

  /* Otros */
  --radio: 14px;
  --sombra: 0 10px 30px rgba(22, 34, 58, 0.12);
  --transicion: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ribetes andinos (SVG generado, sin fotos: liviano y rapido de cargar) */
  --ribete-horizontal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22156%22%20height%3D%2240%22%20viewBox%3D%220%200%20156%2040%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2214%22%20height%3D%2240%22%20fill%3D%22%23ffd400%22/%3E%3Crect%20x%3D%2214%22%20y%3D%220%22%20width%3D%2212%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Crect%20x%3D%2214%22%20y%3D%220%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2220%22%20y%3D%226%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2212%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2218%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2224%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2230%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2226%22%20y%3D%220%22%20width%3D%226%22%20height%3D%2240%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%2232%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolyline%20points%3D%2248%2C0%2032%2C8%2048%2C16%2032%2C24%2048%2C32%2032%2C40%22%20fill%3D%22none%22%20stroke%3D%22%2392278f%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%2248%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2240%22%20fill%3D%22%234678c3%22/%3E%3Crect%20x%3D%2258%22%20y%3D%220%22%20width%3D%2212%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolygon%20points%3D%2264.0%2C0%2070.0%2C5.0%2064.0%2C10%2058.0%2C5.0%22%20fill%3D%22%2300a9e0%22/%3E%3Cpolygon%20points%3D%2264.0%2C10%2070.0%2C15.0%2064.0%2C20%2058.0%2C15.0%22%20fill%3D%22%2300a9e0%22/%3E%3Cpolygon%20points%3D%2264.0%2C20%2070.0%2C25.0%2064.0%2C30%2058.0%2C25.0%22%20fill%3D%22%2300a9e0%22/%3E%3Cpolygon%20points%3D%2264.0%2C30%2070.0%2C35.0%2064.0%2C40%2058.0%2C35.0%22%20fill%3D%22%2300a9e0%22/%3E%3Crect%20x%3D%2270%22%20y%3D%220%22%20width%3D%2214%22%20height%3D%2240%22%20fill%3D%22%23c1592f%22/%3E%3Crect%20x%3D%2284%22%20y%3D%220%22%20width%3D%224%22%20height%3D%2240%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%2288%22%20y%3D%220%22%20width%3D%2212%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Crect%20x%3D%2288%22%20y%3D%220%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2294%22%20y%3D%226%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2288%22%20y%3D%2212%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2294%22%20y%3D%2218%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2288%22%20y%3D%2224%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2294%22%20y%3D%2230%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%22100%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2240%22%20fill%3D%22%232fa84f%22/%3E%3Crect%20x%3D%22110%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolyline%20points%3D%22126%2C0%20110%2C8%20126%2C16%20110%2C24%20126%2C32%20110%2C40%22%20fill%3D%22none%22%20stroke%3D%22%23e0212b%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%22126%22%20y%3D%220%22%20width%3D%226%22%20height%3D%2240%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%22132%22%20y%3D%220%22%20width%3D%2214%22%20height%3D%2240%22%20fill%3D%22%23f47b20%22/%3E%3Crect%20x%3D%22146%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2240%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolygon%20points%3D%22151.0%2C0%20156.0%2C5.0%20151.0%2C10%20146.0%2C5.0%22%20fill%3D%22%234678c3%22/%3E%3Cpolygon%20points%3D%22151.0%2C10%20156.0%2C15.0%20151.0%2C20%20146.0%2C15.0%22%20fill%3D%22%234678c3%22/%3E%3Cpolygon%20points%3D%22151.0%2C20%20156.0%2C25.0%20151.0%2C30%20146.0%2C25.0%22%20fill%3D%22%234678c3%22/%3E%3Cpolygon%20points%3D%22151.0%2C30%20156.0%2C35.0%20151.0%2C40%20146.0%2C35.0%22%20fill%3D%22%234678c3%22/%3E%3C/svg%3E");
  --ribete-vertical: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%22156%22%20viewBox%3D%220%200%2028%20156%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2228%22%20height%3D%2214%22%20fill%3D%22%23ffd400%22/%3E%3Crect%20x%3D%220%22%20y%3D%2214%22%20width%3D%2228%22%20height%3D%2212%22%20fill%3D%22%23faf6ee%22/%3E%3Crect%20x%3D%220%22%20y%3D%2214%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2214%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%226%22%20y%3D%2220%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2220%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23e0212b%22/%3E%3Crect%20x%3D%220%22%20y%3D%2226%22%20width%3D%2228%22%20height%3D%226%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%220%22%20y%3D%2232%22%20width%3D%2228%22%20height%3D%2216%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolyline%20points%3D%220%2C48%208%2C32%2016%2C48%2024%2C32%22%20fill%3D%22none%22%20stroke%3D%22%2392278f%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%220%22%20y%3D%2248%22%20width%3D%2228%22%20height%3D%2210%22%20fill%3D%22%234678c3%22/%3E%3Crect%20x%3D%220%22%20y%3D%2258%22%20width%3D%2228%22%20height%3D%2212%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolygon%20points%3D%220%2C64.0%205.0%2C70.0%2010%2C64.0%205.0%2C58.0%22%20fill%3D%22%2300a9e0%22/%3E%3Cpolygon%20points%3D%2210%2C64.0%2015.0%2C70.0%2020%2C64.0%2015.0%2C58.0%22%20fill%3D%22%2300a9e0%22/%3E%3Cpolygon%20points%3D%2220%2C64.0%2025.0%2C70.0%2030%2C64.0%2025.0%2C58.0%22%20fill%3D%22%2300a9e0%22/%3E%3Crect%20x%3D%220%22%20y%3D%2270%22%20width%3D%2228%22%20height%3D%2214%22%20fill%3D%22%23c1592f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2284%22%20width%3D%2228%22%20height%3D%224%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%220%22%20y%3D%2288%22%20width%3D%2228%22%20height%3D%2212%22%20fill%3D%22%23faf6ee%22/%3E%3Crect%20x%3D%220%22%20y%3D%2288%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2288%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%226%22%20y%3D%2294%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2294%22%20width%3D%226%22%20height%3D%226%22%20fill%3D%22%23d9a441%22/%3E%3Crect%20x%3D%220%22%20y%3D%22100%22%20width%3D%2228%22%20height%3D%2210%22%20fill%3D%22%232fa84f%22/%3E%3Crect%20x%3D%220%22%20y%3D%22110%22%20width%3D%2228%22%20height%3D%2216%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolyline%20points%3D%220%2C126%208%2C110%2016%2C126%2024%2C110%22%20fill%3D%22none%22%20stroke%3D%22%23e0212b%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%220%22%20y%3D%22126%22%20width%3D%2228%22%20height%3D%226%22%20fill%3D%22%2316223a%22/%3E%3Crect%20x%3D%220%22%20y%3D%22132%22%20width%3D%2228%22%20height%3D%2214%22%20fill%3D%22%23f47b20%22/%3E%3Crect%20x%3D%220%22%20y%3D%22146%22%20width%3D%2228%22%20height%3D%2210%22%20fill%3D%22%23faf6ee%22/%3E%3Cpolygon%20points%3D%220%2C151.0%205.0%2C156.0%2010%2C151.0%205.0%2C146.0%22%20fill%3D%22%234678c3%22/%3E%3Cpolygon%20points%3D%2210%2C151.0%2015.0%2C156.0%2020%2C151.0%2015.0%2C146.0%22%20fill%3D%22%234678c3%22/%3E%3Cpolygon%20points%3D%2220%2C151.0%2025.0%2C156.0%2030%2C151.0%2025.0%2C146.0%22%20fill%3D%22%234678c3%22/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

html {
  scroll-behavior: smooth;
  position: relative;
}

/* Textura de fondo muy sutil (el mismo ribete andino, a baja opacidad) para
   que el fondo tenga color y personalidad sin volverse una foto ni afectar
   la lectura del contenido. */
html::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background-image: var(--ribete-horizontal);
  background-repeat: repeat;
  background-size: 234px 60px;
  opacity: 0.055;
  pointer-events: none;
}

body {
  font-family: var(--fuente-cuerpo);
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ribetes verticales fijos a los costados de la pantalla, como el borde de
   un tejido andino enmarcando la página. */
body::before, body::after {
  content: '';
  position: fixed; top: 0; bottom: 0; width: 10px; z-index: 40;
  background-image: var(--ribete-vertical);
  background-repeat: repeat-y;
  background-size: 10px 156px;
  pointer-events: none;
}
body::before { left: 0; }
body::after { right: 0; }

@media (max-width: 900px) {
  body::before, body::after { width: 6px; background-size: 6px 94px; }
}

h1, h2, h3, h4 {
  font-family: var(--fuente-display);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ======================= FRANJA TAHUANTINSUYO (elemento de firma) ======= */
/* Ribete inspirado en los tejidos andinos: franjas de colores con motivos
   (zigzag, cuadros, rombos), generado en SVG (no es una foto, pesa muy poco
   y no ralentiza la carga). */
.franja-textil {
  height: 22px;
  width: 100%;
  background-image: var(--ribete-horizontal);
  background-repeat: repeat-x;
  background-size: 156px 22px;
}
@keyframes deslizarArcoiris {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* ============================== PANTALLA DE CARGA ========================== */
.cargador {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--fondo);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s ease;
  /* Red de seguridad: si por alguna razón loader.js no llega a ejecutarse
     (falta el script, error de red, etc.), esto lo oculta solo igual, para
     que la página nunca quede bloqueada permanentemente detrás del logo. */
  animation: cargadorSalvavidas 0.01s linear 4s forwards;
}
@keyframes cargadorSalvavidas {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.cargador-textura {
  position: absolute; inset: 0;
  background-image: var(--ribete-horizontal);
  background-repeat: repeat;
  background-size: 234px 60px;
  opacity: 0.07;
}
.cargador-centro {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
}
.cargador-logo {
  width: 190px; height: auto;
  animation: cargadorAparecer 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}
@keyframes cargadorAparecer {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}
.cargador-barra {
  width: 130px; height: 4px; border-radius: 4px; background: var(--borde); overflow: hidden;
}
.cargador-barra span {
  display: block; height: 100%; width: 40%; border-radius: 4px;
  background: var(--arcoiris); background-size: 220% 100%;
  animation: cargadorBarra 1s ease-in-out infinite, deslizarArcoiris 2.4s linear infinite;
}
@keyframes cargadorBarra {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
.cargador.saliendo { opacity: 0; pointer-events: none; }
.cargador.oculto { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cargador { transition: none; }
  .cargador-logo, .cargador-barra span { animation: none; }
}

header {
  position: fixed;
  top: 10px;
  width: 100%;
  height: 76px;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(22, 34, 58, 0.08);
  border-bottom: 1px solid var(--borde);
  transition: box-shadow var(--transicion), height var(--transicion);
}

header.scrolled {
  height: 64px;
  box-shadow: 0 8px 28px rgba(22, 34, 58, 0.14);
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  width: 150px;
  height: 60px;
  z-index: 1001;
  flex-shrink: 0;
}

.logo a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.logo img {
  position: absolute;
  top: 5px;
  left: 0;
  width: 110px;
  height: 55px;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.logo img:last-child { opacity: 0; }
.logo:hover img:first-child { opacity: 0; }
.logo:hover img:last-child { opacity: 1; }

nav { flex-grow: 1; display: flex; justify-content: center; }
nav ul { display: flex; gap: 1.75rem; align-items: center; }
nav ul li { position: relative; }

nav a {
  color: var(--texto);
  font-size: 0.98rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  position: relative;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

nav a:hover { color: var(--azul-suca); background: rgba(70, 120, 195, 0.08); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--arcoiris);
  background-size: 220% 100%;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}
nav a:hover::after { width: 70%; animation: deslizarArcoiris 3s linear infinite; }

.catalog-region {
  position: absolute;
  top: 100%;
  left: -20px;
  display: none;
  flex-direction: column;
  background: var(--fondo-panel);
  box-shadow: var(--sombra);
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 12px;
  min-width: 170px;
  z-index: 10;
  border: 1px solid var(--borde);
  border-top: none;
}
li:hover > .catalog-region { display: flex; }
.catalog-region li a {
  color: var(--texto);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s;
  font-weight: 500;
}
.catalog-region li a:hover { color: var(--azul-suca); }

.social-links { display: flex; gap: 0.6rem; align-items: center; }

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  filter: saturate(0.9);
}
.social-icon:hover { transform: scale(1.15) rotate(-6deg); }
a.social-icon.social-icon-svg {
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-profundo); color: #fff;
}
.sidebar-social a.social-icon.social-icon-svg { background: var(--azul-suca); }

/* Cada ícono social se ilumina con un color distinto del arcoíris tahuantinsuyo */
.social-links a:nth-child(1):hover, .sidebar-social a:nth-child(1):hover { box-shadow: 0 0 0 3px var(--tah-verde); }
.social-links a:nth-child(2):hover, .sidebar-social a:nth-child(2):hover { box-shadow: 0 0 0 3px var(--tah-violeta); }
.social-links a:nth-child(3):hover, .sidebar-social a:nth-child(3):hover { box-shadow: 0 0 0 3px var(--tah-azul); }
.social-links a:nth-child(4):hover, .sidebar-social a:nth-child(4):hover { box-shadow: 0 0 0 3px var(--tah-rojo); }

.admin-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-suave);
  text-decoration: none;
  border: 1px solid var(--borde);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.admin-link:hover { color: var(--azul-suca); border-color: var(--azul-suca); }

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  color: var(--texto);
  border: none;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
  border-radius: 4px;
}
.menu-toggle:hover { background: rgba(70, 120, 195, 0.1); }

/* ============================== SIDEBAR (móvil) =========================== */
.sidebar {
  position: fixed;
  top: 0; left: -100%;
  width: 85%; max-width: 320px; height: 100vh;
  background: var(--fondo-panel);
  padding: 5rem 1.5rem 2rem;
  transition: left var(--transicion);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: var(--sombra);
}
.sidebar.active { left: 0; }
.sidebar ul { display: flex; flex-direction: column; gap: 0.9rem; }
.sidebar a {
  color: var(--texto);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.9rem 0;
  display: block;
  border-bottom: 1px solid var(--borde);
  font-weight: 600;
}
.sidebar a:hover { color: var(--azul-suca); padding-left: 0.5rem; }
.sidebar-social {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--borde);
}

.overlay {
  position: fixed; inset: 0;
  background: rgba(22, 34, 58, 0.55);
  z-index: 900; opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

main { padding-top: 86px; min-height: calc(100vh - 86px); }

/* ============================== HERO ====================================== */
.hero {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; padding: 4rem 2rem; gap: 3.5rem;
  max-width: 1300px; margin: 0 auto; position: relative; overflow: hidden;
}

/* Manchas de color flotantes de fondo (decorativas, con los colores del
   Tahuantinsuyo) — puramente CSS, no afectan la carga. */
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(50px); opacity: 0.28;
}
.hero::before {
  width: 340px; height: 340px; top: -80px; left: -60px;
  background: radial-gradient(circle, var(--tah-celeste), transparent 70%);
  animation: flotarManchaA 13s ease-in-out infinite;
}
.hero::after {
  width: 300px; height: 300px; bottom: -70px; right: 5%;
  background: radial-gradient(circle, var(--tah-naranja), transparent 70%);
  animation: flotarManchaB 15s ease-in-out infinite;
}
@keyframes flotarManchaA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 50px) scale(1.15); }
}
@keyframes flotarManchaB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -35px) scale(1.1); }
}

.hero-content { flex: 1 1 440px; max-width: 620px; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--oro-andino-claro);
  background: var(--azul-profundo);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
  position: relative;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tah-amarillo); margin-right: 0.4rem; vertical-align: middle;
  animation: pulsar 1.8s ease-in-out infinite;
}
@keyframes pulsar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 1rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--azul-profundo);
}
.hero-title em { color: var(--terracota); font-style: italic; }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--azul-suca-oscuro);
  margin-bottom: 1.3rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--texto-suave);
  max-width: 52ch;
}

.hero-acciones { display: flex; gap: 1rem; flex-wrap: wrap; }

.boton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  transition: all var(--transicion); border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.boton-primario { background: var(--azul-suca); color: #fff; box-shadow: 0 8px 20px rgba(70, 120, 195, 0.35); }
.boton-primario:hover { background: var(--azul-suca-oscuro); transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(70, 120, 195, 0.45); }
/* Brillo que atraviesa el botón al pasar el mouse */
.boton::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
}
.boton:hover::after { animation: brilloBoton 0.9s ease; }
@keyframes brilloBoton { from { left: -60%; } to { left: 130%; } }

.boton-secundario { border-color: var(--azul-profundo); color: var(--azul-profundo); }
.boton-secundario:hover { background: var(--azul-profundo); color: #fff; transform: translateY(-3px) scale(1.03); }

.hero-image { flex: 1 1 360px; max-width: 460px; }
.hero-image-marco {
  position: relative; padding: 10px; background: var(--fondo-panel);
  border-radius: 20px; box-shadow: var(--sombra);
  animation: flotarImagen 5s ease-in-out infinite;
}
@keyframes flotarImagen {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-image-marco img {
  width: 100%; height: 520px; object-fit: cover; border-radius: 14px;
  user-select: none; -webkit-user-drag: none;
}
.hero-image-marco::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 8px; border-radius: 0 0 14px 14px;
  background: var(--arcoiris); background-size: 200% 100%;
  animation: deslizarArcoiris 6s linear infinite;
}

/* ============================== HISTORIA =================================== */
.historia {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3rem;
  max-width: 1300px; margin: 2rem auto; padding: 3rem 2rem;
}
.historia-imagen { flex: 1 1 360px; max-width: 440px; }
.historia-imagen-marco {
  position: relative; padding: 10px; background: var(--fondo-panel);
  border-radius: 20px; box-shadow: var(--sombra);
}
.historia-imagen-marco img { width: 100%; height: 420px; object-fit: cover; border-radius: 14px; user-select: none; -webkit-user-drag: none; }
.historia-imagen-marco::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 8px;
  border-radius: 0 0 14px 14px; background: var(--arcoiris); background-size: 200% 100%;
  animation: deslizarArcoiris 6s linear infinite;
}
.historia-dedicatoria {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  margin-top: 1rem; font-size: 0.88rem; font-style: italic; color: var(--texto-suave);
  text-align: center;
}
.historia-dedicatoria svg { color: var(--terracota); flex-shrink: 0; }
.historia-contenido { flex: 1 1 420px; max-width: 620px; }
.historia-titulo { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--azul-profundo); margin: 0.8rem 0 1.1rem; font-weight: 600; }
.historia-contenido p { color: var(--texto-suave); line-height: 1.75; margin-bottom: 1.1rem; font-size: 1.02rem; }

@media (max-width: 768px) {
  .historia { padding: 2.5rem 1.2rem; gap: 2rem; }
  .historia-imagen-marco img { height: 300px; }
}

/* ============================== SLIDER DE CATÁLOGO ========================= */
.catalog-slider-section { padding: 2rem 2rem 4rem; max-width: 1300px; margin: 0 auto; text-align: center; }

.region-slider { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.slider-viewport { flex: 1; overflow: hidden; }
.slider-track {
  display: flex; gap: 1.5rem; transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.slider-card {
  flex: 0 0 auto; width: 260px; text-decoration: none; color: inherit;
  border-radius: var(--radio); overflow: hidden; position: relative;
  box-shadow: 0 4px 18px rgba(22,34,58,0.1); aspect-ratio: 3/4;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.slider-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--sombra); }
.slider-card img {
  width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  transition: transform 0.6s ease;
}
.slider-card:hover img { transform: scale(1.08); }
.slider-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22,34,58,0.92) 0%, rgba(22,34,58,0.05) 65%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem;
}
.slider-card-region {
  font-family: var(--fuente-display); font-size: 1.4rem; color: #fff; font-weight: 600; margin-bottom: 0.3rem;
}
.slider-card-cta {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  color: var(--oro-andino-claro);
}
.slider-card-franja {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--arcoiris); background-size: 220% 100%;
  animation: deslizarArcoiris 5s linear infinite;
}

.slider-flecha {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--borde);
  background: var(--fondo-panel); color: var(--azul-profundo); font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.slider-flecha:hover { background: var(--azul-suca); color: #fff; border-color: var(--azul-suca); transform: scale(1.08); }

.slider-puntos { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.slider-punto {
  width: 9px; height: 9px; border-radius: 50%; background: var(--borde); border: none; cursor: pointer;
  transition: all 0.25s ease; padding: 0;
}
.slider-punto.activo { background: var(--azul-suca); width: 26px; border-radius: 5px; }

.slider-skeleton { width: 260px; aspect-ratio: 3/4; border-radius: var(--radio); flex-shrink: 0; }

@media (max-width: 768px) {
  .region-slider { gap: 0.5rem; }
  .slider-card { width: 190px; }
  .slider-flecha { width: 36px; height: 36px; font-size: 1.2rem; }
}

.reveal { opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }


/* ============================== CATÁLOGO ================================== */
.catalog { padding: 4.5rem 2rem 3rem; max-width: 1300px; margin: 0 auto; }

.catalog-title {
  text-align: center; font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 0.6rem; color: var(--azul-profundo); font-weight: 600;
}
.catalog-subtitle {
  text-align: center; color: var(--texto-suave); max-width: 60ch;
  margin: 0 auto 2rem; font-size: 1.02rem;
}

.region-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 3rem; position: sticky; top: 96px; z-index: 50;
  background: rgba(250, 246, 238, 0.9); backdrop-filter: blur(8px);
  padding: 0.7rem; border-radius: 999px; max-width: fit-content; margin-inline: auto;
}
.region-chip {
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; color: var(--texto); border: 1.5px solid var(--borde);
  transition: all 0.25s ease; white-space: nowrap; position: relative;
}
.region-chip:hover {
  border-color: transparent; color: #fff; transform: translateY(-2px) scale(1.05);
  background: var(--arcoiris); background-size: 240% 100%;
  animation: deslizarArcoiris 3s linear infinite;
  box-shadow: 0 6px 16px rgba(146, 39, 143, 0.28);
}

section[id^="Vestuario"] { margin-bottom: 3.5rem; scroll-margin-top: 150px; }

.region-titulo {
  text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin-bottom: 2rem; font-weight: 600; position: relative;
  padding-bottom: 0.8rem;
}
.region-titulo::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 4px; border-radius: 4px; background: var(--color-region, var(--azul-suca));
  transition: width 0.4s ease;
}
section[id^="Vestuario"]:hover .region-titulo::after { width: 110px; }
.VestuarioLuces .region-titulo { --color-region: var(--color-luces); color: var(--color-luces); }
.VestuarioCosta .region-titulo { --color-region: var(--color-costa); color: var(--color-costa); }
.VestuarioSierra .region-titulo { --color-region: var(--color-sierra); color: var(--color-sierra); }
.VestuarioSelva .region-titulo { --color-region: var(--color-selva); color: var(--color-selva); }
.VestuarioInternacional .region-titulo { --color-region: var(--color-internacional); color: var(--color-internacional); }

.catalog-grid {
  display: grid;
  /* auto-fit + un máximo fijo (en vez de 1fr) = las tarjetas SIEMPRE miden lo
     mismo, tengas 1 o 20 prendas en la región, y auto-fit colapsa las
     columnas vacías para que justify-content pueda centrar la fila cuando
     no se llena por completo (ej. con 1, 2 o 3 prendas). */
  grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
  justify-content: center;
  gap: 1.8rem;
}

.catalog-item {
  background: var(--fondo-panel); border-radius: var(--radio);
  padding: 1rem; border: 1px solid var(--borde);
  transition: all var(--transicion); position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(22, 34, 58, 0.05);
  animation: aparecerTarjeta 0.6s ease both;
}
@keyframes aparecerTarjeta {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.catalog-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--arcoiris); background-size: 220% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
  z-index: 4;
}
.catalog-item:hover::before { transform: scaleX(1); animation: deslizarArcoiris 4s linear infinite; }
.catalog-item:hover {
  transform: translateY(-8px) scale(1.015); box-shadow: var(--sombra); border-color: var(--azul-suca);
}

/* Tamaño de imagen SIEMPRE fijo: cada foto se ajusta COMPLETA dentro del
   recuadro (sin recortar ni hacer zoom) y el servidor ya rellena el espacio
   sobrante en blanco, así que el fondo aquí solo es un respaldo visual. */
.item-image-container {
  position: relative; margin-bottom: 1rem; border-radius: 10px;
  overflow: hidden; aspect-ratio: 4 / 5; background: #fff;
}
.item-image {
  width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.catalog-item:hover .item-image { transform: scale(1.06); }

/* Capa transparente sobre la imagen: evita menú "Guardar imagen como" directo */
.item-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }


.item-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(22,34,58,0.88) 0%, rgba(22,34,58,0.15) 60%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: center; gap: 0.7rem;
  opacity: 0; transition: opacity 0.3s ease; padding: 1rem;
}
.catalog-item:hover .item-overlay { opacity: 1; }

.overlay-btn {
  padding: 0.65rem 1.15rem; background: var(--oro-andino); color: var(--azul-profundo);
  text-decoration: none; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  transition: all 0.25s ease; transform: translateY(14px);
}
.catalog-item:hover .overlay-btn { transform: translateY(0); }
.overlay-btn:hover { background: var(--oro-andino-claro); }
.overlay-btn.secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.overlay-btn.secondary:hover { background: #fff; color: var(--azul-profundo); }

.item-content { text-align: center; }
.item-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--azul-profundo); }
.item-description { font-size: 0.92rem; line-height: 1.5; color: var(--texto-suave); }

.catalog-vacio, .catalog-error {
  text-align: center; padding: 2rem; color: var(--texto-suave); font-style: italic;
  grid-column: 1 / -1;
}

/* Placeholder mientras carga (evita saltos de layout = sin retardo visual) */
.catalog-skeleton {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 280px)); justify-content: center; gap: 1.8rem;
}
.skeleton-card { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); }
.skeleton-img {
  aspect-ratio: 4/5; background: linear-gradient(100deg, var(--borde) 30%, #f2ead9 50%, var(--borde) 70%);
  background-size: 200% 100%; animation: brillo 1.4s infinite;
}
@keyframes brillo { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================== MAPA ======================================= */
.map-section { padding: 4rem 2rem; text-align: center; background: var(--fondo-panel); }
.map-title { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 2rem; color: var(--azul-profundo); font-weight: 600; }
.map-container { max-width: 800px; margin: 0 auto; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.map-iframe { width: 100%; height: 400px; border: 6px solid var(--fondo-panel); }

/* ============================== FOOTER ===================================== */
#site-footer { background: var(--azul-profundo); color: #eee2cc; padding: 3rem 2rem 2rem; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; max-width: 1300px; margin: 0 auto; }
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 200px; }
.footer-logo img { width: 90px; height: 70px; object-fit: contain; }
.footer-logo p { font-size: 0.85rem; text-align: center; opacity: 0.8; }
.footer-nav h4, .footer-contact h4 { color: var(--oro-andino-claro); margin-bottom: 1rem; font-weight: 700; font-family: var(--fuente-cuerpo); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-nav a, .footer-contact a { color: #eee2cc; text-decoration: none; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer-nav a:hover, .footer-contact a:hover { opacity: 1; color: var(--oro-andino-claro); }
.footer-contact p { margin-bottom: 0.5rem; opacity: 0.85; font-size: 0.95rem; }
.footer-contact-linea { display: flex; align-items: center; gap: 0.55rem; }
.footer-contact-linea svg { flex-shrink: 0; color: var(--oro-andino-claro); }
.footer-admin { margin-top: 1rem; }
.footer-admin a { font-size: 0.8rem; opacity: 0.55; }
.footer-admin a:hover { opacity: 1; }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; opacity: 0.65; }

/* ============================== RESPONSIVE ================================= */
@media (max-width: 1100px) {
  nav, .social-links { display: none; }
  .menu-toggle { display: block; }
  header { padding: 0 1.2rem; }
  .region-nav { position: static; margin-inline: 0; max-width: none; }
}

@media (max-width: 768px) {
  main { padding-top: 76px; }
  .hero { flex-direction: column; padding: 2.5rem 1.2rem; text-align: center; }
  .hero-acciones { justify-content: center; }
  .hero-image { order: -1; max-width: 340px; }
  .hero-image-marco img { height: 380px; }
  .catalog { padding: 3rem 1.2rem 2rem; }
  .catalog-grid, .catalog-skeleton { grid-template-columns: repeat(auto-fit, minmax(150px, 165px)); justify-content: center; gap: 1rem; }
  .item-overlay { opacity: 1; background: linear-gradient(0deg, rgba(22,34,58,0.85) 0%, transparent 65%); padding: 0.7rem; }
  .overlay-btn { transform: none; padding: 0.5rem 0.8rem; font-size: 0.75rem; }
  .map-section { padding: 3rem 1.2rem; }
  .map-iframe { height: 300px; }
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
}
