/* === ESTILOS GENERALES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER GENERAL ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px 0;
}
.header-inner {
  width: 92%; /* antes 90% */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}
/* ===== LOGO ===== */
.logo {
  height: 55px;
  width: auto;
  margin-left: -15px; /* desplaza 10px hacia la izquierda */
}

/* ===== NAVEGACIÓN ===== */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 6px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ffb800;
}

/* ===== SUBMENÚ ===== */
.submenu {
  display: block;
  position: absolute;
  top: 42px;
  left: 0;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.main-nav li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 950px) {
  .submenu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .submenu.open {
    display: block;
  }
}


.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: 10px 18px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.submenu a:hover {
  background-color: #f8f9fa;
  color: #003366;
}

.main-nav li:hover .submenu {
  display: block;
}

/* ===== BOTÓN CTA ===== */
.btn-cta {
  background-color: #ffb800;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #003366;
  color: #fff;
}

/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: #003366;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .btn-cta {
    display: none;
  }
}



/* === SECCIONES === */
.section {
  padding: 5rem 0;
}
.section-title {
  text-align: center;
  color: #004aad;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}
.cards-grid, .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card, .course-card, .plan-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover, .course-card:hover, .plan-card:hover {
  transform: translateY(-5px);
}
.course-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.btn-primary {
  background: #004aad;
  color: #fff;
}
.btn-primary:hover {
  background: #002e6b;
}
.btn-outline {
  border: 2px solid #004aad;
  color: #004aad;
}
.btn-outline:hover {
  background: #004aad;
  color: #fff;
}
.plan-card.highlight {
  border: 3px solid #fdd835;
}
.price {
  display: block;
  font-weight: 700;
  color: #e41e26;
  margin-top: 1rem;
}

.footer {
  background: #0b0b0b;
  color: #f1f1f1;
  padding: 60px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
  border-left: 4px solid #d50000;
  padding-left: 8px;
}

.footer p, .footer a {
  color: #dcdcdc;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
}

.footer a:hover {
  color: #ff5252;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-social {
  text-align: center;
  margin-bottom: 20px;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin-top: 10px;
}

.social-icons a {
  background: #222;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #d50000;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding-top: 15px;
}

.footer-bottom a {
  color: #ff5252;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer h4 {
    border-left: none;
    padding-left: 0;
  }
}


/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .main-nav {
    display: none;
  }
}
/* === HERO SLIDER === */
.hero-slider {
  height: 90vh;
  position: relative;
  overflow: hidden;
  margin-top: 80px; /* para dejar espacio al header fijo */
}

.hero-slider {
  position: relative;
}

.hero-form {
  position: absolute;
  top: 50%;
  right: 7%; /* alineado a la derecha */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55); /* fondo oscuro semi-transparente */
  padding: 2rem 2.2rem;
  border-radius: 15px;
  max-width: 360px;
  width: 100%;
  text-align: left;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 10;
  backdrop-filter: blur(5px); /* efecto vidrio elegante */
}

.hero-form h3 {
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffd600; /* acento amarillo para resaltar */
}

.hero-form input,
.hero-form select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
}
.hero-form input::placeholder,
.hero-form select {
  color: #555;
}

.hero-form button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #d50000, #ffd600);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-form button:hover {
  background: linear-gradient(90deg, #ffd600, #d50000);
  color: #000;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Para que el contenido quede a la izquierda */
  padding-left: 10%;
  box-sizing: border-box;
  /* Para animar entrada suave */
  transform: translateX(30px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 10;
}

/* Overlay del slide más uniforme y elegante */
.hero-slider .slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 120, 0.5); /* azul semitransparente */
  backdrop-filter: blur(2px); /* suaviza la imagen */
  border-radius: 0 0 60px 0;
  z-index: 1;
}


.hero-content {
  position: relative; /* para que esté sobre el ::before */
  z-index: 2;
  max-width: 600px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Hero content */
.hero-content h1 {
  font-size: 3.5rem; /* un poco más grande y llamativo */
  line-height: 1.1;
}
.hero-content h1 span {
  animation: highlightPulse 2s infinite alternate ease-in-out;
  color: #FDD835;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 1rem;
  font-weight: 400;
  animation: fadeInUp 1.3s ease forwards;
}

/* Botón llamativo para CTA */
.hero-content .btn-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background-color: #FDD835;
  color: #111;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(253, 216, 53, 0.6);
  transition: all 0.3s ease;
  text-transform: uppercase;
  animation: fadeInUp 1.6s ease forwards;
}

.hero-content .btn-cta:hover {
  background-color: #e6c700;
  box-shadow: 0 8px 20px rgba(230, 199, 0, 0.8);
  transform: translateY(-3px);
  cursor: pointer;
}

/* Animaciones */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlightPulse {
  0% {
    color: #FDD835;
    text-shadow: 0 0 5px #FDD835;
  }
  100% {
    color: #fff59d;
    text-shadow: 0 0 20px #fff59d;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-slider .slide {
    padding-left: 5%;
    justify-content: center;
  }
  .hero-content {
    max-width: 90%;
    text-align: center;
  }
  .hero-content .btn-cta {
    width: 100%;
    padding: 1rem 0;
  }
}

/* Sección general */
.section.institucional {
  padding: 80px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 40px;
}

/* Contenedor de pestañas */
.tabs {
  max-width: 1000px;
  margin: 0 auto;
}

/* Sección general */
.section.institucional {
  padding: 80px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 40px;
}

/* Contenedor de pestañas */
.tabs {
  max-width: 1000px;
  margin: 0 auto;
}

/* Botones de pestañas */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: #eaeaea;
  color: #333;
  border: none;
  padding: 16px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tab-btn:hover {
  background-color: #ffd60a;
  color: #000;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: #ffcd00;
  color: #000;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Contenido de pestañas */
.tab-content {
  display: none;
  animation: fadeIn 0.6s ease;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tab-img img {
  max-width: 350px;
  border-radius: 12px;
  margin: 20px;
}

.tab-text {
  max-width: 500px;
  text-align: justify; /* <-- Aquí el cambio principal */
  margin: 20px;
}

.tab-text h3 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 15px;
}

.tab-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  text-align: justify; /* <-- También aquí para asegurar el justificado */
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}


/* SECCIÓN CURSOS */
.section.cursos {
  background-color: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* SECCIÓN RUTAS DE FORMACIÓN */
.section.rutas {
  background-color: #f8f9fa;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.section-title span {
  color: #ffcd00;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 750px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* GRID */
.ruta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  justify-items: center;
}

/* TARJETAS */
.ruta-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 340px;
  border-top: 5px solid transparent;
}

.ruta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-top: 5px solid #ffcd00;
}

/* ÍCONOS */
.ruta-icon {
  background-color: #003366;
  color: #fff;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 34px;
}

.ruta-card h3 {
  color: #111;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ruta-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ruta-card {
    padding: 25px 20px;
  }
  .ruta-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

/* SECCIÓN CTA RUTA */
.section.cta-ruta {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

/* IMAGEN MÁS PEQUEÑA */
.cta-img {
  flex: 0 0 40%; /* ocupa el 40% del ancho */
  display: flex;
  justify-content: center;
}

.cta-img img {
  width: 85%; /* imagen más pequeña */
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* CONTENIDO */
.cta-content {
  flex: 1;
  min-width: 320px;
  text-align: left;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.3;
}

.cta-content h2 span {
  color: #ffcd00;
}

.cta-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.7;
  text-align: justify;
}

/* BOTÓN */
.btn.btn-primary {
  display: inline-block;
  background-color: #ffcd00;
  color: #000;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: #003366;
  color: #fff;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-img {
    flex: 0 0 auto;
  }

  .cta-img img {
    width: 70%;
    max-width: 300px;
  }

  .cta-content {
    text-align: center;
  }

  .cta-content p {
    text-align: center;
  }
}
/* SECCIÓN CONTACTO */
.section.contacto {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 50px;
}

/* INFO DE CONTACTO */
.contacto-info {
  flex: 1;
  min-width: 320px;
}

.contacto-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
}

.contacto-info p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

.contacto-datos {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.contacto-datos li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.contacto-datos i {
  color: #ffcd00;
  margin-right: 10px;
}

/* REDES SOCIALES */
.contacto-redes a {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  margin-right: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contacto-redes a:hover {
  background-color: #ffcd00;
  color: #000;
  transform: translateY(-2px);
}

/* FORMULARIO */
.contacto-formulario {
  flex: 1;
  min-width: 320px;
  background: #fff;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contacto-formulario .form-group {
  margin-bottom: 20px;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  outline: none;
  border-color: #ffcd00;
}

.contacto-formulario .btn.btn-primary {
  width: 100%;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contacto-container {
    flex-direction: column;
  }

  .contacto-formulario {
    width: 100%;
  }
}



.ruta-header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #004aad, #0099ff);
  color: white;
  border-radius: 0 0 2rem 2rem;
}

.buscador-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.buscador-container input,
.buscador-container select {
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 250px;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.programa-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.programa-card:hover {
  transform: translateY(-5px);
}

.icono-programa {
  font-size: 2rem;
  color: #004aad;
  margin-bottom: 1rem;
}

.btn-vermas {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #004aad;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
}
.btn-vermas:hover {
  background: #007bff;
}

