/* ==========================================================
   Essencia Projects — estilos
   Paleta crema: suave, cálida y delicada
   ========================================================== */

:root {
  --ivory: #FCF9F4;
  --cream: #F7F1E8;
  --cream-2: #F1E8DA;
  --sand: #E7DACA;
  --linen: #DCCBB6;
  --taupe: #B4A08A;
  --mocha: #8C7663;
  --ink: #4A3F35;
  --ink-soft: #6E6155;
  --blush: #E8CFC2;
  --gold: #B99A6B;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(92, 72, 52, .35), 0 10px 25px -15px rgba(92, 72, 52, .2);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

:root {
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .55 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-linen: repeating-linear-gradient(0deg, rgba(120, 100, 70, .055) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(120, 100, 70, .045) 0 1px, transparent 1px 3px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* grano de papel muy sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--blush); }


#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
main, .footer, .nav { position: relative; z-index: 2; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0; color: var(--ink); }
h1 em, h2 em, blockquote em { font-style: italic; color: var(--mocha); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mocha);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--taupe); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  font: 400 13px/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  border: 0; cursor: pointer;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { background: var(--mocha); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(74, 63, 53, .6); }
.btn-small { padding: 11px 20px; font-size: 11px; }
.link-arrow { text-decoration: none; font-size: 15px; letter-spacing: .04em; border-bottom: 1px solid var(--linen); padding-bottom: 3px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  z-index: 50;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(247, 241, 232, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(180, 160, 138, .25);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font: 300 27px/1 var(--serif); letter-spacing: .06em; display: grid; gap: 4px; }
.brand-name small { font: 300 8.5px/1 var(--sans); letter-spacing: .55em; text-transform: uppercase; color: var(--mocha); padding-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 14px; letter-spacing: .05em; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--taupe); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 130px var(--gutter) 70px;
  position: relative;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 82px); letter-spacing: -.01em; margin-bottom: 28px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 520px; margin: 0 0 38px; }
.hero-cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: min(600px, calc(100svh - 170px)); }
.halo {
  position: absolute; width: min(520px, 100%); aspect-ratio: 1; height: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--blush) 45%, transparent 70%);
  opacity: .7; filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08) translate(10px, -10px); } }

/* ---------- teléfono ---------- */
.phone {
  position: relative;
  width: 290px; aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(145deg, #fffdf9, #efe5d7);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(180, 160, 138, .4);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 20px; background: #2f2822; z-index: 5;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ivory); }
.phone-hero { animation: float 7s ease-in-out infinite; transform: rotate(-3deg); width: clamp(220px, calc((100svh - 210px) * 9 / 19), 290px); }
.phone-exp { width: clamp(240px, calc((100svh - 140px) * 9 / 19), 290px); }
@keyframes float { 50% { translate: 0 -14px; } }

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide.active .mock-scroll { animation: autoscroll 8s 3.1s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes autoscroll { to { transform: translateY(calc(-100% + 100cqh)); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(252, 249, 244, .9); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-card b { font-weight: 500; display: block; }
.float-card small { color: var(--ink-soft); }
.fc-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); color: var(--mocha); display: grid; place-items: center; font-size: 15px; }
.fc-tg svg { width: 17px; height: 17px; fill: none; stroke: var(--mocha); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fc-1 { top: 36%; left: 0; animation-delay: -2s; }
.fc-2 { bottom: 14%; right: 0; animation-delay: -4s; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(180, 160, 138, .35); background: var(--ivory); padding: 22px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font: italic 300 28px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.section-soft { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 18%, var(--cream-2) 82%, var(--cream) 100%); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--taupe); }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 20px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); max-width: 580px; margin: 0 auto; }

/* ---------- proyectos ---------- */
.projects {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.5vw, 48px);
  max-width: 940px; margin: 0 auto;
}
.project { cursor: pointer; outline: none; }
.project-stage {
  position: relative; border-radius: var(--radius);
  aspect-ratio: 4 / 4.6; overflow: hidden;
  display: grid; place-items: center;
  background: var(--cream-2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.project:hover .project-stage, .project:focus-visible .project-stage, .project.touched .project-stage { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-stage::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75), transparent 65%);
}
.project .phone { width: 47%; min-width: 150px; border-radius: 30px; padding: 7px; transition: transform .8s var(--ease); }
.project .phone-screen { border-radius: 24px; }
.project .phone-notch { top: 13px; width: 50px; height: 14px; }
.project:hover .phone, .project.touched .phone { transform: rotate(-2deg) scale(1.03); }
.project .mock-scroll { transition: transform 1s var(--ease); }
.project:hover .mock-scroll, .project:focus-visible .mock-scroll, .project.touched .mock-scroll { transform: translateY(calc(-100% + 100cqh)); transition: transform 7s 2.2s cubic-bezier(.45, .05, .35, 1); }
.project-info { padding: 20px 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-info h3 { font-size: 28px; }
.project-info p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.project-info span { font: italic 400 21px var(--serif); color: var(--mocha); white-space: nowrap; }

.privacy-note {
  max-width: 640px; margin: 40px auto 0; text-align: center;
  font-size: 14px; color: var(--ink-soft);
  display: flex; gap: 12px; align-items: flex-start; justify-content: center;
  padding: 16px 24px; border-radius: 16px; background: rgba(252, 249, 244, .7); border: 1px solid rgba(180, 160, 138, .3);
}

/* ---------- mockups de webs de boda ---------- */
.mock {
  --m-bg: #FBF7F0; --m-ink: #4A3F35; --m-accent: #B4A08A; --m-soft: #EFE5D6; --m-seal: #A1623F;
  --m-display: "Pinyon Script", cursive; --m-body: "Cormorant Garamond", serif;
  position: absolute; inset: 0; overflow: hidden;
  background-color: var(--m-bg); background-image: var(--paper-noise), var(--paper-linen); color: var(--m-ink);
  container-type: size;
  font-family: var(--m-body);
  text-align: left;
}
.mock-scroll { will-change: transform; }
.mock .acuarela { background: linear-gradient(100deg, color-mix(in srgb, var(--m-accent) 70%, var(--m-ink)) 0%, var(--m-accent) 28%, color-mix(in srgb, var(--m-accent) 80%, var(--m-ink)) 52%, color-mix(in srgb, var(--m-accent) 88%, #fff) 76%, color-mix(in srgb, var(--m-accent) 80%, var(--m-ink)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--m-accent); }
@supports not (-webkit-touch-callout: none) { .acuarela { filter: url(#acuarela-texto); } }

/* sobre de papel con sello de lacre */
.m-sobre { position: absolute; inset: 0; z-index: 4; overflow: hidden; perspective: 160cqw; background: #ece7dc;
  transition: opacity .6s .9s ease, transform .6s .9s ease, visibility 0s 0s; }
.m-cuerpo, .m-solapa { position: absolute; inset: 0; background: var(--m-paper-tint, #f1ede4) var(--m-paper, none) center / cover; background-blend-mode: var(--m-blend, normal); }
.m-cuerpo { filter: brightness(.985); }
.m-sombra { position: absolute; inset: 0; pointer-events: none; }
.m-sombra.inf { filter: drop-shadow(0 -.8cqw 1.8cqw rgba(90, 75, 50, .22)); }
.m-sombra.sup { filter: drop-shadow(0 1.3cqw 2.6cqw rgba(90, 75, 50, .3)); transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.55, 0, .25, 1), filter .6s ease; }
.m-solapa.inf { clip-path: polygon(0 100%, 100% 100%, 100% 96%, 50% 45%, 0 96%); background-position: 30% 80%; transform: scaleX(-1); }
.m-solapa.sup { clip-path: polygon(0 0, 100% 0, 100% 3%, 50% 54%, 0 3%); background-position: 70% 20%; filter: brightness(1.02); }
.m-sello { position: absolute; left: 50%; top: 50%; width: 42cqw; aspect-ratio: 1; transform: translate(-50%, -50%);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .5s ease; animation: latido 3.2s ease-in-out 1.2s infinite; }
.m-cera { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 .3cqw .3cqw rgba(70, 45, 25, .35)) drop-shadow(.5cqw 1.8cqw 2.3cqw rgba(70, 45, 25, .28)); }
.m-sello-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 .3cqw .3cqw rgba(70, 45, 25, .28)) drop-shadow(.5cqw 1.6cqw 2cqw rgba(70, 45, 25, .22)); }
.m-relieve { position: absolute; inset: 25% 26% 26% 25%; display: grid; place-items: center;
  filter: drop-shadow(.18cqw .23cqw .08cqw rgba(255, 226, 204, .6)) drop-shadow(-.1cqw -.13cqw .08cqw rgba(95, 45, 18, .4)); }
.m-logo { display: block; }
/* monograma entrelazado: dos letras que se cruzan dentro del sello */
.m-logo.mono { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: "Pinyon Script", cursive; font-weight: 400; line-height: 1; white-space: nowrap; }
.m-logo.mono b { font-weight: 400; font-size: 13.5cqw; -webkit-text-stroke: .12cqw currentColor; }
.m-logo.mono b:first-child { transform: translateY(-9%); }
.m-logo.mono b:last-child { margin-left: -.14em; transform: translateY(12%); }
.mock.paper-dark .m-pista { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.m-pista { position: absolute; left: 0; right: 0; top: calc(50% + 28cqw); margin: 0; text-align: center;
  font: 400 3.1cqw/1 var(--m-body); letter-spacing: .22em; text-transform: uppercase; color: #7a6d5d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8); transition: opacity .3s ease; }
@keyframes latido { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.045); } }

/* apertura: .open en el hero; hover, foco o toque en los proyectos */
.mock.open .m-sello, .project:hover .m-sello, .project:focus-visible .m-sello, .project.touched .m-sello {
  animation: none; opacity: 0; transform: translate(-50%, -30%) scale(.82) rotate(-9deg); }
.mock.open .m-pista, .project:hover .m-pista, .project:focus-visible .m-pista, .project.touched .m-pista { opacity: 0; }
.mock.open .m-sombra.sup, .project:hover .m-sombra.sup, .project:focus-visible .m-sombra.sup, .project.touched .m-sombra.sup {
  transform: rotateX(178deg); filter: none; transition-delay: .32s; }
.mock.open .m-sobre, .project:hover .m-sobre, .project:focus-visible .m-sobre, .project.touched .m-sobre {
  opacity: 0; transform: translateY(14%); visibility: hidden;
  transition: opacity .9s 1.25s ease, transform 1.1s 1.25s cubic-bezier(.6, 0, .3, 1), visibility 0s 2.4s; }

/* portada con la ilustración de la puerta (Lucía y Carlos): solo el dibujo, sus dos hojas se abren */
.m-puerta { background: #F7F3EC; perspective: 140cqw; }
.m-puerta-nombres { position: absolute; left: 0; right: 0; top: 10.5cqh; text-align: center; z-index: 2; transition: opacity .4s ease; }
.m-puerta-nombres span { display: block; font: 400 11cqw/1.1 "Pinyon Script", cursive; color: #4a3f35; }
.m-puerta-nombres small { display: block; margin-top: 2cqw; font: 400 3cqw/1 var(--sans); letter-spacing: .3em; color: #8c7663; }
.m-puerta .m-hojas { position: absolute; left: 6cqw; width: 88cqw; height: 148.4cqw; top: calc(57cqh - 72cqw); transform-style: preserve-3d; }
.m-hoja { position: absolute; display: block; max-width: none; backface-visibility: hidden; transition: transform 1.2s cubic-bezier(.55, 0, .25, 1); }
.m-hoja.izq { left: 0; top: 3.05%; width: 52%; height: 95.7%; transform-origin: 0 50%; }
.m-hoja.der { left: 51.2%; top: 0; width: 48.8%; height: 100%; transform-origin: 100% 50%; }
.m-puerta .m-pista { top: auto; bottom: 4cqh; color: #8c7663; text-shadow: none; }
.mock.open .m-hoja.izq, .project:hover .m-hoja.izq, .project:focus-visible .m-hoja.izq, .project.touched .m-hoja.izq { transform: rotateY(-105deg); }
.mock.open .m-hoja.der, .project:hover .m-hoja.der, .project:focus-visible .m-hoja.der, .project.touched .m-hoja.der { transform: rotateY(105deg); }
.mock.open .m-puerta-nombres, .project:hover .m-puerta-nombres, .project:focus-visible .m-puerta-nombres, .project.touched .m-puerta-nombres { opacity: 0; }

/* portada de papel que se rasga (Olivia y Marc) */
.m-papel { background: transparent; }
.m-mitad { position: absolute; inset: 0; background: #F6F4E7;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1); }
.m-mitad.sup { clip-path: inset(0 0 49.6% 0); z-index: 1; }
.m-mitad.inf { clip-path: inset(50% 0 0 0); }
.m-rasgado { position: absolute; inset: 0; background: var(--cover) 82% 50% / cover no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.45, .05, .4, 1); }
.m-papel-nombres { position: absolute; left: 0; right: 0; top: 24%; text-align: center; }
.m-papel-nombres span { display: block; font: 400 13cqw/1.1 "Pinyon Script", cursive; color: #4a3f35; }
.m-papel-nombres small { display: block; margin-top: 3cqw; font: 400 3.2cqw/1 var(--sans); letter-spacing: .3em; color: #8c7663; }
.m-papel .m-pista { top: 72%; color: #8c7663; text-shadow: none; }
/* 1) se rasga la tira  2) se separan las mitades  3) desaparece la portada */
.mock.open .m-rasgado, .project:hover .m-rasgado, .project:focus-visible .m-rasgado, .project.touched .m-rasgado { clip-path: inset(0 0 0 0); }
.mock.open .m-mitad.sup, .project:hover .m-mitad.sup, .project:focus-visible .m-mitad.sup, .project.touched .m-mitad.sup { transform: translateY(-52%); transition-delay: 1.05s; }
.mock.open .m-mitad.inf, .project:hover .m-mitad.inf, .project:focus-visible .m-mitad.inf, .project.touched .m-mitad.inf { transform: translateY(52%); transition-delay: 1.05s; }
.mock.open .m-papel, .project:hover .m-papel, .project:focus-visible .m-papel, .project.touched .m-papel {
  transform: none; transition: opacity .5s 1.7s ease, visibility 0s 2.3s; }

/* portada */
.m-hero { position: relative; height: 100cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14cqw; }
.m-wash { position: absolute; left: 8%; right: 8%; top: 30%; height: 34%; border-radius: 50%;
  background: radial-gradient(ellipse at 35% 45%, color-mix(in srgb, var(--m-accent) 35%, transparent), transparent 60%),
              radial-gradient(ellipse at 68% 58%, color-mix(in srgb, var(--m-seal) 22%, transparent), transparent 62%);
  filter: blur(3cqw); opacity: .9; }
.m-hero > *:not(.m-wash) { position: relative; }
.m-orn { width: 70cqw; color: var(--m-accent); margin-bottom: 4cqw; }
.m-orn.bottom { margin: 4cqw 0 0; transform: scaleY(-1); }
.m-kicker { font: 400 3.4cqw/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--m-accent); margin: 0 0 5cqw; }
.m-names { font: 400 15cqw/1 var(--m-display); margin: 0; color: var(--m-ink); }
.m-names span { display: block; font-size: .55em; color: var(--m-accent); margin: 1cqw 0; }
.m-date { font: 400 5cqw/1 var(--m-body); letter-spacing: .25em; margin: 6cqw 0 2cqw; }
.m-place { font: italic 400 4.4cqw/1.2 var(--m-body); color: var(--m-accent); margin: 0; }

/* carta + cuenta atrás */
.m-carta { margin: 0 7cqw; padding: 9cqw 8cqw 8cqw; background-color: #fdfaf4; background-image: var(--paper-noise); border-radius: 3cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(0,0,0,.15); text-align: center; }
.m-carta h5, .m-plan h5, .m-rsvp h5 { font: 400 9.5cqw/1.1 var(--m-display); margin: 0 0 5cqw; color: var(--m-ink); text-align: center; }
.m-line { height: 1.3cqw; border-radius: 2cqw; background: var(--m-soft); margin: 2.6cqw auto; width: 92%; }
.m-line.s { width: 60%; }
.m-count-t { margin: 7cqw 0 2cqw; font: 400 3cqw/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--m-accent); }
.m-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; text-align: center; }
.m-count b { display: block; font: 300 8cqw/1 var(--m-body); }
.m-count small { font: 400 2.5cqw/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--m-accent); }

/* planning: cronología en línea recta */
.m-plan { padding: 14cqw 10cqw 4cqw; }
.m-timeline { list-style: none; margin: 0 auto; padding: 0 0 0 2cqw; position: relative; width: 74%; }
.m-timeline::before { content: ""; position: absolute; left: 2cqw; top: 2cqw; bottom: 2cqw; width: 1px; background: var(--m-accent); opacity: .55; }
.m-timeline li { position: relative; padding: 0 0 7cqw 9cqw; }
.m-timeline li:last-child { padding-bottom: 0; }
.m-timeline li::before { content: ""; position: absolute; left: -1.5cqw; top: 1cqw; width: 3cqw; height: 3cqw; border-radius: 50%;
  background: var(--m-bg); border: 1px solid var(--m-accent); box-shadow: inset 0 0 0 .8cqw var(--m-bg), inset 0 0 0 3cqw var(--m-seal); }
.m-timeline b { display: block; font: 400 3cqw/1 var(--sans); letter-spacing: .2em; color: var(--m-accent); margin-bottom: 1.4cqw; }
.m-timeline span { font: italic 400 6cqw/1.1 var(--m-body); color: var(--m-ink); }

/* confirmación + canción */
.m-rsvp { padding: 12cqw 7cqw 4cqw; }
.m-sheet { background-color: #fdfaf4; background-image: var(--paper-noise); border-radius: 3cqw; padding: 7cqw 6cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(0,0,0,.15); transform: rotate(-1.2deg); }
.m-sheet label { display: block; font: 400 2.6cqw/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--m-accent); margin: 3.5cqw 0 1.6cqw; }
.m-sheet label:first-child { margin-top: 0; }
.m-field { border-bottom: 1px solid var(--m-soft); padding: 1cqw 0 1.6cqw; font: 400 4.6cqw/1 var(--m-body); }
.m-search::before { content: "⌕ "; color: var(--m-accent); }
.m-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 4cqw; }
.m-opts span { text-align: center; padding: 2.4cqw 0; border-radius: 2cqw; border: 1px solid var(--m-soft); font: 400 2.8cqw/1 var(--sans); color: var(--m-ink); opacity: .6; }
.m-opts span.on { background: var(--m-soft); opacity: 1; border-color: var(--m-accent); }
.m-song { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqw; padding: 2.4cqw; border-radius: 2.4cqw; background: var(--m-bg); }
.m-song b { display: block; font: 500 3.4cqw/1.2 var(--sans); }
.m-song small { font: 400 2.8cqw/1.2 var(--sans); color: var(--m-accent); }
.m-song div { flex: 1; min-width: 0; }
.m-song b, .m-song small, .m-search { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-disc { width: 9cqw; height: 9cqw; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--m-seal) 0 18%, #2c2622 19% 26%, transparent 27%), repeating-radial-gradient(circle, #3a332e 0 1.2%, #2c2622 1.2% 2.4%);
  animation: spin 4s linear infinite; }
.m-added { width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--m-seal); color: #fff; display: grid; place-items: center; font-size: 3.4cqw; }
.m-btn { margin: 6cqw auto 0; width: 70%; text-align: center; padding: 3.8cqw 0; border-radius: 999px; background: var(--m-ink); color: var(--m-bg); font: 400 3cqw/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.m-foot { padding: 12cqw 0 16cqw; text-align: center; }
.m-foot span { display: block; font-size: 11cqw; line-height: 1; color: var(--m-accent); }
.m-foot small { display: block; margin-top: 3cqw; font: italic 400 4.4cqw var(--m-body); color: var(--m-ink); }

/* ---------- features ---------- */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1240px; margin: 0 auto; }
.feature { flex: 0 1 calc((100% - 44px) / 3); }
.features { max-width: 1100px; }
.feature {
  background: rgba(252, 249, 244, .75); border: 1px solid rgba(180, 160, 138, .22);
  border-radius: var(--radius); padding: 34px 28px 30px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--ivory); }
.f-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin-bottom: 24px; }
.f-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--mocha); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.f-icon svg .fill { fill: var(--blush); stroke: var(--mocha); }
.f-icon svg .tick { stroke: var(--ink); }
.feature h3 { font-size: 25px; font-weight: 400; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- experiencia ---------- */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1180px; margin: 0 auto; }
.exp h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 44px; }
.exp-tabs { display: grid; gap: 6px; }
.exp-tab {
  display: flex; gap: 22px; text-align: left; padding: 22px 24px; border-radius: 18px;
  border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.exp-tab:hover { background: rgba(252, 249, 244, .55); }
.exp-tab.active { background: var(--ivory); border-color: rgba(180, 160, 138, .3); box-shadow: 0 20px 40px -30px rgba(92, 72, 52, .4); }
.exp-tab.active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); animation: progress 6s linear forwards; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.exp-num { font: italic 400 22px/1.2 var(--serif); color: var(--taupe); }
.exp-tab b { display: block; font: 400 26px/1.2 var(--serif); margin-bottom: 4px; }
.exp-tab small { font-size: 15px; color: var(--ink-soft); line-height: 1.55; display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .6s var(--ease); }
.exp-tab.active small { max-height: 120px; opacity: 1; }
.exp-visual { display: grid; place-items: center; position: relative; }
.exp-visual::before { content: ""; position: absolute; width: 440px; max-width: 90vw; aspect-ratio: 1; border-radius: 50%; background: var(--cream-2); }

.exp-screen { background: #FBF7F0; }
.exp-view { position: absolute; inset: 0; padding: 58px 22px 20px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.exp-view.active { opacity: 1; transform: none; }
.ev-kicker { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin: 0 0 6px; text-align: center; }
.ev-title { font: 400 38px/1.1 "Pinyon Script", cursive; text-align: center; margin-bottom: 22px; }
.ev-field { margin-bottom: 14px; }
.ev-field label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ev-input { margin-top: 5px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--sand); padding: 0 12px; display: flex; align-items: center; font: 400 17px var(--serif); }
.ev-input.search::before { content: "⌕"; margin-right: 8px; color: var(--taupe); font-size: 18px; }
.typing::after { content: "|"; color: var(--taupe); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.ev-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 16px; }
.ev-opt { text-align: center; font-size: 11px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--sand); color: var(--ink-soft); }
.ev-opt.on { background: var(--cream-2); border-color: var(--taupe); color: var(--ink); }
.ev-check { font-size: 12px; display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; }
.ev-check i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--taupe); position: relative; transition: background .3s; }
.exp-view.active .ev-check i { animation: checkOn .3s 2.8s forwards; }
@keyframes checkOn { to { background: var(--mocha); border-color: var(--mocha); box-shadow: inset 0 0 0 3px #fff; } }
.ev-btn { text-align: center; padding: 13px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.exp-view.active .ev-btn { animation: press .4s 3.4s; }
@keyframes press { 50% { transform: scale(.95); background: var(--mocha); } }
.ev-toast { position: absolute; left: 24px; right: 24px; bottom: 30px; text-align: center; padding: 14px; border-radius: 14px; background: var(--cream-2); font: italic 400 19px var(--serif); opacity: 0; transform: translateY(10px); }
.exp-view.active .ev-toast { animation: toast .6s 3.8s var(--ease) forwards; }
@keyframes toast { to { opacity: 1; transform: none; } }

.ev-area { height: 64px; align-items: flex-start; padding-top: 8px; font-size: 15px; line-height: 1.3; }
.ev-or { text-align: center; font: italic 400 15px var(--serif); color: var(--taupe); margin: 4px 0 10px; }
.ev-rec { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sand); border-radius: 999px; padding: 7px 14px 7px 7px; margin-bottom: 16px; }
.ev-rec small { font-size: 11px; color: var(--ink-soft); }
.ev-mic { width: 26px; height: 26px; border-radius: 50%; background: var(--blush); position: relative; flex: none; }
.ev-mic::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--mocha); }
.exp-view.active .ev-mic { animation: glow 1.4s 1s ease-in-out infinite; }
.ev-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 22px; }
.ev-wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--linen); }
.ev-wave i:nth-child(3n) { height: 70%; } .ev-wave i:nth-child(4n+1) { height: 50%; } .ev-wave i:nth-child(5n+2) { height: 90%; }
.exp-view.active .ev-rec .ev-wave i { animation: wave 1s ease-in-out infinite alternate; background: var(--taupe); }
.exp-view.active .ev-rec .ev-wave i:nth-child(2n) { animation-delay: -.4s; }
.exp-view.active .ev-rec .ev-wave i:nth-child(3n) { animation-delay: -.7s; }
@keyframes wave { from { transform: scaleY(.4); } to { transform: scaleY(1.1); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 207, 194, .9); } 50% { box-shadow: 0 0 0 8px rgba(232, 207, 194, 0); } }

.ev-msg { background: #fff; border: 1px solid var(--sand); border-radius: 14px; padding: 10px 13px; margin-bottom: 8px; font: italic 400 16px/1.3 var(--serif); opacity: 0; transform: translateY(8px); }
.ev-msg small { display: block; font: 400 10px var(--sans); letter-spacing: .08em; color: var(--taupe); margin-top: 5px; font-style: normal; }
.ev-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-voice small { width: 100%; margin-top: 0; }
.ev-play { width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); position: relative; flex: none; }
.ev-play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--mocha); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.exp-view.active .ev-msg { animation: toast .6s var(--ease) forwards; }
.exp-view.active .ev-msg:nth-child(4) { animation-delay: .3s; }
.exp-view.active .ev-msg:nth-child(5) { animation-delay: .6s; }
.exp-view.active .ev-msg:nth-child(6) { animation-delay: .9s; }

/* ---------- proceso ---------- */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--taupe) 0 6px, transparent 6px 12px); opacity: .6; }
.step { text-align: center; position: relative; }
.step-n { width: 68px; height: 68px; margin: 0 auto 26px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--linen); display: grid; place-items: center; font: italic 400 24px var(--serif); color: var(--mocha); position: relative; }
.step h3 { font-size: 28px; margin-bottom: 10px; font-weight: 400; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(180, 160, 138, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 50px 28px 0; font: 400 clamp(22px, 2.2vw, 27px)/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 300 30px var(--serif); color: var(--taupe); transition: rotate .4s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: -8px 0 28px; color: var(--ink-soft); max-width: 680px; }

/* ---------- contacto ---------- */
.contact-card {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px;
  background: var(--ivory); border-radius: 32px; padding: clamp(32px, 5vw, 70px);
  box-shadow: var(--shadow); border: 1px solid rgba(180, 160, 138, .2);
}
.contact-intro h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 18px; }
.contact-intro p:not(.eyebrow) { color: var(--ink-soft); }
.contact-ornament { width: 130px; margin-top: 40px; opacity: .9; }
@keyframes spin { to { rotate: 360deg; } }
.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: 300 17px var(--sans); color: var(--ink);
  background: var(--cream); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px;
  transition: border-color .3s, background .3s; resize: vertical; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--taupe); }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px !important; height: 18px; margin: 2px 0 0; padding: 0 !important; accent-color: var(--ink); flex: none; }
.consent a, .rgpd-info a { color: var(--mocha); }
.rgpd-info { margin: -4px 0 0; font-size: 12px; line-height: 1.55; color: var(--taupe); }
.rgpd-info b { font-weight: 500; color: var(--ink-soft); }
.form-status { margin: 0; font: italic 400 18px var(--serif); color: var(--mocha); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer .brand-mark { width: 64px; height: 64px; }
.footer .brand { flex-direction: column; gap: 6px; }
.footer { padding: 48px var(--gutter) 44px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.footer p { margin: 8px 0 0; font: italic 400 19px var(--serif); color: var(--ink-soft); }
.footer small { color: var(--taupe); font-size: 13px; }

/* ---------- páginas legales ---------- */
.legal-page .nav { position: sticky; }
.legal { max-width: 760px; margin: 0 auto; padding: 60px var(--gutter) 40px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.legal h2 { font-size: 27px; font-weight: 400; margin: 42px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal a { color: var(--mocha); }
.legal-updated { font-size: 14px !important; color: var(--taupe) !important; margin-top: 0; }
.legal-datos { list-style: none; padding: 18px 22px; border-radius: 16px; background: var(--ivory); border: 1px solid rgba(180, 160, 138, .3); }
.legal-datos li { margin: 4px 0; }
.legal-datos b, .legal li b { color: var(--ink); font-weight: 500; }
.pendiente { background: #F3D9C8; color: #8A4A2F; padding: 0 4px; border-radius: 4px; }
.footer small a { color: inherit; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feature { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 7px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; z-index: 60;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav-links a:not(.btn) { font: 300 32px var(--serif); }
  .nav-links.open { opacity: 1; pointer-events: auto; }

  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--taupe); }
  .hero-visual { min-height: 560px; }
  .exp { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .steps::before { display: none; }
  .contact-card { grid-template-columns: 1fr; gap: 30px; }
  .contact-ornament { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .projects { grid-template-columns: 1fr; }
  .feature { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; }
  .phone-hero { width: 240px; }
  .hero-visual { min-height: 500px; }
  .fc-1 { left: 0; top: 34%; }
  .fc-2 { right: 0; bottom: 8%; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .phone-exp { width: 260px; }
  .marquee span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
