/* ===== Variables de marca ===== */
:root {
  --blue: #0236b3;
  --blue-dark: #012a8a;
  --navy: #00173c;
  --yellow: #ffcc00;
  --soft: #f4f7fd;
  --text: #5b6474;
  --heading: #0b1b3f;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 54, 179, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--text); line-height: 1.7; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
p + p { margin-top: 1rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; margin-bottom: 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem;
}
.eyebrow--light { color: var(--yellow); }
.hl { color: var(--blue); position: relative; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; font-weight: 600;
  padding: 14px 28px; border-radius: 50px; margin-top: 1.5rem;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2, 54, 179, .25); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #1ebe5a; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #fff; }

/* ===== Topbar ===== */
.topbar { background: var(--navy); color: #c9d3e8; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 16px; }
.topbar__info { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar__info i { color: var(--yellow); margin-right: 6px; }
.topbar a:hover { color: #fff; }

.social { display: flex; gap: 10px; }
.social a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s;
}
.social a:hover { background: var(--blue); color: #fff; }
.social--dark a { background: #eaf0ff; color: var(--blue); }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 23, 60, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo img { width: 170px; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; color: var(--heading); }
.nav > a:not(.btn) { position: relative; padding: 4px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--yellow); transition: width .25s;
}
.nav > a:not(.btn):hover::after { width: 100%; }
.nav__cta { margin-top: 0; padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--blue); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 204, 0, .18), transparent 40%),
    linear-gradient(135deg, #eef3ff 0%, #fff 60%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-top: 32px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__actions .btn { margin-top: 0; }
.hero__stats { display: flex; gap: 36px; margin-top: 32px; padding-bottom: 32px; }
.hero__stats strong { display: block; color: var(--blue); font-size: 1.6rem; font-weight: 700; }
.hero__stats span { font-size: .85rem; }
.hero__img { position: relative; justify-self: center; }
.hero__img > img { max-height: 620px; width: auto; }

.badge-card {
  position: absolute; left: -30px; bottom: 60px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow);
  max-width: 300px; animation: float 4s ease-in-out infinite;
}
.badge-card strong { display: block; color: var(--heading); font-size: .95rem; line-height: 1.3; }
.badge-card span { font-size: .8rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Split (Nosotros / Estética) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__img { position: relative; justify-self: center; }
.exp-badge {
  position: absolute; right: -20px; bottom: 40px;
  background: var(--blue); color: #fff; padding: 20px 24px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow); border: 4px solid var(--yellow);
}
.exp-badge strong { display: block; font-size: 2.6rem; line-height: 1; }
.exp-badge span { font-size: .85rem; }

.video { margin-top: 28px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.video iframe { width: 100%; height: 100%; border: 0; }

.checks { margin-top: 1.25rem; display: grid; gap: 8px; }
.checks i { color: var(--blue); margin-right: 8px; }
.split > * { min-width: 0; } /* evita que el widget empuje la grilla y se corte en móvil */
.widget { width: 100%; max-width: 560px; justify-self: center; overflow: hidden; border-radius: var(--radius); }
.widget > div, .widget iframe { max-width: 100% !important; }

/* ===== Servicios ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-bottom: 4px solid transparent; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.card__icon {
  width: 76px; height: 76px; border-radius: 50%; background: #eaf0ff;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--blue); font-size: 2rem;
}
.card__icon img { width: 48px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }

/* ===== CTAs ===== */
/* Fondo sólido: las fotos traen su propio azul (#0236b3) en los bordes */
.cta { background: var(--blue); color: #fff; overflow: hidden; }
.cta h2 { color: #fff; max-width: 520px; }
.cta__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 32px; padding-top: 40px; }
.cta__inner > div { padding-bottom: 40px; align-self: center; }
.cta__inner > img { max-height: 420px; width: auto; justify-self: center; }
.cta--alt .cta__inner { grid-template-columns: .8fr 1.2fr; }

/* ===== Footer ===== */
.footer { background: #fff; color: var(--text); border-top: 1px solid #e6ebf5; padding-top: 36px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px 40px; padding-bottom: 24px; }
.footer__brand img { width: 140px; margin-bottom: 8px; }
.footer__brand p { max-width: 340px; }
.footer h3 { color: var(--heading); font-size: 1rem; margin-bottom: 8px; }
.footer .social { margin-top: 12px; }
.footer__list { display: grid; gap: 6px; font-style: normal; }
.footer__list i { color: var(--blue); width: 18px; }
.footer__list a:hover { color: var(--blue); }
.footer__bottom { border-top: 1px solid #e6ebf5; padding: 14px 0; text-align: center; font-size: .85rem; }
.footer__bottom a { color: var(--blue); font-weight: 600; }
.heart { color: #ff4d6d; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 12px 24px rgba(0, 23, 60, .1); padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid #eef1f7; }
  .nav__cta { margin-top: 14px; justify-content: center; }

  .hero__inner, .split, .cta__inner, .cta--alt .cta__inner { grid-template-columns: 1fr; }
  .hero__text, .cta__inner > div { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__stats { padding-bottom: 0; }
  .hero__img > img { max-height: 460px; }
  .badge-card { left: 0; bottom: 30px; }
  .cta h2 { margin-inline: auto; }
  .cta--alt .cta__inner > img { order: 2; }
  .cta__inner > div { padding-bottom: 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar__info li:nth-child(2) { display: none; }
  .topbar__info { gap: 14px; }
  .topbar .social { display: none; }
  .services { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .exp-badge { right: 0; }
  .badge-card { position: relative; left: auto; bottom: auto; margin: -40px auto 0; }

  /* Footer compacto */
  .footer { padding-top: 24px; font-size: .85rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 16px; text-align: center; }
  .footer__brand p { display: none; }
  .footer__brand img { margin-inline: auto; }
  .footer .social { justify-content: center; margin-top: 4px; }
  .footer h3 { display: none; }
  .footer__list { justify-items: center; gap: 4px; }
  .footer__bottom { padding: 12px 0 84px; }
}

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