/* ====== ESTILOS GENERALES ====== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #001f3f;
}

/* ====== ENCABEZADO Y NAVEGACIÓN ====== */
header {
  background-color: #000000;
  color: #001f8a;
  text-align: center;
  padding: 20px;
  border-bottom: 3px solid #001f8a;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.titulo-header h1 {
  margin: 0;
  font-size: 3.2em;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
  color: #e60023;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, color 0.3s ease;
}

.titulo-header h1:hover {
  transform: scale(1.05);
  color: #001f8a;
}

.titulo-header p {
  margin: 5px 0 0;
  font-size: 1.1em;
  color: #001f8a;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  letter-spacing: 2px;
}

header p {
  font-size: 1.2em;
  margin-top: 10px;
}

/* ====== NAVEGACIÓN ====== */
nav {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  flex-wrap: wrap;
  border-bottom: 3px solid #001f8a;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.titulo-header h1 {
  margin: 0;
  font-size: 2.7em;
}

.nav-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==== BOTONES ANIMADOS ==== */
.btn {
  font-size: 16px;
  background: transparent;
  border: none;
  padding: 0.8em 1.2em;
  color: #001f8a;
  text-transform: uppercase;
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #0003c8;
  transition: 0.3s ease;
}

.btn:hover {
  color: #dfdfdf;
  transition-delay: 0.5s;
}

.btn:hover::before {
  width: 100%;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: #c80000;
  transition: 0.4s ease;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
  transition-delay: 0.4s;
}

/* Enlaces */
a {
  text-decoration: none;
  color: #022bbe;
  font-weight: 900;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffffff;
  background-color: #022bbe;
}

/* ===== BOTÓN DE HAMBURGUESA ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  margin-left: 15px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #001f8a;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    border-top: 2px solid #001f8a;
    padding: 15px 0;
  }

  .nav-right.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ====== SECCIONES ====== */
section {
  padding: 40px 20px; /* menos padding vertical */
  margin: 0 auto 20px auto; /* espacio pequeño entre secciones */
}

/* Ajuste general de títulos */
section h2 {
  margin-bottom: 25px; /* reduce margen inferior de títulos */
}

/* ====== SECCIÓN INICIO ====== */
.inicio-section {
  max-width: 1200px;
  margin: auto;
}

.inicio-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.inicio-texto {
  flex: 1 1 500px;
  text-align: left;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 2.5s ease;
}

.inicio-texto.visible {
  opacity: 1;
  transform: translateX(0);
}

.inicio-texto h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.7em;
  color: #c80000;
  margin-bottom: 15px;
}

.inicio-texto h2 {
  font-size: 2em;
  color: #001f8a;
  margin-bottom: 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
}

.inicio-texto p {
  font-size: 1.3em;
  line-height: 1.9;
  color: #001f3f;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
}

.inicio-imagen img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 2.5s ease;
}

.inicio-imagen img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== BOTÓN WHATSAPP ===== */
.whatsapp-link {
  display: inline-block;
}

.whatsapp-link button {
  background-color: #fff;
  border: 2px solid #25D366;
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  border-radius: 0.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  overflow: hidden;
  white-space: nowrap;
}

.whatsapp-link button p {
  margin: 0;
  color: #25D366;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1px;
  text-align: center;
  transition: 0.3s;
}

.whatsapp-link button:hover {
  background-color: #25D366;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.whatsapp-link button:hover p {
  color: #fff;
}

/* ====== PROGRAMAS ====== */
#programas {
  text-align: center;
  background-color: #f8f9fa;
  
}

.programas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
    padding-bottom: 50px; /* agrega espacio debajo de las cards */

}
#programas h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  color: #c80000;
  text-align: center;
  margin-bottom: 25px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 250px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card strong {
  font-size: 1.5em;
  color: #00268d;
  margin: 30px 0;
  font-family: 'Oswald', sans-serif;
}

/* ====== METODOLOGÍA ====== */
#metodo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: justify;
  line-height: 2;
  font-family: 'Roboto', sans-serif;
  color: #001f3f;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-weight: 800;
}

#metodo h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  color: #c80000;
  text-align: center;
  margin-bottom: 25px;
}

/* ====== NIVELES ====== */
#niveles {
  text-align: center;
  background-color: #f8f9fa;
}
#niveles h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  color: #c80000;
  text-align: center;
  margin-bottom: 25px;
}
.niveles-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.nivel-card {
  position: relative;
  width: 200px;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: translateY(-50px);
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.8s ease;
}

.nivel-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.nivel-card span {
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 0;
  font-weight: bold;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.nivel-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ====== REGISTRO ====== */
#registro {
  background-color: #f8f9fa;
  text-align: center;
  padding: 40px 20px;
}

.form-registro {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-registro label {
  text-align: left;
  font-weight: bold;
}

.form-registro input,
.form-registro select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.form-registro button {
  padding: 12px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-registro button:hover {
  background-color: #1ebe57;
}

/* ====== CONTACTO ====== */
#contacto {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #001f3f;
}

#contacto h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.2em;
  color: #c80000;
  margin-bottom: 25px;
}

#contacto p {
  font-size: 1.1em;
  margin: 10px 0;
}

#contacto p b {
  color: #c80000;
  font-weight: 700;
}

#contacto .contacto {
  margin-top: 25px;
  font-size: 1.2em;
  font-weight: 700;
  color: #001f8a;
}

/* ====== FOOTER ====== */
footer {
  background-color: #031b74;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* ====== RESPONSIVIDAD ====== */
@media (max-width: 992px) {
  .titulo-header h1 { font-size: 2.4em; }
  nav { padding: 15px 25px; }
  .inicio-texto h1 { font-size: 2.2em; }
  .inicio-texto h2 { font-size: 1.6em; }
  .inicio-texto p { font-size: 1.1em; }
  .card { width: 45%; height: auto; }
  .nivel-card { height: 280px; }
}

@media (max-width: 768px) {
  nav { flex-direction: column; align-items: center; }
  .nav-right { flex-direction: column; gap: 15px; }
  .inicio-container { flex-direction: column; text-align: center; }
  .inicio-texto { text-align: center; transform: none; opacity: 1; }
  .inicio-imagen img { max-width: 90%; margin-top: 20px; }
  .programas { flex-direction: column; align-items: center; }
  .card { width: 85%; height: auto; }
  .niveles-container { flex-direction: column; align-items: center; }
  .form-registro { width: 100%; padding: 0 10px; }
  #contacto { padding: 20px 15px; }
}

@media (max-width: 576px) {
  .logo { width: 70px; height: 70px; }
  .titulo-header h1 { font-size: 1.9em; letter-spacing: 1px; }
  .btn { font-size: 14px; padding: 0.6em 1em; }
  .inicio-texto h1 { font-size: 1.8em; }
  .inicio-texto h2 { font-size: 1.3em; }
  .inicio-texto p { font-size: 1em; }
  .card { width: 90%; }
  .nivel-card { height: 160px; }
 .whatsapp-link button {
    width: 100%;          /* ocupa todo el ancho disponible */
    white-space: normal;  /* permite que el texto se divida en varias líneas */
    box-sizing: border-box; }
  #contacto h2 { font-size: 1.6em; }
  #contacto p { font-size: 0.95em; }
  footer { font-size: 0.8em; }
}

@media (max-width: 400px) {
  .titulo-header h1 { font-size: 1.6em; }
  .inicio-texto h1 { font-size: 1.5em; }
  .inicio-texto h2 { font-size: 1.1em; }
  .inicio-texto p { font-size: 0.9em; }
  .card { width: 95%; }
  .nivel-card { height: 140px; }
}
