:root {
  --color-primario: #0b2a45;
  --color-secundario: #1f6fe5;
  --color-acento: #ffc857;
  --color-fondo: #f4f6fb;
  --color-texto: #1b1f23;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================== */
/*        TOP BAR        */
/* ===================== */

.top-bar {
  background: #061623;
  color: #dbe3f0;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.top-bar-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== */
/*      NAVEGACIÓN       */
/* ===================== */

header {
  background: white;
  border-bottom: 1px solid #dde2f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.logo-area img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primario);
}

.logo-text span {
  color: var(--color-secundario);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #3c4452;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-secundario);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--color-secundario);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* BOTÓN HAMBURGUESA (desktop: oculto) */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f2933;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animación cuando está activo */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===================== */
/*     LAYOUT GENERAL    */
/* ===================== */

main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

section {
  margin-top: 3rem;
}

/* ===================== */
/*         HERO          */
/* ===================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-primario);
  margin-bottom: 1rem;
}

.hero-text p.lead {
  font-size: 1.05rem;
  color: #4a5260;
  margin-bottom: 1.2rem;
}

.hero-highlight {
  background: rgba(31, 111, 229, 0.08);
  border-left: 4px solid var(--color-secundario);
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  color: #2c3442;
  margin-bottom: 1.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secundario), #174db8);
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid #c5cbe0;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  color: #30374a;
  background: white;
}

/* HERO imagen */

.hero-image {
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  position: relative;
  min-height: 260px;
  background-image: linear-gradient(
      rgba(6, 22, 35, 0.35),
      rgba(6, 22, 35, 0.7)
    ),
    url("hero-office.jpg");
  background-size: cover;
  background-position: center;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #eef2ff;
}

.hero-image-overlay h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.hero-image-overlay p {
  margin: 0;
  font-size: 0.9rem;
}

.hero-mini {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ===================== */
/*       MÉTRICAS        */
/* ===================== */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.metric-card {
  background: white;
  border-radius: 0.9rem;
  padding: 1rem 1rem;
  text-align: center;
  border: 1px solid #e0e4f3;
}

.metric-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secundario);
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #646c7d;
}

/* ===================== */
/*    SECCIONES BASE     */
/* ===================== */

.section-title {
  font-size: 1.9rem;
  color: var(--color-primario);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6d7486;
  max-width: 650px;
}

/* ===================== */
/*       SERVICIOS       */
/* ===================== */

.services-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #e0e4f3;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--color-primario);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #4b5464;
  margin-bottom: 0.5rem;
}

.service-card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.2rem;
}

/* ===================== */
/*   POR QUÉ ELEGIRNOS   */
/* ===================== */

.why-box {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.why-list {
  background: white;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #dde2f0;
}

.why-list ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #434b5c;
}

.badge {
  display: inline-block;
  background: #e7f0ff;
  color: #1f4ea8;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.why-image {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 220px;
  background-image: url("compliance-team.jpg");
  background-size: cover;
  background-position: center;
}

/* ===================== */
/*         FAQ           */
/* ===================== */

.faq-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.faq-item {
  background: white;
  border-radius: 0.9rem;
  padding: 1rem 1rem;
  border: 1px solid #e0e4f3;
  font-size: 0.9rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--color-primario);
}

.faq-item p {
  margin: 0;
  color: #4b5464;
}

/* ===================== */
/*          CTA          */
/* ===================== */

.cta-section {
  margin-top: 3rem;
  background: linear-gradient(135deg, #0b2a45, #123b70);
  border-radius: 1.3rem;
  padding: 2rem 1.7rem;
  color: #f8fafc;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.cta-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
}

.cta-section p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.cta-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ===================== */
/*       CONTACTO        */
/* ===================== */

.contact-box {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.contact-info,
.contact-form {
  background: white;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #dfe4f2;
  font-size: 0.9rem;
}

.contact-info p {
  margin: 0.3rem 0;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: #4a5265;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid #cfd5e7;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

/* ===================== */
/*        FOOTER         */
/* ===================== */

footer {
  margin-top: 3rem;
  padding: 1.6rem 1rem 2rem;
  background: #050a10;
  color: #9ca3b8;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* ===================== */
/*  WHATSAPP FLOTANTE    */
/* ===================== */

.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  background: #22c55e;
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* ===================== */
/*        RESPONSIVE     */
/* ===================== */

/* Tablets / pantallas medianas */
@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .nav {
    padding: 0.6rem 1rem;
  }

  /* Mostrar botón hamburguesa */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Menú como dropdown */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 0.75rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 190px;
    display: none;
    z-index: 40;
  }

  /* Clase que activa el menú (ligada al JS: nav-links-open) */
  .nav-links.nav-links-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0.75rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .logo-area img {
    height: 70px;
  }

  /* 1 columna en secciones */
  .hero,
  .why-box,
  .cta-section,
  .contact-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .metrics,
  .services-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* Móviles */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .top-bar {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .top-bar-inner {
    align-items: center;
    text-align: center;
  }

  .nav {
    padding: 0.4rem 0.7rem;
  }

  .logo-area img {
    height: 60px;
  }

  .nav-cta {
    display: none; /* ya tienes el botón flotante abajo */
  }

  /* 🔹 AJUSTE CLAVE: quitar el bloque en blanco del hero */
  .hero {
    display: block;       /* solo columna de texto */
    margin-top: 1.2rem;   /* un poco más pegado al header */
  }

  .hero-image {
    display: none;        /* ocultar tarjeta con foto en móvil */
    min-height: 0;
    box-shadow: none;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .cta-section {
    padding: 1.6rem 1.2rem;
  }

  .contact-box {
    gap: 1.2rem;
  }
}
