/* =========================================================
   Rivas Consultants — Sistema de diseño
   Colores  : Blanco #FFFFFF · Azul marino #002E66 · Dorado #B8860B
   Tipografía: Montserrat (títulos) · Poppins (cuerpo)
   ========================================================= */

:root {
  --navy: #002E66;
  --navy-700: #012650;
  --navy-900: #011a38;
  --gold: #B8860B;
  --gold-soft: #d8a92a;
  --white: #FFFFFF;
  --ink: #1c2733;
  --muted: #5a6b7b;
  --line: #e7ebf0;
  --bg-soft: #f6f8fb;

  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(1, 26, 56, .06);
  --shadow-md: 0 12px 34px rgba(1, 26, 56, .10);
  --shadow-lg: 0 24px 60px rgba(1, 26, 56, .16);
  --header-h: 74px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; font-weight: 700; }
section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #eaf0f8; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.section-head--left { margin-inline: 0; text-align: left; }

.gold-rule { width: 62px; height: 3px; background: var(--gold); border-radius: 3px; margin: 18px auto 0; }
.section-head--left .gold-rule { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: all .25s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,134,11,.34); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 2px solid transparent;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--gold); }
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 52px; width: auto; }
.nav__logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.nav__logo-txt b { font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; letter-spacing: .01em; }
.nav__logo-txt span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav__menu a:hover { color: var(--gold); }
.nav__menu a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px;
  width: 42px; height: 42px;
}
.nav__toggle span { display: block; height: 2.5px; width: 24px; background: var(--navy); border-radius: 3px; margin: 5px auto; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Botón "Cotizar" del menú: más aire a los lados solo en computadora.
   Se escalona para que en laptops chicas no aplaste el logo ni el menú. */
@media (min-width: 861px) {
  .nav__logo { flex: none; }                 /* el logo nunca se comprime */
  .nav__menu > a { white-space: nowrap; }    /* los enlaces nunca se parten en 2 renglones */
  .nav__menu { gap: 24px; }
  .nav__menu .btn { padding-left: 52px; padding-right: 52px; }
}
@media (min-width: 1200px) {
  .nav__menu .btn { padding-left: 72px; padding-right: 72px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(0,25,58,.90) 0%, rgba(0,46,102,.78) 45%, rgba(0,46,102,.55) 100%);
}
.hero__inner { padding-top: calc(var(--header-h) + 30px); padding-bottom: 60px; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: .82rem; font-weight: 500; padding: 7px 15px; border-radius: 50px;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero__badge b { color: var(--gold-soft); }
.hero__badge-top { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero__badge-sub { white-space: nowrap; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.12; letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--gold-soft); }
.hero__sub { color: #dbe6f4; font-size: clamp(1.02rem, 1.9vw, 1.28rem); margin: 22px 0 34px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: #fff; border-radius: 3px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 6px; } 40% { opacity: 1; } 80% { opacity: 0; top: 16px; } }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { background: var(--navy); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 40px 0; text-align: center; }
.trust__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--gold-soft); }
.trust__lbl { font-size: .9rem; color: #c7d5e8; margin-top: 4px; }
.trust__item { position: relative; }
.trust__item:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.14); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 18px; }
.about__text p strong { color: var(--navy); font-weight: 600; }
.mvv { display: grid; gap: 16px; }
.mvv__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold);
}
.mvv__card h4 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.mvv__card p { color: var(--muted); font-size: .94rem; margin: 0; }
.mvv__card .ico { color: var(--gold); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.values span {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy);
  font-size: .84rem; font-weight: 500; padding: 7px 14px; border-radius: 50px;
}

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.cert {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert__badge {
  width: 104px; height: 104px; margin: 0 auto 16px;
  display: grid; place-items: center;
}
.cert__badge img { width: 100%; height: 100%; object-fit: contain; }
/* Bloque de certificaciones destacado */
.certs--hero .cert { border-top: 3px solid var(--gold); padding-top: 30px; }
.cert b { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; margin-top: 2px; }
.cert span { color: var(--muted); font-size: .86rem; }

/* =========================================================
   SEGUROS
   ========================================================= */
.seg-group { margin-bottom: 54px; }
.seg-group:last-child { margin-bottom: 0; }
.seg-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.seg-group__head h3 { font-size: 1.35rem; }
.seg-group__head .tag { font-size: .78rem; font-weight: 600; color: var(--gold); background: rgba(184,134,11,.10); padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .08em; }
.seg-group__head .divider { flex: 1; height: 1px; background: var(--line); }

.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.seg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.seg-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.seg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.seg-card:hover::before { transform: scaleX(1); }
.seg-card__ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0,46,102,.08), rgba(184,134,11,.10)); color: var(--navy);
}
.seg-card__ico svg { width: 26px; height: 26px; }
.seg-card h4 { font-size: 1.06rem; margin-bottom: 8px; }
.seg-card p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; flex: 1; }
.seg-card__link {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.seg-card__link:hover { gap: 11px; }
.seg-card__link svg { width: 15px; height: 15px; }

/* =========================================================
   POR QUÉ ELEGIRNOS
   ========================================================= */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-card {
  display: flex; gap: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg); padding: 28px; transition: background .25s, transform .25s var(--ease);
}
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.why-card__num {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
}
.why-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 7px; }
.why-card p { color: #c3d2e6; font-size: .94rem; margin: 0; }

/* =========================================================
   COMPAÑÍAS
   ========================================================= */
.logos-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.logo-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 118px; display: grid; place-items: center; padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.logo-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-cell img {
  max-height: 62px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .72; transition: filter .3s, opacity .3s;
}
.logo-cell:hover img { filter: grayscale(0%); opacity: 1; }
.companias__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 30px; }

/* =========================================================
   BLOG (teaser)
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--navy-700)); position: relative; }
.post-card__img .cat { position: absolute; top: 14px; left: 14px; background: var(--gold); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 50px; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { color: var(--gold); font-size: .8rem; font-weight: 600; }
.post-card h4 { font-size: 1.1rem; margin: 8px 0 10px; }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card__link { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.post-card__link:hover { color: var(--gold); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.info-item__ico { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(0,46,102,.07); color: var(--navy); }
.info-item__ico svg { width: 21px; height: 21px; }
.info-item b { display: block; color: var(--navy); font-family: var(--font-head); font-size: .96rem; }
.info-item span, .info-item a { color: var(--muted); font-size: .92rem; }
.info-item a:hover { color: var(--gold); }
.info-item__map { color: var(--navy); font-size: .92rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color .2s; }
.info-item__map:hover { color: var(--gold); }
.info-item small { display: block; color: var(--gold); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--navy); color: #fff; transition: background .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--gold); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-family: var(--font-head); }
.field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,46,102,.10); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.form-status.ok { display: block; background: #e8f6ec; color: #1c7c3a; border: 1px solid #bfe6cb; }
.form-status.err { display: block; background: #fdecec; color: #b23b3b; border: 1px solid #f4c7c7; }

.map-embed { margin-top: 46px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: #b9c8dc; padding: 62px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand img { height: 58px; margin-bottom: 16px; }
.footer__brand p { font-size: .92rem; max-width: 320px; color: #9fb2cc; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .92rem; color: #b9c8dc; transition: color .2s; }
.footer ul a:hover { color: var(--gold-soft); }
.footer__contact li { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 12px; color: #b9c8dc; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #8ea3c0;
}

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float__tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--navy); font-size: .84rem; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s; font-family: var(--font-head);
}
.wa-float:hover .wa-float__tip { opacity: 1; }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); } 70% { box-shadow: 0 8px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .seg-grid { grid-template-columns: repeat(3, 1fr); }
  .logos-grid { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 22px 26px; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__menu a::after { display: none; }
  .nav__menu .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: block; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .why__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .trust__item:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .seg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .seg-card { padding: 20px 16px; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav__logo img { height: 40px; }
  .form-card { padding: 24px 20px; }
  .hero__inner { padding-top: calc(var(--header-h) + 14px); }
  /* Burbuja del hero en 2 renglones: "22 años" arriba, el resto abajo */
  .hero__badge { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 16px; }
  .hero__badge-sub { font-size: .78rem; }
}
@media (max-width: 420px) {
  .seg-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item::after { display: none !important; }
}
