:root {
  --azul: #0c1735;
  --gris: #f5f5f5;
  --blanco: #ffffff;
}

/* ====================================================== */
/* RESETEO GENERAL */
/* ====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather Sans', sans-serif;
  background: var(--blanco);
  color: var(--azul);
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 600;
}

html {
  scroll-behavior: smooth;
}


/* ====================================================== */
/* NAVBAR */
/* ====================================================== */

.navbar {
  background: var(--blanco);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 70px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 80px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 25px;
}

/* NAVBAR ENLACES */
.nav-links a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Hover elegante: subrayado animado + cambio de color */
.nav-links a:hover {
  background: rgba(12,23,53,0.08);
  color: #1b2d5b;
}

/* Destacar el enlace de "Contacto" */
.nav-links a[href="#contacto"] {
  background: var(--azul);
  color: var(--blanco);
  font-weight: 600;
}

.nav-links a[href="#contacto"]:hover {
  background: #162650;
}


.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--azul);
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 25px;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 30px;
    top: 20px;
    cursor: pointer;
  }
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

/* ====================================================== */
/* ANIMACIÓN MENÚ HAMBURGUESA (MÓVIL) */
/* ====================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    background: var(--blanco);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    /* Animación */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.35s ease;
  }

  .nav-links.active {
    opacity: 1;
    max-height: 500px; /* suficiente para los enlaces */
    transform: translateY(0);
  }
}



/* ====================================================== */
/* HERO */
/* ====================================================== */
.hero {
  background: linear-gradient(rgba(12,23,53,0.8), rgba(12,23,53,0.8)), url('media/hero.webp') center/cover no-repeat;
  height: 100vh;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: 38px;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 18px;
  color: #e6e6e6;
  margin-bottom: 30px;
}

.btn-hero {
  background: var(--blanco);
  color: var(--azul);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #e6e6e6;
}

/* HERO LOGO */
.hero-logo {
  width: 250px;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeInGlow 2s ease forwards;
}

/* Animación: aparición + brillo */
@keyframes fadeInGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: brightness(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero-logo {
  width: 150px;
}
}

/* BOTÓN HAMBURGUESA - centrado verticalmente */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--azul);
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%); /* 🔹 centrado perfecto */
  }
}


/* ====================================================== */
/* NOSOTROS */
/* ====================================================== */
.nosotros {
  padding: 100px 0;
  background: var(--gris);
}

.nosotros .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nosotros .texto {
  flex: 1 1 500px;
}

.nosotros .texto h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.nosotros .texto p {
  line-height: 1.8;
}

.nosotros .imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* ====================================================== */
/* SERVICIOS */
/* ====================================================== */
.servicios {
  padding: 100px 20px;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: var(--gris);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.card i {
  font-size: 40px;
  margin-bottom: 15px;
}

.card:hover {
  transform: translateY(-8px);
}

/* ====================================================== */
/* BENEFICIOS */
/* ====================================================== */
.beneficios {
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
  padding: 100px 20px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.beneficio i {
  font-size: 42px;
  margin-bottom: 10px;
}

/* ====================================================== */
/* CTA ELEGANTE IZQUIERDA */
/* ====================================================== */
.cta {
  position: relative;
  background: url('media/cta.jpg') center/cover no-repeat;
  color: var(--blanco);
  padding: 120px 20px;
}

.cta-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(12,23,53,0.85);
}

/* Contenido alineado izquierda */
.cta-content {
  position: relative;
  max-width: 600px;
  z-index: 1;
  text-align: left;
  margin-left: 8%;
  padding-left: 25px;
  border-left: 4px solid var(--blanco); /* línea elegante lateral */
}

.cta-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--blanco);
}

.cta-subtitle {
  font-size: 18px;
  color: #e6e6e6;
  margin-bottom: 35px;
}

/* Contactos */
.cta-contacto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.contact-item i {
  color: var(--blanco);
  font-size: 20px;
}

.contact-item a {
  color: var(--blanco);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #cfd9f4;
}

/* BOTÓN CTA - Blanco elegante */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blanco);
  color: var(--azul);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #f1f1f1;
  color: #0b1b3e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cta-content {
    margin-left: 0;
    border-left: none;
    text-align: center;
    padding-left: 0;
  }
  .cta-contacto {
    align-items: center;
  }
}

/* ====================================================== */
/* SECCIÓN FINAL (SEPARADORA ENTRE CTA Y FOOTER) */
/* ====================================================== */
.mensaje-final {
  background: var(--blanco);
  color: var(--azul);
  text-align: center;
  padding: 80px 20px;
}

.mensaje-final h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.mensaje-final p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 17px;
  color: #1a2750;
}


/* ====================================================== */
/* FOOTER
/* ====================================================== */
.footer {
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
  padding: 25px 10px;
  font-size: 14px; 
  line-height: 1.6;   
}

.footer a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer a:hover {
  color: #d7dbef;      
}


/* ====================================================== */
/* WHATSAPP */
/* ====================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

.whatsapp-float i {
  font-size: 25px;
}
