/* =============================================================
   Santuario del Amor — styles.css
   Concepto: "el hilo rojo del destino". Sin fotos: todo es SVG/CSS
   para que la página cargue al instante en cualquier celular.
   ============================================================= */

/* 1. Tokens ------------------------------------------------- */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 86%;
  ascent-override: 92%;
}

:root {
  --bg:        #120b0f;
  --bg-2:      #190f15;
  --card:      #1d1219;
  --cream:     #f4e9dc;
  --cream-2:   #dccbbb;
  --cream-3:   #a8958a;
  --rose:      #e2475e;
  --rose-2:    #ff7a8e;
  --rose-deep: #9e2239;
  --gold:      #d8ad62;
  --gold-2:    #f0cf8f;
  --wa:        #25d366;
  --wa-ink:    #062b14;
  --line:      rgba(244, 233, 220, 0.12);

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --maxw: 1180px;
}

/* 2. Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: 84px; /* espacio para la barra fija en celular */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
em { font-style: italic; }
strong { color: var(--cream); font-weight: 600; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 72px; }

/* 3. Utilities --------------------------------------------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--cream); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* 4. Components -------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .25s, border-color .25s;
}
.btn-wa {
  background: var(--wa); color: var(--wa-ink);
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .55);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .7); }
.btn-wa:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: .5rem 1rem; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-lg .ico { width: 1.45em; height: 1.45em; }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: rgba(226, 71, 94, .6); background: rgba(226, 71, 94, .08); }
.ico-down { transform: rotate(90deg); width: 1em; height: 1em; }

/* Brillo que recorre los botones principales */
.btn-shine { overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5s 2.4s ease-in-out infinite;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

.h2 { font-size: clamp(2.15rem, 6vw, 3.7rem); }
.h2 em { color: var(--rose-2); }
.lead { margin-top: 1rem; font-size: 1.08rem; color: var(--cream-3); }

.section { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); }

/* 5. Topbar & nav ------------------------------------------ */
.topbar {
  background: linear-gradient(90deg, #7a1a33, var(--rose-deep) 50%, #7a1a33);
  color: #fde9ec;
  font-size: .8rem; text-align: center;
  padding: .45rem var(--gutter);
}
.topbar strong { color: #fff; }
.topbar .sep { opacity: .6; margin-inline: .25rem; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--wa); margin-right: .35rem; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
  animation: livePulse 2s infinite;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 11, 15, .95);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav {
    background: rgba(18, 11, 15, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }

.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 34px; height: 28px; overflow: hidden; }
.brand-mark path { fill: none; stroke: var(--rose); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--cream); line-height: 1; white-space: nowrap; }
.brand-name em { color: var(--rose-2); font-weight: 500; }

.nav-links { display: none; }

/* 6. Hero -------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: calc(100vh - 100px);
  min-height: calc(100svh - 100px);
  display: flex; align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 34%, rgba(226, 71, 94, .22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% 4%, rgba(216, 173, 98, .13), transparent 70%),
    radial-gradient(ellipse 60% 40% at 8% 100%, rgba(158, 34, 57, .28), transparent 70%);
}
.hero-sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 7% 16%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 42%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 27% 9%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 36% 28%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 44% 6%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 19%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 38%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 74% 12%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 92% 30%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 12% 70%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 88% 64%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 86%, #fff3e4 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 80% 88%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 3% 50%, #fff3e4 50%, transparent 52%),
    radial-gradient(1px 1px at 97% 48%, #fff3e4 50%, transparent 52%);
  opacity: .7;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.hero-moon {
  --moon: clamp(48px, 8vw, 104px);
  position: absolute; z-index: -1;
  top: 5%; right: 7%;
  width: var(--moon); height: var(--moon);
  border-radius: 50%;
  box-shadow: inset calc(var(--moon) * -0.2) calc(var(--moon) * 0.08) 0 0 #f3dcb3;
  filter: drop-shadow(0 0 22px rgba(243, 220, 179, .35));
  transform: rotate(-18deg);
  opacity: .85;
}

.hero-inner { position: relative; }
.hero-inner > * { animation: rise 1s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .26s; }
.hero-inner > :nth-child(5) { animation-delay: .36s; }
.hero-inner > :nth-child(6) { animation-delay: .46s; }

.thread { overflow: visible; }
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread-hero { width: min(100%, 620px); height: auto; margin: 0 auto clamp(.4rem, 2vw, 1rem); }
.thread-line { stroke: url(#g-thread); stroke-width: 2.6; }
.thread-glow { stroke: url(#g-thread); stroke-width: 11; opacity: .22; }
.thread-hero path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s .3s var(--ease-out) forwards; }
.soul { fill: var(--gold-2); opacity: 0; animation: fadeIn .9s 2.4s var(--ease-out) forwards; }
.soul-halo {
  fill: var(--gold); opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: fadeInHalo .9s 2.4s forwards, halo 3.2s 3.3s ease-in-out infinite;
}

.kicker {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-size: clamp(2.6rem, 9.4vw, 5.9rem);
  line-height: .98;
  max-width: 15ch;
  margin: .9rem auto 0;
}
.hero-title em {
  display: block;
  color: var(--rose-2);
  background: linear-gradient(92deg, var(--rose-2) 10%, var(--gold-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.hero-sub {
  max-width: 38rem; margin: 1.3rem auto 0;
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 2rem; }
.hero-actions .btn-lg { width: 100%; max-width: 400px; }
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem;
  margin-top: 1.8rem; font-size: .9rem; color: var(--cream-3);
}
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .ico { color: var(--gold); width: 1.1em; height: 1.1em; }

/* 7. Leyenda ----------------------------------------------- */
.legend { padding-block: clamp(3rem, 8vw, 6rem); text-align: center; border-top: 1px solid var(--line); }
.legend-text {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.6vw, 2.2rem);
  line-height: 1.38; font-weight: 500;
  color: var(--cream);
}
.legend-text em { color: var(--rose-2); }

/* 8. Casos ------------------------------------------------- */
.cases { display: grid; gap: .9rem; }
.case {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .15rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  transition: border-color .35s, background-color .35s, transform .5s var(--ease-out);
}
.case-num { grid-row: span 3; font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold); padding-top: .1rem; }
.case-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--cream); line-height: 1.15; }
.case-desc { font-size: .95rem; color: var(--cream-3); }
.case-go { margin-top: .45rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 650; color: var(--wa); }
.case-go .ico { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.case:active { background: rgba(226, 71, 94, .08); }

/* 9. Divisor (hilo que se dibuja) --------------------------- */
.divider { display: flex; justify-content: center; padding-block: .5rem; }
.divider svg { width: min(70%, 360px); height: auto; overflow: visible; }
.divider path { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }

/* 10. Trabajos --------------------------------------------- */
.services { display: grid; gap: 1rem; }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.7rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 71, 94, .17), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.service > * { position: relative; }
.service-ico {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-2);
  background: radial-gradient(circle at 30% 30%, rgba(226, 71, 94, .38), rgba(226, 71, 94, .07));
  border: 1px solid rgba(216, 173, 98, .35);
}
.service-ico .ico { width: 26px; height: 26px; }
.service h3 { font-size: 1.6rem; font-weight: 600; }
.service p { font-size: .96rem; color: var(--cream-3); }
.service-go { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .92rem; color: var(--wa); }
.service-go .ico { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.service > .badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(226, 71, 94, .16); color: var(--rose-2);
  border: 1px solid rgba(226, 71, 94, .4);
}

/* 11. Honestidad ------------------------------------------- */
.honest {
  padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(158, 34, 57, .3), transparent 70%);
  border-block: 1px solid var(--line);
}
.honest blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.25;
  color: var(--cream); max-width: 30ch; margin-inline: auto;
}
.honest blockquote strong { font-style: normal; color: var(--gold-2); }

/* 12. Proceso ---------------------------------------------- */
.steps { position: relative; display: grid; gap: 1.6rem; max-width: 1000px; margin-inline: auto; }
.steps::before {
  content: ""; position: absolute; left: 27.5px; top: 28px; bottom: 28px; width: 1px;
  background: linear-gradient(var(--rose), var(--gold)); opacity: .6;
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--rose);
  box-shadow: 0 0 0 6px rgba(226, 71, 94, .08), 0 0 30px rgba(226, 71, 94, .28);
}
.step h3 { font-size: 1.55rem; font-weight: 600; padding-top: .7rem; }
.step p { color: var(--cream-3); font-size: .98rem; margin-top: .35rem; }
.center-cta { text-align: center; margin-top: clamp(2.4rem, 5vw, 3.4rem); }

/* 13. Quién te atiende ------------------------------------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.arch {
  position: relative; overflow: hidden;
  width: min(100%, 380px); margin-inline: auto; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 170, 90, .32), transparent 40%),
    radial-gradient(circle at 50% 30%, rgba(226, 71, 94, .3), transparent 55%),
    linear-gradient(180deg, #2b1522 0%, #150b11 100%);
  border: 1px solid rgba(216, 173, 98, .38);
  box-shadow: 0 40px 80px -40px rgba(226, 71, 94, .5), inset 0 0 0 10px rgba(18, 11, 15, .55);
}
.arch-moon {
  position: absolute; top: 9%; left: 50%; width: 46px; height: 46px; margin-left: 40px;
  border-radius: 50%; box-shadow: inset -9px 4px 0 0 #f3dcb3; transform: rotate(-18deg); opacity: .8;
}
.arch-knot { position: absolute; top: 20%; left: 50%; width: 64%; transform: translateX(-50%); overflow: visible; }
.arch-knot path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.knot-line { stroke: var(--rose-2); stroke-width: 3.5; }
.knot-glow { stroke: var(--rose); stroke-width: 16; opacity: .2; }
.candle {
  position: absolute; left: 50%; bottom: 13%;
  width: 38px; height: 92px; margin-left: -19px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #d9c7a8, #fff4e2 45%, #c9b594);
}
.candle::before {
  content: ""; position: absolute; left: 50%; top: -10px;
  width: 2px; height: 11px; margin-left: -1px; border-radius: 2px; background: #3a2a20;
}
.candle::after {
  content: ""; position: absolute; left: 50%; bottom: -9px;
  width: 96px; height: 14px; margin-left: -48px; border-radius: 50%;
  background: linear-gradient(#caa45e, #6f4f24);
}
.flame {
  position: absolute; left: 50%; bottom: calc(100% + 5px);
  width: 18px; height: 38px; margin-left: -9px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse 50% 60% at 50% 72%, #fff 0 18%, #ffe29a 34%, #ff9b45 62%, rgba(255, 120, 50, 0) 74%);
  transform-origin: 50% 100%;
  animation: flicker 2.2s ease-in-out infinite;
}
.flame::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 80, .32), transparent 65%);
}
.about-text .eyebrow::before, .about-text .eyebrow::after { display: none; }
.about-text .h2 { margin-bottom: 1.2rem; }
.about-text p + p { margin-top: 1rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.9rem); color: var(--gold-2); line-height: 1; font-weight: 600; }
.stat > span { display: block; margin-top: .35rem; font-size: .84rem; line-height: 1.35; color: var(--cream-3); }

/* 14. Testimonios ------------------------------------------ */
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: .25rem var(--gutter) 1rem; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.6rem; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line);
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .ico { width: 16px; height: 16px; }
.t-card blockquote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--cream); }
.t-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: var(--bg);
  background: linear-gradient(135deg, var(--gold-2), var(--rose));
}
.t-name { display: block; color: var(--cream); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.t-place { display: block; font-size: .82rem; color: var(--cream-3); line-height: 1.3; }
.chip {
  margin-left: auto; font-size: .72rem; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid rgba(216, 173, 98, .38); color: var(--gold-2); white-space: nowrap;
}
.t-note { text-align: center; margin-top: 1.2rem; font-size: .85rem; color: var(--cream-3); }
.swipe-hint { display: block; color: var(--gold); margin-bottom: .3rem; }

/* 15. Ciudades (marquesina) -------------------------------- */
.cities { padding-block: clamp(2.8rem, 7vw, 4.5rem); border-block: 1px solid var(--line); background: var(--bg-2); }
.cities-title {
  text-align: center; padding-inline: var(--gutter); margin-bottom: 1.5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; flex: none; }
.marquee-track li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.6vw, 2.3rem); color: var(--cream);
}
.marquee-track li::after { content: "✦"; font-style: normal; font-size: .7rem; color: var(--rose); margin-inline: 1.4rem; }

/* 16. Preguntas -------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .3s, background-color .3s;
}
.faq details[open] { border-color: rgba(226, 71, 94, .45); background: rgba(226, 71, 94, .05); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.45rem); font-weight: 600; line-height: 1.25; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--sans); font-size: 1.2rem; font-weight: 400; color: var(--gold);
  transition: transform .45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.3rem 1.3rem; }
.faq details[open] .answer { animation: fadeIn .5s var(--ease-out); }

/* 17. CTA final -------------------------------------------- */
.final { position: relative; isolation: isolate; overflow: clip; text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(226, 71, 94, .3), transparent 70%);
}
.final .h2 { font-size: clamp(2.4rem, 7.5vw, 5rem); max-width: 14ch; margin-inline: auto; }
.final p { max-width: 36rem; margin: 1.2rem auto 0; font-size: 1.1rem; }
.final .btn { margin-top: 2.2rem; }
.phone { display: block; margin-top: 1.1rem; font-size: .95rem; color: var(--cream-3); }
.phone a { color: var(--cream); font-weight: 600; border-bottom: 1px solid var(--rose); }

/* 18. Footer ----------------------------------------------- */
.footer { background: #0c070a; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; font-size: .92rem; color: var(--cream-3); }
.footer-grid { display: grid; gap: 2rem; }
.f-text { margin-top: 1rem; max-width: 30rem; }
.f-title { color: var(--cream); font-weight: 650; margin-bottom: .7rem; }
.footer-links { display: grid; gap: .45rem; }
.footer a:hover { color: var(--cream); }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; color: #8f7d73; }

/* 19. WhatsApp flotante, barra y burbuja ------------------- */
.float-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .4s var(--ease-out);
}
.float-btn .ico { width: 32px; height: 32px; }
.float-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--wa);
  animation: ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.float-btn:hover { transform: scale(1.08); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(12, 7, 10, .95);
  border-top: 1px solid var(--line);
  transition: transform .45s var(--ease-out);
}
.mobile-bar .btn { width: 100%; }
.mobile-bar.is-hidden { transform: translateY(110%); }

.wa-bubble {
  position: fixed; right: 16px; bottom: 90px; z-index: 61;
  width: min(300px, calc(100vw - 32px));
  padding: 1rem;
  border-radius: 18px 18px 6px 18px;
  background: #fbf4ec; color: #2a1a20;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7);
  animation: bubbleIn .6s var(--ease-out);
}
.wa-bubble p { font-size: .95rem; line-height: 1.45; padding-right: 1.6rem; }
.wa-bubble strong { color: #12070c; }
.bubble-close {
  position: absolute; top: 4px; right: 4px;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: #6b5560;
}
.bubble-close:hover { background: rgba(0, 0, 0, .06); }
.bubble-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-weight: 700; font-size: .92rem; color: #0f7a3c; }

/* 20. Efectos ---------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInHalo { to { opacity: .28; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .28; } 50% { transform: scale(1.9); opacity: .04; } }
@keyframes twinkle { from { opacity: .4; } to { opacity: .9; } }
@keyframes shine { 0% { transform: translateX(-120%); } 20%, 100% { transform: translateX(120%); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); } 70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  25% { transform: scale(.94, 1.06) rotate(1.5deg); }
  50% { transform: scale(1.04, .95) rotate(-2deg); }
  75% { transform: scale(.97, 1.04) rotate(1deg); }
}

/* Aparición al hacer scroll — solo se oculta si main.js cargó (clase .io) */
html.io .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
html.io .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

html.io .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
html.io .draw.is-visible path { stroke-dashoffset: 0; }

/* Hover solo en dispositivos con mouse */
@media (hover: hover) {
  .case:hover { border-color: rgba(226, 71, 94, .55); background: rgba(226, 71, 94, .07); transform: translateY(-3px); }
  .case:hover .case-go .ico, .service:hover .service-go .ico { transform: translateX(4px); }
  .service:hover { transform: translateY(-4px); border-color: rgba(216, 173, 98, .4); }
  .service:hover::before { opacity: 1; }
}

/* 21. Responsive ------------------------------------------- */
@media (max-width: 539px) {
  .hide-xs { display: none; }
}
@media (max-width: 379px) {
  .brand-name { font-size: 1.12rem; }
  .brand-mark { width: 28px; height: 24px; }
  .btn-sm span { display: none; }
  .btn-sm { width: 42px; padding: 0; }
}

@media (min-width: 540px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn-lg { width: auto; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .float-btn { display: grid; }
  .wa-bubble { right: 24px; bottom: 100px; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .t-track { grid-auto-columns: 46%; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; gap: 1.8rem; font-size: .92rem; }
  .nav-links a { position: relative; color: var(--cream-2); transition: color .25s; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
    background: var(--rose); transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-out);
  }
  .nav-links a:hover { color: var(--cream); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

  .cases { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps::before { left: 16.6%; right: 16.6%; top: 28px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--rose), var(--gold)); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step h3 { padding-top: 0; }

  .about { grid-template-columns: .9fr 1.1fr; }

  .t-track {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; margin-inline: 0; padding: 0;
  }
  .swipe-hint { display: none; }
}

@media (min-width: 1280px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}

/* 22. Movimiento reducido: solo se apagan los efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sky::before, .float-btn::before, .btn-shine::after, .live-dot, .soul-halo { animation: none; }
  .marquee-track { animation-duration: 120s; }
  .thread-hero path { animation-duration: .9s; animation-delay: 0s; }
}
