/* AContratiempo. El aire de la web anterior (tema ColorMag: fondo gris, caja blanca, menú negro, azul #669acc,
   AC Junior en rojo, Open Sans), con los azules oscurecidos lo justo para que el texto blanco se lea bien. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/open-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --fondo: #e4e5e8;
  --azul-claro: #669acc;   /* el de la web anterior: bordes y detalles */
  --azul: #3f74a8;         /* fondos con texto blanco y enlaces */
  --azul-oscuro: #2f5c88;
  --rojo: #c0392b;         /* AC Junior */
  --negro: #232323;
  --texto: #3a3a3a;
  --suave: #f2f6fa;
  --linea: #dfe5ec;
  --dorado: #b07d12;
  --bs-body-font-family: 'Open Sans', system-ui, sans-serif;
  --bs-body-color: var(--texto);
  --bs-link-color: var(--azul);
  --bs-link-color-rgb: 63, 116, 168;
  --bs-link-hover-color: var(--azul-oscuro);
  --bs-link-hover-color-rgb: 47, 92, 136;
}
html { overflow-x: hidden; }
body { background: var(--fondo); font-size: 1.0625rem; line-height: 1.7; }
h1, h2, h3, h4 { color: var(--negro); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 1rem; }
strong { font-weight: 600; color: #222; }
img { max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; vertical-align: -.125em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.saltar { position: absolute; z-index: 1000; background: #fff; padding: .5rem 1rem; }
.pagina { max-width: 1200px; margin: 10px auto; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .08); }
@media (max-width: 1219.98px) { .pagina { margin: 0 auto; } }

/* Cabecera y menú */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 28px clamp(16px, 4vw, 30px) 22px; }
.logo img { width: 330px; max-width: 100%; }
.logo-junior img { width: 170px; }
@media (max-width: 767.98px) { .cabecera { justify-content: center; padding-block: 18px 14px; } .logo-junior { display: none; } }
.menu { background: var(--negro); padding: 0; border-top: 4px solid var(--azul-claro); }
.menu .navbar-brand { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.menu .navbar-toggler { border-color: rgba(255, 255, 255, .3); margin: .5rem 0; }
.menu .nav-link { color: #fff; text-transform: uppercase; font-weight: 600; font-size: .84rem; padding: .85rem .8rem !important; }
.menu .nav-link:hover, .menu .nav-link:focus-visible { background: #3a3a3a; color: #fff; }
.menu .nav-link[aria-current], .menu .nav-link[data-seccion] { background: var(--azul); color: #fff; }
.menu .dropdown { display: flex; flex-wrap: wrap; align-items: stretch; }
.menu .dropdown .nav-link { padding-right: .3rem !important; }
.menu .sub { background: none; border: 0; color: #fff; padding: 0 .8rem 0 .2rem; }
/* El enlace y la flecha del desplegable son una sola pieza: el color va en el <li> */
.menu .dropdown > .nav-link, .menu .dropdown > .nav-link:hover, .menu .dropdown > .nav-link:focus-visible, .menu .dropdown > .nav-link[aria-current], .menu .dropdown > .nav-link[data-seccion], .menu .dropdown > .sub { background: none; }
.menu .dropdown:hover, .menu .dropdown:focus-within { background: #3a3a3a; }
.menu .dropdown.activo { background: var(--azul); }
.menu .junior { background: var(--rojo); }
.menu .junior:hover, .menu .junior:focus-within, .menu .junior.activo { background: #a3301f; }
.menu .dropdown-menu { border-radius: 0; border: 0; border-top: 3px solid var(--azul-claro); margin: 0; }
.menu .junior .dropdown-menu { border-top-color: var(--rojo); }
.menu .dropdown-item { padding: .5rem 1.2rem; font-size: .95rem; }
.menu .dropdown-item[aria-current] { color: var(--azul); font-weight: 600; background: none; }
.menu .dropdown-item:active { background: var(--azul); color: #fff; }
@media (max-width: 1199.98px) {
  .menu .navbar-nav { padding-bottom: .5rem; }
  .menu .nav-link { font-size: .95rem; }
  .menu .dropdown .nav-link { flex: 1; }
  .menu .dropdown-menu { width: 100%; background: #2e2e2e; border-top: 0; }
  .menu .dropdown-item { color: #ddd; padding-left: 2rem; }
  .menu .dropdown-item:hover, .menu .dropdown-item:focus { background: #3a3a3a; color: #fff; }
  .menu .dropdown-item[aria-current] { color: #fff; }
}
@media (min-width: 1200px) {
  .menu .navbar-nav { margin: 0 auto; }
  .menu .dropdown-menu { top: 100%; left: 0; }
  @media (hover: hover) { .menu .dropdown:hover > .dropdown-menu, .menu .dropdown:focus-within > .dropdown-menu { display: block; } }
}
.aviso-barra { margin: 0; padding: .45rem clamp(16px, 4vw, 30px); background: var(--suave); border-bottom: 1px solid var(--linea); font-size: .85rem; color: #555; text-align: center; }

/* Contenido */
.contenido { padding: 0 0 1.5rem; }
.seccion { padding: 2rem clamp(16px, 4vw, 30px) .5rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; }
.texto p, .persona p { text-align: left; }
.antetitulo { color: var(--azul); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; margin-top: -.8rem; }
.btn-azul { background: var(--azul); color: #fff; border: 2px solid var(--azul); font-weight: 600; }
.btn-azul:hover, .btn-azul:focus-visible { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: #fff; }
.btn-azul svg { margin-right: .3rem; }
.btn-claro { background: #fff; color: var(--azul); border: 2px solid var(--azul); font-weight: 600; }
.btn-claro:hover { background: var(--suave); color: var(--azul-oscuro); }
.foto-lateral { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.otros { font-size: .95rem; border-top: 1px solid var(--linea); padding-top: 1rem; }

/* Títulos con pestaña azul, como los widgets de la web anterior */
.titulo-banda { border-bottom: 2px solid var(--azul-claro); font-size: 1.1rem; margin-bottom: 1rem; }
.titulo-banda span { display: inline-block; background: var(--azul); color: #fff; padding: .35rem .8rem; font-weight: 600; }

/* Portada */
.aviso { margin: 1.5rem clamp(16px, 4vw, 30px) 0; background: var(--azul); color: #fff; padding: 1rem 1.3rem; font-weight: 600; }
.aviso strong { color: #fff; }
.aviso a { color: #fff; }
.portada { padding: 2rem clamp(16px, 4vw, 30px) .5rem; }
.lema { background: var(--azul); color: #fff; padding: 1.2rem 1.4rem 1.2rem 3.6rem; position: relative; margin-bottom: 1.2rem; }
.lema::before { content: '“'; position: absolute; left: 1rem; top: .2rem; font-size: 3.6rem; line-height: 1; font-weight: 700; opacity: .85; }
.lema span { display: block; font-weight: 600; font-style: italic; font-size: 1.05rem; }

/* Cuadrícula de musicales */
.musicales { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .8rem; margin: 0; }
.musical a { display: block; text-decoration: none; text-align: center; color: var(--azul); }
.musical .cartel { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.musical a:hover .cartel { transform: scale(1.04); }
.musical-nombre { font-size: 1rem; font-weight: 700; margin: .5rem 0 0; color: var(--azul); line-height: 1.3; }
.musical-nombre span { display: block; font-weight: 600; font-size: .9rem; color: #555; }

/* Vídeos (YouTube solo al pulsar) */
.video { margin: 0; }
.video-marco { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-poster { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 4.2rem; height: 4.2rem; padding: 1rem; border-radius: 50%; background: rgba(192, 57, 43, .92); color: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); transition: transform .15s; }
.video-play:hover svg, .video-play:focus-visible svg { transform: scale(1.1); }
.video figcaption { font-size: .9rem; margin-top: .45rem; line-height: 1.45; }
.videos { margin-bottom: 1rem; }

/* SoundCloud (portada) */
.soundcloud { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem); background: linear-gradient(120deg, #f50 0%, #d63a00 100%); color: #fff; text-decoration: none; box-shadow: 0 6px 22px rgba(214, 58, 0, .25); transition: transform .15s, box-shadow .15s; }
.soundcloud:hover, .soundcloud:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(214, 58, 0, .35); }
.soundcloud-logo { width: 5.5rem; height: 5.5rem; flex: none; }
.soundcloud-texto { flex: 1 1 16rem; display: flex; flex-direction: column; gap: .2rem; }
.soundcloud-texto strong { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
.soundcloud-texto span { font-size: .98rem; }
.soundcloud-boton { flex: none; background: #fff; color: #c43500; font-weight: 700; padding: .6rem 1.3rem; border-radius: 2rem; }

/* Musical */
.cartel-grande { width: 100%; }
.anios { font-weight: 700; color: #222; }

/* Galería y visor */
.galeria { margin: 1rem 0 1.5rem; }
.galeria img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: opacity .2s; }
.galeria a:hover img { opacity: .85; }
.visor { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visor::backdrop { background: rgba(0, 0, 0, .92); }
.visor figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
.visor img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
.visor figcaption { color: #eee; margin-top: .75rem; text-align: center; }
.visor button { position: fixed; background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; }
.visor .cerrar { top: 1rem; right: 1rem; }
.visor .ant { left: .5rem; top: 50%; }
.visor .sig { right: .5rem; top: 50%; }

/* Historia */
.periodo { margin-top: 2rem; }
.periodo h2, .anio h2 { border-bottom: 2px solid var(--azul-claro); font-size: 1.15rem; }
.periodo h2 span, .anio h2 span { display: inline-block; background: var(--azul); color: #fff; padding: .3rem .9rem; }

/* Dirección musical */
.persona { border-top: 4px solid var(--azul-claro); background: var(--suave); padding: 1.3rem clamp(16px, 3vw, 1.8rem) .5rem; margin-bottom: 1.5rem; }
.persona h2 { margin-bottom: .2rem; }
.persona .especialidad { color: var(--azul); font-weight: 600; margin-bottom: 1rem; }

/* Elenco */
.obra-reparto { border: 1px solid var(--linea); margin-bottom: 1rem; }
.obra-reparto summary { cursor: pointer; list-style: none; }
.obra-reparto summary::-webkit-details-marker { display: none; }
.obra-reparto summary .h4 { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: .8rem 1.2rem; background: var(--suave); color: var(--negro); }
.obra-reparto summary .h4::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--azul); }
.obra-reparto[open] summary .h4::after { content: '−'; }
.obra-reparto summary:hover .h4 { color: var(--azul); }
.obra-reparto > :not(summary) { margin-inline: 1.2rem; }
.obra-reparto > p:last-child { margin-bottom: 1.2rem !important; }
.reparto { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .25rem 1.2rem; margin: 1rem 1.2rem; }
.reparto dt { font-weight: 600; color: #222; }
.reparto dd { margin: 0; }
.reparto-sub { margin: 1.2rem 1.2rem 0; color: var(--azul); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 575.98px) { .reparto { grid-template-columns: 1fr; gap: 0; } .reparto dd { margin-bottom: .5rem; } }

/* Calendario */
.leyenda { color: #555; }
.leyenda svg, .evento.premio svg { color: var(--dorado); }
.anio { margin-top: 1.8rem; }
.eventos { margin: 0; }
.evento { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .7rem .9rem; border-bottom: 1px solid var(--linea); }
.evento:nth-child(odd) { background: #f7f7f7; }
.evento time { font-weight: 600; color: #222; }
.evento p { margin: 0; }
.evento.premio { background: #fdf6e3; border-left: 4px solid var(--dorado); }
.evento.premio p { font-weight: 600; color: #222; }
.evento.premio svg { margin-right: .4rem; width: 1.15em; height: 1.15em; }
@media (max-width: 575.98px) { .evento { grid-template-columns: 1fr; gap: .1rem; } }

/* Hemeroteca */
.noticias { margin: 0; }
.noticia { padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.noticia .meta { font-size: .85rem; color: #666; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .03em; }
.noticia h3 { margin-bottom: .4rem; }
.noticia .extracto { color: #555; margin-bottom: .4rem; }
.leer { font-weight: 600; text-decoration: none; }
.leer svg { margin-left: .3rem; width: .85em; height: .85em; }
.estado { font-size: .85rem; color: #777; }

/* AC Junior y fichas */
.logo-junior-grande { width: 420px; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; background: var(--suave); padding: 1rem 1.2rem; border-top: 4px solid var(--rojo); }
.datos dt { font-weight: 600; color: #222; }
.datos dd { margin: 0; }
.tarjeta { border: 1px solid var(--linea); height: 100%; }
.tarjeta img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tarjeta-cuerpo { padding: 1rem 1.2rem; }
.tarjeta h2 a { color: var(--negro); text-decoration: none; }
.tarjeta h2 a:hover { color: var(--azul); }

/* Contacto */
.ficha-contacto { border: 1px solid var(--linea); padding: 1.2rem 1.4rem; }
.contacto-caja { display: flex; gap: 1.2rem 2rem; align-items: flex-start; background: var(--suave); border-left: 6px solid var(--azul); padding: clamp(1.2rem, 3vw, 2rem); }
.contacto-icono { flex: none; display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--azul); color: #fff; }
.contacto-icono svg { width: 2.2rem; height: 2.2rem; }
.contacto-cuerpo { flex: 1; min-width: 0; }
.contacto-cuerpo h2 { margin-bottom: .5rem; }
.contacto-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
@media (max-width: 575.98px) { .contacto-caja { flex-direction: column; } .contacto-icono { width: 3.5rem; height: 3.5rem; } .contacto-icono svg { width: 1.7rem; height: 1.7rem; } }
.correo { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 600; max-width: 100%; }
.correo span { overflow-wrap: anywhere; min-width: 0; }
.correo svg { flex-shrink: 0; align-self: center; margin-right: .4rem; color: var(--azul); }
.mapa { position: relative; height: 100%; min-height: 340px; background: var(--suave) linear-gradient(135deg, rgba(102, 154, 204, .12) 25%, transparent 25%, transparent 50%, rgba(102, 154, 204, .12) 50%, rgba(102, 154, 204, .12) 75%, transparent 75%) 0 0 / 28px 28px; border: 1px solid var(--linea); }
.mapa-aviso { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Aviso de cookies */
.cookies { position: fixed; z-index: 1050; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(46rem, calc(100% - 2rem)); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; background: #fff; border-top: 4px solid var(--azul); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); padding: 1rem 1.2rem; font-size: .92rem; }
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 20rem; margin: 0; line-height: 1.5; }
.cookies-botones { display: flex; gap: .5rem; }
.cookies-estado { font-weight: 600; }

/* Pie */
.pie { background: var(--negro); color: #ccc; padding: 2rem clamp(16px, 4vw, 30px) 1rem; font-size: .92rem; }
.pie a { color: #fff; }
.pie .correo svg { color: #9cc3ea; }
.pie-marca { color: #fff; font-weight: 600; font-size: 1.1rem; margin-bottom: .4rem; }
.pie-fin { border-top: 1px solid #3a3a3a; margin: 1.5rem 0 0; padding-top: 1rem; font-size: .85rem; color: #aaa; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
