/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7fa;
  color: #333;
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* === HEADER === */
.header-nuevo {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-nuevo .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 3.5rem;
}

.titulo h1 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #003366;
  white-space: normal;
  word-break: break-word;
}


.titulo p {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #555;
  white-space: nowrap;
}

.menu ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu a {
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
}

.btn-campus {
  background: #0077b6;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* === HERO === */
.hero-rotativo {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-texto-flotante {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  max-width: 90%;
  text-align: center;
}

.hero-texto-flotante h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.hero-texto-flotante p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* === PROGRAMAS === */
.programas-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.programa {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.icono {
  font-size: 2.5rem;
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.programa h3 {
  color: #003366;
  margin: 1rem 0;
}

.lista-cursos {
  text-align: left;
  padding-left: 1rem;
  min-height: 80px;
}

.lista-cursos li.activo {
  font-weight: bold;
  color: #0077b6;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: #0077b6;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005f8a;
}

/* === VISIÓN === */
.vision-contenedor {
  padding: 4rem 2rem;
  background: #fff;
}

.vision-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.vision-imagen {
  flex: 1 1 300px;
  max-width: 500px;
}

.vision-imagen img {
  width: 100%;
  border-radius: 12px;
}

.vision-contenido {
  flex: 1 1 400px;
}

.vision-contenido h2 {
  color: #003366;
  margin-bottom: 1rem;
}

.valores-titulo {
  margin-top: 2rem;
  color: #0077b6;
}

.valores-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.valores-lista li {
  background: #f0f4f8;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: #003366;
}
/* === CONTADORES === */
.bloque-contadores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.tarjeta-contador {
  background: #f0f4f8;
  border: 1px solid #003366;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  width: clamp(140px, 25%, 180px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tarjeta-contador h4 {
  font-size: 0.9rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.tarjeta-contador strong {
  font-size: 1.5rem;
  color: #0077b6;
  display: block;
}

/* === TESTIMONIOS === */
.testimonios-slider {
  background: linear-gradient(to right, #003366, #005f8a);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.testimonios-slider .rating-google {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.slider-container {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.slide-opinion {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-size: 1.2rem;
  padding: 1rem;
}

.slide-opinion.active {
  opacity: 1;
}

/* === CONTACTO === */
.contacto-rediseñado {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: #fff;
}

.contacto-columna h2,
.contacto-columna h3 {
  color: #003366;
  margin-bottom: 1rem;
}

.contacto-columna p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.contacto-columna i {
  margin-right: 8px;
  color: #0077b6;
}

.contacto-columna a {
  color: #0077b6;
  font-weight: 600;
}

.redes-sociales {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.redes-sociales a {
  font-size: 1.4rem;
  color: #003366;
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #0077b6;
}

/* === FOOTER  === */
.footer-rediseñado {
  background: #e0e0e0;
  color: #333;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-columna {
  flex: 1 1 250px;
  max-width: 400px;
}

.footer-columna img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-columna h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-columna ul {
  padding-left: 0;
}

.footer-columna li {
  margin-bottom: 0.5rem;
}

.footer-columna a {
  color: #0077b6;
  transition: color 0.3s ease;
}

.footer-columna a:hover {
  color: #003366;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 768px) {
  .header-nuevo .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero-texto-flotante {
    padding: 1.5rem;
    font-size: 0.9rem;
  }

  .vision-layout {
    flex-direction: column;
    align-items: center;
  }

  .bloque-contadores {
    justify-content: center;
  }

  .contacto-rediseñado {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .redes-sociales {
    justify-content: center;
  }

  .footer-rediseñado {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
