:root {
  --primary: #FF6B00;
  --primary-dark: #E65100;
  --secondary: #2C3E50;
  --light: #FFFFFF;
  --dark: #222222;
  --text: #444444;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
}

/* Header compacto en una línea */
.top-bar {
  padding: 10px 0;
  background: var(--light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
}

.main-title span {
  color: var(--primary);
}

.tagline {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

.cta-button {
  background: var(--primary);
  color: var(--light);
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

/* Navegación principal */
.main-nav {
  background: var(--secondary);
  padding: 12px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding: 3px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Agrega esto a tu archivo styles.css */

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slider-prev, .slider-next {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.slider-prev:hover, .slider-next:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000; /* Fondo negro para evitar flash blanco */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Transición más suave */
  background-color: #000; /* Fondo negro como respaldo */
}

/* Mantener contenido encima de la imagen */
.slide-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 2;
  max-width: 600px;
  color: var(--light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

/* Para móviles */
@media screen and (max-width: 768px) {
  .slide-content {
    bottom: 10%;
    left: 5%;
    padding-right: 5%;
    text-align: center;
  }

  .slide h2 {
    font-size: 1.6rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Para escritorio */
@media screen and (min-width: 769px) {
  .hero-slider {
    height: 100vh;
  }

  .slide {
    height: 100vh;
  }

  .slide-content {
    bottom: 25%;
  }
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}
/* Reemplaza todas las definiciones existentes de .slide con esto: */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-color: #000; /* fallback por si no carga la imagen */
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.slide-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #eee;
}

.hero-button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.hero-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}


/* Menú móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

/* Sección Misión, Visión y Valores */
.seccion-mvv {
  padding: 80px 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.seccion-mvv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.titulo-seccion {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.titulo-seccion h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.titulo-seccion h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card:hover::before {
  height: 10px;
}

.card-icono {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.card p {
  color: var(--text);
  line-height: 1.7;
}

/* Estilos específicos para cada tarjeta */
.card-mision::before {
  background: #FF6B00;
}

.card-vision::before {
  background: #2C3E50;
}

.card-valores::before {
  background: #E65100;
}

.card-mision:hover .card-icono {
  color: #FF6B00;
}

.card-vision:hover .card-icono {
  color: #2C3E50;
}

.card-valores:hover .card-icono {
  color: #E65100;
}

/* Lista de valores */
.lista-valores {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-valores li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.lista-valores li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.valor-icono {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}

.lista-valores strong {
  color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .main-title {
    font-size: 1.1rem;
  }
  
  .tagline {
    font-size: 0.6rem;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .titulo-seccion h2 {
    font-size: 2rem;
  }
  
  .mvv-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 8px 0;
  }
  
  .logo {
    height: 40px;
  }
  
  .main-title {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: left 0.3s;
    z-index: 100;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-slider {
    height: 70vh;
  }
  
  .slide h2 {
    font-size: 2rem;
  }
  
  .slide p {
    font-size: 1rem;
  }
  .slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
  }
  
  .slide.active {
    display: block;
  }
  
  .seccion-mvv {
    padding: 60px 0;
  }
  
  .mvv-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .branding {
    gap: 8px;
  }
  
  .logo {
    height: 35px;
  }
  
  .main-title {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 5px 10px;
    font-size: 0.65rem;
    margin-left: 10px;
  }
  
  .slide-content {
    left: 5%;
    width: 90%;
  }
  
  .slide h2 {
    font-size: 1.8rem;
  }
  
  .titulo-seccion h2 {
    font-size: 1.8rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .card-icono {
    font-size: 2rem;
  }
}

/* Sección Certificaciones */
.seccion-cert {
  padding: 80px 0;
  background-color: var(--light);
  position: relative;
}

.seccion-cert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.seccion-cert h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.seccion-cert h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cert-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border-top: 5px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card img {
  height: 80px;
  width: auto;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.cert-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.cert-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.cert-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.cert-card p {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Efecto de borde animado */
.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.cert-card:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .seccion-cert h2 {
    font-size: 2.2rem;
  }
  
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .seccion-cert {
    padding: 60px 0;
  }
  
  .seccion-cert h2 {
    font-size: 2rem;
    margin-bottom: 50px;
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .cert-card {
    padding: 25px;
  }
  
  .cert-card img {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .seccion-cert h2 {
    font-size: 1.8rem;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .cert-card h3 {
    font-size: 1.2rem;
  }
  
  .cert-card p {
    font-size: 0.9rem;
  }
}

.seccion-programas {
  padding: 60px 20px;
  background-color: #ffffff;
}

.titulo-seccion {
  text-align: center;
  margin-bottom: 40px;
}

.titulo-seccion h2 {
  font-size: 32px;
  color: #003366;
}

.titulo-seccion .subtitulo {
  color: #666;
  margin-top: 10px;
  font-size: 16px;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.programa-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.programa-card:hover {
  transform: translateY(-5px);
}

.programa-icono {
  font-size: 36px;
  color: #e65100;
  margin-bottom: 15px;
}

.programa-card h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 10px;
}

.programa-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.6;
}

.programa-card .nivel {
  font-size: 13px;
  color: #777;
  font-style: italic;
}

.seccion-metodologia {
  padding: 60px 20px;
  background-color: #f3f6fa;
}

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.metodologia-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.metodologia-card:hover {
  transform: translateY(-5px);
}

.metodologia-icono {
  font-size: 36px;
  color: #e65100;
  margin-bottom: 15px;
}

.metodologia-card h3 {
  font-size: 20px;
  color: #003366;
  margin-bottom: 10px;
}

.metodologia-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.seccion-historia {
  padding: 60px 20px;
  background-color: #ffffff;
}

.historia-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.historia-imagen {
  flex: 1 1 40%;
  text-align: center;
}

.historia-imagen img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.historia-texto {
  flex: 1 1 60%;
}

.historia-texto h2 {
  font-size: 30px;
  color: #003366;
  margin-bottom: 20px;
}

.historia-texto p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.seccion-galeria {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.galeria-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.seccion-testimonios {
  padding: 60px 20px;
  background-color: #ffffff;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonio-card {
  background-color: #f3f6fa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-5px);
}

.testimonio-icono {
  font-size: 30px;
  color: #e65100;
  margin-bottom: 15px;
}

.testimonio-texto {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.testimonio-autor {
  font-size: 14px;
  font-style: italic;
  color: #555;
}
.footer {
  background-color: #003366;
  color: #ffffff;
  padding: 50px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: flex-start;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 10px;
}

.footer-logo .lema {
  font-size: 14px;
  font-style: italic;
  color: #ccc;
}

.footer-links h4,
.footer-contacto h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contacto p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ccc;
}

.footer-contacto i {
  margin-right: 8px;
  color: #e65100;
}

.footer-redes a {
  color: #fff;
  margin-right: 15px;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-redes a:hover {
  color: #e65100;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

