/* =========================================================
   TOKENS / VARIABLES
   ========================================================= */
:root{
  /* Colores base */
  --bg:#ffffff;
  --ink:#121212;
  --muted:#6b6b6b;
  --line:#eaeaea;
  --brand:#0f0f0f;      /* negro elegante */

  /* Paleta pastel de fondo + acentos */
  --bg-grad-1: #f6ecff;   /* lila pastel */
  --bg-grad-2: #e8f9ff;   /* azul pastel */
  --surface:   #ffffff;   /* tarjeta */
  --mint:      #7ee2cf;   /* botón principal */
  --mint-ink:  #0b3a33;
  --gold:      #d5b86a;   /* acentos */

  /* Layout */
  --radius:20px;
  --container:1100px;

  /* Sombras */
  --shadow-soft: 0 20px 50px rgba(10, 20, 30, .08);
  --shadow-card: 0 30px 70px rgba(0,0,0,.06);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
}

/* Fondo pastel colocado detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10; /* fondo al nivel más bajo */
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% 0%, #f9efff 0%, transparent 60%),
    radial-gradient(1000px 600px at 100% 30%, #e7faff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  background-attachment: fixed;
}

.container{ max-width:var(--container); margin-inline:auto; padding:72px 24px }

/* Tipos */
.display{ font-size: clamp(38px, 6vw, 64px); line-height:1.05; letter-spacing:-0.02em; margin:0 0 16px }
.h2{ font-size: clamp(28px, 4.2vw, 40px); letter-spacing:-0.02em; margin:0 0 16px }
.lead{ font-size: clamp(16px, 2.4vw, 20px); color:var(--muted); max-width:68ch }
p{ margin:0 0 12px; color:var(--ink) }

/* Links y botones */
a{ color:inherit; text-decoration:none }
.link{ color:var(--brand); text-underline-offset:3px }
.btn{
  display:inline-block; padding:12px 20px; border-radius:999px;
  text-decoration:none; border:1px solid var(--brand); transition:.2s ease;
}
.btn--dark{ background:var(--brand); color:#fff; border-color:transparent }
.btn--dark:hover{ transform:translateY(-1px); opacity:.9 }
.btn--ghost{ color:#5b4a1e; border:1px solid var(--gold) }
.btn--ghost:hover{ background:#fff7d6 }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(10px);
}

/* =========================================================
   HERO (tarjeta "split" texto + imagen)
   ========================================================= */
.hero{ padding-top:56px; padding-bottom:56px }
/* Posiciona pseudo-elemento de "neblina" detrás */
.hero.container{ position:relative; z-index:-1 }
/* leve neblina luminosa detrás de la hero para dar profundidad */
.hero.container::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 70%);
}

.hero-card{
  display:grid; grid-template-columns: 1.1fr 0.9fr; /* texto / imagen */
  background: linear-gradient(135deg, #fffefc 0%, #fbfaff 100%); /* tarjeta suave */
  border-radius:28px; overflow:hidden;
  border:none; box-shadow: var(--shadow-card);
}

.hero-left{
  padding: clamp(28px, 4.8vw, 56px);
  background: linear-gradient(135deg, #fff 0%, #f9f3ff 40%, #f0fcff 100%);
}
.cta-row{ display:flex; gap:12px; margin-top:24px; flex-wrap:wrap }

.hero-right{
  position:relative; background:#f8fafc;
  display:grid; place-items:center;
  padding: clamp(16px, 3vw, 24px);
}
.hero-figure{
  width:min(540px, 90%); aspect-ratio:4 / 3;
  border:1px solid var(--line); border-radius:18px; overflow:hidden;
  background:#f2f5f8; box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.hero-figure img{ width:100%; height:100%; object-fit:cover; }
.hero-accent{
  position:absolute; right: clamp(14px,2vw,22px); bottom: clamp(14px,2vw,22px);
  width:34px; height:34px; border-radius:50%;
  background:#fffefc; border:1px solid #f1e5b3; color:#d5b86a;
  display:grid; place-items:center; font-weight:700;
  box-shadow:0 6px 16px rgba(213,184,106,.25);
}
@media (max-width:980px){
  .hero-card{ grid-template-columns:1fr }
  .hero-right{ order:-1 } /* imagen arriba en móvil */
}

/* =========================================================
   === FEATURE (texto + imagen) ===
   Bloque del Hada (ya optimizado para no desbordar)
   ========================================================= */
.feature{
  display:grid;
  grid-template-columns: minmax(260px, 460px) 1fr; /* columna texto / columna imagen */
  gap: clamp(24px, 4vw, 56px);
  align-items:start;
}
@media (max-width:920px){ .feature{ grid-template-columns:1fr } }

.feature__media{ width:100% }

/* Contenedor visual de la imagen */
.media-card{
  position:relative; width:100%;
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  background:#f3f3f3;

  /* Mantén proporción y limita altura para que no se "salga" */
  aspect-ratio:4 / 3;                    /* cambia a 3/4 si quieres más vertical */
  max-height: clamp(260px, 60vh, 520px);
}

/* La imagen rellena el contenedor sin deformarse */
.feature__img{
  width:100%; height:100%;
  object-fit:cover; object-position:center; display:block;
}

/* Pie de foto */
.caption{ position:absolute; bottom:10px; left:12px; font-size:12px; color:#555 }

/* Seguridad general para cualquier <img> suelta */
img{ max-width:100%; height:auto; display:block }

/* =========================================================
   VALUES (kpis sostenibilidad / calidad)
   ========================================================= */
.values{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding-block:56px;
}
@media (max-width:920px){ .values{ grid-template-columns:1fr } }
.kpi{ font-size:22px; margin:0 0 8px }
.values__item p{ color:var(--muted) }

/* =========================================================
   EXPERIENCE (texto + media)
   ========================================================= */
.experience{
  display:grid; gap:40px; grid-template-columns:1fr 1fr; align-items:center
}
@media (max-width:920px){ .experience{ grid-template-columns:1fr } }

/* =========================================================
   GALLERY (Piezas únicas)
   Reemplazar la sección existente en styles.css
   ========================================================= */
.gallery .grid{ 
    display:grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap:16px; 
    margin-top:24px 
}

@media (max-width:1100px){ 
    .gallery .grid{ grid-template-columns: repeat(2, 1fr) } 
}

@media (max-width:540px){ 
    .gallery .grid{ grid-template-columns: 1fr } 
}

.card{
    aspect-ratio: 4/3; 
    border-radius: var(--radius);
    border:1px solid var(--line); 
    position:relative; 
    overflow:hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover en el card */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

/* Imagen dentro del card */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom sutil en la imagen al hover */
.card:hover img {
    transform: scale(1.1);
}

/* Caption con mejor contraste */
.card figcaption{ 
    position:absolute; 
    inset:auto 0 0 0; 
    padding: 16px 12px 12px 12px;
    font-size:13px; 
    font-weight: 500;
    color:#fff;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    transition: all 0.3s ease;
}

/* Caption más visible al hover */
.card:hover figcaption {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    padding-bottom: 16px;
}

/* =========================================================
   CTA
   ========================================================= */
.cta{ text-align:center; padding-block:96px }

/* =========================================================
   Small "reveal" animation (puedes usar .reveal donde quieras)
   ========================================================= */
.reveal{ opacity:0; transform:translateY(10px); animation:reveal .6s ease forwards }
@keyframes reveal{ to{ opacity:1; transform:none } }
.hero, .feature, .values, .experience, .gallery, .cta{ animation-delay:.05s }

/* =========================================================
   -------- Menu redes sociales ----------
   (circular menu; mantiene tu comportamiento actual)
   ========================================================= */
.circular-menu{ position: fixed; bottom: 1em; right: 1em; }
.circular-menu .items-wrapper{ padding:0; margin:0; }
.circular-menu .floating-btn{
  display:block; width:3.5em; height:3.5em; border-radius:50%;
  background-color:#1b1b1b; color:#fff; text-align:center; line-height:3.9;
  cursor:pointer; outline:0;
}
.circular-menu .floating-btn i{ font-size:1.3em; transition: transform .2s }
.circular-menu.active .floating-btn i{ transform: rotate(-45deg) }

.circular-menu .menu-item{
  position:absolute; top:.2em; right:.2em; z-index:-1;
  display:block; text-decoration:none; color:#fff; font-size:1em;
  width:3em; height:3em; border-radius:50%; text-align:center; line-height:3;
  background-color:#1b1b1b; transition-property: transform; transition-duration:.3s;
}
/* Curva de salida al activarse */
.circular-menu.active .menu-item{ transition-timing-function: cubic-bezier(0.175,0.885,0.32,1.275) }
/* Posiciones en arco (1..4) */
.circular-menu.active .menu-item:nth-child(1){ transform: translate3d(1em,-7em,0) }
.circular-menu.active .menu-item:nth-child(2){ transform: translate3d(-3.5em,-6.3em,0) }
.circular-menu.active .menu-item:nth-child(3){ transform: translate3d(-6.5em,-3.2em,0) }
.circular-menu.active .menu-item:nth-child(4){ transform: translate3d(-7em,1em,0) }

/* =========================================================
   HEADER (sticky, completo en top / compacto al hacer scroll)
   ========================================================= */

/* Contenedor general del header */
.site-header{
  position: sticky; top: 0; z-index: 6;
  backdrop-filter: blur(10px);
}

/* ----- Banda superior (visible solo en top) ----- */
.header-upper{
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--line);
  transition: height .25s ease, transform .25s ease, opacity .25s ease;
}
.upper-grid{
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 1fr auto auto;
  padding: 10px 24px;
}
.brand-logo{ display: inline-flex; align-items: center; gap:10px; color: var(--ink) }
.logo-mark{
  display:grid; place-items:center;
  width:32px; height:32px; border-radius:50%;
  background:#1a1a1a; color:#fff; font-weight:700; font-size:14px;
}
.logo-text{ font-weight:700; letter-spacing:.02em }
.header-claim{ color:var(--muted); margin:0; white-space:nowrap }
.quick-actions{ display:flex; align-items:center; gap:10px }
.icon-btn{
  display:inline-flex; align-items:center; gap:8px; padding:8px 10px;
  color:var(--ink); border:1px solid transparent; border-radius:999px;
}
.icon-btn:hover{ background:#f6f6f6 }
.badge{
  display:inline-grid; place-items:center; min-width:18px; height:18px;
  padding:0 5px; border-radius:999px; background:#1a1a1a; color:#fff; font-size:11px;
}

/* ----- Barra de navegación ----- */
.header-nav{
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
.nav-grid{
  display:flex; align-items:center; gap:12px;
  padding:12px 24px;
}
.brand-compact{ display:none; margin-right:12px; }
.menu{ display:flex; gap:24px; margin:0 auto; }
.menu a{
  color:var(--ink); text-decoration:none; padding:8px 0; position:relative;
}
.menu a:hover::after{
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:2px; background: var(--gold);
}
.nav-actions{ display:flex; align-items:center; gap:10px }
.action-auth i, .action-cart i{ margin-right:6px }

/* Toggle móvil */
.nav-toggle{
  display:none; background:transparent; border:0; font-size:20px; padding:8px; cursor:pointer;
}

/* Menú móvil */
.mobile-menu{
  display:none; flex-direction:column; gap:10px; padding:10px 24px 16px;
  border-top:1px solid var(--line); background:#fff;
}
.mobile-menu.is-open{ display:flex }
.mobile-menu a{ padding:8px 0; color:var(--ink) }
.mobile-actions a{ display:flex; align-items:center; gap:8px }

/* ----- Estado COLAPSADO al hacer scroll ----- */
.site-header.is-collapsed .header-upper{
  transform: translateY(-100%); opacity:0; pointer-events:none;
}
.site-header.is-collapsed .nav-grid{
  padding: 8px 24px; /* compacta altura */
}
.site-header.is-collapsed .brand-compact{
  display:inline-flex; align-items:center; gap:8px;
}

/* ----- Responsive ----- */
@media (max-width: 980px){
  .upper-grid{ grid-template-columns: auto 1fr auto }
  .header-claim{ display:none } /* ocultamos claim en tablets/móvil */
  .menu{ display:none }         /* el menú pasa a móvil */
  .nav-toggle{ display:inline-block }
}
@media (max-width: 600px){
  .hide-sm{ display:none }
}

/* =========================================================
   HISTORIA – Versión final con equilibrio lujo + alineación
   ========================================================= */
.historia {
  --lux-gold: #c8a86a;
  --lux-ink: rgba(0,0,0,.85);
  background: inherit;
  color: var(--lux-ink);
}

.historia__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 72px) 20px;
}

/* ===== Estructura ===== */
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 110px);
}

/* Desktop: alternar izquierda / derecha */
@media (min-width: 900px){
  .story-block {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 64px);
  }
  .story-block:nth-child(even) .story-block__media { order: 2; }
  .story-block:nth-child(even) .story-block__text  { order: 1; }
}

/* ===== Imágenes con tamaño uniforme ===== */
.story-block__media {
  width: 100%;
  aspect-ratio: 4 / 3;           /* mantiene proporción constante */
}
.story-block__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* recorte elegante */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Fallback para navegadores sin aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .story-block__media { position: relative; }
  .story-block__media::before { content:""; display:block; padding-top:75%; }
  .story-block__media > img {
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  }
}

/* ===== Texto ===== */
.story-block__text {
  max-width: 60ch;
}

.story-block__text p {
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.75;
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga","kern","clig","calt";
  hyphens: auto;
}

/* Drop cap elegante */
.story-block__text p:first-child::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: .9;
  font-weight: 600;
  margin: .05em .18em 0 0;
  color: var(--lux-ink);
}

/* Destacar strong en dorado */
.story-block__text strong {
  font-weight: 600;
  position: relative;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--lux-gold) 70%, transparent);
}

/* Título de la sección */
.historia__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.historia__title::after {
  content:"";
  display:block;
  width: 72px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lux-gold), transparent 80%);
}

/* ===== Fade-in ===== */
.has-reveal-js .historia .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  animation: none !important;
  will-change: opacity, transform;
}
.has-reveal-js .historia .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive tweaks */
@media (max-width: 899px){
  .historia .story-block__media{ aspect-ratio: 1 / 1; }
  .historia .story-block__text{ max-width: 68ch; }
  .historia .historia__title::after{ width: 56px; }
}

/* =========================================================
   EFECTOS VISUALES - CURSOR Y PARTÍCULAS
   ========================================================= */

/* Cursor normal del sistema */
body{ cursor: default; }
a, button, [role="button"], .btn{ cursor: pointer; }

/* ===== ANIMACIONES ===== */

/* Animación de parpadeo de estrellas - Más visible */
@keyframes twinkle {
  0% { 
    opacity: 0.3; 
    transform: scale(0.7) rotate(0deg);
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
  }
  25% {
    opacity: 0.7;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255,215,0,0.8),
                0 0 35px rgba(255,223,128,0.5);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.4) rotate(180deg);
    box-shadow: 0 0 30px rgba(255,215,0,1),
                0 0 50px rgba(255,223,128,0.7),
                0 0 70px rgba(213,184,106,0.4);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.1) rotate(270deg);
    box-shadow: 0 0 20px rgba(255,215,0,0.8),
                0 0 35px rgba(255,223,128,0.5);
  }
  100% { 
    opacity: 0.3; 
    transform: scale(0.7) rotate(360deg);
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
  }
}

/* Animación adicional de pulso para las estrellas - Más intensa */
@keyframes starPulse {
  0%, 100% {
    filter: brightness(1.2) saturate(1.1);
  }
  50% {
    filter: brightness(2) saturate(1.5);
  }
}

/* Animación de partículas al mover ratón */
@keyframes sparkleMove {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--spark-dx, 0), var(--spark-dy, -40px)) scale(0.3); 
  }
}
/* Animación de caída de copos de nieve */
@keyframes snowfall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--drift, 0)) rotate(360deg);
  }
}
/* =========================================================
   PÁGINA COLECCIONES - Diseño profesional
   ========================================================= */
.page-colecciones {
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 80px;
}

.colecciones-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.colecciones-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
}

.colecciones-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.colecciones-subtitle {
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* Grid de colecciones - Versión centrada automática */
.colecciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
  justify-items: center;
}

@media (min-width: 768px) {
  .colecciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .colecciones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .coleccion-card {
    width: calc(33.333% - 22px);
    min-width: 280px;
  }
}

.coleccion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--gold);
}

.coleccion-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Contenedor de imagen */
.coleccion-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}

.coleccion-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.coleccion-card:hover .thumb img {
  transform: scale(1.08);
}

/* Overlay elegante al hover */
.coleccion-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.coleccion-card:hover .thumb::after {
  opacity: 1;
}

/* Nombre de la colección */
.coleccion-nombre {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 20px 24px;
  text-align: center;
  position: relative;
  transition: color 0.3s ease;
}

.coleccion-card:hover .coleccion-nombre {
  color: var(--gold);
}

/* Icono decorativo en hover */
.coleccion-nombre::after {
  content: "→";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--gold);
  font-size: 24px;
}

.coleccion-card:hover .coleccion-nombre::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Animación de entrada */
.coleccion-card.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.coleccion-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Delay escalonado para las cards */
.coleccion-card:nth-child(1).reveal { transition-delay: 0.1s; }
.coleccion-card:nth-child(2).reveal { transition-delay: 0.2s; }
.coleccion-card:nth-child(3).reveal { transition-delay: 0.3s; }
.coleccion-card:nth-child(4).reveal { transition-delay: 0.4s; }
.coleccion-card:nth-child(5).reveal { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
  .colecciones-grid {
    gap: 24px;
  }
  
  .coleccion-nombre::after {
    display: none; /* Ocultar flecha en móvil */
  }
}
/* =========================================================
   PÁGINA COLECCIÓN INDIVIDUAL
   ========================================================= */
.page-coleccion {
    min-height: 100vh;
    padding: 40px 0 80px;
}

.coleccion-single {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .current {
    color: var(--gold);
    font-weight: 600;
}

/* Header de colección */
.coleccion-header {
    text-align: center;
    margin-bottom: 64px;
}

.coleccion-single-title {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.coleccion-single-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 24px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.coleccion-single-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    max-width: 700px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjeta de producto */
.producto-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

/* Imagen del producto */
.producto-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.1);
}

/* Overlay */
.producto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card:hover .producto-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-quick-view:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Info del producto */
.producto-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-nombre {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.producto-descripcion {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.producto-precio {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-add-cart:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-add-cart i {
    font-size: 16px;
}

/* CTA Personalización */
.cta-personalizacion {
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.cta-text {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Animación de entrada escalonada */
.producto-card.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.producto-card.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.producto-card:nth-child(1).reveal { transition-delay: 0.1s; }
.producto-card:nth-child(2).reveal { transition-delay: 0.2s; }
.producto-card:nth-child(3).reveal { transition-delay: 0.3s; }
.producto-card:nth-child(4).reveal { transition-delay: 0.4s; }
.producto-card:nth-child(5).reveal { transition-delay: 0.5s; }
.producto-card:nth-child(6).reveal { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .producto-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-cart {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   MODAL VISTA RÁPIDA
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image {
    position: relative;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: grid;
    place-items: center;
    padding: 40px;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-product-name {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-product-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.modal-price-section {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.modal-product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-add-cart-modal,
.btn-customize {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: 16px;
}

.btn-add-cart-modal {
    background: var(--brand);
    color: white;
}

.btn-add-cart-modal:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-customize {
    background: white;
    color: var(--ink);
    border: 2px solid var(--line);
}

.btn-customize:hover {
    border-color: var(--gold);
    background: #fffbf0;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-radius: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ink);
}

.feature-item i {
    color: var(--gold);
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        padding: 24px;
    }
    
    .modal-info {
        padding: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-add-cart-modal,
    .btn-customize {
        width: 100%;
    }
}

/* =========================================================
   PÁGINA DEL CARRITO
   ========================================================= */
.page-cart {
    min-height: 100vh;
    padding: 40px 0 80px;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.cart-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin: 0;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    border-color: var(--gold);
    background: #fffbf0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

/* Items del carrito */
.cart-items-wrapper {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--line);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cart-item-price {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
}

/* Información de edición limitada en items */
.cart-item-limited {
    font-size: 13px;
    color: var(--gold);
    margin: 4px 0 0 0;
    font-weight: 500;
}

.cart-item-limited i {
    font-size: 11px;
    margin-right: 4px;
}

/* Controles de cantidad */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--line);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-btn:disabled:hover {
    background: transparent;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
}

.qty-input:focus {
    outline: none;
}

/* Remove input number arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.cart-item-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #fee;
    color: #e74c3c;
}

/* Carrito vacío */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 64px;
    color: var(--line);
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 28px;
    margin: 0 0 12px;
}

.cart-empty p {
    color: var(--muted);
    margin: 0 0 24px;
}

/* Resumen del carrito */
.cart-summary-wrapper {
    position: sticky;
    top: 100px;
}

.cart-summary {
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--line);
}

.cart-summary h3 {
    font-size: 24px;
    margin: 0 0 24px;
}

/* Información de items en resumen */
.summary-items-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--ink);
}

.summary-items-info i {
    color: var(--gold);
    font-size: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
}

.summary-total {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 24px;
    font-weight: 700;
}

.summary-total span:last-child {
    color: var(--gold);
}

.free-shipping-notice {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
    margin: 16px 0;
    border-left: 3px solid var(--gold);
}

/* Tiempo de elaboración */
.elaboration-time {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--gold);
}

.elaboration-time i {
    color: var(--gold);
    font-size: 20px;
    margin-top: 2px;
}

.elaboration-time strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
}

.elaboration-time p {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-clear-cart {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fee;
}

/* Caja de información en el resumen */
.cart-info-box {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.cart-info-box i {
    color: var(--gold);
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}

.cart-info-box strong {
    color: var(--ink);
    font-weight: 600;
}

/* Notificación del carrito */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 20px;
}

/* Notificación de advertencia */
.cart-notification--warning {
    background: #f39c12;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .cart-item-quantity {
        grid-column: 1 / -1;
    }
    
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}
/* =========================================================
   PÁGINA PERSONALIZACIÓN
   ========================================================= */
.page-personalizacion {
    min-height: 100vh;
}

.personalizacion-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--line);
}

.tag i {
    color: var(--gold);
}

/* Galería de Inspiración */
.inspiracion-gallery {
    padding: 60px 24px;
}

.text-center {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin: 0;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 24px;
    background: white;
}

.gallery-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.gallery-item p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

/* =========================================================
   PROCESO DE PERSONALIZACIÓN - DISTRIBUCIÓN 2x2
   (Buscar y reemplazar la sección .proceso-steps en styles.css)
   ========================================================= */

.proceso-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
}

.proceso-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en desktop */
    gap: 40px 32px; /* gap vertical y horizontal */
    margin-top: 48px;
    max-width: 900px; /* Limita el ancho para mejor legibilidad */
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    padding: 40px 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a957 100%);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(213, 184, 106, 0.3);
}

.step h3 {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 600;
}

.step p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .proceso-steps {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 24px;
    }
    
    .step {
        padding: 32px 24px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Para tablets medianas, mantener 2 columnas pero con menos gap */
@media (min-width: 769px) and (max-width: 900px) {
    .proceso-steps {
        gap: 32px 24px;
    }
}

/* Info de Precios */
.pricing-info {
    padding: 60px 24px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--gold);
}

.info-card i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 24px;
    margin: 0 0 20px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Formulario Section */
.formulario-section {
    padding: 60px 24px 100px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.custom-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(213, 184, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* =========================================================
   PÁGINA CONTACTO
   ========================================================= */
.page-contacto {
    min-height: 100vh;
    padding: 60px 0 100px;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contacto-header {
    margin-bottom: 60px;
    text-align: center;
}

.contacto-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 968px) {
    .contacto-content {
        grid-template-columns: 1fr;
    }
}

/* Info de contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--line);
}

.info-block i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 16px;
}

.info-block h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

.info-block a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: var(--gold);
}

.info-block .small {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    padding: 8px 0;
}

.faq-list a {
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-4px);
}

/* Formulario de contacto */
.contacto-form-wrapper {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--line);
}

.contacto-form-wrapper h2 {
    font-size: 28px;
    margin: 0 0 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper,
    .contacto-form-wrapper {
        padding: 32px 24px;
    }
}
/* =========================================================
   FAQ ACORDEÓN
   ========================================================= */
.faq-accordion {
    margin-top: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--gold);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 16px 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* =========================================================
   MODAL DE POLÍTICA DE PRIVACIDAD
   ========================================================= */
.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-modal.is-open {
    display: flex;
    opacity: 1;
}

.privacy-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.privacy-modal.is-open .privacy-modal-content {
    transform: scale(1) translateY(0);
}

.privacy-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.privacy-modal-close:hover {
    background: var(--gold);
    color: white;
    transform: rotate(90deg);
}

.privacy-modal-content h2 {
    font-size: 32px;
    margin: 0 0 24px;
    padding-right: 40px;
}

.privacy-text {
    line-height: 1.7;
}

.privacy-text h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--ink);
}

.privacy-text p {
    margin: 0 0 16px;
    color: var(--muted);
}

.privacy-text ul {
    margin: 12px 0 16px;
    padding-left: 24px;
    color: var(--muted);
}

.privacy-text li {
    margin: 8px 0;
}

.privacy-date {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@media (max-width: 768px) {
    .privacy-modal-content {
        padding: 32px 24px;
    }
    
    .privacy-modal-content h2 {
        font-size: 24px;
    }
}
/* =========================================================
   PERSONALIZACIÓN CTA - CENTRADA
   ========================================================= */
.personalizacion-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
}

.personalizacion-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.personalizacion-content .h2 {
    margin-bottom: 16px;
}

.personalizacion-content .lead {
    margin-bottom: 32px;
}

.personalizacion-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
}
/* =========================================================
   HISTORIA - SECCIÓN DE EMPAQUETADO PREMIUM
   (Añadir al final de styles.css)
   ========================================================= */



.story-block--packaging .story-block__text em {
    display: block;
    margin-top: 20px;
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--lux-gold, #c8a86a);
    font-weight: 500;
    text-align: center;
}

/* CTA final de la sección Historia */
.historia-cta {
    margin-top: clamp(64px, 8vw, 120px);
    padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 48px);
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f3ff 50%, #f0fcff 100%);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.historia-cta h2 {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    color: var(--lux-ink, rgba(0, 0, 0, 0.85));
}

.historia-cta p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.historia-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.historia-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Prevenir transiciones durante resize (evita bugs visuales) */
.resizing * {
    transition: none !important;
}

/* Responsive para la sección de empaquetado */
@media (max-width: 899px) {
    .story-block--packaging {
        padding: 24px 20px;
        margin-top: 40px;
    }
    
    .historia-cta {
        margin-top: 48px;
        padding: 40px 24px;
    }
}
/* =========================================================
   PÁGINA DE AUTENTICACIÓN (LOGIN / REGISTRO)
   (Añadir al final de styles.css)
   ========================================================= */

.page-auth {
    min-height: 100vh;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

/* Tarjeta principal */
.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--line);
    overflow: hidden;
}

/* Tabs para cambiar entre Login/Registro */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0fcff 100%);
    border-bottom: 1px solid var(--line);
}

.auth-tab {
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.auth-tab:hover {
    color: var(--ink);
}

.auth-tab.active {
    color: var(--ink);
    background: white;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

.auth-tab i {
    font-size: 18px;
}

/* Wrapper de formularios */
.auth-form-wrapper {
    display: none;
    padding: 48px 40px;
    animation: fadeInAuth 0.4s ease;
}

.auth-form-wrapper.active {
    display: block;
}

@keyframes fadeInAuth {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del formulario */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.auth-header p {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
}

.form-group label i {
    color: var(--gold);
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(213, 184, 106, 0.1);
}

.form-group input::placeholder {
    color: #b0b0b0;
}

/* Input de contraseña con botón de mostrar/ocultar */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--gold);
}

.toggle-password.active {
    color: var(--gold);
}

/* Hint pequeño */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* Extras del formulario (recordarme, olvidé contraseña) */
.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.checkbox-label span {
    line-height: 1.5;
}

/* Links */
.link-forgot {
    font-size: 14px;
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.link-forgot:hover {
    opacity: 0.7;
}

.auth-form .link {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(213, 184, 106, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.auth-form .link:hover {
    text-decoration-color: var(--gold);
}

/* Botón de submit */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Footer del formulario */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.auth-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.link-switch {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.link-switch:hover {
    opacity: 0.7;
}

/* Aviso informativo */
.auth-notice {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #fffbf0 100%);
    border: 1px solid rgba(213, 184, 106, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeInAuth 0.6s ease 0.3s both;
}

.auth-notice i {
    color: var(--gold);
    font-size: 20px;
    margin-top: 2px;
}

.auth-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.auth-notice strong {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .page-auth {
        padding: 40px 20px;
    }

    .auth-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-extras {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-tab {
        padding: 16px 20px;
        font-size: 14px;
    }

    .auth-tab i {
        font-size: 16px;
    }
}

/* Estados de validación (opcional para futura implementación) */
.form-group.error input {
    border-color: #e74c3c;
}

.form-group.success input {
    border-color: #2ecc71;
}

.form-group .error-message {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #e74c3c;
}