/* =========================================================
   PreparaGACE · Hoja de estilos
   Paleta: azul institucional + acento ámbar
   ========================================================= */

:root {
  --navy: #0f2a4a;
  --navy-700: #163a63;
  --blue: #1f5fbf;
  --blue-600: #2b6fd6;
  --amber: #f5a623;
  --amber-600: #e2941a;
  --ink: #16202e;
  --muted: #5b6b7f;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --bg-soft: #eef3fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, .06), 0 2px 8px rgba(15, 42, 74, .06);
  --shadow-md: 0 10px 30px rgba(15, 42, 74, .12);
  --shadow-lg: 0 24px 60px rgba(15, 42, 74, .18);
  --maxw: 1120px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 .6rem;
}
.hl { color: var(--amber-600); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  padding: .72rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31, 95, 191, .3); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(31, 95, 191, .36); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--navy); border-color: #cfdcef; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f5fb; color: var(--navy); }
.btn-lg { padding: .92rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue); }
.brand-mark { display: inline-flex; line-height: 0; }
.brand-mark svg { border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 42, 74, .18); }
.brand-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.brand-text strong { color: var(--blue); font-weight: 700; }

.main-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--navy); font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: var(--blue); }
.nav-menu .btn { color: #fff; }
.nav-menu .btn-ghost { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 95, 191, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-content .lead { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.8rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }

/* Tarjeta flotante del hero */
.hero-card { position: relative; }
.card-glow {
  position: absolute; inset: -20px -10px;
  background: radial-gradient(closest-side, rgba(245, 166, 35, .35), transparent);
  filter: blur(30px); z-index: 0;
}
.progress-card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.progress-title { font-weight: 700; color: var(--navy); margin: 0 0 1rem; }
.progress-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.bar { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 1.1rem; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); border-radius: 999px; }
.progress-foot { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--navy); font-weight: 600; }
.progress-foot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 166, 35, .2); }

/* ---------- Strip ---------- */
.strip { background: var(--navy); color: #cdd9ea; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; text-align: center; padding: .9rem 0; font-size: .95rem; }
.strip-inner strong { color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Features */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--bg-soft); color: var(--blue);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.feature p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700;
  margin-bottom: 1rem;
}
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Pricing */
.pricing .plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink); font-size: .78rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 999px; letter-spacing: .02em;
}
.plan-price { font-family: var(--font-head); font-size: 2.4rem; color: var(--navy); margin: .4rem 0 .2rem; }
.plan-price span { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-desc { color: var(--muted); min-height: 3em; }
.plan-list { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .6rem; }
.plan-list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: .96rem; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.4rem; }

/* Quotes */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin: 0; }
.stars { color: var(--amber); letter-spacing: .1em; margin-bottom: .8rem; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--navy); }
.quote figcaption span { color: var(--muted); font-size: .88rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy), var(--blue));
  display: grid; place-items: center; color: rgba(255,255,255,.7);
  text-align: center; font-weight: 600; box-shadow: var(--shadow-md);
}
.about-list { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .6rem; }
.about-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.about-list li::before { content: "→"; position: absolute; left: 0; color: var(--amber-600); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .4rem 1.2rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  padding: .8rem 0; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 .9rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; }
.social { display: flex; gap: 1rem; margin-top: 1rem; }
.social a { font-weight: 600; font-size: .92rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .98rem; color: var(--ink);
  background: #fdfefe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .14); }
.field input.invalid, .field textarea.invalid { border-color: #d4463f; }
.error { display: block; color: #d4463f; font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.checkbox input { margin-top: .25rem; }
.form-status { text-align: center; font-size: .95rem; margin: 1rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #1a8a4a; }
.form-status.err { color: #d4463f; }

/* CTA final */
.cta-final { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.cta-inner { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-final h2 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-inner p { color: rgba(255,255,255,.86); max-width: 46ch; margin: 0 auto 1.6rem; }

/* Footer */
.site-footer { background: var(--navy); color: #aebdd2; padding: 3rem 0 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text strong { color: var(--amber); }
.footer-brand p { max-width: 34ch; margin: .6rem 0 0; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer-nav a { color: #cdd9ea; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.2rem; font-size: .85rem; color: #8699b4; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 24px 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: .6rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
