:root {
  --navy: #0E1B2E;
  --navy-2: #16263D;
  --navy-3: #1E3450;
  --gold: #C9A45C;
  --gold-dark: #A9863D;
  --ink: #22314A;
  --muted: #5B6B84;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 27, 46, .10);
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 27, 46, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #179147; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,164,92,.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #122238 100%);
  color: #fff;
  padding: 84px 0 72px;
}
.eyebrow {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; margin-bottom: 14px;
}
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-visual img {
  border-radius: var(--radius); border: 1px solid rgba(201,164,92,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.3);
  width: 100%;
}
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.15; max-width: 820px; font-weight: 800; }
.hero .accent { color: var(--gold); }
.hero .lead { margin-top: 20px; font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; padding: 0; }
.hero-points li { color: rgba(255,255,255,.78); font-size: .95rem; padding-left: 22px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.hero-note { margin-top: 18px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: #EDF1F7; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); color: var(--navy); max-width: 760px; line-height: 1.2; }
.section-lead { margin-top: 14px; color: var(--muted); max-width: 640px; font-size: 1.05rem; }

.grid { display: grid; gap: 22px; margin-top: 42px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(14,27,46,.05);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FCF6EA, #F3E8D2);
  border: 1px solid rgba(201,164,92,.45);
  margin-bottom: 14px; color: var(--gold-dark);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 46px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 14px;
}
.steps h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .9rem; }

/* ---------- material adicional: reveal + hero anim ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-visual img { animation: floaty 7s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero-ctas, .hero-points, .hero-note, .hero .eyebrow { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .lead { animation-delay: .28s; }
.hero-ctas { animation-delay: .4s; }
.hero-points { animation-delay: .52s; }
.hero-note { animation-delay: .62s; }
.hero-visual { animation: rise .9s cubic-bezier(.2,.7,.2,1) .35s backwards; }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } .hero *{animation:none!important} }

/* ---------- lightbox (animado: fade + zoom de entrada, deslizamiento direccional dentro) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex;
  background: rgba(10, 21, 35, .92);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease;
}
.lightbox img {
  max-width: min(1500px, 92vw); max-height: 82vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid rgba(201,164,92,.4);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: scale(.78) translateY(26px); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open img { transform: none; opacity: 1; }
.lightbox .lb-cap { opacity: 0; transform: translateY(12px); transition: opacity .45s ease .08s, transform .45s cubic-bezier(.2,.7,.2,1) .08s; }
.lightbox.open .lb-cap { opacity: 1; transform: none; }
.lightbox .lb-cap { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 600; text-align: center; max-width: 70vw; }
.lightbox .lb-x {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.lightbox .lb-x:hover { background: var(--gold); color: var(--navy); }
.lightbox .lb-x svg { width: 20px; height: 20px; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; transition: .15s;
}
.lightbox .lb-nav:hover { background: var(--gold); color: var(--navy); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-nav svg { width: 22px; height: 22px; }

/* ---------- Capturas: carrusel con transición dirigida ---------- */
.carousel { position: relative; margin-top: 46px; }
.stage {
  position: relative; width: 100%; max-width: 920px; margin: 0 auto;
  aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background: #0A1523;
  border: 1px solid rgba(201,164,92,.5);
  box-shadow: 0 0 0 2px rgba(201,164,92,.28), 0 26px 70px rgba(14,27,46,.35);
  cursor: zoom-in;
  transition: box-shadow .4s ease;
}
.stage:hover { box-shadow: 0 0 0 2px rgba(201,164,92,.55), 0 30px 80px rgba(14,27,46,.45); }
.frame { position: absolute; inset: 0; opacity: 0; z-index: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.frame .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 22px 16px; color: #fff; font-size: .92rem; font-weight: 600;
  background: linear-gradient(to top, rgba(10,21,35,.88), transparent);
  pointer-events: none;
}
.frame.is-active { opacity: 1; z-index: 3; }
.stage .frame { transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s cubic-bezier(.2,.7,.2,1), filter .65s; }
.carousel-nav {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(14,27,46,.72); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s; z-index: 8;
}
.carousel-nav:hover { background: var(--gold); color: var(--navy); }
.carousel-nav:active { transform: translateY(-50%) scale(.92); }
.carousel-nav svg { width: 22px; height: 22px; }
.carousel-nav.prev { left: -6px; }
.carousel-nav.next { right: -6px; }
.carousel-cap {
  text-align: center; margin-top: 20px; min-height: 1.7em;
  color: var(--navy); font-weight: 600; font-size: .98rem;
}
.carousel-cap.swap { animation: cap-swap .5s cubic-bezier(.2,.7,.2,1); }
@keyframes cap-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.carousel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 18px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(14,27,46,.22); cursor: pointer; transition: .25s;
}
.carousel-dots button:hover { background: var(--gold-dark); }
.carousel-dots button.on { background: var(--gold-dark); transform: scale(1.4); }

/* ---------- Planes ---------- */
.plans { grid-template-columns: repeat(3, 1fr); }
.plan { text-align: center; padding: 34px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plan h3 { font-size: 1.25rem; }
.plan-desc { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.plan-featured { border: 2px solid var(--gold); position: relative; }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; border-radius: 999px;
}
.plans-alt { margin-top: 30px; text-align: center; color: var(--muted); }
.plans-alt a { color: var(--navy); font-weight: 700; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-final h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-final p { margin-top: 12px; color: rgba(255,255,255,.8); }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0A1523; color: rgba(255,255,255,.75); padding: 52px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.brand-mark-mini { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); margin-right: 6px; }
.footer strong { color: #fff; font-size: 1.1rem; }
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-contact p { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
}
@media (max-width: 600px) {
  .features, .plans, .steps { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 60px; }
  .section { padding: 60px 0; }
  .topbar-inner { justify-content: space-between; }
  .rail { padding: 10px 16px; scroll-padding-left: 16px; }
  .rail .shot { flex: 0 0 88vw; scroll-snap-align: center; }
  .carousel-nav.prev { left: 8px; }
  .carousel-nav.next { right: 8px; }
}
