/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:      #f5b800;
  --yellow-dark: #d49d00;
  --yellow-light:#ffd04d;
  --navy:        #162444;
  --navy2:       #1b2e56;
  --navy3:       #203868;
  --navy4:       #264278;
  --border:      #2a4070;
  --text:        #dce6f5;
  --text-muted:  #7a90c0;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .25s ease;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }
ul { list-style: none; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 184, 0, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 1.15rem; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(14, 26, 58, .97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
}
.nav__logo strong { color: var(--yellow); }
.nav__logo-icon { font-size: 1.4rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  padding: 9px 18px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}
.nav__cta:hover {
  background: var(--yellow-light) !important;
  color: var(--navy) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245,184,0,.07) 0%, transparent 70%),
    linear-gradient(160deg, #0a1530 0%, #0e1a3a 50%, #0d1f48 100%);
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,184,0,.08) 0%, transparent 65%);
  border-radius: 50%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* decorative diagonal stripe */
.hero__bg + .hero__content::before {
  display: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(245,184,0,.03) 100%);
  z-index: 0;
  border-left: 1px solid rgba(245,184,0,.06);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__title span {
  color: var(--yellow);
  display: block;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(245,184,0,.3);
  border-radius: 11px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%, 100% { top: 5px; opacity: 1; }
  80% { top: 18px; opacity: 0; }
}

/* ===========================
   BADGES
   =========================== */
.badges {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.badges__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: color var(--transition);
}
.badge:last-child { border-right: none; }
.badge:hover { color: var(--yellow); }
.badge__icon { font-size: 1.4rem; flex-shrink: 0; }

/* ===========================
   SECTIONS BASE
   =========================== */
.section { padding: 96px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__label {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   SERVICIOS
   =========================== */
.servicios { background: var(--navy); }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.servicio-card {
  background: var(--navy2);
  padding: 40px 32px;
  transition: background var(--transition);
  cursor: default;
}
.servicio-card:hover { background: var(--navy3); }

.servicio-card__icon {
  width: 56px;
  height: 56px;
  color: var(--yellow);
  margin-bottom: 20px;
}
.servicio-card__icon svg { width: 100%; height: 100%; }

.servicio-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--white);
  margin-bottom: 10px;
}
.servicio-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* ===========================
   NOSOTROS
   =========================== */
.nosotros {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nosotros__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros__visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.nosotros__car {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nosotros__car svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.nosotros__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--navy3);
  padding: 24px 16px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nosotros__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.nosotros__lista {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nosotros__lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.nosotros__lista svg { color: var(--yellow); flex-shrink: 0; }

/* ===========================
   CONTACTO
   =========================== */
.contacto { background: var(--navy); }
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.info-card:hover { border-color: var(--yellow); }

.info-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(245,184,0,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}

.info-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 6px;
}
.info-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.info-card__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 600;
  transition: opacity var(--transition);
}
.info-card__link:hover { opacity: .75; }
.info-card__link--big {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.contacto__mapa {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
}
.contacto__mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%) invert(85%) hue-rotate(185deg) saturate(.8);
}

/* ===========================
   SEGUROS
   =========================== */
.seguros {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}

.seguros__label {
  text-align: center;
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 32px;
}

.seguros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.seguro-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.seguro-card:hover { border-color: var(--yellow); background: var(--navy4); }

.seguro-card__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.seguro-mm {
  font-family: 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: .05em;
}
.seguro-nombre {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.seguro-nombre strong {
  font-weight: 800;
  color: var(--white);
}

.seguro-mmt {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: .06em;
  line-height: 1;
}
.seguro-sub {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.seguro-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 4px;
  background: rgba(245,184,0,.12);
  border: 1px solid rgba(245,184,0,.25);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.seguro-card--text {
  justify-content: center;
  background: rgba(245,184,0,.04);
  border-color: rgba(245,184,0,.15);
}
.seguro-card--text p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}
.seguro-card--text strong { color: var(--yellow); }

@media (max-width: 768px) {
  .seguros__grid { grid-template-columns: 1fr 1fr; }
  .seguro-card--text { grid-column: span 2; }
}
@media (max-width: 480px) {
  .seguros__grid { grid-template-columns: 1fr; }
  .seguro-card--text { grid-column: span 1; }
}

/* ===========================
   CTA FINAL
   =========================== */
.cta-final {
  background: linear-gradient(135deg, #0a1530 0%, var(--navy3) 100%);
  border-top: 3px solid var(--yellow);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(245,184,0,.06) 0%, transparent 70%);
}
.cta-final__inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-final p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.cta-final .btn--primary {
  font-size: 1.2rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #08112a;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__brand strong { color: var(--yellow); }
.footer__address {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 6px;
}
.footer__copy {
  color: #3a5080;
  font-size: .8rem;
}

/* ===========================
   RESPONSIVE: TABLET
   =========================== */
@media (max-width: 1024px) {
  .badges__inner { grid-template-columns: repeat(2, 1fr); }
  .badge:nth-child(2) { border-right: none; }
  .badge:nth-child(3) { border-top: 1px solid var(--border); }
  .badge:nth-child(4) { border-top: 1px solid var(--border); }

  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros__inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros__visual { max-width: 540px; margin: 0 auto; }
  .contacto__inner { grid-template-columns: 1fr; }
  .contacto__mapa { height: 320px; }
}

/* ===========================
   RESPONSIVE: MOBILE
   =========================== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(14,26,58,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    color: var(--text);
  }
  .nav__links a:hover { background: var(--navy3); color: var(--yellow); }
  .nav__cta { text-align: center; }
  .nav__burger { display: flex; }

  .section { padding: 64px 20px; }

  .badges__inner { grid-template-columns: 1fr 1fr; }
  .badge { padding: 16px 14px; font-size: .82rem; }

  .servicios__grid { grid-template-columns: 1fr; }
  .servicio-card { padding: 28px 24px; }

  .nosotros__stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 18px 10px; }
  .stat__num { font-size: 1.5rem; }

  .contacto__info { gap: 12px; }
  .contacto__mapa { height: 260px; }

  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .badges__inner { grid-template-columns: 1fr; }
  .badge { border-right: none !important; border-bottom: 1px solid var(--border); }
  .badge:last-child { border-bottom: none; }

  .nosotros__stats { grid-template-columns: 1fr; background: none; gap: 8px; }
  .stat { border-radius: var(--radius-sm); border: 1px solid var(--border); }

  .info-card { flex-direction: column; gap: 12px; }
}
