/* ══════════════════════════════════════════════════════════════
   CAPITAL TROPICAL — Hoja de estilos compartida (RESPONSIVE)
   Usada por: index, nosotros, picoteca, radio, eventos, contacto

   Estrategia: mobile-first + tipografía y espaciados fluidos con
   clamp(). Se adapta de 320px (móvil pequeño) hasta pantallas
   grandes, manteniendo la legibilidad en todo momento.
════════════════════════════════════════════════════════════════ */

/* ── FUENTES LOCALES ──
   Coloca los archivos .ttf en la carpeta /fonts/
   Ajusta el nombre del archivo si el tuyo es distinto. */
@font-face {
  font-family: 'RegularBrush';
  src: url('../fonts/RegularBrush.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Elbrush';
  src: url('../fonts/Elbrush.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'FeelingPassionate';
  src: url('../fonts/FeelingPassionate.ttf') format('truetype');
  font-display: swap;
}

/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --negro:    #0A0805;
  --rojo:     #FF1A00;
  --amarillo: #FFD600;
  --verde:    #00E64D;
  --cyan:     #00EEFF;
  --magenta:  #FF00CC;
  --naranja:  #FF6600;
  --blanco:   #FFFFFF;

  /* Fuentes */
  --f-titulo:    'RegularBrush', cursive;
  --f-sub:       'Elbrush', cursive;
  --f-artista:   'FeelingPassionate', cursive;
  --f-ui:        'Oswald', sans-serif;
  --f-cuerpo:    'Nunito', sans-serif;

  /* Espaciados fluidos: escalan con el ancho del viewport */
  --gap:        clamp(10px, 2.5vw, 14px);
  --pad-art:    clamp(20px, 5vw, 38px);   /* padding interno del artículo */
  --pad-pag:    clamp(16px, 4vw, 24px);   /* padding lateral de la página */

  /* Tamaños de texto fluidos y legibles */
  --fs-cuerpo:  clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --fs-h2:      clamp(2rem, 1.4rem + 3vw, 3rem);
  --fs-artista: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Evita que iOS agrande el texto al girar el dispositivo */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  min-height: 100%;
  color: var(--blanco);
  background: var(--negro);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amarillo); text-decoration: none; }

/* ══════════════════════════════════════
   FONDO: CARRUSEL CARTELES
══════════════════════════════════════ */
#bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.slide.activo { opacity: 1; }
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,8,5,0.32) 0%, rgba(10,8,5,0.80) 100%);
}
#slide1 { background-image: url('../img/cartel-1.jpg'); }
#slide2 { background-image: url('../img/cartel-2.jpg'); }

/* Franjas arco iris (arriba y abajo) — colores fusionados, siempre fijas */
#franja, #franja-abajo {
  position: fixed; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg,
    #FF1A00, #FF6600, #FFD600, #00E64D, #00EEFF, #FF00CC, #FF1A00);
  z-index: 9999;
  pointer-events: none;   /* no interfiere con clics */
}
#franja        { top: 0; }
#franja-abajo  { bottom: 0; }

/* ══════════════════════════════════════
   WRAPPER (portada)
══════════════════════════════════════ */
#wrapper {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(48px, 10vh, 60px) var(--pad-pag) clamp(28px, 5vh, 36px);
  position: relative; z-index: 1;
  gap: clamp(8px, 2vh, 14px);
}

#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-zona {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(24px, 6vh, 56px);   /* separación fija logo–menú, ajústala aquí */
}

/* ══════════════════════════════════════
   LOGO PORTADA (imagen)
══════════════════════════════════════ */
.logo-hero {
  width: min(90vw, 480px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.6))
          drop-shadow(0 0 34px rgba(255,214,0,.18));
  animation: flotar 7s ease-in-out infinite;
}
@keyframes flotar {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ══════════════════════════════════════
   BLOQUE NOMBRE — tipografía principal
══════════════════════════════════════ */
.nombre-bloque {
  border-top: 2px solid var(--amarillo);
  border-bottom: 2px solid var(--amarillo);
  padding: clamp(12px, 3vw, 20px) 0 clamp(14px, 3vw, 22px);
  position: relative;
  width: 100%; max-width: 580px;
  text-align: center;
  container-type: inline-size;
  container-name: bloque;
  overflow: visible;
}
.nombre-bloque::before,
.nombre-bloque::after {
  content: '◆'; position: absolute; top: 50%; transform: translateY(-50%);
  font-size: .75rem; color: var(--rojo);
}
.nombre-bloque::before { left: 8px; }
.nombre-bloque::after  { right: 8px; }

/* ── CAPITAL → RegularBrush (escala con el contenedor) ── */
.h-capital {
  font-family: var(--f-titulo);
  font-size: clamp(2rem, 13cqw, 5rem);
  line-height: 1.2;
  letter-spacing: .03em;
  white-space: nowrap;
  display: block;
  background: linear-gradient(180deg,
    #00EEFF 0%, #00E64D 22%, #FFD600 48%, #FF6600 74%, #FF1A00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,.85));
}

/* ── TROPICAL → FeelingPassionate ── */
.h-tropical {
  font-family: var(--f-artista);
  font-size: clamp(1.1rem, 6cqw, 2.2rem);
  line-height: 1.15;
  background: linear-gradient(90deg, #FF00CC, #FFD600, #00E64D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-top: 4px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.9));
}

.tagline {
  font-family: var(--f-ui);
  font-size: clamp(.55rem, 2vw, .64rem);
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: 7px;
  line-height: 1.5;
  text-align: center;
  text-indent: .22em;   /* compensa el espacio final del letter-spacing */
}

/* ══════════════════════════════════════
   NAV — se adapta a rejilla en pantallas estrechas
══════════════════════════════════════ */
nav { width: 100%; max-width: 600px; }
nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  border: 2px solid var(--amarillo); border-radius: 5px; overflow: hidden;
  box-shadow: 0 0 28px rgba(255,214,0,.15), 0 0 55px rgba(255,26,0,.08);
}
nav ul li {
  flex: 1 1 auto; min-width: 90px;
  border-right: 1px solid rgba(255,214,0,.22);
}
nav ul li:last-child { border-right: none; }
nav ul li a {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px;                     /* área táctil cómoda */
  padding: 12px 8px;
  font-family: var(--f-ui);
  font-size: clamp(.62rem, 2.2vw, .72rem);
  font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blanco); text-align: center;
  background: rgba(10,8,5,.5);
  transition: background .2s, color .2s;
  position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo));
  transform: scaleX(0); transition: transform .2s;
}
nav ul li a:hover,
nav ul li a.activo { background: rgba(255,214,0,.1); color: var(--amarillo); }
nav ul li a:hover::after,
nav ul li a.activo::after { transform: scaleX(1); }

/* dots carrusel */
#dots { display: flex; gap: 8px; margin-top: 4px; justify-content: center; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,214,0,.35);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.dot.activo { background: var(--amarillo); transform: scale(1.35); box-shadow: 0 0 8px var(--amarillo); }

/* footer mini */
#footer {
  margin-top: 6px; text-align: center;
  font-family: var(--f-ui);
  font-size: clamp(.52rem, 2vw, .6rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   PÁGINA DE SECCIÓN
══════════════════════════════════════ */
.pagina {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(56px, 9vh, 70px) var(--pad-pag) clamp(32px, 6vh, 40px);
  position: relative; z-index: 1;
}

article {
  max-width: 680px; width: 100%;
  position: relative;
}

article h2.major {
  font-family: var(--f-sub);
  font-size: var(--fs-h2);
  line-height: 1; letter-spacing: .04em;
  background: linear-gradient(180deg, #FFD600 0%, #FF6600 55%, #FF1A00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.9));
}

.sub-titulo {
  font-family: var(--f-ui);
  font-size: clamp(.6rem, 2.2vw, .68rem);
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-bottom: 16px;
  line-height: 1.5;
}

.nombre-artista {
  font-family: var(--f-artista);
  font-size: var(--fs-artista);
  line-height: 1.1;
  background: linear-gradient(90deg, #00EEFF, #00E64D, #FFD600);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.9));
  display: block; margin: 6px 0;
}

.sep {
  height: 3px; border: none; border-radius: 2px; margin: 14px 0 20px;
  background: linear-gradient(90deg,
    var(--rojo), var(--amarillo), var(--verde), var(--cyan), var(--magenta));
}

article p {
  font-family: var(--f-cuerpo);
  color: rgba(255,255,255,.82);
  font-size: var(--fs-cuerpo); line-height: 1.75;
  margin-bottom: .9rem;
}
article strong { color: var(--amarillo); }

/* enlace volver */
.volver {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-bottom: 14px;
  font-family: var(--f-ui);
  font-size: clamp(.64rem, 2.4vw, .7rem);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.volver:hover { color: var(--amarillo); }

/* grid tarjetas — 1 col en móvil, 2 en tablet/escritorio (auto-fit) */
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--gap); margin: 18px 0;
}
.tarj {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,214,0,.22);
  border-radius: 5px; padding: clamp(13px, 3vw, 16px);
  transition: border-color .2s, box-shadow .2s;
}
.tarj:hover { border-color: var(--amarillo); box-shadow: 0 0 14px rgba(255,214,0,.2); }
.tarj-ico { font-size: 1.5rem; margin-bottom: 6px; }
.tarj h3 {
  font-family: var(--f-sub);
  font-size: clamp(1.15rem, 4vw, 1.3rem); color: var(--amarillo);
  margin-bottom: 5px; line-height: 1.1;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.8));
}
.tarj p {
  font-family: var(--f-cuerpo);
  font-size: clamp(.8rem, 3vw, .84rem); color: rgba(255,255,255,.62);
  margin: 0; line-height: 1.55;
}

/* badge */
.badge {
  display: inline-block; font-family: var(--f-ui);
  font-size: clamp(.58rem, 2.2vw, .63rem);
  font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 3px;
  margin-bottom: 14px; background: var(--rojo); color: var(--blanco);
}
.badge.verde  { background: var(--verde);   color: var(--negro); }
.badge.cyan   { background: var(--cyan);    color: var(--negro); }
.badge.magenta{ background: var(--magenta); color: var(--negro); }

/* cita */
blockquote.pico {
  border-left: 4px solid var(--rojo);
  padding: 12px clamp(14px, 3vw, 18px);
  background: rgba(255,214,0,.05);
  border-radius: 0 5px 5px 0; margin: 16px 0;
  font-family: var(--f-cuerpo);
  font-style: italic; color: rgba(255,255,255,.72);
  font-size: clamp(.86rem, 3vw, .92rem); line-height: 1.7;
}

/* timeline */
.timeline { list-style: none; margin: 16px 0; padding-left: 18px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--amarillo), var(--rojo));
}
.timeline li {
  position: relative; padding: 0 0 16px 20px;
  font-family: var(--f-cuerpo);
  color: rgba(255,255,255,.75); font-size: clamp(.82rem, 3vw, .88rem);
  line-height: 1.6;
}
.timeline li::before {
  content: ''; position: absolute; left: -2px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amarillo); border: 2px solid var(--negro);
}
.timeline li strong {
  display: block; font-family: var(--f-artista);
  font-size: clamp(1.05rem, 4vw, 1.2rem); color: var(--amarillo); font-style: normal;
}

/* programación */
.programa { list-style: none; margin: 16px 0; }
.programa li {
  display: flex; align-items: center; gap: clamp(10px, 3vw, 14px);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,214,0,.1);
}
.programa li:last-child { border-bottom: none; }
.hora {
  font-family: var(--f-sub);
  font-size: clamp(1.2rem, 5vw, 1.4rem); color: var(--rojo);
  min-width: clamp(52px, 14vw, 62px); line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.8));
}
.prog-nombre {
  font-family: var(--f-artista);
  font-size: clamp(1.15rem, 4.5vw, 1.3rem); color: var(--amarillo); display: block;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.9));
}
.prog-desc {
  font-family: var(--f-cuerpo);
  font-size: clamp(.74rem, 2.8vw, .78rem); color: rgba(255,255,255,.52);
  line-height: 1.5;
}

/* en vivo */
.en-vivo {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rojo); border-radius: 20px;
  padding: 4px 12px; margin-bottom: 16px;
  font-family: var(--f-ui); font-size: clamp(.62rem, 2.4vw, .68rem);
  font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--rojo); background: rgba(255,26,0,.1);
}
.en-vivo::before {
  content: ''; width: 7px; height: 7px;
  background: var(--rojo); border-radius: 50%;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.15; } }

/* botones */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;                     /* área táctil */
  padding: 11px clamp(18px, 5vw, 24px);
  font-family: var(--f-ui);
  font-size: clamp(.72rem, 2.6vw, .78rem);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 4px; cursor: pointer;
  border: 2px solid var(--amarillo);
  background: var(--amarillo); color: var(--negro);
  transition: background .2s, color .2s, box-shadow .2s, transform .1s;
}
.btn:hover { background: transparent; color: var(--amarillo); box-shadow: 0 0 20px rgba(255,214,0,.4); }
.btn.rojo { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.btn.rojo:hover { background: transparent; color: var(--rojo); box-shadow: 0 0 20px rgba(255,26,0,.5); }
.btn:active { transform: scale(.97); }

/* En móvil los botones ocupan todo el ancho para tocarlos fácil */
@media (max-width: 420px) {
  .btns { flex-direction: column; }
  .btn { width: 100%; }
}

/* imagen cartel mini (Eventos) */
.cartel-mini {
  width: 100%;
  margin: 18px 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;                 /* mantiene proporción en todo tamaño */
  max-height: 260px;
  border: 2px solid var(--amarillo);
  border-radius: 6px;
  position: relative;
}
.cartel-mini img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(.85) saturate(1.15);
}

/* foto grupo (Nosotros) */
.foto-grupo {
  width: 100%;
  margin: 18px 0;
  overflow: hidden;
  aspect-ratio: 16 / 6.4;
  max-height: 240px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
}
.foto-grupo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  filter: saturate(1.3) contrast(1.05);
}

/* formulario */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--gap); margin-bottom: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  font-family: var(--f-ui);
  font-size: clamp(.62rem, 2.4vw, .67rem);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amarillo); display: block; margin-bottom: 4px;
}
.form-grid input,
.form-grid textarea {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,214,0,.28); border-radius: 4px;
  padding: 11px 13px; color: var(--blanco);
  font-family: var(--f-cuerpo);
  font-size: 16px;                      /* evita zoom automático en iOS */
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--amarillo); box-shadow: 0 0 10px rgba(255,214,0,.2);
}
.form-grid textarea { resize: vertical; min-height: 100px; }

/* redes sociales */
.redes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.redes li a {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 7px 13px;
  border: 1px solid rgba(255,214,0,.28); border-radius: 4px;
  font-family: var(--f-ui); font-size: clamp(.68rem, 2.6vw, .72rem);
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s, background .2s;
}
.redes li a:hover {
  border-color: var(--amarillo); color: var(--amarillo);
  background: rgba(255,214,0,.06);
}

/* ══════════════════════════════════════
   BREAKPOINTS
══════════════════════════════════════ */

/* Tablet en adelante */
@media (min-width: 700px) {
  .redes li a { min-height: auto; }
}

/* Escritorio grande: limita el ancho de lectura para no cansar la vista */
@media (min-width: 1100px) {
  article { max-width: 720px; }
}

/* ══════════════════════════════════════
   PC / ESCRITORIO: agrandar el hero de la portada
   (solo afecta pantallas anchas; móvil y tablet no cambian)
══════════════════════════════════════ */
@media (min-width: 1000px) {
  #wrapper { gap: clamp(14px, 2.4vh, 22px); }

  /* logo más grande */
  .logo-ring { width: 132px; height: 132px; border-width: 4px; }
  .logo-ring span { font-size: 3.8rem; }

  /* separadores verticales más largos */
  .linea-v  { height: 38px; }
  .linea-v2 { height: 28px; }

  /* bloque del nombre más ancho → el título crece con él (cqw) */
  .nombre-bloque {
    max-width: 860px;
    padding: 30px 0 32px;
  }
  .h-capital  { font-size: clamp(5rem, 13cqw, 8.5rem); }
  .h-tropical { font-size: clamp(2.2rem, 6cqw, 3.4rem); margin-top: 8px; }
  .tagline    { font-size: .82rem; letter-spacing: .3em; margin-top: 12px; }
  .nombre-bloque::before,
  .nombre-bloque::after { font-size: 1rem; }

  /* menú más grande */
  nav { max-width: 780px; }
  nav ul li a {
    min-height: 58px;
    font-size: 1rem;
    letter-spacing: .18em;
    padding: 18px 10px;
  }

  /* puntos del carrusel y pie ligeramente mayores */
  .dot { width: 14px; height: 14px; }
  #footer { font-size: .72rem; margin-top: 10px; }
}

/* Monitores muy grandes: un empujón extra */
@media (min-width: 1600px) {
  .logo-ring { width: 150px; height: 150px; }
  .logo-ring span { font-size: 4.4rem; }
  .nombre-bloque { max-width: 980px; }
  .h-capital  { font-size: clamp(6rem, 13cqw, 10rem); }
  .h-tropical { font-size: clamp(2.6rem, 6cqw, 4rem); }
  nav { max-width: 860px; }
  nav ul li a { font-size: 1.08rem; min-height: 62px; }
}

/* Móvil muy pequeño (≤360px): compacta la navegación a 2 por fila */
@media (max-width: 360px) {
  nav ul li { flex: 1 1 45%; min-width: 0; }
  .nombre-bloque::before, .nombre-bloque::after { display: none; }
}

/* Pantallas bajas en horizontal (móvil apaisado): no forzar 100vh */
@media (max-height: 500px) and (orientation: landscape) {
  #wrapper { min-height: auto; padding-top: 24px; padding-bottom: 24px; }
  .pagina { align-items: flex-start; }
}

/* Respeta la preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* bloque de artistas centrado (Eventos) */
.artistas { text-align: center; margin: 16px 0 8px; }

/* ══════════════════════════════════════════════════════════════
   BARRA DE NAVEGACIÓN (páginas internas)
   Fija arriba, con marca + menú. Hamburguesa en móvil.
════════════════════════════════════════════════════════════════ */
:root { --barra-h: clamp(54px, 13vw, 64px); }

.barra {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: var(--barra-h);
  padding: 5px clamp(14px, 4vw, 28px) 0;   /* 5px arriba para la franja arcoíris */
  background: rgba(10,8,5,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--amarillo);
  box-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 30px rgba(255,214,0,.08);
}

/* marca (logo) → enlace al inicio */
.barra-brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; flex-shrink: 0;
}
.barra-logo-img {
  height: clamp(34px, 9vw, 46px);
  width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}

/* botón hamburguesa (oculto en escritorio) */
.barra-toggle {
  display: none;
  width: 46px; height: 46px; flex-shrink: 0;
  background: transparent; border: 2px solid var(--amarillo);
  border-radius: 5px; cursor: pointer;
  padding: 0; position: relative;
}
.barra-toggle span {
  display: block; position: absolute; left: 50%; height: 2px; width: 22px;
  background: var(--amarillo); transform: translateX(-50%);
  transition: transform .25s, opacity .25s, top .25s;
}
.barra-toggle span:nth-child(1) { top: 15px; }
.barra-toggle span:nth-child(2) { top: 22px; }
.barra-toggle span:nth-child(3) { top: 29px; }
.barra.abierto .barra-toggle span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.barra.abierto .barra-toggle span:nth-child(2) { opacity: 0; }
.barra.abierto .barra-toggle span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* menú */
.barra-nav ul {
  list-style: none; display: flex; align-items: center; gap: 4px;
}
.barra-nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 14px;
  font-family: var(--f-ui);
  font-size: clamp(.68rem, 2vw, .74rem);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blanco); border-radius: 4px;
  transition: background .2s, color .2s;
  position: relative;
}
.barra-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: linear-gradient(90deg, var(--rojo), var(--amarillo));
  transform: scaleX(0); transition: transform .2s;
}
.barra-nav a:hover { color: var(--amarillo); }
.barra-nav a:hover::after { transform: scaleX(1); }
.barra-nav a.activo { color: var(--amarillo); background: rgba(255,214,0,.1); }
.barra-nav a.activo::after { transform: scaleX(1); }

/* ── Móvil / tablet estrecha: menú desplegable ── */
@media (max-width: 760px) {
  .barra-toggle { display: block; }
  .barra-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,8,5,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--amarillo);
    box-shadow: 0 12px 30px rgba(0,0,0,.6);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .barra.abierto .barra-nav { max-height: 400px; }
  .barra-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .barra-nav a {
    min-height: 50px; justify-content: flex-start;
    border-bottom: 1px solid rgba(255,214,0,.1);
    font-size: .8rem; letter-spacing: .14em;
  }
  .barra-nav li:last-child a { border-bottom: none; }
  .barra-nav a::after { display: none; }
  .barra-nav a.activo { border-left: 3px solid var(--rojo); }
}

/* La página interna ya no necesita tanto espacio arriba (lo ocupa la barra) */
.barra + .pagina {
  min-height: calc(100dvh - var(--barra-h));
  padding-top: clamp(24px, 4vh, 40px);
}

.reproductor-capital-tropical {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 0;
  width: 100%;
}

.btn-sonido {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--amarillo);
  background: rgba(10,8,5,.75);
  backdrop-filter: blur(6px);
  color: var(--amarillo);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,214,0,.25);
  transition: transform .2s, box-shadow .2s;
  animation: pulso-sonido 2s ease-in-out infinite;
}
.btn-sonido:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(255,214,0,.4);
}
.btn-sonido svg {
  width: 24px;
  height: 24px;
}
.icono-unmute { display: none; }
.btn-sonido.activo .icono-mute { display: none; }
.btn-sonido.activo .icono-unmute { display: block; }
.btn-sonido.activo { animation: none; }

@keyframes pulso-sonido {
  0%, 100% { box-shadow: 0 0 20px rgba(255,214,0,.25); }
  50%      { box-shadow: 0 0 32px rgba(255,214,0,.5); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-sonido { animation: none; }
}