/* =========================================================
   Radio Olímpica 99.3 FM — estilos
   ========================================================= */

:root {
  /* Paleta de marca */
  --c-blue: #2552D9;
  --c-sky: #359AF2;
  --c-green: #43D91A;
  --c-orange: #F2911B;
  --c-red: #D92211;
  --c-black: #000000;
  --c-white: #FFFFFF;

  /* Tokens semánticos */
  --bg: var(--c-white);
  --fg: #0b0d12;
  --fg-muted: #4a5163;
  --surface: #f3f6fd;
  --border: #dfe5f3;
  --ring: var(--c-sky);
  --on-dark: var(--c-white);
  --on-dark-muted: rgba(255, 255, 255, .78);
  --dark: #0d1016;
  --dark-2: #161b24;
  --dark-border: rgba(255, 255, 255, .1);

  /* Línea multicolor de marca */
  --rainbow: linear-gradient(90deg, var(--c-blue) 0 20%, var(--c-sky) 20% 40%, var(--c-green) 40% 60%, var(--c-orange) 60% 80%, var(--c-red) 80% 100%);

  /* Tipografía */
  --font-display: "Momo Trust Display", "Raleway", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --nav-h: 72px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .45);

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-base: 260ms;

  --cookie-offset: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--c-white); color: var(--c-black); font-weight: 700;
  transform: translateY(-150%); transition: transform var(--t-fast);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 0 rgba(217, 34, 17, .7);
  animation: pulse 1.8s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 34, 17, .7); }
  70% { box-shadow: 0 0 0 8px rgba(217, 34, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 34, 17, 0); }
}

/* ---------- Botones genéricos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-blue); color: var(--c-white); }
.btn--primary:hover { background: #1c43b8; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(127, 127, 127, .12); }

.link-btn {
  padding: 0; border: 0; background: none;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent;
  transition: background-color var(--t-fast);
}
.icon-btn:hover { background: rgba(127, 127, 127, .15); }

/* =========================================================
   1. NAVBAR
   ========================================================= */
.navbar {
  container: navbar / inline-size;
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--on-dark);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
  transition: background-color var(--t-base), box-shadow var(--t-base);
}
.navbar.is-scrolled,
.navbar.is-open {
  background: rgba(0, 0, 0, .92);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .6);
}
@supports (backdrop-filter: blur(1px)) {
  .navbar.is-scrolled, .navbar.is-open { background: rgba(0, 0, 0, .88); backdrop-filter: blur(14px) saturate(1.4); }
}

.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--rainbow);
  opacity: 0; transition: opacity var(--t-base);
}
.navbar.is-scrolled::after, .navbar.is-open::after { opacity: 1; }

.navbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; min-width: 0;
}
.brand__logo { width: auto; height: 46px; object-fit: contain; flex: none; }
@media (max-width: 359px) { .brand__text { display: none; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; }
.brand__freq { font-weight: 800; font-size: .8rem; letter-spacing: .14em; color: var(--c-orange); }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list li:nth-child(2) .nav__link { --accent: var(--c-sky); }
.nav__list li:nth-child(3) .nav__link { --accent: var(--c-green); }
.nav__list li:nth-child(4) .nav__link { --accent: var(--c-orange); }

.nav__link {
  --accent: var(--c-orange);
  position: relative;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover { background: rgba(255, 255, 255, .16); color: var(--accent); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { background: rgba(255, 255, 255, .1); color: var(--accent); }

.nav__link--live { background: var(--c-red); border-radius: 999px; }
.nav__link--live::after { display: none; }
.nav__link--live:hover { background: var(--c-white); color: var(--c-red); }
.nav__link--live.is-active { background: var(--c-red); color: var(--c-white); box-shadow: 0 0 0 3px var(--c-black), 0 0 0 5px var(--c-white); }
.nav__link--live.is-active:hover { background: var(--c-white); color: var(--c-red); }
.nav__link--live .live-dot { background: var(--c-white); animation-name: pulse-white; }
.nav__link--live:hover .live-dot { background: var(--c-red); }
@keyframes pulse-white {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 0; background: rgba(255, 255, 255, .1);
  place-items: center;
  transition: background-color var(--t-fast);
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Menú compacto: depende del ancho del navbar en em, así también se activa al agrandar el texto */
@container navbar (max-width: 56.25em) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(0, 0, 0, .95);
    border-top: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .navbar.is-open .nav {
    transform: none; opacity: 1; visibility: visible;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav__link { display: flex; min-height: 52px; padding: 12px 18px 12px 22px; font-size: 1.05rem; }
  /* En el menú móvil la marca es una barra vertical a la izquierda */
  .nav__link::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 4px; height: auto; transform: scaleY(0); transform-origin: center; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleY(1); }
  .nav__link--live { justify-content: center; }
}

/* =========================================================
   2. HERO: CARRUSEL + REPRODUCTOR
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  color: var(--on-dark);
  background: var(--c-black);
  isolation: isolate;
  overflow: hidden;
}

.carousel { position: absolute; inset: 0; z-index: -1; }
.carousel__track { position: absolute; inset: 0; }
.carousel__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.carousel__slide.is-active img { animation: kenburns 9s ease-out forwards; }
/* Encuadre de las fotos propias para que llenen la sección */
.carousel__slide--studio img { object-position: 50% 45%; }
.carousel__slide--banner img { object-position: 50% 50%; }
@media (orientation: portrait) { .carousel__slide--banner img { object-position: 70% 50%; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.carousel__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .75)),
    linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(135deg, rgba(37, 82, 217, .35), rgba(217, 34, 17, .2));
}

.carousel__controls {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.carousel__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .45);
  color: var(--c-white);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.carousel__btn:hover { background: rgba(255, 255, 255, .2); }
.carousel__btn:active { transform: scale(.94); }
.carousel__btn .icon { width: 20px; height: 20px; }

.carousel__dots { display: flex; align-items: center; }
.carousel__dot {
  width: 28px; height: 44px; padding: 0; border: 0; background: none;
  display: grid; place-items: center;
}
.carousel__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: width var(--t-base) var(--ease-out), background-color var(--t-base);
}
.carousel__dot[aria-current="true"]::before { width: 22px; background: var(--c-orange); }
.carousel__counter { display: none; min-width: 64px; text-align: center; font-weight: 800; font-size: .95rem; color: var(--c-white); }
@media (max-width: 600px) {
  .carousel__dots { display: none; }
  .carousel__counter { display: block; }
}

.hero__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 96px;
  /* Ocupa todo el hero: deja pasar los clics a los controles del carrusel */
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }

/* ---------- Reproductor ---------- */
.player {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 28, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
  animation: rise .7s var(--ease-out) both;
}
@supports (backdrop-filter: blur(1px)) {
  .player { background: rgba(10, 14, 28, .45); backdrop-filter: blur(18px) saturate(1.5); }
}
.player::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--rainbow);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.player__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(217, 34, 17, .18); border: 1px solid rgba(217, 34, 17, .6);
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.player__listeners { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--on-dark-muted); }
.player__listeners[hidden] { display: none; }

.player__body { display: flex; align-items: center; gap: 14px; }
.player__art { flex: none; width: clamp(96px, 26vw, 128px); }
.player__art img { width: 100%; height: auto; }

.player__info { min-width: 0; }
.player__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 4.4vw, 1.7rem);
}
.player__title span { color: var(--c-orange); white-space: nowrap; }
.player__now {
  margin-top: 4px; font-size: .9rem; color: var(--on-dark-muted); overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.player__now-label { font-weight: 800; color: var(--c-green); }

/* ---------- Escenario del play: todo el foco visual aquí ---------- */
.player__stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: 18px; padding: 30px 0 22px;
}
/* Foco de luz detrás del botón */
.player__stage::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 92px; width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(53, 154, 242, .5), rgba(37, 82, 217, .18) 55%, transparent);
  pointer-events: none;
  transition: background var(--t-base);
}
.player[data-state="playing"] .player__stage::before {
  background: radial-gradient(closest-side, rgba(217, 34, 17, .45), rgba(242, 145, 27, .15) 55%, transparent);
}
.player { isolation: isolate; }

.play-wrap {
  position: relative;
  width: 128px; height: 128px;
  display: grid; place-items: center;
}
/* Anillo giratorio con la paleta */
.play-wrap__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c-blue), var(--c-sky), var(--c-green), var(--c-orange), var(--c-red), var(--c-blue));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: spin 6s linear infinite;
}
/* Ondas tipo sonar que invitan a tocar */
.play-wrap__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c-sky);
  opacity: 0;
  animation: sonar 2.4s ease-out infinite;
  pointer-events: none;
}
.play-wrap__pulse + .play-wrap__pulse { animation-delay: 1.2s; border-color: var(--c-green); }
@keyframes sonar {
  0% { transform: scale(.9); opacity: .85; }
  100% { transform: scale(1.75); opacity: 0; }
}

.play-btn {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 106px; height: 106px; border-radius: 50%;
  border: 0;
  background: var(--c-blue);
  color: var(--c-white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 44px -6px rgba(37, 82, 217, 1), 0 0 70px rgba(53, 154, 242, .5);
  animation: breathe 2.4s ease-in-out infinite;
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-fast);
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 44px -6px rgba(37, 82, 217, 1), 0 0 60px rgba(53, 154, 242, .4); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 14px 54px -2px rgba(37, 82, 217, 1), 0 0 100px rgba(53, 154, 242, .75); }
}
.play-btn:hover { transform: scale(1.08); background: #1c43b8; }
.play-btn:active { transform: scale(.95); }
.play-btn:focus-visible { outline-offset: 10px; border-radius: 50%; }
.play-btn .icon { width: 44px; height: 44px; grid-area: 1 / 1; }
.play-btn .icon--play { transform: translateX(3px); }

.player__status {
  text-align: center;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--c-white);
}
.player[data-state="error"] .player__status { color: #ffb4a8; font-weight: 600; font-size: .95rem; }

/* Reproduciendo: botón rojo, sin ondas, anillo más lento */
.player[data-state="playing"] .play-btn {
  background: var(--c-red);
  color: var(--c-black); /* icono oscuro sobre rojo (contraste 4.2:1) */
  animation: none;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 44px -6px rgba(217, 34, 17, 1), 0 0 70px rgba(217, 34, 17, .45);
}
.player[data-state="playing"] .play-btn:hover { background: #ec3523; }
.player[data-state="playing"] .play-wrap__pulse,
.player[data-state="loading"] .play-wrap__pulse { animation: none; opacity: 0; }
.player[data-state="playing"] .play-wrap__ring { animation-duration: 14s; }
.player[data-state="loading"] .play-wrap__ring { animation-duration: 1.2s; }

/* Controles secundarios: discretos para no competir con el play */
.player__controls {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  opacity: .72;
  transition: opacity var(--t-base);
}
.player__controls:hover, .player__controls:focus-within { opacity: 1; }

/* Estados de los botones de reproducción (principal y mini) */
.icon--pause, .icon--loader { display: none; }
[data-state="playing"] .icon--play, [data-state="loading"] .icon--play { display: none; }
[data-state="playing"] .icon--pause { display: block; }
[data-state="loading"] .icon--loader { display: block; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.eq span {
  width: 5px; height: 30%; border-radius: 3px;
  background: var(--c-sky);
  transition: height var(--t-base);
}
.eq span:nth-child(2) { background: var(--c-green); }
.eq span:nth-child(3) { background: var(--c-orange); }
.eq span:nth-child(4) { background: var(--c-red); }
.eq span:nth-child(5) { background: var(--c-white); }
.player[data-state="playing"] .eq span { animation: eq 1s ease-in-out infinite alternate; }
.player[data-state="playing"] .eq span:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.player[data-state="playing"] .eq span:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.player[data-state="playing"] .eq span:nth-child(4) { animation-delay: -.2s; animation-duration: .7s; }
.player[data-state="playing"] .eq span:nth-child(5) { animation-delay: -.5s; animation-duration: .95s; }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }

.volume { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.volume__btn {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1);
  transition: background-color var(--t-fast);
}
.volume__btn:hover { background: rgba(255, 255, 255, .2); }
.volume__btn .icon { width: 20px; height: 20px; grid-area: 1 / 1; }
.volume__btn .icon--mute { display: none; }
.volume__btn[aria-pressed="true"] .icon--vol { display: none; }
.volume__btn[aria-pressed="true"] .icon--mute { display: block; }

.volume__range {
  --val: 80%;
  flex: 1; min-width: 0;
  height: 44px; margin: 0;
  background: transparent;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.volume__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--c-sky) var(--val), rgba(255, 255, 255, .25) var(--val));
}
.volume__range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.volume__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--c-sky); }
.volume__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: var(--c-white); border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.volume__range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-white); border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.volume__range:focus-visible { outline-offset: 0; }

.hero__scroll {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--c-white);
  opacity: .55;
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll:hover { background: rgba(255, 255, 255, .15); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 480px) {
  .play-wrap { width: 116px; height: 116px; }
  .play-btn { width: 96px; height: 96px; }
  .play-btn .icon { width: 40px; height: 40px; }
  .player__stage { padding-top: 26px; }
  .player__stage::before { top: 84px; width: 280px; height: 280px; }
  .carousel__controls { left: var(--gutter); right: var(--gutter); justify-content: center; bottom: 16px; }
  .hero__content { padding-bottom: 88px; }
}

/* =========================================================
   Secciones genéricas
   ========================================================= */
.section { padding-block: clamp(64px, 10vw, 112px); }

.section__head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-blue);
}
.eyebrow--light { color: var(--c-orange); }
.eyebrow .icon { width: 18px; height: 18px; }

.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: .005em;
}
.section__title::after {
  content: ""; display: block;
  width: 110px; height: 6px; margin-top: 16px;
  background: var(--rainbow);
}
.section__head--center .section__title::after { margin-inline: auto; }
.section__lead { margin-top: 14px; font-size: 1.08rem; color: var(--fg-muted); }

/* =========================================================
   3. CÓDIGO DE ÉTICA
   ========================================================= */
.ethics { background: var(--bg); position: relative; }
.ethics::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--rainbow);
}

.ethics__grid { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .ethics__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .ethics__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
}

.ethics__list { display: grid; gap: 12px; }

.ethics__download { margin-top: 24px; gap: 10px; flex-wrap: wrap; text-decoration: none; }
.ethics__download .icon { width: 20px; height: 20px; }
.ethics__download:hover { transform: translateY(-2px); }
.ethics__download-meta {
  padding: 2px 8px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .2);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

.ethics-points { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.ethics-points li { padding-left: .3em; }
.ethics-points li::marker { font-weight: 800; color: var(--fg); content: counter(list-item, lower-alpha) ") "; }
.ethics-item__place {
  margin-top: 12px;
  font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
}

.ethics-item {
  --accent: var(--c-blue);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.ethics-item[data-color="sky"] { --accent: var(--c-sky); }
.ethics-item[data-color="green"] { --accent: var(--c-green); }
.ethics-item[data-color="orange"] { --accent: var(--c-orange); }
.ethics-item[data-color="red"] { --accent: var(--c-red); }
.ethics-item[open] { border-color: var(--accent); box-shadow: 0 14px 40px -24px rgba(37, 82, 217, .55); background: var(--c-white); }

.ethics-item summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 18px;
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.08rem;
}
.ethics-item summary::-webkit-details-marker { display: none; }
.ethics-item summary:hover .ethics-item__title { color: var(--c-blue); }
.ethics-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

.ethics-item__num {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--c-black);
  font-family: var(--font-display); font-size: 1.05rem;
}
.ethics-item[data-color="blue"] .ethics-item__num,
.ethics-item[data-color="red"] .ethics-item__num { color: var(--c-white); }
.ethics-item__title { flex: 1; min-width: 0; transition: color var(--t-fast); }
.ethics-item__chev { color: var(--fg-muted); transition: transform var(--t-base) var(--ease-out); }
.ethics-item[open] .ethics-item__chev { transform: rotate(180deg); }

.ethics-item__body { padding: 0 18px 20px 78px; color: var(--fg-muted); }
.ethics-item__body p + p { margin-top: 10px; }
@media (max-width: 480px) { .ethics-item__body { padding-left: 18px; } }

/* =========================================================
   4. REDES SOCIALES Y CONTACTO
   ========================================================= */
.connect {
  position: relative;
  color: var(--on-dark);
  background: var(--dark);
}
.connect::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--rainbow);
}

/* Color de hover por elemento (fondo + texto con contraste suficiente) */
.hover-blue { --hover: var(--c-blue); --hover-fg: var(--c-white); }
.hover-sky { --hover: var(--c-sky); --hover-fg: var(--c-black); }
.hover-green { --hover: var(--c-green); --hover-fg: var(--c-black); }
.hover-orange { --hover: var(--c-orange); --hover-fg: var(--c-black); }
.hover-red { --hover: var(--c-red); --hover-fg: var(--c-white); }
.connect .section__lead { color: var(--on-dark-muted); }
.connect__block + .connect__block { margin-top: clamp(72px, 10vw, 112px); }

.socials {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
@media (max-width: 480px) {
  .socials { gap: 10px; }
  .socials li:last-child { grid-column: 1 / -1; }
  .social-card { min-height: 128px; padding: 18px; }
  .social-card__ext { top: 18px; right: 18px; }
  .social-card__name { margin-top: 14px; font-size: 1.15rem; }
  .social-card__handle { font-size: .8rem; }
}
.social-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  height: 100%; min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
}
/* Franja de color que se convierte en el fondo completo al pasar el cursor */
.social-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--hover);
  transition: height var(--t-base) var(--ease-out);
  z-index: 0;
}
.social-card > * { position: relative; z-index: 1; }
.social-card:hover, .social-card:focus-visible {
  transform: translateY(-6px);
  color: var(--hover-fg);
  border-color: var(--hover);
  box-shadow: 0 22px 40px -20px var(--hover);
}
.social-card:hover::before, .social-card:focus-visible::before { height: 100%; }
.social-card__icon {
  width: 48px; height: 48px; padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); color: var(--c-white);
  box-sizing: border-box;
  transition: background-color var(--t-base), color var(--t-base);
}
.social-card:hover .social-card__icon, .social-card:focus-visible .social-card__icon { background: var(--hover-fg); color: var(--hover); }
.social-card__name { margin-top: 18px; font-family: var(--font-display); font-size: 1.3rem; }
.social-card__handle { font-size: .9rem; color: var(--on-dark-muted); overflow-wrap: anywhere; transition: color var(--t-base); }
.social-card:hover .social-card__handle, .social-card:focus-visible .social-card__handle { color: inherit; }
.social-card__ext { position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; opacity: .7; }

.contact__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; } }

.contact__list { display: grid; gap: 12px; align-content: start; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--dark-2); color: var(--on-dark);
  border: 1px solid var(--dark-border);
  border-left: 4px solid var(--hover, rgba(255, 255, 255, .3));
  text-decoration: none;
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
}
a.contact-item:hover, a.contact-item:focus-visible {
  transform: translateX(6px);
  background: var(--hover); color: var(--hover-fg);
  box-shadow: 0 18px 36px -20px var(--hover);
}
.contact-item__icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); color: var(--c-white);
  transition: background-color var(--t-base), color var(--t-base);
}
a.contact-item:hover .contact-item__icon, a.contact-item:focus-visible .contact-item__icon { background: var(--hover-fg); color: var(--hover); }
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); transition: color var(--t-base); }
a.contact-item:hover .contact-item__label, a.contact-item:focus-visible .contact-item__label { color: inherit; }
.contact-item__value { display: block; font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }

.map {
  min-height: 320px; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  border: 2px dashed rgba(255, 255, 255, .22);
}
.map:has(iframe) { border-style: solid; border-color: var(--dark-border); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.map__placeholder {
  height: 100%; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
}
.map__icon { width: 56px; height: 56px; color: var(--c-orange); margin-bottom: 6px; }
.map__title { font-family: var(--font-display); font-size: 1.4rem; }
.map__text { color: var(--on-dark-muted); max-width: 320px; }

/* =========================================================
   5. FOOTER
   ========================================================= */
.footer { background: var(--c-white); color: var(--fg-muted); font-size: .95rem; }
.footer__stripe { height: 6px; background: var(--rainbow); }
.footer__stripe span { display: none; }

.footer__grid {
  display: grid; gap: 36px;
  padding-block: 56px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer__brand img { width: 200px; height: auto; margin-bottom: 14px; }
.footer__brand strong { color: var(--fg); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.15rem;
  color: var(--fg);
}
.footer__title::after {
  content: ""; display: block;
  width: 48px; height: 4px; margin-top: 8px;
  background: var(--rainbow);
}
.footer__links { display: grid; gap: 2px; }
.footer__links a, .footer__address a {
  display: inline-flex; align-items: center; min-height: 36px;
  text-decoration: none; transition: color var(--t-fast);
}
.footer__links a:hover, .footer__address a:hover { color: var(--c-blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer__address { display: grid; gap: 10px; }
.footer__address p { display: flex; align-items: flex-start; gap: 10px; }
.footer__address .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c-blue); }
.footer__address p:has(a) .icon { margin-top: 9px; }

.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.footer__social a:hover, .footer__social a:focus-visible {
  background: var(--hover); color: var(--hover-fg); border-color: var(--hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px var(--hover);
}
.footer__social .icon { width: 20px; height: 20px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: .85rem;
}
.footer__legal { display: flex; align-items: center; gap: 16px; }
.footer__legal .link-btn { min-height: 44px; color: var(--fg); }
.footer__legal .link-btn:hover { color: var(--c-blue); }
.footer__top {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-blue); color: var(--c-white);
}
.footer__top { transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.footer__top:hover { background: var(--c-orange); color: var(--c-black); transform: translateY(-3px); }

/* =========================================================
   Mini reproductor (solo móvil)
   ========================================================= */
.mini-player {
  position: fixed; z-index: 90;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--cookie-offset));
  display: none;
  place-items: center;
  --mini-bg: var(--c-blue);
  width: 62px; height: 62px; border-radius: 50%;
  /* Borde con los colores de la paleta */
  border: 4px solid transparent;
  background:
    linear-gradient(var(--mini-bg), var(--mini-bg)) padding-box,
    conic-gradient(var(--c-blue), var(--c-sky), var(--c-green), var(--c-orange), var(--c-red), var(--c-blue)) border-box;
  color: var(--c-white);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: scale(.6) translateY(20px); pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), bottom var(--t-base), background-color var(--t-fast);
}
.mini-player .icon { width: 26px; height: 26px; grid-area: 1 / 1; }
.mini-player[data-state="playing"] { --mini-bg: var(--c-red); color: var(--c-black); }
.mini-player__ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--c-sky);
  opacity: 0;
}
.mini-player[data-state="playing"] .mini-player__ring { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

@media (max-width: 768px) {
  .mini-player { display: grid; }
  .mini-player.is-visible { opacity: 1; transform: none; pointer-events: auto; }
}

/* =========================================================
   Cookies
   ========================================================= */
.cookie-banner {
  position: fixed; z-index: 120;
  left: 0; right: 0; bottom: 0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  pointer-events: auto;
  max-width: 960px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--c-white); color: var(--fg);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  border: 1px solid var(--border);
  border-top: 0;
  position: relative; overflow: hidden;
  animation: rise .5s var(--ease-out) both;
}
.cookie-banner__inner::before,
.cookie-dialog::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--rainbow);
}
.cookie-dialog { position: fixed; overflow: auto; }
@media (min-width: 900px) {
  /* A la izquierda, para no tapar los controles del carrusel */
  .cookie-banner { right: auto; width: min(720px, 100% - 300px); padding: 0 0 20px 20px; }
  .cookie-banner__inner { margin: 0; }
}
.cookie-banner__icon { width: 32px; height: 32px; color: var(--c-orange); }
.cookie-banner__text { flex: 1; font-size: .92rem; }
.cookie-banner__text .link-btn { color: var(--c-blue); }
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .cookie-banner__inner { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

.cookie-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0; border: 0;
  border-radius: var(--radius-lg);
  color: var(--fg); background: var(--c-white);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.cookie-dialog[open] { animation: rise .35s var(--ease-out) both; }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }
.cookie-dialog__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.cookie-dialog__body { padding: 12px 24px; color: var(--fg-muted); font-size: .95rem; }
.cookie-dialog__body p, .cookie-dialog__body ul { margin-block: 10px; }
.cookie-dialog__body ul { padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.cookie-dialog__body strong { color: var(--fg); }
.cookie-dialog__body code { font-size: .85em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.cookie-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 24px 24px; }

.noscript {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 130;
  padding: 12px; text-align: center; background: var(--c-red); color: var(--c-white); font-weight: 700;
}

/* =========================================================
   Accesibilidad: botón flotante y panel
   ========================================================= */
.a11y-toggle {
  position: fixed; z-index: 95;
  right: 0; top: 50%;
  display: grid; place-items: center;
  width: 48px; height: 52px;
  padding: 0; border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--c-blue); color: var(--c-white);
  box-shadow: -6px 8px 24px -10px rgba(0, 0, 0, .6);
  transform: translateY(-50%);
  transition: width var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.a11y-toggle::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--c-blue) 0 20%, var(--c-sky) 20% 40%, var(--c-green) 40% 60%, var(--c-orange) 60% 80%, var(--c-red) 80% 100%);
}
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { width: 56px; background: #1c43b8; }
.a11y-toggle .icon { width: 28px; height: 28px; }
/* En móvil: círculo abajo a la derecha (el mini reproductor va a la izquierda) */
@media (max-width: 768px) {
  .a11y-toggle {
    top: auto; right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom) + var(--cookie-offset));
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid var(--c-white);
    transform: none;
    transition: bottom var(--t-base), background-color var(--t-fast);
  }
  .a11y-toggle::before { display: none; }
  .a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { width: 52px; }
  .carousel__controls { padding-right: 64px; }
}
.a11y-toggle:focus-visible { outline-offset: -4px; outline-color: var(--c-white); }

.a11y-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 100%);
  height: 100%; max-height: none; max-width: 100%;
  margin: 0; padding: 0; border: 0;
  overflow-y: auto; overscroll-behavior: contain;
  color: var(--fg); background: var(--c-white);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .6);
}
.a11y-panel::backdrop { background: rgba(0, 0, 0, .55); }
.a11y-panel[open] { animation: slide-in .3s var(--ease-out) both; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.a11y-panel::before {
  content: ""; position: sticky; top: 0; display: block; height: 6px; z-index: 1;
  background: var(--rainbow);
}

.a11y-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 4px 24px;
}
.a11y-panel__head h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.6rem;
}
.a11y-panel__head h2 .icon { width: 30px; height: 30px; color: var(--c-blue); }
.a11y-panel__body { padding: 8px 24px 28px; display: grid; gap: 18px; }
.a11y-panel__intro { color: var(--fg-muted); font-size: .95rem; }

.a11y-size {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.a11y-size__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.a11y-size__label .icon { color: var(--c-blue); }
.a11y-size__controls { display: flex; align-items: center; gap: 8px; }
.a11y-size__btn {
  min-width: 48px; height: 44px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 2px solid var(--c-blue);
  background: var(--c-white); color: var(--c-blue);
  font-weight: 800; font-size: 1rem;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.a11y-size__btn:hover:not(:disabled) { background: var(--c-blue); color: var(--c-white); }
.a11y-size__btn:disabled { opacity: .4; cursor: not-allowed; }
.a11y-size__value { min-width: 56px; text-align: center; font-weight: 800; }

.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a11y-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 92px; padding: 14px;
  border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--c-white); color: var(--fg);
  font-weight: 700; font-size: .92rem; text-align: left; line-height: 1.25;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.a11y-opt .icon { width: 26px; height: 26px; color: var(--c-blue); }
.a11y-opt:hover { border-color: var(--c-blue); background: var(--surface); }
.a11y-opt[aria-pressed="true"] { border-color: var(--c-blue); background: var(--c-blue); color: var(--c-white); }
.a11y-opt[aria-pressed="true"] .icon { color: var(--c-white); }
.a11y-opt__check {
  position: absolute; top: 10px; right: 10px;
  width: 22px !important; height: 22px !important; padding: 3px;
  border-radius: 50%; background: var(--c-white); color: var(--c-blue) !important;
  opacity: 0; transform: scale(.6);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.a11y-opt[aria-pressed="true"] .a11y-opt__check { opacity: 1; transform: none; }

.a11y-reset { width: 100%; color: var(--fg); }
.a11y-reset .icon { width: 20px; height: 20px; }

.a11y-info { border-top: 1px solid var(--border); padding-top: 14px; font-size: .92rem; color: var(--fg-muted); }
.a11y-info summary {
  display: flex; align-items: center; min-height: 44px;
  cursor: pointer; font-weight: 800; color: var(--fg);
}
.a11y-info p { margin-top: 8px; }
.a11y-info a { color: var(--c-blue); font-weight: 700; }
.a11y-info dl { display: grid; gap: 8px; margin: 8px 0 0; }
.a11y-info dt { font-weight: 700; color: var(--fg); }
.a11y-info dd { margin: 0 0 4px; }
kbd {
  display: inline-block; padding: 1px 7px;
  border: 1px solid #b9c2d6; border-bottom-width: 2px; border-radius: 4px;
  background: var(--surface); font: 700 .8rem/1.4 var(--font-body); color: var(--fg);
}

/* Guía de lectura */
.a11y-guide {
  position: fixed; z-index: 140; left: 0; right: 0; top: 0;
  height: 56px;
  border-block: 3px solid var(--c-orange);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
  pointer-events: none;
  will-change: transform;
}
.a11y-guide[hidden] { display: none; }

/* =========================================================
   Accesibilidad: opciones que activa el usuario
   ========================================================= */

/* Alto contraste */
.a11y-contrast {
  --fg: #000; --fg-muted: #000;
  --on-dark-muted: #fff;
  --border: #000; --dark-border: #fff;
  --surface: #fff;
  --dark: #000; --dark-2: #000;
}
.a11y-contrast .carousel__shade { background: rgba(0, 0, 0, .82); }
.a11y-contrast .navbar,
.a11y-contrast .navbar.is-scrolled { background: #000; backdrop-filter: none; }
.a11y-contrast .player { background: #000; backdrop-filter: none; border: 2px solid #fff; }
.a11y-contrast .player__controls,
.a11y-contrast .hero__scroll { opacity: 1; }
.a11y-contrast .player__now { color: #fff; }
.a11y-contrast .social-card,
.a11y-contrast .contact-item,
.a11y-contrast .carousel__btn,
.a11y-contrast .footer__social a { border: 2px solid currentColor; }
.a11y-contrast .ethics-item { border: 2px solid #000; }
.a11y-contrast .map { border-color: #fff; }
.a11y-contrast main a:not(.social-card):not(.contact-item):not(.hero__scroll),
.a11y-contrast .footer a:not(.footer__top) { text-decoration: underline; text-underline-offset: 3px; }
.a11y-contrast :focus-visible { outline: 3px solid #000; box-shadow: 0 0 0 6px #ffd400; }
.a11y-contrast .navbar :focus-visible,
.a11y-contrast .hero :focus-visible,
.a11y-contrast .connect :focus-visible { outline-color: #fff; }

/* Escala de grises */
.a11y-grayscale { filter: grayscale(1); }

/* Resaltar enlaces */
.a11y-links a:not(.skip-link) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
.a11y-links a:not(.skip-link):not(.nav__link--live) { outline: 2px dashed currentColor; outline-offset: 2px; }

/* Fuente legible */
.a11y-font {
  --font-display: Verdana, Tahoma, "Segoe UI", sans-serif;
  --font-body: Verdana, Tahoma, "Segoe UI", sans-serif;
}
.a11y-font body { letter-spacing: .02em; }

/* Más espaciado (WCAG 1.4.12) */
.a11y-spacing body :where(p, li, a, span, dd, dt, summary, button, label, address, h1, h2, h3):not(.navbar *) {
  line-height: 1.8 !important;
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
}
.a11y-spacing body p { margin-bottom: 1em; }
.a11y-spacing .nav__link, .a11y-spacing .badge-live { line-height: 1.2 !important; }

/* Detener animaciones */
.a11y-motion { scroll-behavior: auto; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}
.a11y-motion .carousel__slide img { transform: none; }

/* Cursor grande */
.a11y-cursor, .a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19.5 11l-7 2.2L9.8 20z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 8 5, auto !important;
}

/* Modos de alto contraste del sistema (Windows) */
@media (forced-colors: active) {
  .play-btn, .mini-player, .btn, .carousel__btn, .social-card, .contact-item,
  .nav__link, .a11y-toggle, .a11y-opt, .footer__social a, .volume__btn { border: 2px solid ButtonText; }
  .player, .cookie-banner__inner { border: 2px solid CanvasText; }
  .live-dot, .a11y-opt[aria-pressed="true"] .a11y-opt__check { forced-color-adjust: none; }
  .a11y-opt[aria-pressed="true"] { outline: 3px solid Highlight; }
}

/* =========================================================
   Accesibilidad: menos movimiento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .carousel__slide img { transform: none; }
}
