: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;
}

/* Barra superior */
.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;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}
.logo-area img {
  height: 200px !important; 
  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;
}

/* 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 generales */
.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);
}

/* ========================= */
/*    MENÚ HAMBURGUESA      */
/* ========================= */

.nav {
  position: relative;
}

/* Botón hamburguesa (oculto en escritorio) */
.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);
}

/* MODO MÓVIL: mostrar hamburguesa y convertir menú en desplegable */
@media (max-width: 900px) {
  .nav {
    padding: 0.6rem 1rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Menú colapsado */
  .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;
  }

  /* Menú abierto */
  .nav-links.nav-links-open {
    display: flex;
  }

  /* Mantener el botón WhatsApp visible */
  .nav-cta {
    margin-left: 0.75rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  /* Logo un poco más pequeño en pantallas chicas */
  .logo-area img {
    height: 70px;
  }
}

/* Ajuste extra para móviles muy pequeños */
@media (max-width: 600px) {
  .nav {
    padding: 0.4rem 0.7rem;
  }

  .logo-area img {
    height: 60px;
  }
}




/* Responsive */
/* ===================== */
/*   ESTILOS RESPONSIVE  */
/* ===================== */

/* Tablets / pantallas medianas */
@media (max-width: 600px) {

  /* Top bar */
  .top-bar {
    font-size: 13px;
    padding: 0.4rem 0.6rem;
  }

  /* LOGO más pequeño en móvil */
  .logo-area img {
    height: 80px !important;   /* prueba también 70 o 60 si lo quieres más compacto */
    width: auto;
  }

  /* NAV más compacto */
  .nav {
    padding: 0.3rem 0.7rem;
    min-height: 70px !important;
  }

  /* Esconder enlaces del menú en móvil */
  

  /* Que la imagen del hero quede arriba */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .hero-image {
    order: -1;
    width: 100%;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /* Botones full width */
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

}
/* TOP BAR */
.topbar {
  background: #0b1e2d;
  color: white;
  font-size: 14px;
  width: 100%;
}
.top-info {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.top-info .lang {
  opacity: 0.8;
  font-size: 13px;
}

/* MENÚ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: white;
  position: relative;
}

.logo-area img {
  height: 48px;
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #0b1e2d;
  transition: 0.3s;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .logo-area img {
    height: 42px;
  }
}
