/* Micrositio EMBASADORES: estética de las placas de @doctia.com.ar, solo celular. */
@font-face { font-family: Manrope; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --paper: #0a1119;
  --card: #1a2533;
  --ink: #e8f0f8;
  --muted: #bccada;
  --line: #33455a;
  --accent: #9fcdf2;
  --blue: #3676b2;
  --gold: #f5d27a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(22px, 6vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main, .hero { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: normal; color: var(--accent); }
a { color: inherit; }

/* Fondo: auroras que derivan lento, como el brillo de las placas. */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; filter: blur(60px); opacity: .55; }
.aurora i:nth-child(1) { left: -45vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(54, 118, 178, .55), transparent); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -50vmax; top: 30vh; background: radial-gradient(closest-side, rgba(54, 118, 178, .32), transparent); animation: drift 24s ease-in-out -6s infinite alternate-reverse; }
.aurora i:nth-child(3) { left: -30vmax; bottom: -60vmax; background: radial-gradient(closest-side, rgba(159, 205, 242, .16), transparent); animation: drift 30s ease-in-out -12s infinite alternate; }
@keyframes drift { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--blue), var(--accent)); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 22px) var(--pad) 28px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-top img { width: 104px; }
.chip { padding: 6px 12px; border: 1px solid rgba(159, 205, 242, .45); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); background: rgba(159, 205, 242, .06); }

.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 12px; }
.mark { width: 74px; height: 74px; margin-bottom: 18px; fill: var(--accent); overflow: visible; filter: drop-shadow(0 0 22px rgba(159, 205, 242, .45)); }
.title { margin: 0; font-size: clamp(76px, 25vw, 112px); line-height: .95; font-weight: 800; letter-spacing: -5px; display: flex; }
.title em { display: flex; }
.tagline { margin: 18px 0 0; font-size: 24px; line-height: 1.22; font-weight: 700; letter-spacing: -.6px; }
.lead { margin: 18px 0 0; font-size: 17px; color: var(--muted); }
mark { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 58%, rgba(245, 210, 122, .42) 58%) no-repeat 0 0 / 100% 100%; padding: 0 2px; }

.scroll-cue { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Secciones ---------- */
section { padding: 64px var(--pad) 24px; }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0 0 18px; font-size: 36px; line-height: 1.08; font-weight: 700; letter-spacing: -1.4px; }
h3 { margin: 6px 0 8px; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; }
section p { color: var(--muted); }

.feature { margin-top: 44px; }
.num { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--accent); background: rgba(159, 205, 242, .1); border: 1px solid rgba(159, 205, 242, .22); }
.feature-text p { margin: 0; }

.shot { position: relative; margin: 22px 0 0; perspective: 900px; }
.shot-in {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(159, 205, 242, .06), 0 0 50px -12px rgba(54, 118, 178, .45);
}
.shot-in img { transform: translate3d(0, var(--par, 0px), 0) scale(1.08); }
.shot-tall .shot-in { max-height: 440px; }
.shot-tall img { width: 100%; }
.shot-tall .shot-in::before { content: ""; position: absolute; inset: auto 0 0; height: 70px; z-index: 1; background: linear-gradient(transparent, var(--card)); }
.shot-light .shot-in { background: #fff; }
/* Destello que barre la captura cuando termina de entrar. */
.shot-in::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); }

/* ---------- Reel ---------- */
.phone { position: relative; width: min(78vw, 330px); margin: 26px auto 0; aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #2a3a4e, #111a25); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 70px -10px rgba(54, 118, 178, .55); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #000; display: block; }
.sound { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 16px; border: 0; border-radius: 999px; font: 700 13px Manrope, sans-serif; color: #0a1119; background: rgba(232, 240, 248, .92); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.sound[aria-pressed="true"] { background: rgba(10, 17, 25, .7); color: var(--ink); }

/* ---------- Oxford ---------- */
.quote { margin: 18px 0 0; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.quote img { width: 100%; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.quote p { margin: 12px 2px 0; font-size: 15px; }
.source { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(159, 205, 242, .4); }

/* ---------- Obsequio ---------- */
.gift { padding-top: 80px; padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }
.gift-card {
  position: relative; isolation: isolate; padding: 36px 24px 28px; border-radius: 28px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, rgba(54, 118, 178, .45), transparent 70%), #121c28;
}
.gift-card::before { /* borde que gira */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--spin), var(--accent), var(--gold), var(--blue), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.gift-card .kicker { color: var(--gold); margin-top: 14px; }
.gift-card h2 { font-size: 34px; margin-bottom: 26px; }
.gift-card .big { display: block; margin-top: 4px; font-size: 64px; line-height: 1; letter-spacing: -3px; background: linear-gradient(90deg, var(--gold), #fff3cf, var(--accent), var(--gold)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; }
.gift-card .big small { font-size: 30px; letter-spacing: -1px; margin-right: 4px; }
@keyframes sheen { to { background-position: 300% 0; } }
.gift-icon { width: 58px; height: 58px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 18px rgba(245, 210, 122, .5)); }

.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 24px; border-radius: 18px; text-decoration: none;
  font-size: 19px; font-weight: 800; color: #0a1119;
  background: linear-gradient(180deg, #c3e2fa, var(--accent));
  box-shadow: 0 14px 34px -8px rgba(159, 205, 242, .65), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .2s var(--ease);
}
.cta:active { transform: scale(.97); }
.cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s var(--ease) 1s infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); opacity: 0; animation: spark 4s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 12%; top: 18%; }
.sparks i:nth-child(2) { left: 86%; top: 12%; animation-delay: .7s; }
.sparks i:nth-child(3) { left: 78%; top: 52%; animation-delay: 1.4s; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sparks i:nth-child(4) { left: 8%; top: 62%; animation-delay: 2.1s; }
.sparks i:nth-child(5) { left: 50%; top: 6%; animation-delay: 2.8s; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sparks i:nth-child(6) { left: 92%; top: 80%; animation-delay: 3.5s; }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.3) translateY(6px); } 40% { opacity: 1; transform: scale(1) translateY(-6px); } }

.foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; font-size: 12px; color: var(--muted); }
.foot img { width: 22px; }

.float-cta {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 30;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 16px; color: #0a1119;
  background: linear-gradient(180deg, #c3e2fa, var(--accent)); box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 30px -4px rgba(159, 205, 242, .6);
  transform: translate(-50%, 140%); transition: transform .6s var(--ease);
}
.float-cta.show { transform: translate(-50%, 0); }

/* ---------- Coreografía (solo con JS y movimiento permitido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .title span { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg); filter: blur(12px); animation: rise 1.1s var(--ease) forwards; }
  .js .title span:nth-child(1) { animation-delay: .45s; } .js .title span:nth-child(2) { animation-delay: .52s; }
  .js .title span:nth-child(3) { animation-delay: .59s; } .js .title span:nth-child(4) { animation-delay: .66s; }
  .js .title em span:nth-child(1) { animation-delay: .8s; } .js .title em span:nth-child(2) { animation-delay: .87s; }
  @keyframes rise { to { opacity: 1; transform: none; filter: none; } }

  .js .mark-a { animation: join-a 1.2s var(--ease) .1s both; }
  .js .mark-b { animation: join-b 1.2s var(--ease) .1s both; }
  @keyframes join-a { from { transform: translate(-40px, -10px); opacity: 0; } }
  @keyframes join-b { from { transform: translate(40px, 10px); opacity: 0; } }
  .js .mark { animation: glow 4s ease-in-out 1.4s infinite; }
  @keyframes glow { 50% { filter: drop-shadow(0 0 34px rgba(159, 205, 242, .8)); } }

  .js .hero-top, .js .tagline, .js .lead, .js .scroll-cue { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
  .js .hero-top { animation-delay: .2s; } .js .tagline { animation-delay: 1.05s; }
  .js .lead { animation-delay: 1.25s; } .js .scroll-cue { animation-delay: 1.8s; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .js mark { background-size: 0% 100%; animation: marker .9s var(--ease) 2s forwards; }
  @keyframes marker { to { background-size: 100% 100%; } }

  .js .reveal { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }

  /* Las capturas entran inclinadas en 3D y se apoyan planas. */
  .js .tilt > :first-child { opacity: 0; transform: rotateX(24deg) translateY(70px) scale(.9); transform-origin: 50% 100%; filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
  .js .tilt.in > :first-child { opacity: 1; transform: none; filter: none; }
  .js .phone.tilt { opacity: 0; transform: perspective(900px) rotateY(-28deg) rotateX(10deg) scale(.86); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
  .js .phone.tilt.in { opacity: 1; transform: none; }
  .js .phone.tilt > :first-child { opacity: 1; transform: none; filter: none; }
  .js .tilt.in .shot-in::after { animation: sweep 1.3s var(--ease) .9s; }
  @keyframes sweep { to { transform: translateX(120%); } }

  .js .reveal-gift { opacity: 0; transform: scale(.82) translateY(40px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.2s cubic-bezier(.34, 1.56, .64, 1), filter 1s var(--ease); }
  .js .reveal-gift.in { opacity: 1; transform: none; filter: none; }
  .js .reveal-gift .gift-icon { transform: translateY(-30px) rotate(-14deg) scale(.4); opacity: 0; transition: transform 1s cubic-bezier(.34, 1.56, .64, 1) .35s, opacity .6s .35s; }
  .js .reveal-gift.in .gift-icon { transform: none; opacity: 1; animation: bob 3s ease-in-out 1.6s infinite; }
  @keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
