:root {
  --azul-primario: #004080;
  --azul-secundario: #003c71;
  --gris-claro: #f8f9fa;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
html {
  scroll-behavior: smooth;
}
.hero {
  background-attachment: fixed;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

/* Animación opcional */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */

.hero {
  position: relative;
  background: url('imagenes/fondo.jpg') no-repeat center center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 33, 71, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;   /* fuerza a ocupar todo el overlay */
}

/* LOGO GRANDE QUE REEMPLAZA AL TEXTO */
.hero-logo-grande {
  width: clamp(260px, 40vw, 600px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 30px auto;
  display: block;
}
@media (max-width: 768px){
  .hero-logo-grande{
    width: clamp(140px, 48vw, 320px);
    max-height: 20vh;
    margin-bottom: 14px;
  }
}


/* Animación suave de entrada */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  
  
}

.hero-content h2 {
  font-size: 2rem; /* Aumenta el tamaño */
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #f0f0f0;
}

.hero-subtitle {
  font-size: 1.6rem; 
  font-weight: 400;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  gap: 20px; /* más separación entre botones */
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background-color: var(--azul-primario);
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 52px; /* mismo alto para ambos */
  min-width: 150px; /* opcional: asegura ancho similar */
  
}


.btn-primary {
  background-color: #004080;
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: white;
  color: #004080
  
}

.btn-secondary {
  background-color: white;
  color: #004080;
  border: none;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover: azul clarito */
.btn-secondary:hover {
  background-color: #004080;;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Active: azul sólido con letras blancas */
.btn-secondary:active {
  background-color: #004080;
  color: white;
}



/* TÍTULOS GENERALES */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #094483;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 40px;
    font-weight: bold;
}

/* SECCIONES GENERALES */
.nosotros-section, .servicios-section, .contacto-section {
    padding: 80px 0;
}

.galeria-personal, .valores-section {
    padding: 80px 0;
    background: white;
}

.mision-vision-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.nosotros-section {
    background: #f8f9fa;
}

.servicios-section {
    background: #f8f9fa;
}

/* NOSOTROS */
.nosotros-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.nosotros-imagen {
    flex: 1;
}

.nosotros-imagen img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: inline;
}

.nosotros-texto {
    flex: 1;
}

.nosotros-texto h3 {
    font-size: 1.8rem;
    color: #004080;
    margin-bottom: 25px;
}

.nosotros-texto p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.stats {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #004080;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* GRIDS GENERALES */
.personal-grid, .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px; /* ← Aumenta el espacio entre ambas tarjetas */
  margin-top: 40px;
}

.capacitacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* TARJETAS */
.personal-card, .servicio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}
.personal-card, .servicio-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.personal-card:hover,
.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.personal-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.personal-card h4, .servicio-card h3 {
    color: #004080;
    margin: 15px 15px 8px;
}

.personal-card p, .servicio-card p {
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.5;
}

.servicio-card {
    padding: 30px;
    text-align: center;
    border-top: 4px solid #004080;
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.servicio-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* MISIÓN Y VISIÓN */
.mision-card, .vision-card {
    background: #004080;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.vision-card {
    background: #345b69;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.mision-card h3, .vision-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* VALORES */
.valores-filosofia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  gap: 60px;
  background-color: #f3f3f3;
  flex-wrap: wrap;
}

.valores-filosofia-texto {
  flex: 1;
  min-width: 300px;
}

.valores-filosofia-texto h2 {
  color: #003366;
  margin-top: 20px;
}
.valores-filosofia-texto h2:not(:first-of-type) {
  margin-top: 60px;
}


.valores-filosofia-texto p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.valores-filosofia-texto ul {
  list-style: none;
  padding: 0;
}
.valores-filosofia {
  background-color: #f5f5f5;
  padding: 80px 40px;
}

.valores-filosofia-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

.valores-filosofia-img img {
  width: 500px;        /* Cambia de 400px a 500px o más */
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 1.2s ease;
}

.valores-filosofia-img img:hover {
  transform: scale(1.05);
}

.valores-filosofia-texto {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.valores-filosofia-texto h2 {
  color: #003c71;
  margin-top: 20px;
  margin-bottom: 10px;
}

.valores-filosofia-texto p {
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.valores-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.valores-lista li {
  background-color: #fff;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #003c71;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.valores-filosofia-texto li {
  background: #f9f9f9;
  padding: 12px 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  border-left: 5px solid #003366;
  font-weight: 500;
  color: #333;
}

.valores-filosofia-imagen {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.valores-filosofia-imagen img {
  width: 85%;
  height: auto;
  transition: transform 6s ease;
  display: block;
  margin: 0 auto;
}


.valores-filosofia-imagen:hover img {
  transform: scale(1.05);
}


.valores-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.valores-left h2, .valores-right h2 {
    color: #004080;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.valor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #004080;
}

.valor-icon {
    font-size: 1.3rem;
}

.valores-right p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

/* CAPACITACIÓN */
.capacitacion-section {
  margin-top: 60px;
  text-align: center;
  padding: 60px 20px;
  background-color: transparent;
}

.capacitacion-section h3 {
  font-size: 1.6rem;
  color: #004080;
  margin-bottom: 30px;
}

.capacitacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.capacitacion-item {
  background: #004080;
  color: white;
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.capacitacion-item:hover {
  background-color: #003060;
  transform: translateY(-3px);
}

/* Responsive: 1 columna en móvil, 2 en tablet */
@media (max-width: 768px) {
  .capacitacion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .capacitacion-grid {
    grid-template-columns: 1fr;
  }
}


/* BANNER */
.banner-texto {
    background: linear-gradient(rgba(46, 83, 97, 0.3), rgba(46, 83, 97, 0.3)),
                url('imagenes/f6.jpg') no-repeat center center;
    background-size: cover; /* ocupa todo el ancho */
    min-height: 1000px; /* más alto */
    padding: 200px 20px; /* más espacio para el contenido */
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-texto .banner-overlay {
    background-color: rgba(71, 77, 83, 0.5); /* azul con 50% de transparencia */
    padding: 110px 90px;
    border-radius: 10px;
    display: inline-block;
}

.banner-quote {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.banner-cta {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.banner-registro {
    font-size: 1.3rem;
}

/* CONTACTO */
.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contacto-form {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* TARJETAS DE INFORMACIÓN */
.info-card {
  background: rgba(255,255,255,0.7); /* semitransparente */
  backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #004080;
}

.required {
    color: #dc3545;
}

.btn-form {
    background: #004080;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-form:hover {
    background: #0056b3;
}

.info-card h4 {
    color: #004080;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.info-card p, .info-card a {
    color: #555;
    line-height: 1.5;
}

.info-card a {
    text-decoration: none;
    color: #004080;
}

.info-card a:hover {
    text-decoration: underline;
}

.mapa {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mapa iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #25d366;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float a:hover {
    transform: translateY(-2px);
}

.whatsapp-text {
    color: white;
    font-size: 0.9rem;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 15px;
    bottom: 15px;
    transform: scale(0.9);
  }
}

/* FOOTER */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.footer-logo p, .footer-contact p {
    color: #ccc;
    margin-bottom: 8px;
}

.footer-contact {
    text-align: right;
}
/* EFECTO DE HOVER CON IMAGEN */
.hover-img {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hover-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.hover-img:hover::before {
    opacity: 0.5;
}

.hover-img .servicio-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.hover-img:hover .servicio-content {
    background-color: rgba(255,255,255,0.65);
}
.bg-white {
  background-color: #e1e1e1;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-lighter {
  background-color: #e8e8e8;
}

.bg-light-blue {
  background-color: #e3e2e2;
}
@media (max-width: 768px) {
  .nosotros-content,
  .valores-filosofia-container,
  .contacto-content {
    flex-direction: column;
    text-align: center;
  }

  .valores-filosofia-img img {
    width: 100%;
  }

  .contacto-info {
    order: -1; /* Mostrar información antes del formulario */
  }
}
.contacto-fondo {
  background-image: url('imagenes/fondo.jpg'); /* Usa tu propia imagen */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.contacto-fondo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(178, 175, 175, 0.8); /* Blanco semitransparente encima */
  z-index: 2;
}

.contacto-section .container {
  position: relative;
  z-index: 3;
}
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  background: rgba(0, 33, 71, 0.6);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ========================= */
/* 📱 MOBILE FIRST ADAPTIVE  */
/* ========================= */

/* Tablet y abajo */
@media (max-width: 992px) {
  .hero-logo-grande {
    width: 80%;   /* reduce el logo en tablets */
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .nosotros-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .nosotros-imagen img {
    height: auto;   /* que no se corte */
    max-height: 350px;
  }

  .mision-vision-grid {
    grid-template-columns: 1fr; /* una sola columna en tablet */
    gap: 25px;
  }

  .personal-grid, .servicios-grid {
    grid-template-columns: 1fr 1fr; /* 2 columnas */
  }

  .capacitacion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celulares medianos */
@media (max-width: 600px) {
  .hero-logo-grande {
    width: 95%;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .personal-grid, .servicios-grid {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }

  .valores-filosofia-container {
    flex-direction: column;
    text-align: center;
  }

  .capacitacion-grid {
    grid-template-columns: 1fr;
  }

  .contacto-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contacto-info {
    order: -1; /* info arriba del formulario */
  }

  .banner-texto {
    padding: 80px 20px;
    min-height: auto;
  }

  .banner-overlay {
    padding: 40px 20px;
  }

  .banner-quote {
    font-size: 1.1rem;
  }

  .banner-cta {
    font-size: 1.2rem;
  }
}

/* Celulares pequeños */
@media (max-width: 400px) {
  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-form {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .whatsapp-float {
    right: 10px;
    bottom: 10px;
    transform: scale(0.8);
  }
  
}
/* ===== Modales de confirmación / error ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }

.modal-dialog {
  background: #fff; color: #333; width: min(520px, 92vw);
  border-radius: 12px; padding: 24px; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  animation: modalIn .2s ease-out;
}
.modal-dialog h3 { color: #004080; margin-bottom: 8px; }
.modal-dialog p { margin-bottom: 16px; }
@keyframes modalIn { from { transform: translateY(8px); opacity: .8; } to { transform:none; opacity:1; } }
/* Accesibilidad: cerrar al click en overlay ya está en JS */
