/* Página interna: permite scroll y mantiene el look & feel del sitio */
body.subpage{
  overflow:auto;
  background: linear-gradient(135deg,var(--overlayA),var(--overlayB));
}

.subpage-main{
  padding-top: calc(var(--header-h) + 24px);
  /* El footer es fijo: dejamos espacio suficiente para que no tape el contenido */
  padding-bottom: calc(var(--footer-h) + 48px);
}

/* Hero */
.sub-hero{
  padding: 28px 8% 18px;
}
.sub-hero__inner{
  max-width: 1180px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:center;
}

@media (min-width: 980px){
  .sub-hero__inner{
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}

.kicker{
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 10px;
}

.sub-hero h1{
  font-family:'Playfair Display',serif;
  font-size: clamp(2.0rem, 3.3vw, 3.0rem);
  line-height: 1.06;
  margin-bottom: 10px;
}

.subtitle{
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 16px;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 18px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 300;
  font-size: 0.95rem;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 14px;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration:none;
  color:#fff;
  background: rgba(98,156,242,0.22);
  border: 1px solid rgba(98,156,242,0.45);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.cta:hover{
  transform: translateY(-1px);
  opacity: 0.92;
}
.cta.ghost{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
}

/* Imagen: corte horizontal priorizando cara + pizarra */
.sub-hero__media{
  margin:0;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.12);
}
.sub-hero__media img{
  width:100%;
  height: 290px;
  object-fit: cover;
  /* Ajusta si quieres mostrar más cara o más pizarra */
  object-position: 62% 30%;
  display:block;
}
@media (min-width: 980px){
  .sub-hero__media img{height: 360px;}
}

/* Contenido */
.content-wrap{
  padding: 10px 8% 0;
}

.cards-3,
.cards-2{
  max-width: 1180px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 980px){
  .cards-3{grid-template-columns: repeat(3, 1fr);}
  .cards-2{grid-template-columns: repeat(2, 1fr);}
}

.page-card{
  background: rgba(255,255,255,0.92);
  color:#1b1b1b;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 54px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.35);
}

.page-card h2{
  font-family:'Playfair Display',serif;
  color: var(--primary);
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.page-card p{
  line-height: 1.9;
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.page-card a{color: var(--primary);}

.note{
  font-size: 0.95rem;
  opacity: 0.85;
}

.hours{font-size:1.05rem;}

.price{
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0,64,159,0.05);
  border: 1px dashed rgba(0,64,159,0.28);
}

.check{
  margin-top: 8px;
  padding-left: 18px;
}
.check li{margin: 8px 0; line-height: 1.7; font-weight: 300;}

/* Tabla calendario */
.table-wrap{
  overflow-x:auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
}

.calendar{
  width:100%;
  border-collapse: collapse;
  min-width: 860px;
}

.calendar th,
.calendar td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align:left;
  vertical-align: top;
  font-weight: 300;
}

.calendar thead th{
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,64,159,0.04);
}

.calendar tbody th{
  font-weight: 500;
}


/* Tarjetas sueltas (Contacto / Calendario): mismo ancho y separación */
.content-wrap > .page-card{
  max-width: 1180px;
  margin: 16px auto 0;
}


/* Logos de reconocimiento */
.accreditation-logos{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 14px;
}
.accreditation-logos img{
  height: 54px;
  width: auto;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
  padding: 8px;
}


/* Calendario: formato móvil tipo "tarjetas" (sin scroll horizontal) */
@media (max-width: 720px){
  .table-wrap{
    overflow: visible;
    border: 0;
  }

  .calendar,
  .calendar thead,
  .calendar tbody,
  .calendar th,
  .calendar td,
  .calendar tr{
    display:block;
    width:100%;
  }

  .calendar{
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .calendar thead{
    display:none;
  }

  .calendar tbody tr{
    background: rgba(0,64,159,0.04);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    margin: 12px 0;
    overflow:hidden;
  }

  .calendar tbody th{
    padding: 12px 14px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0,64,159,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .calendar tbody td{
    position: relative;
    padding: 10px 14px 10px 46%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
  }

  .calendar tbody td:last-child{
    border-bottom: 0;
  }

  .calendar tbody td::before{
    content: attr(data-label);
    position:absolute;
    left:14px;
    top:10px;
    width: 40%;
    font-weight: 500;
    opacity: 0.9;
  }
}

/* ===== Mejoras v4 ===== */

/* Ilustraciones en tarjetas (Duración / Horarios) */
.card-illustration{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  /* La imagen va al final del bloque */
  margin: 12px 0 0 0;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
}
@media (min-width: 900px){
  .card-illustration{
    height: 200px;
  }
}

/* Logos de reconocimiento: más grandes */
.accreditation-logos{
  margin: 12px 0 12px 0;
  gap: 18px;
}
.accreditation-logos img{
  height: clamp(90px, 8vw, 130px);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Bloque de metodología (imagen) */
.methodology{
  width: 100%;
  max-width: 1180px;
  /* Mismo ancho que el conjunto de tarjetas */
  margin: 16px auto 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.60);
}

.methodology__title{
  margin: 0 0 12px 0;
}

.methodology__media{
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
}

.methodology__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* En móvil, que ocupen bien el ancho */
@media (max-width: 720px){
  .accreditation-logos img{
    height: 110px;
    max-width: 100%;
  }
}

.enrollment-banner{
  margin: 8px 0 10px;
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
  font-weight: 700;
  letter-spacing: 0.02em;
  position:relative;
}
.enrollment-banner::before{
  content:"";
  width:10px; height:10px; border-radius:999px;
  background:#49c15c;
  box-shadow:0 0 0 4px rgba(73,193,92,0.15);
  position:absolute; left:14px; top:14px;
}
.enrollment-banner__line{display:block; padding-left:20px;}
.teacher-line{
  display:block;
  margin-top: 4px;
  margin-left: 1.15rem;
  font-weight: 500;
  color: var(--primary);
}
