/* ==========================================================================
   bachillerato.css
   Página de Bachillerato ITLA. Sigue el diseño del cliente (línea Bachillerato
   del PDF de pantones: verde azulado #038D83, ámbar #F19617 y gris #575757)
   con mejoras: franja de respaldo, tarjetas con íconos y resaltado, menú de
   contacto por campus, cifras con conteo y botones con buen contraste.
   REGLA: los colores de Bachillerato viven SOLO dentro de
   <main class="theme-bachillerato">; encabezado, pie y botón "volver arriba"
   conservan los azules ITLA.
   Comportamiento: js/bachillerato.js
   ========================================================================== */

/* ---------- Tema Bachillerato (variables locales) ---------- */
.theme-bachillerato {
  --bc: var(--c-bc);                                          /* verde azulado oficial */
  --bc-dark: color-mix(in srgb, var(--c-bc) 62%, var(--c-bc-noche));    /* versión oscura: textos y franjas con buen contraste */
  --bc-soft: color-mix(in srgb, var(--c-bc) 10%, #fff);       /* fondos suaves de íconos */
  --am: var(--c-am);                                          /* ámbar oficial (botones y acentos) */
  --am-ink: var(--c-am-ink);                                      /* texto sobre ámbar (el blanco no alcanza contraste) */
  --ink: var(--bc-dark);
  --blue: var(--bc);
  --grad: linear-gradient(135deg, var(--bc-dark), var(--bc));
  --linea-titulo: var(--c-bc);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-bachillerato {
    --bc-soft: rgba(255, 255, 255, .06);
    --ink: #fff;
    --blue: var(--c-bc-claro);
  }
}
:root[data-theme="dark"] .theme-bachillerato {
  --bc-soft: rgba(255, 255, 255, .06);
  --ink: #fff;
  --blue: var(--c-bc-claro);
}

/* Resaltado de puntos clave: subrayado ámbar en lugar del turquesa ITLA */
.theme-bachillerato .hl {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--c-am) 38%, transparent) 0);
}

/* Franjas con el mismo patrón de círculos, en tono Bachillerato */
.theme-bachillerato .trust {
  background: var(--bc-dark);
}
.theme-bachillerato .band {
  background: linear-gradient(135deg, var(--bc-dark), var(--bc));
}

/* ---------- Portada "solo imagen" (estilos del bloque en css/page-hero.css): fondo del tema ---------- */
.theme-bachillerato .page-hero--img {
  background: var(--c-bc-franja);
}

/* ---------- Botones del tema ---------- */
.bc-btn {
  display: inline-block;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font: 700 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.bc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}
.bc-btn:focus-visible {
  outline: 3px solid var(--am);
  outline-offset: 3px;
}
.bc-btn--am {
  background: var(--am);
  color: var(--am-ink);
}
.bc-btn--am:hover {
  background: color-mix(in srgb, var(--c-am) 88%, #fff);
}
.bc-btn--bc {
  background: var(--bc-dark);
  color: #fff;
}
.bc-btn--bc:hover {
  background: var(--bc);
}

/* ---------- "Más que clases": texto + foto del laboratorio ---------- */
.bc-more .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}
.bc-more h2 {
  text-align: left;
}
.bc-more h2::after {
  margin-left: 0;
}
.bc-more .lead {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.bc-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
.bc-feats li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bc-feats li:hover {
  transform: translateY(-3px);
  border-color: var(--am);
  box-shadow: 0 10px 24px rgb(var(--c-sombra-rgb) / .1);
}
.bc-feats .ico {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 10px;
  background: var(--bc-soft);
  color: var(--blue);
}
.bc-feats .ico .ic {
  width: 1.4rem;
  height: 1.4rem;
}
.bc-photo {
  position: relative;
  margin: 0;
}
.bc-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgb(var(--c-sombra-rgb) / .22);
}
/* Marco ámbar desplazado detrás de la foto (acento de la línea Bachillerato) */
.bc-photo::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  z-index: -1;
  border: 3px solid var(--am);
  border-radius: 20px;
}
@media (max-width: 900px) {
  .bc-more .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .bc-photo {
    order: -1;
  }
  .bc-photo::before {
    inset: .7rem -.5rem -.7rem .5rem;
  }
}
@media (max-width: 520px) {
  .bc-feats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Áreas de especialización ---------- */
.bc-areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.bc-area {
  position: relative;
  padding: 1.7rem 1.5rem 1.8rem;
  background: var(--surface);
  border-top: 5px solid var(--am);
  border-radius: 6px 6px 16px 16px;
  box-shadow: 0 2px 14px rgb(var(--c-sombra-rgb) / .08);
  transition: transform .3s, box-shadow .3s;
}
.bc-area:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgb(var(--c-bc-sombra-rgb) / .2);
}
.bc-area .ico {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  background: var(--bc-soft);
  color: var(--blue);
  transition: background .3s, color .3s;
}
.bc-area:hover .ico {
  background: var(--bc);
  color: #fff;
}
.bc-area .ico .ic {
  width: 1.6rem;
  height: 1.6rem;
}
.bc-area h3 {
  margin-top: 1.2rem;
  font: 700 1.3rem/1.25 var(--font);
  color: var(--text);
}
.bc-area p {
  margin-top: .8rem;
  color: var(--muted);
  line-height: 1.6;
}
.bc-cta {
  margin-top: 2.6rem;
  text-align: center;
}
@media (max-width: 1120px) {
  .bc-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .bc-areas {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Propedéutico: franja con menú de contacto por campus ---------- */
.bc-prop .box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(100deg, var(--c-navy) 0%, var(--bc-dark) 55%, var(--bc) 100%);
}
.bc-prop .txt {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.bc-prop .q-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--am);
}
.bc-prop .q-ico .ic {
  width: 1.9rem;
  height: 1.9rem;
}
.bc-prop h2 {
  font: 700 clamp(1.4rem, 3vw, 2.1rem)/1.15 var(--font);
  color: #fff;
  text-align: left;
}
.theme-bachillerato section.b.bc-prop h2::after {
  display: none;
}
.bc-prop p {
  margin-top: .35rem;
  opacity: .92;
}
.bc-menu {
  position: relative;
}
.bc-menu > button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.bc-menu > button .chev {
  transition: transform .25s;
}
.bc-menu > button[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.bc-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  z-index: 5;
  min-width: min(21rem, 86vw);
  margin: 0;
  padding: .5rem;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.bc-menu a {
  display: block;
  padding: .8rem 1rem;
  border-radius: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.bc-menu a small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-weight: 500;
}
.bc-menu a:hover,
.bc-menu a:focus-visible {
  background: var(--bc-soft);
  outline: none;
}
@media (max-width: 700px) {
  .bc-menu,
  .bc-menu > button {
    width: 100%;
  }
  .bc-menu > button {
    justify-content: center;
  }
  .bc-menu ul {
    left: 0;
    right: 0;
  }
}

/* ---------- Cifras sobre franja verde azulada con patrón ---------- */
.bc-stats {
  position: relative;
  overflow: hidden;
  background: var(--bc);
  color: #fff;
}
.bc-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 16px, rgba(255, 255, 255, .08) 16px 18px), repeating-radial-gradient(circle at 0 100%, transparent 0 16px, rgba(255, 255, 255, .06) 16px 18px);
}
.bc-stats .wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.bc-stats .ic {
  width: 2.4rem;
  height: 2.4rem;
}
.bc-stats strong {
  display: block;
  margin-top: .6rem;
  font: 700 clamp(2rem, 4.6vw, 3rem)/1 var(--font);
}
.bc-stats span {
  display: block;
  margin-top: .4rem;
  opacity: .95;
}
.bc-stats .rvoe {
  display: inline-block;
  margin-top: .6rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  background: #fff;
  color: var(--am-ink);
  font: 700 clamp(1.1rem, 2.4vw, 1.5rem) var(--font);
  letter-spacing: .02em;
}
.bc-stats .rvoe em {
  font-style: normal;
  color: var(--c-am-oscuro);
}
@media (max-width: 700px) {
  .bc-stats .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Llamado final ---------- */
.theme-bachillerato .band .bc-btn {
  margin-top: 1.8rem;
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .bc-btn,
  .bc-feats li,
  .bc-area,
  .bc-area .ico,
  .bc-menu > button .chev {
    transition: none;
  }
}
