/* ===================================================================
   ACTIVETORO · Hoja de estilos
   Diseño accesible para +55: tipografía grande, alto contraste,
   objetivos de clic amplios y movimiento suave.
   =================================================================== */

:root {
  /* Paleta */
  --navy:        #0B2440;
  --navy-deep:   #081A30;
  --navy-soft:   #13355c;
  --green:       #0FA85F;
  --green-dark:  #0B8E50;
  --gold:        #E8B23A;
  --ink:         #10202E;
  --muted:       #4A5B6B;
  --line:        #E1E8EF;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F8FB;
  --white:       #FFFFFF;

  /* Tipografía grande de base para +55 */
  --fs-base: 1.25rem;     /* 20px */
  --fs-lg:   1.5rem;      /* 24px */
  --lh:      1.65;

  --radius:   18px;
  --radius-lg: 28px;
  --shadow:   0 10px 30px rgba(11, 36, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 36, 64, 0.18);
  --container: 1200px;
  --space:    clamp(4rem, 8vw, 7rem);
  --ticker-h: 46px;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ticker-h) + 76px); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { max-width: 820px; }

/* ----------------------- Accesibilidad --------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 1rem 1.5rem; border-radius: 0 0 12px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----------------------------- Botones --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 1.2rem; line-height: 1;
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 3px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 60px;
}
.btn-lg { font-size: 1.3rem; padding: 1.2rem 2.3rem; min-height: 66px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(15,168,95,.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,168,95,.45); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: .6rem 0;
}

/* ---------------------- Ticker de cotizaciones ------------------- */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ticker-h); z-index: 200;
  background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; overflow: hidden;
}
.ticker-track { display: flex; flex-wrap: nowrap; width: max-content; animation: ticker-scroll 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.4rem;
  font-size: 1rem; font-weight: 600; color: #C6D5E4; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ticker-sym { color: #fff; font-weight: 700; }
.ticker-price { color: #EAF1F8; font-variant-numeric: tabular-nums; }
.ticker-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker-chg.up { color: #36D07F; }
.ticker-chg.down { color: #FF6B6B; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(11,36,64,.10); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.6rem; font-weight: 700; color: #fff; }
.logo-mark { display: inline-flex; color: var(--gold); }
.logo-mark svg { display: block; width: 34px; height: 34px; }
.logo-text strong { color: var(--gold); }
.site-header.scrolled .logo { color: var(--navy); }
.logo-light { color: #fff; }

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: 1.05rem;
  padding: .6rem .8rem; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-list a:hover { background: rgba(255,255,255,.18); }
.site-header.scrolled .nav-list a { color: var(--navy); }
.site-header.scrolled .nav-list a:hover { background: var(--bg-alt); }
.nav-cta { background: var(--green); color: #fff !important; white-space: nowrap; }
.nav-cta:hover { background: var(--green-dark) !important; }
/* Acceso de clientes existentes → panel.activetoro.com (secundario, borde) */
.nav-login { border: 1.6px solid rgba(255,255,255,.55); white-space: nowrap; margin-left: .3rem; }
.nav-login:hover { background: rgba(255,255,255,.18); }
.site-header.scrolled .nav-login { border-color: rgba(11,36,64,.30); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 12px; }
.nav-toggle span { width: 30px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 8rem 0 4rem;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: -2; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,48,.55) 0%, rgba(8,26,48,.35) 40%, rgba(8,26,48,.85) 100%),
    linear-gradient(90deg, rgba(8,26,48,.75) 0%, rgba(8,26,48,.15) 70%);
}
/* Respaldo visual mientras carga / si no hay vídeo */
.hero-video-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 20% 20%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}

.hero-content { max-width: 760px; position: relative; }
.hero-eyebrow {
  display: inline-block; background: rgba(232,178,58,.22); color: var(--gold);
  border: 2px solid rgba(232,178,58,.5); padding: .5rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 1.4rem;
}
.hero-title { margin-bottom: 1.2rem; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero-subtitle { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: #EAF1F8; max-width: 640px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.hero-login { color: #EAF1F8; font-size: 1.1rem; font-weight: 500; margin: 0 0 2.2rem; }
.hero-login a { color: var(--gold); font-weight: 700; text-decoration: none; }
.hero-login a:hover { text-decoration: underline; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 0; padding: 0; font-size: 1.15rem; font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust span { color: var(--green); font-size: 1.4rem; }

.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 34px; height: 56px; border: 3px solid rgba(255,255,255,.6); border-radius: 20px; display: flex; justify-content: center; }
.scroll-hint span { width: 6px; height: 12px; background: #fff; border-radius: 6px; margin-top: 10px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ----------------------- Tira de estadísticas -------------------- */
.logos-strip { background: var(--navy); color: #fff; padding: 2.6rem 0; }
.logos-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 1.1rem; color: #C6D5E4; }

/* ----------------------------- Secciones ------------------------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.eyebrow { display: inline-block; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: .8rem; }
.eyebrow-light { color: var(--gold); }
.section-lead { font-size: var(--fs-lg); color: var(--muted); }

/* ----------------------------- Tarjetas -------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(15,168,95,.4); }
.card-icon { color: var(--green); margin-bottom: 1.1rem; line-height: 1; display: inline-flex; padding: .9rem; background: #E5F6EE; border-radius: 16px; }
.card-icon svg { width: 2.6rem; height: 2.6rem; display: block; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0; }

/* ------------------- Sección de vídeo en parallax ---------------- */
.feature-parallax { position: relative; color: #fff; padding: clamp(6rem, 14vw, 11rem) 0; overflow: hidden; text-align: center; }
.feature-parallax-bg { position: absolute; inset: 0; z-index: -2; }
.feature-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,48,.82), rgba(8,26,48,.7)); }
.feature-parallax-bg::before { content:""; position:absolute; inset:0; z-index:-1; background: var(--navy); }
.feature-parallax-content { max-width: 760px; margin: 0 auto; }
.feature-parallax-content h2 { color: #fff; }
.feature-parallax-content p { font-size: var(--fs-lg); color: #DCE7F1; margin-bottom: 2rem; }

/* ----------------------------- Pasos ----------------------------- */
.steps { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin: 0 0 3rem; padding: 0; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 2.6rem 2rem; box-shadow: var(--shadow); position: relative; border: 2px solid var(--line); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 1.2rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }
.center-cta { text-align: center; }

/* ----------------------------- Mercados -------------------------- */
.markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.market-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.market-card h3 { margin-bottom: .4rem; }
.market-card p { color: var(--muted); }
.market-tag { display: inline-block; font-weight: 700; font-size: 1rem; padding: .4rem 1rem; border-radius: 999px; }
.tag-soft { background: #E5F6EE; color: var(--green-dark); }
.tag-mid { background: #FBF1DA; color: #9a6b0c; }
.tag-high { background: #FBE3E0; color: #B23026; }
.market-icon { color: var(--green); margin-bottom: .9rem; display: inline-flex; align-self: flex-start; padding: .8rem; background: #E5F6EE; border-radius: 14px; }
.market-icon svg { width: 2.3rem; height: 2.3rem; display: block; }
.market-card { display: flex; flex-direction: column; }
.market-card .market-tag { align-self: flex-start; margin-top: .4rem; }

/* ----------------------------- Seguridad ------------------------- */
.section-dark { background: var(--navy); color: #fff; }
.security-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.security-text h2 { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2.2rem; display: grid; gap: 1rem; font-size: var(--fs-lg); }
.check-list li { display: flex; align-items: flex-start; gap: .8rem; color: #E4EDF6; }
.check-list span { color: var(--green); font-size: 1.5rem; flex-shrink: 0; }
.security-badge { display: flex; justify-content: center; }
.badge-circle {
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--navy-soft), var(--navy-deep));
  border: 4px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: var(--shadow-lg);
}
.badge-icon { display: inline-flex; color: var(--gold); }
.badge-icon svg { width: 4rem; height: 4rem; }
.badge-text { font-weight: 800; font-size: 1.3rem; color: var(--gold); margin-top: .4rem; }

/* ----------------------------- Opiniones ------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testimonial { background: var(--white); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow); border: 2px solid var(--line); margin: 0; }
.testimonial blockquote { margin: 0 0 1.4rem; font-size: 1.3rem; line-height: 1.5; }
.testimonial blockquote::before { content: "“"; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -0.4em; margin-right: .1em; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption strong { font-size: 1.2rem; }
.testimonial figcaption span { color: var(--muted); }

/* ----------------------------- FAQ ------------------------------- */
.faq-list { display: grid; gap: 1rem; }
.faq-item { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.5rem 1.8rem; font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 2rem; color: var(--green); line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.8rem 1.6rem; margin: 0; color: var(--muted); font-size: 1.2rem; }

/* ----------------------------- CTA final ------------------------- */
.section-cta { background: linear-gradient(160deg, var(--bg-alt), #E7F1F9); }
.cta-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); box-shadow: var(--shadow-lg); text-align: center; }
.cta-card > p { font-size: var(--fs-lg); color: var(--muted); margin-bottom: 2rem; }

/* ----------------------------- Formulario ------------------------ */
.contact-form { text-align: left; display: grid; gap: 1.3rem; max-width: 560px; margin: 0 auto; }
.form-row { display: flex; flex-direction: column; gap: .5rem; }
.contact-form label { font-weight: 700; font-size: 1.15rem; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  font: inherit; font-size: 1.2rem; padding: 1rem 1.1rem; border: 3px solid var(--line);
  border-radius: 14px; background: var(--bg-alt); color: var(--ink); transition: border-color .2s;
}
.contact-form input:focus { border-color: var(--green); outline: none; background: #fff; }
.checkbox-row { display: flex; align-items: flex-start; gap: .8rem; font-weight: 500; font-size: 1.05rem; color: var(--muted); }
.checkbox-row input { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.form-msg { font-weight: 700; margin: 0; min-height: 1.4em; }
.form-msg.ok { color: var(--green-dark); }
.form-msg.err { color: #c0392b; }

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--navy-deep); color: #C6D5E4; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { margin-top: 1rem; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-col a { text-decoration: none; color: #C6D5E4; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-legal { padding-top: 2rem; }
.risk-warning { font-size: 1rem; line-height: 1.6; color: #93A8BD; background: rgba(255,255,255,.04); padding: 1.2rem 1.4rem; border-radius: 12px; border-left: 4px solid var(--gold); }
.risk-warning strong { color: var(--gold); }
.copyright { font-size: 1rem; color: #7c92a8; margin: 1.2rem 0 0; }

/* ----------------------- Animación al revelar -------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards-grid .card:nth-child(2), .steps .step:nth-child(2), .testimonials .testimonial:nth-child(2) { transition-delay: .1s; }
.cards-grid .card:nth-child(3), .steps .step:nth-child(3), .testimonials .testimonial:nth-child(3) { transition-delay: .2s; }

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 980px) {
  .cards-grid, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; text-align: center; }
  .security-text .check-list { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --fs-base: 1.18rem; }
  /* Móvil: no descargar los vídeos pesados; el póster/gradiente basta */
  .hero-video, .feature-video { display: none; }
  .nav-toggle { display: flex; }
  .main-nav .nav-list {
    position: absolute; top: 100%; right: clamp(1rem, 4vw, 2rem); left: clamp(1rem, 4vw, 2rem);
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: #fff; border-radius: 18px; padding: 1rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
    max-height: calc(100svh - var(--ticker-h) - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav .nav-list.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list a { display: block; width: 100%; color: var(--navy) !important; font-size: 1.2rem; padding: .9rem 1rem; text-align: center; border-radius: 12px; }
  .nav-list li { width: 100%; }
  .nav-cta { color: #fff !important; border-radius: 12px; margin-top: .5rem; }
  .nav-login { border: 1.6px solid var(--navy) !important; }
  .logos-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards-grid, .steps, .markets-grid, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-actions .btn { width: 100%; }
  .ticker-track { animation-duration: 45s; }
}

/* Teléfonos estrechos: densidad de tipografía/espaciado */
@media (max-width: 430px) {
  :root { --fs-base: 1.08rem; --space: clamp(2.75rem, 12vw, 4rem); }
  h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero { padding: 6.5rem 0 3rem; }
  .hero-title br { display: none; }
  .btn-lg { font-size: 1.18rem; padding: 1.05rem 1.6rem; }
}

/* ------------------- Preferencia: menos movimiento --------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .ticker-track { animation: none !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .01s !important; }
}

/* ============================ Modal (lead / éxito) ============================ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 48, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal-dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; background: var(--white);
  max-width: 520px; width: calc(100% - 2rem);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-height: calc(100svh - 2rem); overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: modalIn .25s cubic-bezier(.2, .8, .3, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-close {
  position: absolute; top: .7rem; right: .9rem; background: none; border: 0;
  font-size: 2.3rem; line-height: 1; color: var(--muted); cursor: pointer;
  padding: .1rem .6rem; border-radius: 10px;
}
.modal-close:hover { color: var(--ink); background: var(--bg-alt); }
.modal-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .5rem; color: var(--navy); text-align: center; }
.modal-sub { color: var(--muted); text-align: center; margin: 0 auto 1.6rem; font-size: 1.1rem; max-width: 42ch; }
.modal .contact-form { max-width: 100%; margin: 0; }
.modal-dialog-success { text-align: center; }
.success-check {
  width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: rgba(15, 168, 95, .12); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.success-check svg { width: 44px; height: 44px; }
.modal-dialog-success .btn { margin-top: 1.6rem; }
/* Honeypot anti-spam: invisible para humanos, presente para bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
}
