.nivel-contenido {
  padding: 60px 20px;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.intro {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.feature {
  background: #558f6c;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.info-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.info-grid div {
  flex: 1;
  min-width: 250px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.areas span {
  background: #eee;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.contacto {
  margin-top: 40px;
  padding: 20px;
  background: #558f6c;
  color: white;
  border-radius: 10px;
}

.video-nivel {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.video-nivel h2 {
  margin-bottom: 30px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-desc {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.orientaciones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.orientacion {
  flex: 1;
  min-width: 250px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

.orientacion h4 {
  color: #558f6c;
}

.documentos {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.doc-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.doc-card .btn {
  display: inline-block;
  margin-top: 15px;
  background: #558f6c;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.ingles-niveles {
  padding: 60px 20px;
  background: #f5f5f5;
}

.niveles-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nivel-box {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.documentos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.documentos .doc-card {
  max-width: 400px;
}

.plan-estudios {
  padding: 60px 20px;
}

.tabla-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background: #558f6c;
  color: white;
}

tr:nth-child(even) {
  background: #f5f5f5;
}

.ateneo {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.ateneo-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.info-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
  margin-bottom: 10px;
}

.ateneo-cta {
  margin-top: 30px;
}

.ateneo-cta .btn {
  background: #558f6c;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .ateneo-info {
    grid-template-columns: 1fr;
  }
}

.postulaciones {
  padding: 60px 20px;
  background: #f5f5f5;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.paso {
  background: white;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  padding-left: 40px;
}

/* numeritos */
.paso::before {
  content: "✔";
  position: absolute;
  left: 15px;
  color: #558f6c;
  font-weight: bold;
}

.links-postulacion {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.links-postulacion .btn {
  background: #558f6c;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.contacto-postulacion {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .pasos {
    grid-template-columns: 1fr;
  }

  .links-postulacion {
    flex-direction: column;
  }
}

.pasos {
  counter-reset: paso;
}

.paso::before {
  counter-increment: paso;
  content: counter(paso);
  background: #558f6c;
  color: white;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* =======================
   INSTITUCIONAL
======================= */

.institucional {
  padding: 60px 20px;
}

.bloque-inst {
  margin: 40px 0;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.staff-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.staff-card h4 {
  margin-bottom: 10px;
}

/* =======================
   STAFF
======================= */

.staff {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.staff-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.staff-card h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.staff-card p {
  font-size: 14px;
  color: #666;
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================
   CARTA DIRECTORA
======================= */

.carta-directora {
  padding: 60px 20px;
}

.carta-directora .nombre {
  text-align: start;
  margin-bottom: 30px;
  color: #558f6c;
}

.carta-contenido {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.carta-img img {
  width: 280px;
  border-radius: 50%;
}

.carta-texto {
  flex: 1;
}

.carta-texto p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* =======================
   CARTA DIRECTORA
======================= */

.carta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 40px 0;
}

/* imagen directora */
.carta-img img {
  width: 260px;
  border-radius: 10px;
}

/* lema */
.lema {
  text-align: center;
}

.lema img {
  max-width: 260px;
}

.lema-texto {
  margin-top: 10px;
  font-weight: bold;
  color: #558f6c;
}

/* texto */
.carta-texto {
  max-width: 900px;
  margin: auto;
}

.carta-texto p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.carta-texto ul {
  margin: 20px 0;
  padding-left: 20px;
}

/* lista */
.carta-extra ul {
  margin: 20px 0;
  padding-left: 20px;
}

.carta-extra li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .carta-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .carta-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .lema {
    display: none;
  }
  carta-img img {
    max-width: 200px;
    height: auto;
  }
}

.historia-section {
  padding: 60px 20px;
  background: #f9f9f9;
  font-family: sans-serif;
  overflow: hidden;
}

/* HERO */
.historia-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.historia-hero-text {
  flex: 1;
}

.historia-hero-text h1 {
  font-size: 2.5rem;
  color: #558f6c;
}

.historia-hero-text p {
  font-size: 1.1rem;
  margin-top: 10px;
}

.historia-hero-img {
  flex: 1;
}

.historia-hero-img img {
  width: 80%;
  border-radius: 12px;
}

/* RESUMEN */
.historia-resumen {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.1rem;
}

/* TIMELINE */
.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 20px;
  max-width: 800px;
  border-left: 3px solid #558f6c;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: #558f6c;
  border-radius: 50%;
}

.timeline-content {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  margin: 0;
  color: #558f6c;
}

/* IDENTIDAD */
.historia-identidad {
  text-align: center;
  margin: 80px 0 40px;
}

.historia-identidad h2 {
  color: #558f6c;
  margin-bottom: 10px;
}

/* GALERIA */
.historia-galeria {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.historia-galeria img {
  width: calc(33.3% - 10px);
  border-radius: 10px;
}

/* ANIMACIONES BASE */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* TIMELINE ANIMADA */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CONTADOR */
.contador {
  font-size: 2.5rem;
  font-weight: bold;
  color: #558f6c;
}

.contador-box {
  text-align: center;
  margin: 40px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .historia-hero {
    flex-direction: column;
  }

  .historia-galeria img {
    width: 100%;
  }
}

.contacto-section {
  padding: 60px 20px;
  background: #f9f9f9;
  overflow: hidden;
}

.contacto-header {
  text-align: center;
  margin-bottom: 40px;
}

.contacto-header h2 {
  color: #558f6c;
  font-size: 2rem;
}

/* GRID */
.contacto-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* FORM */
.contacto-form {
  flex: 1;
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.contacto-form button {
  background: #558f6c;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* INFO */
.contacto-info {
  flex: 1;
}

.info-box {
  margin-bottom: 20px;
}

.info-box h3 {
  color: #558f6c;
}

/* WHATSAPP */
.btn-whatsapp {
  display: inline-block;
  margin-top: 10px;
  background: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

/* MAPA */
.contacto-mapa {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contacto-container {
    flex-direction: column;
  }
}

/* HERO */
.niveles-hero {
  height: 40vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/img/historicas/acto-gimnasio.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.niveles-hero h1 {
  font-size: 2.5rem;
}

.niveles-hero p {
  margin-top: 10px;
}

/* SECTION */
.niveles-section {
  padding: 60px 20px;
  text-align: center;
}

.niveles-intro {
  max-width: 700px;
  margin: 0 auto 40px;
}

/* GRID reutilizado pero mejorado */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD CLICK COMPLETO */
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;

  background: white;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card h3 {
  padding: 20px;
  font-size: 20px;
}

.card p {
  padding: 0 20px;
  color: #555;
  flex-grow: 1;
}

/* BOTON INTERNO */
.card .btn {
  margin: 20px;
  background: #558f6c;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
}

/* HOVER */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* CTA FINAL */
.niveles-cta {
  margin-top: 60px;
}

.btn-cta {
  display: inline-block;
  margin-top: 15px;
  background: #558f6c;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .niveles-hero h1 {
    font-size: 2rem;
  }
}
