/* ============ DOCSLEGALES — diseño minimalista ============ */
:root {
  --navy: #0d2240;
  --navy-2: #14315c;
  --ink: #1c2b3a;
  --muted: #5b6b7c;
  --gold: #ffb55c;
  --gold-deep: #d18a3d;
  --gold-soft: #fdf3e3;
  --bg: #ffffff;
  --tint: #f5f8fc;
  --line: #e4eaf1;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 34, 64, .08);
  --shadow-lg: 0 24px 60px rgba(13, 34, 64, .14);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-quote: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.container--narrow { width: min(760px, 92%); }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--primary {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 8px 24px rgba(255, 181, 92, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 181, 92, .45); }
.btn--ghost {
  border: 1.5px solid var(--line); color: var(--navy); background: #fff;
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--navy); }

/* ============ HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(13, 34, 64, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 4px 24px rgba(13,34,64,.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.header__logo { display: flex; align-items: center; gap: .75rem; }
.header__logo img { width: 42px; height: auto; }
.logo__text { display: grid; line-height: 1.2; }
.logo__text strong {
  color: var(--gold); font-size: 1.22rem; font-weight: 700; letter-spacing: .01em;
}
.logo__text small {
  color: rgba(255,255,255,.75); font-size: .72rem; font-weight: 500; letter-spacing: .08em;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.85);
  position: relative; padding: .3rem 0;
  transition: color .25s ease;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transition: width .3s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 50px;
  background: linear-gradient(180deg, #e8f0fa 0%, #f6f9fd 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: float 14s ease-in-out infinite alternate;
}
.blob--1 { width: 480px; height: 480px; background: #c7dbf2; top: -160px; right: -120px; }
.blob--2 { width: 380px; height: 380px; background: var(--gold-soft); bottom: -140px; left: -100px; animation-delay: -7s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
  background: var(--gold-soft); padding: .4rem 1rem; border-radius: 999px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1; color: var(--navy);
  margin: 1.2rem 0 1rem;
}
.hero__title em { font-style: normal; color: var(--gold-deep); }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted);
  max-width: 540px; margin: 0 0 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3.2rem);
  margin-top: 3rem; flex-wrap: wrap;
}
.stat { text-align: left; }
.stat strong {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: 1.9rem; color: var(--navy); display: block;
}
.stat strong::after { content: "+"; color: var(--gold-deep); }
.stat span { font-size: .85rem; color: var(--muted); }

/* foto del hero */
.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform .5s ease;
}
.hero__media:hover .hero__photo { transform: rotate(0deg) scale(1.01); }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, rgba(13, 34, 64, .15) 100%);
}
.hero__photo img {
  width: 100%; height: clamp(340px, 42vw, 520px); object-fit: cover;
}
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold); border-radius: 26px; z-index: -1;
  opacity: .5;
}
.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; color: var(--navy);
  font-size: .86rem; font-weight: 600;
  padding: .75rem 1.2rem; border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.hero__badge svg { color: #1ea55b; flex-shrink: 0; }

/* entrada del hero */
.anim { opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.anim--1 { animation-delay: .05s; } .anim--2 { animation-delay: .15s; }
.anim--3 { animation-delay: .3s; }  .anim--4 { animation-delay: .45s; }
.anim--5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ SECCIONES ============ */
.section { padding: 90px 0; }
.section__eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep); text-align: center;
}
.section--dark .section__eyebrow { color: var(--gold); }
.section__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--navy);
  text-align: center; margin: .5rem 0 1rem;
}
.section__sub { text-align: center; color: var(--muted); margin-bottom: 1rem; }
.section__cta { text-align: center; margin-top: 3rem; }

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

/* ============ CARDS ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep);
  margin-bottom: 1.2rem; transition: transform .35s ease;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.1) rotate(-4deg); }
.card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: .5rem; }
.card p { font-size: .93rem; color: var(--muted); }

/* ============ CHIPS ============ */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2.4rem; }
.chip {
  background: #fff; border: 1px solid var(--line);
  padding: .6rem 1.2rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.chip--accent { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.chip--accent:hover { border-color: var(--gold); }

/* ============ PASOS ============ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; margin-top: 2.8rem;
  counter-reset: step;
}
.step {
  position: relative; text-align: center; padding: 1rem;
}
.step__num {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  position: relative; z-index: 1;
  transition: transform .3s ease, background .3s ease;
}
.step:hover .step__num { transform: scale(1.12); background: var(--gold); color: var(--navy); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 29px; left: calc(50% + 40px);
  width: calc(100% - 80px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.step h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ============ POR QUÉ (sección oscura) ============ */
.section--dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.section--dark .section__title { color: #fff; }
.why { text-align: center; padding: 1rem; }
.why__icon {
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 16px;
  background: rgba(255,255,255,.08); color: var(--gold);
  transition: transform .3s ease, background .3s ease;
}
.why__icon svg { width: 26px; height: 26px; }
.why:hover .why__icon { transform: translateY(-4px); background: rgba(233,162,59,.18); }
.why h3 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.why p { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ============ TESTIMONIOS ============ */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quote__stars { color: var(--gold-deep); letter-spacing: .2em; margin-bottom: .9rem; }
.quote blockquote {
  font-family: var(--font-quote); font-style: italic;
  font-size: 1.05rem; color: var(--ink); margin-bottom: 1rem;
}
.quote figcaption { font-size: .88rem; font-weight: 600; color: var(--muted); }
.quote figcaption::before { content: "— "; color: var(--gold); }

/* ============ FAQ ============ */
.faq { margin-top: 2.4rem; display: grid; gap: .8rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: box-shadow .3s ease;
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600; color: var(--navy); font-size: .98rem;
  position: relative; user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--gold-deep);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .93rem; }

/* ============ CONTACTO ============ */
.contact {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem;
  margin-top: 2.8rem; align-items: stretch;
}
.contact__info { display: grid; gap: 1rem; align-content: start; }
.contact__row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact__row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.contact__row svg { color: var(--gold-deep); flex-shrink: 0; }
.contact__row strong { display: block; color: var(--navy); font-size: .98rem; }
.contact__row small { color: var(--muted); font-size: .84rem; }
.contact__map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 320px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding: 70px 0 40px;
}
.footer__brand img { width: 150px; margin-bottom: 1rem; }
.footer__brand p { font-size: .9rem; max-width: 280px; }
.footer__nav { display: grid; gap: .6rem; align-content: start; }
.footer__nav strong {
  color: #fff; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .4rem;
}
.footer__nav a { font-size: .92rem; transition: color .25s ease, transform .25s ease; }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0; font-size: .84rem; text-align: center;
}

/* ============ BOTÓN FLOTANTE ============ */
.fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 12px 30px rgba(255,181,92,.5);
  animation: pulse 2.6s ease-in-out infinite;
  transition: transform .25s ease;
}
.fab:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(255,181,92,.5), 0 0 0 0 rgba(255,181,92,.4); }
  50%      { box-shadow: 0 12px 30px rgba(255,181,92,.5), 0 0 0 14px rgba(255,181,92,0); }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .stat { text-align: center; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__badge { left: 50%; transform: translateX(-50%); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .section { padding: 64px 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .burger { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .6rem 4%;
    transform: translateY(-130%); opacity: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
    box-shadow: 0 30px 60px rgba(13,34,64,.35);
  }
  .nav.is-open { transform: none; opacity: 1; }
  .nav a:not(.btn) { padding: .9rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__cta { margin: .9rem .4rem 1rem; justify-content: center; }
}

/* ============ ACCESIBILIDAD ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .anim, .reveal { opacity: 1; transform: none; }
}
