/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
}

/* ------------------ NAV ------------------ */
.institutional-header {
  background-color: #0f275f;
  border-bottom: 4px solid #082e52;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

/* Logo */
.logo img {
  height: 130px;
  max-width: 100%;
  object-fit: contain;
}

/* Navegación */
.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #e1e5ea;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Hamburguesa */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive nav */
@media (max-width: 768px) {
  .logo img {
    height: 80px;
  }

  .menu-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav {
    display: none;
    width: 100%;
    background-color: #0a1e4d;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
  }

  #menu-toggle:checked ~ .nav {
    display: flex;
  }
}

/* ------------------ HERO ------------------ */
.hero {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  background-color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a1e4d;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.2rem;
  color: #0a1e4d;
  line-height: 1.6;
  margin-bottom: -80px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* ------------------ TABLA CURSOS ------------------ */
.table-container {
  background-color: #ffffff;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.452);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: #9E96B8;
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ffffff;
}

tbody tr:hover {
  background: #ebebff;
}

td small {
  color: #666;
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  background: #A63861;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.3s;
} 

.btn:hover {
  background: #13315c;
}
/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* escondemos encabezados */
  }

  tr {
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
  }

  td {
    border: none;
    padding: 0.6rem 0;
    text-align: left;
    position: relative;
  }

  td::before {
    content: attr(data-label); /* usamos el atributo data-label */
    font-weight: bold;
    color: #0a2342;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
  }

  .btn {
    margin-top: 0.6rem;
  }
}

.temario {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.459);
  font-family: "Segoe UI", sans-serif;
  color: #0a1e4d;
}

.temario h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

details {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* === COLORES POR NIVEL === */
.prope summary {
  background: #9FC2E6; /* Verde oliva */
}

.basico summary {
  background: #AE9ACA; /* Azul verdoso */
}

.intermedio summary {
  background: #F3924E; /* Naranja */
}

.avanzado summary {
  background: #A5C881; /* Rojo suave */
}

/* Estilos generales de summary */
summary {
  color: white;
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

summary::marker {
  display: none;
}

/* Flechita */
summary::after {
  content: "▶";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

/* Flechita gira cuando está abierto */
details[open] summary::after {
  transform: rotate(90deg);
}

/* Cambiar color al abrir (tono más oscuro del mismo color) */
.prope[open] summary {
  background: #7ca0c4;
}
.basico[open] summary {
  background: #9a83bb;
}
.intermedio[open] summary {
  background: #e6833c;
}
.avanzado[open] summary {
  background: #8fb964;
}

.contenido {
  padding: 1rem 1.5rem;
  background: #f9f9f9;
}

.contenido h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #143d6b;
}

.contenido ul {
  margin-left: 1rem;
  padding-left: 1rem;
  list-style: disc;
}

.contenido p {
  margin-top: 0.5rem;
  line-height: 1.5;
}


/* ------------------ CONTACTO ------------------ */
.contact-section {
  background-color: #012244; 
  color: #ffffff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  width: 100%;
  max-width: 400px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-list a:hover {
  background-color: #1e3a8a;
  transform: scale(1.05);
}

.contact-list i {
  font-size: 1.3rem;
  color: #ffffff;
}

.schedule {
  font-style: italic;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 480px) {
  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-list a {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .contact-list i {
    font-size: 1.2rem;
  }

  .contact-section p,
  .schedule {
    font-size: 0.95rem;
  }
}

/* ------------------ BOTÓN WHATSAPP ------------------ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}


.hero {
  background-color: #ffffff;
  text-align: center;
  padding: 0; /* quitamos el espacio superior, el banner ya lo compensa */
}

.hero-img {
  width: 100%;
  height: 350px; /* puedes ajustar este alto */
  object-fit: cover;
  display: block;
 /* border-bottom: 4px solid #012244; /* línea azul institucional */
  object-position: center 70%;

}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

@media (max-width: 768px) {
  .hero-img {
    height: 220px;
  }
  .hero-content {
    padding: 30px 15px 50px;
  }
}

/* Promo de cursos - vistoso, institucional y animado */
.promo-courses {
  padding: 2.75rem 1.2rem;
  background: linear-gradient(135deg, #ffffff, #ffffff); /* degradado cálido suave */
  color: #111827;

  margin-top: 3rem; /* separa la sección del header */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.7s ease-out forwards;
}

/* Animación general al aparecer */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-courses .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.promo-courses h2 {
  font-size: 1.75rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
  color: #d26028; /* tono relacionado al botón */
}

.promo-courses .lead {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  color: #374151;
}

/* --- TARJETAS --- */
.prices {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.75rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.prices li {
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;

  /* sombreado */
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);

  /* animación hover */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prices li:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(226,131,60,0.18); /* sombra en color institucional */
}

.prices h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.15rem;
  color: #1f2937;
}

.price {
  margin: 0.25rem 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.old-price {
  text-decoration: line-through;
  color: #6b7280;
  margin-right: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.new-price {
  color: #c2410c;
  background: rgba(230, 131, 60, 0.12); /* suave naranja institucional */
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.note {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.4;
}

/* --- BOTÓN --- */
.cta {
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #e6833c, #d26028);
  color: #ffffff;
  letter-spacing: 0.3px;

  /* animación */
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(214,97,23,0.4);
  outline: none;
}

/* Adaptaciones móviles */
@media (max-width: 420px) {
  .promo-courses {
    padding: 1.8rem 1rem;
  }
  .promo-courses h2 {
    font-size: 1.45rem;
  }
}

/* styles.css — copia solo este bloque donde lleves tus estilos */
/* styles.css — nueva versión con foto + fondo azul completo */
.propedeutico-section{
padding: 70px 20px;
background:#0b1e39; /* fondo azul completo */
display:flex;
justify-content:center;
}


.prop-container{
max-width:1100px;
width:100%;
display:grid;
grid-template-columns: 1fr 1fr;
gap:40px;
align-items:center;
color:white;
}


.prop-img img{
width:100%;
border-radius:18px;
height:100%;
object-fit:cover;
box-shadow:0 12px 28px rgba(0,0,0,0.28);
}


.prop-info h2{
margin:0 0 16px;
font-size:2rem;
font-weight:600;
letter-spacing:-0.5px;
color:white;
}


.desc{
color:#e6e9ef;
margin-bottom:22px;
line-height:1.6;
}


.mini-features{
list-style:none;
padding:0;
margin:0 0 30px;
display:grid;
gap:10px;
font-size:1rem;
color:#dee3ec;
}


.prop-btn{
display:inline-block;
text-decoration:none;
background: #ffffff;
color:#0b1e39;
padding:14px 26px;
border-radius:14px;
font-weight:700;
font-size:1rem;
transition:0.25s;
}


.prop-btn:hover{
transform:translateY(-2px);
background:#dfe6ff;
}


@media(max-width:900px){
.prop-container{
grid-template-columns:1fr;
text-align:center;
}
.prop-img{
order:-1;
}
}