/* ==========================================================================
   Dominizubi — estilos propios añadidos sobre css/style.css (compilado de src/sass; NO tocar style.css).
   Marca: Syne · negro #000 · rojo #E4403C · naranja #F99C2F · crema #FFFBEB
   ========================================================================== */
:root {
  --dz-black: #000;
  --dz-red: #e4403c;
  --dz-red-dark: #e4403c; /* sin tonos nuevos: se usa el rojo de marca (§12) */
  --dz-orange: #f99c2f;
  --dz-cream: #fffbeb;
  --dz-grey: #f1f1f1;
  --dz-radius: 12px;
}

html,
body {
  overflow-x: clip;
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--dz-black);
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--dz-orange);
}
main:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.filter:focus-visible {
  outline: 3px solid var(--dz-orange);
  outline-offset: 2px;
}

/* ---------- Cabecera de páginas (ruta relativa: funciona en subcarpeta y en raíz) ---------- */
.bg-pages {
  background-image: url("../images/headerimagepage.jpg");
  background-image: image-set(url("../images/headerimagepage.webp") type("image/webp"), url("../images/headerimagepage.jpg") type("image/jpeg"));
}
.bg-pages h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 576px) {
  /* padding original (8em 0) se mantiene; solo se escala el h1 para que palabras largas (ES/EU) no desborden */
  .bg-pages h1 {
    font-size: clamp(2rem, 9vw, 3.125rem);
  }
  .bg-pages p {
    font-size: 1rem;
  }
}

/* ---------- Menú ---------- */
/* Estados del menú: sin fondo azul de Bootstrap (nav-pills / dropdown-item / focus ring);
   texto en rojo de marca y foco de teclado visible (subrayado rojo, sin fondo). */
#navbarNav .nav-link,
#navbarNav .dropdown-item,
.navbar-side .lang {
  background: none !important;
  box-shadow: none !important;
  outline: 0;
  transition: color 0.15s ease;
}
#navbarNav .nav-link:hover,
#navbarNav .nav-link:focus,
#navbarNav .nav-link:active,
#navbarNav .nav-link.active,
#navbarNav .nav-link.show,
#navbarNav .show > .nav-link,
#navbarNav .dropdown-item:hover,
#navbarNav .dropdown-item:focus,
#navbarNav .dropdown-item:active,
#navbarNav .dropdown-item.active,
#navbarNav .dropdown-item[aria-current="page"],
.navbar-side .lang:hover,
.navbar-side .lang:focus,
.navbar-side .lang:active {
  color: var(--dz-red) !important;
  background: none !important;
}
#navbarNav .nav-link:focus-visible,
#navbarNav .dropdown-item:focus-visible,
.navbar-side .lang:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--dz-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
  outline: 2px solid var(--dz-red);
  outline-offset: 2px;
  border-radius: 4px;
}
.navbar-side .btn-black:focus {
  box-shadow: none;
}
.navbar-side .btn-black:focus-visible,
.navbar .navbar-toggler:focus-visible {
  outline: 2px solid var(--dz-red);
  outline-offset: 3px;
  box-shadow: none;
}
.navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Pie ---------- */
.footer__fb {
  font-size: 25px;
  line-height: 1;
  color: #fff;
}
.footer__extra {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.footer__partners {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
  align-items: center;
}
.footer__partner-logo {
  max-height: 60px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}
.footer__note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}
/* Documentos oficiales en el pie (siempre visibles) */
.footer__docs {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer__docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 2rem;
  margin-bottom: 0;
}
.footer__docs .footer__icon .bi {
  font-size: 1.15rem;
  line-height: 1;
  color: #fff;
}
.footer__docs-meta {
  font-size: 0.8rem;
  opacity: 0.75;
  white-space: nowrap;
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: var(--dz-cream);
  color: #000;
  border: 2px solid #000;
  border-radius: var(--dz-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}
.cookie-banner__text a {
  color: var(--dz-red-dark);
  text-decoration: underline;
}
.cookie-banner__btn {
  border: 0;
  cursor: pointer;
}

/* ---------- Páginas simples / 404 ---------- */
.page-simple {
  padding: 6rem 0 5rem;
  text-align: center;
}
.page-simple__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--dz-red);
  margin: 0;
}
.page-simple__title {
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-simple__links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
}
.page-simple__links a {
  color: #000;
  font-weight: 600;
}

/* ---------- Tarjetas de eventos / noticias / profesorado ---------- */
.eventos__card-title a {
  color: inherit;
  text-decoration: none;
}
.eventos__card-title a:hover {
  color: var(--dz-orange);
}
.eventos__fecha time {
  display: block;
}
.eventos__fecha .eventos__anio {
  display: block;
  font-size: 1rem;
  opacity: 0.75;
}
.eventos__empty {
  font-size: 1.15rem;
  padding: 1.5rem 0;
}
.eventos--past {
  background: var(--dz-cream);
}
.eventos--past::before {
  display: none;
}
.noticias__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dz-red-dark);
  text-transform: uppercase;
}
.noticias__card {
  height: 100%;
}
.equipo__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: var(--dz-grey);
  color: #999;
}
@media (max-width: 1399.98px) {
  .equipo__img-mask {
    width: min(350px, 26vw);
    height: min(350px, 26vw);
  }
}
@media (max-width: 991.98px) {
  .equipo__img-mask {
    width: min(280px, 80vw);
    height: min(280px, 80vw);
  }
}

/* Página de profesorado */
.teachers__list {
  display: grid;
  gap: 3rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}
.teacher {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  scroll-margin-top: 120px;
}
.teacher .teacher__photo.equipo__img-mask {
  width: 240px;
  height: 240px;
}
.teacher__name {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0.5rem 0 0.25rem;
}
.teacher__role {
  color: var(--dz-red-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}
.teacher__bio p {
  line-height: 1.6;
}
.teacher__classes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.teacher__classes .chip,
.teacher__classes a.chip {
  text-decoration: none;
  color: #000;
}
@media (max-width: 767.98px) {
  .teacher {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .teacher .teacher__photo.equipo__img-mask {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
    margin: 0 auto;
  }
  .teacher__classes {
    justify-content: center;
  }
}

/* Enlaces al perfil (/profesorado y perfil /profesorado/{slug}) */
a.teacher__photo {
  display: block;
}
.teacher__name a {
  color: inherit;
  text-decoration: none;
}
.teacher__name a:hover,
.teacher__name a:focus-visible {
  color: var(--dz-red-dark);
}
.teacher__more {
  margin: 0.75rem 0 0;
}
.teacher__more a {
  color: var(--dz-red-dark);
  text-decoration: none;
}
.teacher__more a:hover,
.teacher__more a:focus-visible {
  text-decoration: underline;
}
.teacher-profile .teacher--profile {
  grid-template-columns: 320px 1fr;
  max-width: 1000px;
  margin: 1rem auto 0;
}
.teacher-profile .teacher--profile .teacher__photo.equipo__img-mask {
  width: 320px;
  height: 320px;
}
.teacher-nav {
  max-width: 1000px;
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.teacher-nav .back-link {
  margin: 0;
}
.teacher-nav__pn {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.teacher-nav__link {
  color: var(--dz-black);
  font-weight: 600;
  text-decoration: none;
}
.teacher-nav__link:hover,
.teacher-nav__link:focus-visible {
  color: var(--dz-red-dark);
}
@media (max-width: 991.98px) {
  .teacher-profile .teacher--profile {
    grid-template-columns: 240px 1fr;
  }
  .teacher-profile .teacher--profile .teacher__photo.equipo__img-mask {
    width: 240px;
    height: 240px;
  }
}
@media (max-width: 767.98px) {
  .teacher-profile .teacher--profile {
    grid-template-columns: 1fr;
  }
  .teacher-profile .teacher--profile .teacher__photo.equipo__img-mask {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }
  .teacher-nav {
    justify-content: center;
    text-align: center;
  }
}

/* Profesorado en ficha de clase */
.class-teachers__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.class-teachers .equipo__card {
  flex: 0 0 auto;
  max-width: 260px;
}
.class-teachers .equipo__img-mask {
  width: 220px;
  height: 220px;
}
.class-teachers .equipo__card p {
  color: var(--dz-red-dark);
}

/* ---------- Listados de clases ---------- */
.programa__intro {
  margin: 0 auto 2rem;
  text-align: center;
}
.programa__box picture {
  display: block;
}
.subtitle_title {
  white-space: normal;
  text-align: center;
}

/* ---------- Detalle evento / noticia ---------- */
.event-detail .block-columns-text,
.news-detail .block-columns-text {
  border-radius: 24px;
}
.news-detail__date {
  font-weight: 600;
  color: var(--dz-red-dark);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.news-detail__figure {
  margin: 1.5rem 0;
}
.news-detail__figure figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}
.news-detail__body img,
.event-detail img {
  max-width: 100%;
  height: auto;
}
.detail-image {
  display: block;
}
/* Ficha de evento: tarjeta de cabecera igual que las de la portada (.eventos__card) */
.event-detail__head {
  margin-bottom: 0;
}
.event-detail__card .eventos__card-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.event-detail__facts {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
.event-detail__facts li {
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.event-detail__facts li::before,
.event-share__list li::before {
  content: none;
}
.event-detail__facts .bi {
  color: var(--dz-orange);
  font-size: 20px;
  line-height: 1;
}
.event-detail__facts img {
  width: 20px;
  height: 20px;
}
.event-detail span.event-detail__fact {
  color: #fff;
  display: inline;
  font-weight: 500;
  text-transform: none;
}
.event-detail__ics {
  text-align: center;
  white-space: nowrap;
}
.event-detail__content {
  padding-top: 3rem;
}
.event-detail__lead {
  font-size: 1.35rem;
  font-weight: 600;
}
.event-detail__illustration {
  text-align: center;
}
.event-detail__illustration img {
  max-height: 260px;
  width: auto;
}
.event-share {
  background: #fff;
  border-radius: var(--dz-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
}
.event-share__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.event-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.event-share__list li {
  margin: 0;
}
.event-share__link {
  align-items: center;
  background: #000;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 1.2rem;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}
.event-share__link:hover,
.event-share__link:focus-visible {
  background: var(--dz-red);
  color: #fff;
}
.event-share__hint {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.5rem 0 0;
}
.event-detail__others {
  margin-top: 0;
}
/* Meses largos (DICIEMBRE, SEPTIEMBRE, EKAINA…) sin desbordar la columna de fecha */
.eventos__fecha {
  container-type: inline-size;
}
.eventos__fecha .eventos__mes {
  font-size: min(2.5rem, 13cqi);
}
@media (max-width: 767.98px) {
  .event-detail__ics {
    width: 100%;
  }
}

/* ---------- Listas de documentos ---------- */
.docs-section {
  padding: 3rem 0;
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.doc-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: var(--dz-radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.doc-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.doc-list__icon {
  font-size: 1.8rem;
  color: var(--dz-red);
  flex: 0 0 auto;
}
.doc-list__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.doc-list__link {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.doc-list__link:hover {
  color: var(--dz-red-dark);
  text-decoration: underline;
}
.doc-list__meta {
  font-size: 0.8rem;
  color: #555;
}
.doc-list__btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.doc-list__btn:hover {
  background: var(--dz-red);
  color: #fff;
}
.documents-page__toc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.documents-page__toc a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 2px solid #000;
  border-radius: 999px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.documents-page__toc a:hover {
  background: #000;
  color: #fff;
}
.documents-group {
  margin-top: 2.5rem;
  scroll-margin-top: 120px;
}
.documents-group__title {
  font-size: 1.5rem;
  font-weight: 700;
  border-left: 6px solid var(--dz-red);
  padding-left: 0.75rem;
}
.documents-group__desc {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

/* ---------- Paginación ---------- */
.dz-pagination ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.dz-pagination a,
.dz-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border: 2px solid #000;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}
.dz-pagination a:hover {
  background: var(--dz-orange);
}
.dz-pagination .is-current {
  background: #000;
  color: #fff;
}

/* ---------- Galería (botones Swiper accesibles) ---------- */
.appScreenshot-arrow button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
/* Carrusel de profesorado (móvil/tablet): las flechas (left/right -71px) quedaban fuera de pantalla y recortadas */
@media (max-width: 991.98px) {
  .equipo__carousel-mobile .carousel-control-prev {
    left: 0;
  }
  .equipo__carousel-mobile .carousel-control-next {
    right: 0;
  }
}
/* Carteles: slides "width:auto" + img lazy/100% = ancho 0 (bucle); ancho fijo para carteles verticales reales */
.carteles .swiper-slide .image {
  width: min(360px, 72vw);
}
.carteles .swiper-slide .image a,
.carteles .swiper-slide .image picture {
  display: block;
}
.gallery-one_block-image picture,
.gallery-one_block-image picture img {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-one .filter-tabs .filter {
  cursor: pointer;
}
.escuela--asociacion {
  background: var(--dz-cream);
}

/* ---------- Contacto ---------- */
.dz-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-info {
  margin-top: 1.5rem;
}
.contact-info__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.contact-info__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-info__icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dz-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-info__list address,
.contact-info__list p {
  margin: 0;
}
.contact-info__list a {
  color: #000;
  font-weight: 600;
}
.contact-page .form-card label a {
  color: #000;
}
.dz-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  background: #fff;
  color: #000;
  border-left: 6px solid var(--dz-orange);
}
.dz-alert--error {
  border-left-color: var(--dz-red-dark);
}
.dz-alert[hidden] {
  display: none;
}
.dz-form .invalid-feedback {
  color: #000;
  background: #fff;
  display: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.35rem;
  font-weight: 600;
}
.dz-form.was-validated :invalid ~ .invalid-feedback,
.dz-form .is-invalid ~ .invalid-feedback {
  display: block;
}
.dz-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Legales ---------- */
.legal-page__body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
}
.legal-page__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.legal-page__body th,
.legal-page__body td {
  border: 1px solid #ddd;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.legal-page__body th {
  background: var(--dz-grey);
}
.legal-page__body a {
  color: var(--dz-red-dark);
  overflow-wrap: anywhere;
}
.legal-page__updated {
  margin-top: 2rem;
  color: #555;
}

/* ==========================================================================
   Calendario escolar (§11)
   ========================================================================== */
.dzc-page {
  padding-top: 3rem;
}
.dzc-page__intro {
  max-width: 760px;
  margin: 0 auto 2rem;
}
.dzc {
  --c-lectivo: #ffffff;
  --c-festivo: #e4403c;
  --c-puente: #f99c2f;
  --c-vacaciones: #000000;
  --c-carnaval: #f99c2f;
  --c-inicio: #fffbeb;
  --c-fin: #000000;
  --c-nolectivo: #f1f1f1;
  background: #fff;
  border: 2px solid #000;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}
.dzc.is-loading .dzc-view {
  opacity: 0.45;
  transition: opacity 0.15s;
}
.dzc-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
/* Fila 2: selector Mes/Curso (izq.) + Hoy/Imprimir/PDF (dcha.); se apila en móvil */
.dzc-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}
.dzc-switch {
  display: inline-flex;
  border: 2px solid #000;
  border-radius: 999px;
  overflow: hidden;
  max-width: 100%;
}
.dzc-switch__btn {
  padding: 0.45rem 1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.dzc-switch__btn.is-active {
  background: #000;
  color: #fff;
}
.dzc-switch__btn:not(.is-active):hover {
  background: var(--dz-cream);
}
/* Fila 1: título del mes/curso centrado entre las flechas (nunca se solapan) */
.dzc-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.dzc-nav__label {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.15;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 800;
  text-transform: capitalize;
}
.dzc-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.dzc-nav__btn:hover {
  background: var(--dz-red);
  color: #fff;
}
.dzc-nav__today {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid #000;
  border-radius: 999px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.dzc-nav__today:hover {
  background: var(--dz-orange);
}
.dzc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 575.98px) {
  .dzc-toolbar__row {
    flex-direction: column;
    align-items: center;
  }
  .dzc-actions {
    justify-content: center;
  }
  .dzc-switch__btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  .dzc-nav {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0.5rem;
  }
  .dzc-nav__btn {
    width: 40px;
    height: 40px;
  }
  .dzc-nav__label {
    font-size: clamp(1rem, 5.4vw, 1.25rem);
  }
}
.dzc-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.dzc-action:hover {
  background: var(--dz-cream);
}
.dzc-action--pdf {
  background: var(--dz-red);
  border-color: var(--dz-red);
  color: #fff;
}
.dzc-action--pdf:hover {
  background: var(--dz-red-dark);
  border-color: var(--dz-red-dark);
  color: #fff;
}
.dzc-action[hidden] {
  display: none;
}

/* Leyenda */
.dzc-legend {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  font-weight: 600;
}
.dzc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dzc-swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
}

/* Colores por tipo (celdas, leyenda y lista) */
.is-lectivo > .dzc-swatch,
.dzc-day.is-lectivo,
.dzc-mini__day.is-lectivo {
  --day-bg: var(--c-lectivo);
  --day-fg: #000;
}
.is-festivo > .dzc-swatch,
.dzc-day.is-festivo,
.dzc-mini__day.is-festivo {
  --day-bg: var(--c-festivo);
  --day-fg: #fff;
}
.is-puente > .dzc-swatch,
.dzc-day.is-puente,
.dzc-mini__day.is-puente {
  --day-bg: var(--c-puente);
  --day-fg: #000;
}
.is-vacaciones > .dzc-swatch,
.dzc-day.is-vacaciones,
.dzc-mini__day.is-vacaciones {
  --day-bg: var(--c-vacaciones);
  --day-fg: #fff;
}
.is-carnaval > .dzc-swatch,
.dzc-day.is-carnaval,
.dzc-mini__day.is-carnaval {
  --day-bg: var(--c-carnaval);
  --day-fg: #fff;
}
.is-inicio-clases > .dzc-swatch,
.dzc-day.is-inicio-clases,
.dzc-mini__day.is-inicio-clases {
  --day-bg: var(--c-inicio);
  --day-fg: #fff;
}
.is-fin-clases > .dzc-swatch,
.dzc-day.is-fin-clases,
.dzc-mini__day.is-fin-clases {
  --day-bg: var(--c-fin);
  --day-fg: #fff;
}
.is-no-lectivo > .dzc-swatch,
.dzc-day.is-no-lectivo,
.dzc-mini__day.is-no-lectivo {
  --day-bg: var(--c-nolectivo);
  --day-fg: #000;
}
.dzc-swatch {
  background: var(--day-bg, #fff);
  color: var(--day-fg, #000);
}
.is-lectivo > .dzc-swatch {
  background: var(--c-lectivo);
  color: var(--dz-orange);
  border: 2px solid var(--dz-orange);
}
.is-festivo > .dzc-swatch { background: var(--c-festivo); color: #fff; }
.is-puente > .dzc-swatch { background: var(--c-puente); color: #000; }
.is-vacaciones > .dzc-swatch { background: var(--c-vacaciones); color: #fff; }
.is-carnaval > .dzc-swatch { background: var(--c-carnaval); color: #fff; }
.is-inicio-clases > .dzc-swatch { background: var(--c-inicio); color: #fff; }
.is-fin-clases > .dzc-swatch { background: var(--c-fin); color: #fff; }
.is-no-lectivo > .dzc-swatch {
  background: repeating-linear-gradient(135deg, var(--c-nolectivo) 0 4px, #eee 4px 8px);
  color: #000;
}
.is-weekend-legend > .dzc-swatch {
  background: #f3f1ec;
  opacity: 0.8;
}
.is-today-legend > .dzc-swatch {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--dz-red);
}

/* Vista mes */
.dzc-month {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 6px;
}
.dzc-month th {
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0 0.5rem;
  text-transform: uppercase;
}
.dzc-month th abbr {
  text-decoration: none;
  cursor: default;
}
.dzc-month th.is-weekend {
  color: #737373;
}
.dzc-day {
  height: 96px;
  vertical-align: top;
  padding: 0;
  border-radius: 12px;
  background: var(--day-bg, #fafafa);
  color: var(--day-fg, #000);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}
.dzc-day.is-lectivo {
  border-color: #f2d7b0;
  box-shadow: inset 0 -4px 0 var(--dz-orange);
}
.dzc-day.is-empty {
  background: transparent;
  border: 0;
}
.dzc-day.is-out:not([class*="is-festivo"]):not([class*="is-vacaciones"]):not([class*="is-puente"]):not([class*="is-carnaval"]):not([class*="is-no-lectivo"]):not([class*="is-inicio"]):not([class*="is-fin"]) {
  background: #fafafa;
  color: #737373;
}
.dzc-day.is-weekend {
  opacity: 0.55;
}
.dzc-day.is-weekend:not([class*="is-festivo"]):not([class*="is-vacaciones"]):not([class*="is-puente"]):not([class*="is-carnaval"]):not([class*="is-no-lectivo"]) {
  background: #f3f1ec;
}
.dzc-day.is-no-lectivo {
  background: repeating-linear-gradient(135deg, var(--c-nolectivo) 0 6px, #eee 6px 12px);
}
.dzc-day.is-today {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--dz-red), 0 6px 16px rgba(228, 64, 60, 0.25);
  z-index: 1;
}
.dzc-day__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.45rem 0.55rem;
  gap: 0.15rem;
  position: relative;
}
.dzc-day__num {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}
.dzc-day__icon {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-size: 1rem;
}
.dzc-day__title {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: auto;
}
.dzc-day__today {
  position: absolute;
  bottom: 0.35rem;
  right: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--dz-red);
  color: #fff;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}
.dzc-day.is-festivo .dzc-day__today,
.dzc-day.is-fin-clases .dzc-day__today {
  background: #fff;
  color: #000;
}

/* Lista de días del mes */
.dzc-list {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--dz-cream);
  border-radius: 16px;
}
.dzc-list__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.dzc-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.dzc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.dzc-list__date {
  font-weight: 700;
  min-width: 11ch;
  white-space: nowrap;
}
.dzc-list__empty {
  margin: 0;
}

/* Vista anual */
.dzc-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.dzc-mini {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 0.75rem;
}
.dzc-mini__title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  text-transform: capitalize;
}
.dzc-mini__title a {
  color: #000;
  text-decoration: none;
}
.dzc-mini__title a:hover {
  color: var(--dz-red-dark);
  text-decoration: underline;
}
.dzc-mini__grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.75rem;
}
.dzc-mini__grid th {
  text-align: center;
  font-weight: 700;
  color: #555;
  padding-bottom: 2px;
}
.dzc-mini__grid th abbr {
  text-decoration: none;
}
.dzc-mini__grid th.is-weekend {
  color: #737373;
}
.dzc-mini__day {
  text-align: center;
  height: 26px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--day-bg, transparent);
  color: var(--day-fg, #737373);
  cursor: default;
}
.dzc-mini__day.is-lectivo {
  box-shadow: inset 0 -3px 0 var(--dz-orange);
  background: #fff;
}
.dzc-mini__day.is-weekend {
  opacity: 0.5;
}
.dzc-mini__day.is-no-lectivo {
  background: repeating-linear-gradient(135deg, var(--c-nolectivo) 0 3px, #eee 3px 6px);
}
.dzc-mini__day.is-today {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--dz-red);
}
.dzc-mini__day.is-empty {
  background: transparent;
  box-shadow: none;
}
.dzc-error {
  color: var(--dz-red-dark);
  font-weight: 700;
}
.dzc-notes {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 1199.98px) {
  .dzc-year {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .dzc-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .dzc {
    padding: 0.9rem 0.6rem;
    border-radius: 16px;
  }
  .dzc-month {
    border-spacing: 3px;
  }
  .dzc-day {
    height: 54px;
    border-radius: 8px;
  }
  .dzc-day__inner {
    padding: 0.3rem;
    align-items: center;
    justify-content: center;
  }
  .dzc-day__num {
    font-size: 1rem;
  }
  .dzc-day__title,
  .dzc-day__today {
    display: none;
  }
  .dzc-day__icon {
    position: static;
    font-size: 0.75rem;
  }
  .dzc-month th {
    font-size: 0.8rem;
  }
  .dzc-legend {
    justify-content: flex-start;
    gap: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
  .dzc-swatch {
    width: 22px;
    height: 22px;
  }
  .dzc-list {
    padding: 1rem;
  }
  .dzc-list li {
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
  }
  .dzc-year {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Impresión
   ========================================================================== */
@media print {
  header,
  footer.footer,
  .cookie-banner,
  .skip-link,
  .dzc-switch,
  .dzc-nav__btn,
  .dzc-nav__today,
  .dzc-actions,
  .back-link,
  .dz-pagination,
  .docs-section,
  .bg-pages p {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .bg-pages {
    background: none !important;
    padding: 0 !important;
  }
  .bg-pages::before {
    display: none !important;
  }
  .bg-pages h1 {
    color: #000 !important;
    font-size: 20pt !important;
    margin: 0 0 8pt !important;
  }
  .dzc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .dzc-toolbar {
    display: block;
  }
  .dzc-day,
  .dzc-mini__day,
  .dzc-swatch {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .dzc-day {
    height: 70px;
  }
  .dzc-year {
    grid-template-columns: repeat(3, 1fr);
    gap: 8pt;
  }
  .dzc-mini {
    break-inside: avoid;
  }
  a[href]::after {
    content: none !important;
  }
}


/* ---------- Resets frente a reglas globales de style.css (span rojo/mayúsculas, ✓ en todos los li) ---------- */
:where(.dzc, .doc-list, .contact-info, .dz-pagination, .teacher, .page-simple, .footer__extra, .cookie-banner, .dz-alert, .documents-page__toc, .dzc-legend, .dzc-list) span {
  display: inline;
  color: inherit;
  text-transform: none;
  font-weight: inherit;
}
.dzc-legend li::before,
.dzc-list li::before,
.doc-list li::before,
.contact-info__list li::before,
.dz-pagination li::before,
.documents-page__toc li::before,
.footer__partners li::before,
.page-simple__links li::before {
  content: none;
}
.dzc-legend li,
.dzc-list li,
.doc-list li,
.dz-pagination li,
.documents-page__toc li,
.page-simple__links li {
  margin-bottom: 0;
}
.dz-pagination li,
.documents-page__toc li {
  display: block;
}
.dzc-day__num,
.dzc-day__title,
.dzc-day__today,
.dzc-swatch,
.doc-list__icon,
.doc-list__body,
.contact-info__icon,
.equipo__placeholder {
  display: flex;
}
.dzc-day__title {
  display: -webkit-box;
}
.dzc-day__icon,
.dzc-list__date,
.dzc-list__text {
  display: inline-block;
}
.dzc-day__today {
  display: inline-block;
  color: #fff;
}
.doc-list__meta {
  display: block !important;
}
@media (max-width: 767.98px) {
  /* móvil: celdas compactas (el título del día sigue en la lista del mes y en aria-label) */
  .dzc-day__title,
  .dzc-day__today {
    display: none;
  }
}

/* ---------- Calendario: paleta de marca exclusivamente (§12) — el tipo se distingue también por icono, texto y trama ---------- */
.dzc {
  --c-lectivo: #ffffff;
  --c-festivo: #e4403c;
  --c-puente: #f99c2f;
  --c-vacaciones: #000000;
  --c-carnaval: repeating-linear-gradient(135deg, #f99c2f 0 6px, #fffbeb 6px 12px);
  --c-inicio: #fffbeb;
  --c-fin: #fffbeb;
  --c-nolectivo: #f1f1f1;
}
.dzc-day.is-vacaciones,
.dzc-mini__day.is-vacaciones,
.is-vacaciones > .dzc-swatch {
  background: #000;
  color: #fff;
  --day-fg: #fff;
}
.dzc-day.is-carnaval,
.dzc-mini__day.is-carnaval,
.is-carnaval > .dzc-swatch {
  background: repeating-linear-gradient(135deg, #f99c2f 0 6px, #fffbeb 6px 12px);
  color: #000;
  --day-fg: #000;
}
.dzc-day.is-inicio-clases,
.dzc-mini__day.is-inicio-clases,
.is-inicio-clases > .dzc-swatch {
  background: #fffbeb;
  color: #000;
  --day-fg: #000;
  box-shadow: inset 0 0 0 3px #000;
}
.dzc-day.is-fin-clases,
.dzc-mini__day.is-fin-clases,
.is-fin-clases > .dzc-swatch {
  background: #fffbeb;
  color: #000;
  --day-fg: #000;
  box-shadow: inset 0 0 0 3px #e4403c;
}
.dzc-day.is-no-lectivo,
.dzc-mini__day.is-no-lectivo,
.is-no-lectivo > .dzc-swatch {
  background: repeating-linear-gradient(135deg, #f1f1f1 0 5px, #ffffff 5px 10px);
  color: #000;
  --day-fg: #000;
}
.dzc-day.is-today,
.dzc-mini__day.is-today {
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #f99c2f;
}
.is-today-legend > .dzc-swatch {
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #f99c2f;
}
.dzc-day__today,
.dzc-day.is-festivo .dzc-day__today,
.dzc-day.is-fin-clases .dzc-day__today {
  background: #000;
  color: #fff;
}
.dzc-day.is-vacaciones .dzc-day__today {
  background: #f99c2f;
  color: #000;
}

/* Menú a pantalla completa (móvil/tablet): el desplegable "Clases" se abre en línea (no flotante),
   así no lo recorta el scroll de la lista ni tapa Eventos/Noticias */
@media (max-width: 1199.98px) {
  #navbarNav .nav-item.dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #navbarNav.fullscreen-menu .dropdown-menu {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    float: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem;
    text-align: center;
  }
}
