/* ============================================================
   RESET Y VARIABLES
============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #fafaf7;
  --paper:        #f4f1eb;
  --ink:          #1a1a1a;
  --ink-mid:      #4a4a4a;
  --ink-soft:     #8a8880;
  --hair:         #e2dfd8;
  --hair-dark:    #c8c4bc;
  --accent:       #a89968;
  --accent-light: #d4c99a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --masthead-h: 56px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  /* clip recorta el desborde horizontal SIN crear un contenedor de
     scroll (hidden rompía todos los position: sticky de la página) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   MASTHEAD FIJO
============================================================ */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--masthead-h);
  background: rgba(250, 250, 247, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease;
}

/* Al hacer scroll el masthead se "cristaliza" (estado manejado por effects.js) */
.masthead.scrolled {
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hair-dark);
  box-shadow: 0 14px 36px -22px rgba(26, 24, 18, 0.2);
}

.brand-mark {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.2s;
  font-variation-settings: "opsz" 144;
}
.brand-mark:hover { opacity: 0.6; }

/* ============================================================
   LOGOTIPO INVITASTE (wordmark: INVITA sans + SHION serif)
============================================================ */
.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  font-variation-settings: normal;
  --logo-ink: #1c1a17;
  --logo-serif: #5a2233;
}
.logo-invita {
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  letter-spacing: 0.13em;
  color: var(--logo-ink);
}
.logo-shion {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--logo-serif);
  margin-left: 0.015em;
}

/* Tamaños por contexto */
.masthead .brand-mark.logo-wordmark { font-size: 21px; font-weight: 300; }
.footer-brand.logo-wordmark { font-size: 15px; }
.bottom-brand.logo-wordmark { font-size: 16px; font-weight: 300; }

.nav-left,
.nav-right {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-right { justify-content: flex-end; }

.nav-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Hamburguesa: solo mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  justify-self: end;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú mobile */
.mobile-menu {
  position: fixed;
  top: var(--masthead-h);
  left: 0; right: 0;
  z-index: 190;
  background: var(--bg);
  border-bottom: 1px solid var(--hair-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  gap: 20px;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }

.mobile-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.mobile-link:last-child { border-bottom: none; }


/* ============================================================
   HERO: copy a la izquierda, abanico de invitaciones vivas
   a la derecha (parallax manejado por effects.js)
============================================================ */
.hero {
  min-height: 100svh;
  padding: calc(var(--masthead-h) + 48px) 48px 64px;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 720px);
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hair-dark);
}

/* Resplandor ambiental cálido detrás del abanico */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 440px at 74% 44%, rgba(212, 201, 154, 0.26), transparent 64%),
    radial-gradient(700px 560px at 88% 76%, rgba(168, 153, 104, 0.13), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.kicker-text {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker-rule {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--hair-dark);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.6vw, 108px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 32px;
}
.hero-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 470px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 52px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 28px;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.cta-arrow { font-size: 14px; }

.hero-cta-ghost {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 14px 2px;
  border-bottom: 1px solid var(--hair-dark);
  transition: color 0.2s, border-color 0.2s;
}
.hero-cta-ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Mini ficha de datos bajo el CTA */
/* Franja de señales de confianza (bajo los CTA del hero) */
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  margin-top: 4px;
}
.hero-trust li {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 18px;
  border-left: 1px solid var(--hair-dark);
  white-space: nowrap;
}
.hero-trust li:first-child {
  padding-left: 0;
  border-left: none;
}

/* ============================================================
   Hero: ABANICO de invitaciones en teléfono.
   Base (móvil/tablet) = fila deslizable con el dedo.
   Desktop (>=1025px)  = abanico fijo con parallax.
============================================================ */
.hero-stage {
  position: relative;
  height: 600px;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  /* Entrada al cargar */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out) 0.3s,
    transform 1s var(--ease-out) 0.3s;
}
body.is-loaded .hero-stage { opacity: 1; transform: none; }

/* ---- Base: fila deslizable (móvil y tablet) ---- */
.hero-fan {
  --phoneW: 244px;
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  padding-block: 12px;
  padding-inline: max(0px, calc(50% - var(--phoneW) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.hero-fan::-webkit-scrollbar { display: none; }

.fan-card {
  flex: 0 0 var(--phoneW);
  width: var(--phoneW);
  scroll-snap-align: center;
  transform: scale(0.82);
  opacity: 0.5;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.5s ease;
  cursor: pointer;
}
.fan-card.is-front { transform: scale(1); opacity: 1; }

.fan-inner { width: 100%; }

.fan-card .phone {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 38px;
}
.fan-card .phone-island { top: 15px; width: 76px; height: 20px; }
.fan-card .phone-screen { border-radius: 30px; background: var(--paper); }
.fan-card .phone-screen iframe {
  width: 390px;
  height: 844px;
  border: 0;
  display: block;
  transform-origin: top left;
  pointer-events: none;
}

.hero-fan-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  text-align: center;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}

/* ---- Desktop: abanico fijo ---- */
@media (min-width: 1025px) {
  .hero-fan {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .fan-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 206px;
    opacity: 0;
    /* Estado de entrada: apiladas en el centro */
    transform: translate(-50%, -42%) rotate(0deg) scale(0.9);
    transition:
      transform 1.15s var(--ease-out) var(--fd, 0s),
      opacity 0.9s ease var(--fd, 0s);
  }
  /* z-index del abanico (centro al frente) */
  .fan-card:nth-child(1) { z-index: 7; }
  .fan-card:nth-child(2), .fan-card:nth-child(3) { z-index: 6; }
  .fan-card:nth-child(4), .fan-card:nth-child(5) { z-index: 5; }
  .fan-card:nth-child(6), .fan-card:nth-child(7) { z-index: 4; }
  .fan-card:hover { z-index: 9; }

  /* Posiciones desplegadas del abanico.
     Sesgado a la derecha: el frente va +40px, el brazo derecho
     (pares) se alarga y sangra fuera del borde (lo recorta .hero),
     y el brazo izquierdo (impares) se acorta para liberar el copy. */
  body.is-loaded .fan-card { opacity: 1; }
  body.is-loaded .fan-card:nth-child(1) { transform: translate(calc(-50% + 40px), -50%) rotate(0deg) scale(1.06);          --fd: 0.40s; }
  body.is-loaded .fan-card:nth-child(2) { transform: translate(calc(-50% + 172px), -45%) rotate(9deg) scale(0.9);   --fd: 0.50s; }
  body.is-loaded .fan-card:nth-child(3) { transform: translate(calc(-50% - 96px),  -46%) rotate(-7deg) scale(0.88);  --fd: 0.50s; }
  body.is-loaded .fan-card:nth-child(4) { transform: translate(calc(-50% + 300px), -37%) rotate(16deg) scale(0.82);  --fd: 0.60s; }
  body.is-loaded .fan-card:nth-child(5) { transform: translate(calc(-50% - 184px), -39%) rotate(-13deg) scale(0.8);  --fd: 0.60s; }
  body.is-loaded .fan-card:nth-child(6) { transform: translate(calc(-50% + 414px), -26%) rotate(22deg) scale(0.74);  --fd: 0.68s; }
  body.is-loaded .fan-card:nth-child(7) { transform: translate(calc(-50% - 250px), -30%) rotate(-18deg) scale(0.72); --fd: 0.68s; }

  /* Desvanece el borde izquierdo para que ningún teléfono pinte
     sobre el texto del copy en anchos intermedios */
  .hero-stage {
    -webkit-mask: linear-gradient(to right, transparent 0, #000 64px);
    mask: linear-gradient(to right, transparent 0, #000 64px);
  }

  .fan-card .phone { border-radius: 30px; padding: 8px; }
  .fan-card .phone-island { top: 13px; width: 64px; height: 17px; }
  .fan-card .phone-screen { border-radius: 24px; }
  .hero-fan-hint { display: none; }
}


/* ============================================================
   SECCIÓN DE FILTROS
============================================================ */
.filter-section {
  position: sticky;
  top: var(--masthead-h);
  z-index: 100;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair-dark);
  padding: 0 32px;
}

.filter-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 18px 20px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  opacity: 0.55;
  margin-left: 4px;
}

/* Segunda fila: estilos del evento elegido (subordinada a la fila de evento) */
.filter-row-styles {
  border-top: 1px solid var(--hair-dark);
}
.filter-row-styles[hidden] { display: none; }
.filter-row-styles .filter-btn {
  padding: 12px 18px;
  font-size: 9px;
  color: var(--ink-soft);
}
.filter-row-styles .filter-btn.active {
  color: var(--ink);
}


/* ============================================================
   GRID DEL CATÁLOGO
============================================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}

/* Cada tarjeta: flota sobre el fondo con sombra suave */
.card {
  background: var(--bg);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 2px rgba(40, 36, 28, 0.06),
    0 10px 28px rgba(40, 36, 28, 0.08);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(40, 36, 28, 0.08),
    0 22px 44px rgba(40, 36, 28, 0.14);
}

/* Estado oculto al filtrar */
.card.hidden {
  display: none;
}

/* Animación al aparecer */
.card.fade-in {
  animation: cardIn 0.35s var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thumbnail: iframe escalado */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
  flex-shrink: 0;
  border-bottom: 1px solid var(--hair);
}

.card-thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 390px;
  height: 693px;
  border: none;
  pointer-events: none;
  transform-origin: top left;
  /* scale se setea por JS con ResizeObserver */
}

/* Overlay hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.card:hover .card-overlay {
  background: rgba(26, 26, 26, 0.18);
}

.card-preview-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 10px 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}
.card:hover .card-preview-label {
  opacity: 1;
  transform: translateY(0);
}

/* Metadata de la tarjeta */
.card-meta {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* Badge de categoría */
.card-badge {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
}
.card-badge.coloridas   { color: #9a6840; }
.card-badge.editoriales { color: #1a1a1a; }
.card-badge.minimalistas{ color: #5a7060; }

.card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variation-settings: "opsz" 18;
  margin-top: 2px;
}

.card-hook {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

/* Franja de paleta de colores */
.card-palette {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}


/* ============================================================
   SECCIÓN PROCESO
============================================================ */
.process-section {
  padding: 120px 48px;
  border-top: 1px solid var(--hair-dark);
  background: var(--paper);
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.process-header {
  margin-bottom: 72px;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}
.process-title em {
  font-style: italic;
  color: var(--accent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair-dark);
}

.process-step {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-step:last-child {
  border-right: none;
  padding-right: 0;
}
.process-step:first-child {
  padding-left: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  font-variation-settings: "opsz" 20;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 240px;
}


/* ============================================================
   SECCIÓN CONTACTO
============================================================ */
.contact-section {
  padding: 120px 48px;
  border-top: 1px solid var(--hair-dark);
  background: var(--paper);
}

.contact-container {
  max-width: 640px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 88;
  margin-bottom: 28px;
  margin-top: 12px;
}
.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.contact-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-whatsapp:hover {
  background: #1a7a40;
}
.wa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 1px;
}
.contact-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.contact-dot {
  color: var(--hair-dark);
  font-size: 14px;
}


/* ============================================================
   PIE DE PÁGINA
============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--hair-dark);
  background: var(--bg);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 144;
}

.footer-sep {
  color: var(--hair-dark);
  font-size: 12px;
}

.footer-loc,
.footer-year {
  font-size: 10px;
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}


/* ============================================================
   MODAL
============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-in-out);
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Barra superior del modal */
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--hair-dark);
  background: var(--bg);
  flex-shrink: 0;
  gap: 16px;
}

.modal-topbar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.modal-num-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--ink-soft);
  white-space: nowrap;
}

.modal-name-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variation-settings: "opsz" 16;
}

.modal-swatches {
  display: flex;
  gap: 4px;
}
.modal-swatches .swatch {
  width: 12px;
  height: 12px;
}

.modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-nav {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 14px;
  border: 1px solid var(--hair-dark);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.modal-nav:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.modal-close-btn {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 14px;
  border: 1px solid var(--hair-dark);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.modal-close-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Marco: fondo neutro que centra el celular */
.modal-frame {
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #ebe7df 0%, #e2ddd3 60%, #d8d2c6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 0;
}

/* Mockup de celular */
.phone {
  position: relative;
  height: 100%;
  max-height: 860px;
  aspect-ratio: 390 / 844;
  background: #0d0d0f;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 18px 50px rgba(0,0,0,0.32),
    inset 0 0 0 2px #2a2a2e;
  flex-shrink: 0;
}

/* Isla dinámica / notch */
.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0d0d0f;
  border-radius: 14px;
  z-index: 3;
  pointer-events: none;
}

/* Pantalla */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}
.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CTA inferior del modal */
.modal-bottombar {
  height: 56px;
  padding: 0 24px;
  border-top: 1px solid var(--hair-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  flex-shrink: 0;
}

.modal-cta-btn {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 24px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.modal-cta-btn:hover {
  background: var(--ink);
  color: var(--bg);
}


/* ============================================================
   RESPONSIVE: TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
    padding: 48px 32px 72px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step {
    border-right: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: 32px 28px;
  }
  .process-step:nth-child(2n) {
    border-right: none;
  }
  .process-step:nth-child(n+3) {
    border-bottom: none;
  }
  .process-step:last-child {
    border-right: none;
    padding-right: 28px;
  }
  .process-step:first-child { padding-left: 0; }

  /* Hero: apilar copy arriba y carrusel abajo */
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
  }
  .hero-stage { height: 580px; }
  .hero-ambient {
    background:
      radial-gradient(560px 440px at 50% 72%, rgba(212, 201, 154, 0.24), transparent 64%);
  }
}


/* ============================================================
   RESPONSIVE: MOBILE (max 680px)
============================================================ */
@media (max-width: 680px) {
  :root { --masthead-h: 52px; }

  /* Masthead mobile: solo brand + hamburguesa */
  .masthead {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }
  .nav-left,
  .nav-right {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .brand-mark {
    justify-self: start;
  }

  /* Hero */
  .hero {
    padding: calc(var(--masthead-h) + 44px) 24px 48px;
    gap: 16px;
  }
  .hero-kicker { margin-bottom: 28px; }
  .hero-heading {
    font-size: clamp(44px, 13vw, 76px);
    margin-bottom: 24px;
  }
  .hero-body { font-size: 15px; margin-bottom: 32px; }
  .hero-actions { gap: 16px; margin-bottom: 36px; }
  /* En móvil: lista vertical limpia (sin filetes que parezcan viñetas) */
  .hero-trust { flex-direction: column; row-gap: 9px; }
  .hero-trust li { padding: 0; border-left: none; }

  /* Fila deslizable: teléfono un poco más chico en móvil */
  .hero-fan { --phoneW: 232px; gap: 16px; }
  .hero-stage { height: 540px; }

  /* Filtros */
  .filter-section { padding: 0 16px; }
  .filter-btn { padding: 16px 14px; font-size: 9px; }

  /* Grid: 1 columna */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 64px;
  }
  .card {
    box-shadow:
      0 1px 2px rgba(40, 36, 28, 0.05),
      0 8px 22px rgba(40, 36, 28, 0.07);
  }

  /* Proceso */
  .process-section { padding: 72px 24px; }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding: 28px 0;
  }
  .process-step:last-child { border-bottom: none; }
  .step-desc { max-width: 100%; }

  /* Contacto */
  .contact-section { padding: 72px 24px; }
  .btn-whatsapp { font-size: 10px; padding: 14px 20px; }

  /* Modal */
  .modal-topbar { padding: 0 16px; }
  .modal-num-label,
  .modal-swatches { display: none; }
  /* En mobile, los botones de navegación y cierre se reducen a íconos */
  .modal-nav .btn-text,
  .modal-close-btn .btn-text { display: none; }
  .modal-nav { padding: 8px 11px; font-size: 12px; }
  .modal-close-btn { padding: 8px 11px; font-size: 12px; }
  .modal-bottombar { padding: 0 16px; }
  .modal-cta-btn { font-size: 10px; padding: 9px 18px; }

  /* En móvil el dispositivo ya es un celular: quitamos el marco */
  .modal-frame { padding: 0; background: #fff; }
  .phone {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone-island { display: none; }
  .phone-screen { border-radius: 0; }

  .site-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px;
  }
}


/* ============================================================
   QUÉ INCLUYE: capítulo oscuro fijado (estilo Apple)
   La sección mide 340vh; el contenido queda fijado (sticky) y
   las tres features se activan según el avance del scroll.
   effects.js escribe data-active="0|1|2" en la sección.
============================================================ */
.incluye {
  --colw: 470px;
  --colgap: 72px;
  position: relative;
  height: auto;
  background: var(--ink);
  color: var(--bg);
}

/* Versión compacta: ya no se fija; las 3 features se ven de golpe */
.incluye-pin {
  position: static;
  height: auto;
  overflow: visible;
  padding: clamp(72px, 9vh, 120px) 48px;
}

.incluye-head {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto clamp(20px, 4.5vh, 52px);
}
.incluye-kicker {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.incluye-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, min(4vw, 6.2vh), 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.incluye-title em {
  font-style: italic;
  color: var(--accent-light);
}

.incluye-grid {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  align-items: start;
}

/* ----- Una feature por columna (texto + su visual debajo) ----- */
.feature {
  padding: 24px 0 0;
  border-top: 1px solid rgba(250, 250, 247, 0.16);
  opacity: 1;
}

.f-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  opacity: 0.75;
  margin-bottom: 10px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, min(2.2vw, 3.6vh), 32px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 10px;
}
.feature h3 em {
  font-style: italic;
  color: var(--accent-light);
}
.feature p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.62);
}

/* ----- Visual de cada feature (debajo de su texto) ----- */
.f-vis {
  margin-top: 22px;
}

/* Tarjeta base de los visuales */
.iv {
  background: rgba(250, 250, 247, 0.045);
  border: 1px solid rgba(250, 250, 247, 0.13);
  border-radius: 16px;
  padding: 26px 24px;
}
.iv-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.iv-divider {
  height: 1px;
  background: rgba(250, 250, 247, 0.12);
  margin: 28px 0;
}

/* --- Visual 1: personalización en vivo --- */
.iv-mini {
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.55);
}
.iv-mini-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.iv-mini-names {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variation-settings: "opsz" 144;
  margin-bottom: 10px;
}
.iv-mini-names em {
  font-style: italic;
  color: var(--accent);
}
.iv-mini-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.iv-mini-bar {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--accent);
}

/* Ciclo de color: la invitación "cambia" de acento sola */
@keyframes ivAccentBg {
  0%, 21%   { background: #a89968; }
  25%, 46%  { background: #c9938a; }
  50%, 71%  { background: #7d8b6f; }
  75%, 96%  { background: #5a6b8c; }
  100%      { background: #a89968; }
}
@keyframes ivAccentText {
  0%, 21%   { color: #a89968; }
  25%, 46%  { color: #c9938a; }
  50%, 71%  { color: #7d8b6f; }
  75%, 96%  { color: #5a6b8c; }
  100%      { color: #a89968; }
}
.iv-mini-bar { animation: ivAccentBg 9s linear infinite; }
.iv-mini-names em { animation: ivAccentText 9s linear infinite; }

.iv-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.iv-swatches {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 4px;
}
.iv-sw {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(250, 250, 247, 0.25);
}
.sw-a { background: #a89968; }
.sw-b { background: #c9938a; }
.sw-c { background: #7d8b6f; }
.sw-d { background: #5a6b8c; }

/* Anillo que recorre los swatches en sincronía con el ciclo */
.iv-sw-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bg);
  border-radius: 50%;
}
@keyframes ivRing {
  0%, 21%   { transform: translateX(0); }
  25%, 46%  { transform: translateX(34px); }
  50%, 71%  { transform: translateX(68px); }
  75%, 96%  { transform: translateX(102px); }
  100%      { transform: translateX(0); }
}
.iv-sw-ring { animation: ivRing 9s linear infinite; }

.iv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 247, 0.78);
  border: 1px solid rgba(250, 250, 247, 0.2);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}
.iv-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Visual 2: cuenta regresiva + RSVP --- */
.iv-count {
  display: flex;
  gap: 36px;
}
.iv-count > div { text-align: left; }
.iv-count strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  color: var(--accent-light);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: tabular-nums;
}
.iv-count span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
  margin-top: 8px;
}

.iv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.iv-pill {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.65);
  border: 1px solid rgba(250, 250, 247, 0.22);
  border-radius: 999px;
  padding: 10px 20px;
}
.iv-pill.active {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.iv-note {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.66);
  font-variation-settings: "opsz" 12;
}

/* --- Visual 3: mapa, calendario y WhatsApp --- */
.iv-map {
  position: relative;
  height: 170px;
  border-radius: 12px;
  border: 1px solid rgba(250, 250, 247, 0.14);
  background: rgba(250, 250, 247, 0.05);
  overflow: hidden;
  margin-bottom: 18px;
}
.iv-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.iv-map-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.75);
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid rgba(250, 250, 247, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(4px);
}

/* Pin que late sobre el mapa */
@keyframes ivPinPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.iv-pin-pulse {
  transform-origin: center;
  transform-box: fill-box;
}
.iv-pin-pulse {
  animation: ivPinPulse 2.4s ease-out infinite;
}

.iv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.iv-extras .iv-chip { opacity: 1; }

/* ----- Móvil: las 3 columnas se apilan ----- */
@media (max-width: 899px) {
  .incluye-pin { padding: 84px 24px; }
  .incluye-head { margin-bottom: 36px; }
  .incluye-title { font-size: clamp(32px, 7.5vw, 48px); }
  .incluye-grid { grid-template-columns: 1fr; }
  .feature { padding: 36px 0 0; }
  .feature h3 { font-size: clamp(24px, 6vw, 32px); }
  .iv { padding: 28px 22px; }
  .iv-count { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .iv-mini-bar,
  .iv-mini-names em,
  .iv-sw-ring,
  .iv-pin-pulse { animation: none !important; }
  /* Abanico: sin animación de entrada ni transiciones */
  .hero-stage { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fan-card { transition: none !important; opacity: 1 !important; }
  .hero-fan { scroll-behavior: auto !important; }
  .masthead { transition: none; }
}
