/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* HEADER VERDE SUPERIOR */
.header-superior {
  background-color: #5eb36a;
  padding: 0.5rem 2rem;
}

.nav-superior {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-nav img {
  height: 80px;
}
.enlaces-nav {
  display: flex;
  gap: 2rem;
}

.enlaces-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.enlaces-nav a:hover {
  color: #003b5c;
}

@media (max-width: 768px) {
  .nav-superior {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .enlaces-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* HERO PRINCIPAL */
.hero-consultiva {
  position: relative;
  background: linear-gradient(to right, #005377 35%, transparent 100%);
  color: white;
  padding: 4rem 2rem 10rem;
}

.contenido-hero {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 2rem;
}

.texto-izquierda {
  flex: 1;
}

.texto-izquierda h1 {
  font-size: 2.8rem;
  font-weight: bold;
}

.texto-izquierda h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #d8e4ed;
}

.texto-izquierda p {
  font-size: 1rem;
  margin-top: 1rem;
  color: #f0f0f0;
}

.fondo-imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

/* TARJETA DE BENEFICIOS */
.tarjeta-beneficios {
  position: relative;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 90%;
  max-width: 1100px;
  flex-wrap: wrap;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 250px;
}

.beneficio img {
  width: 48px;
  height: 48px;
}

.beneficio h3 {
  margin: 0;
  font-size: 1rem;
  color: #000;
}

.beneficio p {
  font-size: 0.9rem;
  color: #444;
  margin: 0.25rem 0 0 0;
}

/* BOTÓN */
.btn-asesorarme {
  background-color: #5eb36a;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn-asesorarme:hover {
  background-color: #489357;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contenido-hero {
    flex-direction: column;
    text-align: center;
  }

  .tarjeta-beneficios {
    position: static;
    transform: none;
    margin-top: 3rem;
    flex-direction: column;
  }

  .btn-asesorarme {
    width: 100%;
    text-align: center;
  }
}

.hero-consultiva {
  position: relative;
  height: 700px;
  background: linear-gradient(to right, rgba(0, 77, 124, 0.9) 35%, rgba(0, 77, 124, 0.0) 100%),
              url('../img/fondo-hero.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  padding: 0 5%;
  
}

.contenido-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.texto-izquierda h1 {
  font-size: 3rem;
  font-weight: bold;
}

.texto-izquierda h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #d1e0e6;
}

.texto-izquierda p {
  font-size: 1rem;
  margin-top: 1rem;
  color: #f0f0f0;
}

/* SECCIÓN QUIÉNES SOMOS */
.seccion-quienes {
  background-color: #ffffff;
  padding: 1rem 2rem;
  text-align: center;
}

.contenedor-quienes {
  max-width: 900px;
  margin: 0 auto;
}

.seccion-quienes h2 {
  color: #50a462;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem; /* ← Aquí se baja el título */
}



.seccion-quienes p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  margin-bottom: 2.5rem;
}

/* IMAGEN QUIENES SOMOS */
.imagen-quienes img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-bottom-left-radius: 80px;
  display: block;
}




/* SECCIÓN SERVICIOS CLAVE */
.servicios-clave {
  background-color: #fff;
  padding: 2rem 2rem;
  text-align: center;
}

.servicios-clave h2 {
  color: #ffffff;
  background-color: #5eb36a;
  padding: 1rem 0;
    font-size: 2rem;
  font-weight: bold;
}

.servicios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  background-color: #5eb36a;
  padding: 1rem 1rem 3rem;
}

.servicio {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  width: 240px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


.servicio img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.servicio p {
  font-weight: bold;
  color: #005377;
  font-size: 0.95rem;
}

/* Imagen horizontal */
.imagen-mision-vision img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  margin: 0rem 0;
  object-fit: cover;
}

/* Misión y Visión */
.bloques-mision-vision {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: -330px; /* Eleva 60% sobre la imagen anterior (ajustable) */
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .bloques-mision-vision {
    margin-top: 0;
    padding-top: 2rem;
  }
}


.bloque {
  background: #fff;
  border-radius: 15px;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: center;
  flex: 1 1 400px;
  max-width: 500px;
  position: relative;
}

.bloque .icono {
  width: 80px;
  height: 80px;
  background-color: #58b76c;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bloque .icono img {
  width: 30px;
  height: 30px;
}

.bloque h3 {
  color: #005377;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.bloque p {
  font-size: 0.95rem;
  text-align: justify;
  color: #333;
}

.barra-verde {
  height: 6px;
  width: 80%;
  background-color: #58b76c;
  margin: 1.5rem auto 0;
  border-radius: 3px;
}

/* Logo final */
.logo-certiva {
  margin-top: 3rem;
}

.logo-certiva {
  margin-top: 4rem;
  margin-bottom: 3rem; /* ← espacio extra debajo */
  text-align: center;
}

.logo-certiva img {
  height: 90px; /* ← agranda el logo */
  max-width: 100%;
}

.valores-section {
  background: linear-gradient(to bottom, #0b486b 0%, #0b486b 22%, #5eb36a 22%, #5eb36a 100%);
  padding-bottom: 3rem;
  position: relative;
  overflow: visible; /* ← MUY IMPORTANTE */
}

.valores-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3rem 2rem 0;
  position: relative;
}

.imagen-chica {
  position: absolute;
  bottom: auto;
  top: -140px; /* ← AJUSTA LA ALTURA DE LA CABEZA */
  left: 0;
  width: 420px;
  z-index: 10;
  pointer-events: none;
}


.valores-bloque {
  background: white;
  border-top-right-radius: 80px;
  padding: 3rem 2rem 2rem;
  width: 100%;
  max-width: 830px;
  z-index: 1;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.valores-bloque h2 {
  color: #5eb36a;
  font-size: 1.9rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas arriba */
  gap: 1.5rem;
  row-gap: 2rem;
}

.valores-grid .valor:nth-child(n+5) {
  grid-column: span 1;
}

.valor {
  text-align: center;
}

.valor img {
  width: 40px;
  margin-bottom: 0.5rem;
}

.valor p {
  font-weight: bold;
  color: #003b5c;
  font-size: 0.9rem;
}

/*Seccion portafolio*/

/* ---- Portafolio Section ---- */
/* ==== PORTAFOLIO ==== */
.portafolio-section {
  background: #fff;
}
.portafolio-banner {
  background: #0e4e67;
}
.portafolio-banner h2 {
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.portafolio-contenido {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.portafolio-titulo {
  margin-bottom: 0.5rem;
}
.portafolio-pretitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #0e4e67;
}
.bullet {
  color: #49b265;
  font-size: 1.5rem;
}
.small-title {
  font-size: 1.25rem;
  font-weight: 500;
}
.big-title {
  margin: 0.25rem 0 1rem;
  font-size: 2.5rem;
  color: #0e4e67;
  font-weight: 700;
  line-height: 1.1;
}
.portafolio-linea {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.portafolio-linea .linea {
  flex: 1;
  height: 2px;
  background: #0e4e67;
}
.portafolio-subtitulo {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Tarjetas */
.grid-iso {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.card-iso {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.grid-iso .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border-top-left-radius: 30px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-iso .img-wrap .card-img {
  width: 144%;          /* 120% × 1.2 = 144% */
  margin-left: -22%;
  height: 300px;         /* 200px × 1.2 = 240px */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-iso:hover .img-wrap {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.card-btn {
  margin-top: -16px;
  background: #49b265;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
  position: relative;
}
.card-btn:hover {
  background: #3e9251;
}
.card-titulo {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .grid-iso {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-iso {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .grid-iso {
    grid-template-columns: 1fr;
  }
}

/* === CTA: Éxito === */
.seccion-cta-clientes {
  background: #5eb36a;
  padding: 0rem 2rem;
  position: relative;
  overflow: visible; /* ✅ clave para permitir sobresalir */
  z-index: 0;
}
.cta-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-img {
  position: relative;
  z-index: 3;
  margin-top: -90px; /* ← eleva la imagen hacia arriba */
  
}
.cta-texto h2 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: bold;
}
.cta-texto p {
  margin: 1rem 0 0.5rem;
  color: #f0f0f0;
  font-size: 1rem;
}
.cta-botones {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cta-botones a {
  background: #fff;
  color: #005537;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}
.cta-botones a:hover {
  background: #e6f1e6;
}
.cta-botones img {
  width: 18px;
  height: 18px;
}

/* === Nuestros Clientes === */
.seccion-clientes {
  background: #f7f7f7;
  text-align: center;
  padding: 3rem 2rem;
}
.seccion-clientes h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #0e4e67;
  margin-bottom: 2rem;
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.clientes-grid img {
  max-height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.clientes-grid img:hover {
  transform: scale(1.1);
}


.seccion-estadisticas {
  background: #0e4e67;
  padding: 2rem 1rem 6rem 3rem;
  color: white;
  text-align: center;
}
.contenedor-estadisticas {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.bloque-estadistica {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bloque-estadistica img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}
.bloque-estadistica h2 {
  font-size: 3rem;
  color: #5eb36a;
  margin-bottom: 0.3rem;
}
.bloque-estadistica p {
  font-size: 1.2rem;
  font-weight: 500;
}

.seccion-formulario {
  background: #0e4e67; /* Azul Certiva */
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}
.seccion-formulario h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
}

.form-certiva input,
.form-certiva select {
  background: #f9f9f9;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 6px;
}
.form-certiva input::placeholder {
  color: #555;
}


.form-certiva {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.form-certiva button {
  background: #5eb36a;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-certiva button:hover {
  background: #489357;
}

.btn-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0e4e67;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.2s ease;
}
.btn-whatsapp:hover {
  transform: scale(1.1);
}
.btn-whatsapp img {
  width: 45px;
  height: 45px;
  display: block;
}

.footer-certiva {
  background: #0e4e67;
  color: #fff;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
}
.footer-contenido {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-logo img {
  max-width: 120px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-menu a:hover {
  color: #5eb36a;
}
.footer-redes a img {
  width: 24px;
  margin: 0 0.5rem;
  transition: transform 0.2s ease;
}
.footer-redes a img:hover {
  transform: scale(1.1);
}
.footer-legal {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}
.footer-legal a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: underline;
}

.auditor-lider {
  background: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  color: #0e4e67;
}
.auditor-contenido {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.auditor-titulo {
  font-size: 2rem;
  font-weight: bold;
  color: #0e4e67;
  margin: 0;
}
.auditor-contenido img {
  max-height: 100px;
}

.mensaje-capacitacion {
  background: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}
.mensaje-capacitacion p {
  font-size: 1.25rem;
  color: #0e4e67;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}




@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .cta-texto h2 {
    font-size: 1.8rem;
  }
  .bloques-mision-vision {
    flex-direction: column;
    align-items: center;
  }
}


/* ===== MENÚ HAMBURGUESA REFINADO ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    padding: 0.5rem;
    z-index: 1001;
  }

  .enlaces-nav {
    display: none;
    flex-direction: column;
    background: rgba(14, 78, 103, 0.95); /* azul translúcido elegante */
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-in-out;
  }

  .enlaces-nav.mostrar {
    display: flex;
  }

  .enlaces-nav a {
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, color 0.3s ease;
  }

  .enlaces-nav a:first-child {
    border-top: none;
  }

  .enlaces-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #5eb36a;
  }
}

/* Animación sutil */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.nav-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  position: relative;
}

.logo-nav img {
  max-height: 80px;
}

/* Este bloque ya lo debes tener */
@media (max-width: 768px) {
  .nav-superior {
    flex-direction: row;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .enlaces-nav {
    width: 100%;
    margin-top: 1rem;
  }
}

/* FORMULARIO - MÓVIL RESPONSIVE */
@media (max-width: 768px) {
  .form-certiva {
    gap: 1rem;
    padding: 0 1rem;
  }

  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .form-certiva input,
  .form-certiva select {
    width: 100%;
    font-size: 1rem;
  }

  .form-certiva button {
    width: 100%;
    font-size: 1rem;
  }

  .captcha-box {
    justify-content: start;
    font-size: 0.95rem;
  }
}


.popup-exito {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #bfe221;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  font-size: 0.95rem;
  animation: aparecer 0.4s ease-in-out;
}

.popup-error {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #d93a3a;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  font-size: 0.95rem;
  animation: aparecer 0.3s ease-in-out;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


