 :root {
  --azul-principal: #2e2ea5;
  --azul-hover: #1f1f80;
  --texto-claro: #ffffff;
  --texto-oscuro: #333333;
  --borde-suave: #3a57af;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-texto: 'Inter', sans-serif;
}

/* Base */
body {
  font-family: var(--fuente-texto);
  background-color: #ffffff;
  color: var(--texto-oscuro);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Intro */
#intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--azul-principal);
}

#intro img {
  width: 34vw;
  max-width: 340px;
  min-width: 120px;
  height: auto;
  object-fit: contain;
  animation: pulseIn 1.4s ease-out;
}

@keyframes pulseIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--azul-principal);
  border-bottom: 1px solid #fcfcff;
  position: relative;
}

.logo img {
  width: 200px;
  height: auto;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: var(--texto-claro);
  font-weight: bold;
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--texto-claro);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #cddcff;
}

/* Responsive menú */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(248, 245, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 40px 20px;
    z-index: 15;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    margin: 15px 0;
    font-size: 20px;
    color: var(--azul-principal);
  }
}

/* Títulos */
h1, h2, h3 {
  font-family: var(--fuente-titulo);
  color: var(--azul-principal);
  text-align: center;
  margin-bottom: 0.5em;
}

/* Hero */
.hero {
  padding: 80px 20px;
  text-align: center;
  background-color: #f5f7ff;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero button {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero button:hover {
  background-color: var(--azul-hover);
  transform: scale(1.05);
}

/* Cards y Carrusel */
.card-curso,
.slide {
  background-color: #ffffff;
  border: 2px solid var(--borde-suave);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 300px;
  margin: 2em auto;
  transition: transform 0.3s ease;
}

.card-curso:hover,
.slide:hover {
  transform: scale(1.03);
  border-color: var(--azul-principal);
}

.card-curso img,
.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.boton-ver-mas {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-ver-mas:hover {
  background-color: var(--azul-hover);
  transform: scale(1.05);
}



/* Beneficios */
.beneficios {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  background-color: #f5f7ff;
  text-align: center;
}

.beneficio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.icono {
  font-size: 2rem;
  color: var(--azul-principal);
  background-color: #e0e6ff;
  padding: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contenido h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--azul-hover);
}

.contenido p {
  margin: 0;
  font-size: 1.1rem;
}

/* Certificaciones */
.certificaciones {
  background-color: #f5f7ff;
  padding: 60px 20px;
  text-align: center;
}

.cert-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #ffffff;
  border-left: 4px solid var(--azul-principal);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90, 78, 124, 0.08);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.cert-item h3 {
  font-size: 1.4rem;
  color: var(--azul-hover);
}

.cert-item p {
  font-size: 1.1rem;
}

/* Contacto */
.contacto-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.contacto-texto {
  flex: 1 1 400px;
  max-width: 600px;
}

.contacto-texto h2 {
  font-size: 2.4rem;
  color: var(--azul-principal);
}

.contacto-texto p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--azul-hover);
  background-color: #f5f7ff;
  padding: 15px 20px;
  border-left: 4px solid var(--azul-principal);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.btn-contacto {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contacto:hover {
  background-color: var(--azul-hover);
  transform: scale(1.05);
}

.contacto-imagen {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7ff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contacto-imagen img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Footer */
.footer {
  background-color: #f5f7ff;
  text-align: center;
  padding: 2em 1em;
  color: var(--azul-principal);
  font-size: 1em;
  font-family: var(--fuente-texto);
  border-top: 1px solid var(--borde-suave);
}

.footer p {
  margin: 0.5em 0;
  color: var(--azul-hover);
}

.footer .social {
  margin: 1em 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .social a {
  display: inline-block;
}

.footer .social a img {
  display: block;
  margin: 0 auto;
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

.footer .social a:hover img {
  transform: scale(1.1);
}

.footer .copy {
  font-size: 0.9em;
  color: #1e4f7a;
  margin-top: 1em;
  letter-spacing: 0.5px;
}

.logo-footer {
  text-align: center;
  margin-bottom: 1em;
}

.logo-footer img {
  display: block;
  margin: 0 auto;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo-footer img:hover {
  transform: scale(1.05);
}
.valor img {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .valor img {
    max-width: 120px;
  }
}
.valor p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--azul-hover);
  margin-top: 0.5em;
  margin-bottom: 0;
  padding: 0 10px;
  text-align: center;
}
@media (max-width: 768px) {
  .valor p {
    font-size: 0.95rem;
    padding: 0 8px;
  }
}
.valores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background-color: #ffffff;
}

.valor {
  background-color: #f5f7ff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  max-width: 280px;
  text-align: center;
  flex: 1 1 240px;
}

.valor img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.valor h3 {
  font-size: 1.3rem;
  color: var(--azul-principal);
  margin-bottom: 0.5em;
}

.valor p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--azul-hover);
  margin: 0;
  padding: 0 10px;
}
@media (max-width: 768px) {
  .valores {
    flex-direction: column;
    align-items: center;
  }

  .valor {
    max-width: 90%;
  }
}
.sobre-nosotros {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  padding: 60px 30px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 40px auto;
}

.sobre-nosotros h2 {
  font-family: var(--fuente-titulo);
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--texto-claro);
}

.sobre-nosotros p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 700px;
  color: var(--texto-claro);
}
@media (max-width: 768px) {
  .sobre-nosotros {
    padding: 40px 20px;
  }

  .sobre-nosotros h2 {
    font-size: 1.8rem;
  }

  .sobre-nosotros p {
    font-size: 1rem;
  }
}
.sobre-nosotros p {
  color: var(--texto-claro); /* blanco institucional */
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}
.sobre-nosotros .valor p {
  color: var(--azul-hover);
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
}
/* Título del carrusel */
.titulo-carrusel {
  font-family: var(--fuente-titulo);
  font-size: 2.2rem;
  color: var(--azul-principal);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}



/* Slide individual */
.slide {
  background-color: #ffffff;
  border: 2px solid var(--borde-suave);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 300px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: scale(1.03);
  border-color: var(--azul-principal);
}

/* Imagen del curso */
.slide img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

/* Texto del curso */
.slide p {
  font-size: 1.1rem;
  color: var(--azul-hover);
  margin-bottom: 0.8em;
  font-weight: 500;
}

/* Botón Ver más */
.boton-ver-mas {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-ver-mas:hover {
  background-color: var(--azul-hover);
  transform: scale(1.05);
}
.titulo-carrusel {
  font-family: var(--fuente-titulo);
  font-size: 2.2rem;
  color: var(--azul-principal);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}


/* Slide individual */
.slide {
  background-color: #ffffff;
  border: 2px solid var(--borde-suave);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 280px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
  margin: 0 auto; /* centra cada slide si no hay scroll infinito */
}
.detalle-curso {
  background-color: #ffffff;
  color: var(--texto-oscuro);
  padding: 60px 30px;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  font-family: var(--fuente-texto);
}

.detalle-curso h1 {
  font-family: var(--fuente-titulo);
  font-size: 2.4rem;
  color: var(--azul-principal);
  margin-bottom: 20px;
}

.detalle-curso p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--azul-hover);
  margin-bottom: 30px;
}

.detalle-curso img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.detalle-curso ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.detalle-curso ul li {
  font-size: 1.1rem;
  color: var(--azul-principal);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.detalle-curso ul li::before {
  content: "";
  position: absolute;
  left: 0;
  color: var(--azul-hover);
  font-weight: bold;
}

.boton-ver-mas {
  background-color: var(--azul-principal);
  color: var(--texto-claro);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.boton-ver-mas:hover {
  background-color: var(--azul-hover);
  transform: scale(1.05);
}
.carrusel {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 2em 0;
  background-color: #ffffff;
}

.carrusel-track {
  display: flex;
  gap: 1em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
}

.slide {
  background-color: #ffffff;
  border: 2px solid var(--borde-suave);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.slide:hover {
  transform: scale(1.03);
  border-color: var(--azul-principal);
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

@media (max-width: 768px) {
  .carrusel {
    display: block;
    padding: 2em 1em;
  }

  .carrusel-track {
    display: flex;
    flex-direction: column;
    gap: 2em;
    overflow-x: unset;
    scroll-snap-type: none;
    align-items: center;
  }

  .slide {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  .titulo-carrusel {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 1rem;
  }
}
