/* =====================================================================
   LOS SALINEROS — Tema "Salinas de Canarias"
   Paleta inspirada en las salinas: turquesa de mar, rosé de salmuera al
   atardecer, sal dorada y roca volcánica. Tipografía con carácter
   (Fraunces para titulares, Mulish para texto).
   Accesible, responsive y consolidado (sin reglas duplicadas/conflictivas).
   ===================================================================== */

:root {
  /* --- Superficies --- */
  --bg:         #0b1417;   /* roca volcánica / océano nocturno */
  --bg-2:       #081012;
  --surface:    #11201f;   /* poza de salina */
  --surface-2:  #16292a;
  --surface2:   #16292a;   /* alias por compatibilidad (typo en algunas plantillas) */
  --border:     #213a3c;
  --border-color: #213a3c; /* alias */

  /* --- Texto --- */
  --text:   #f2ede3;       /* blanco sal, cálido */
  --text-2: #9db4b3;       /* espuma de mar apagada */

  /* --- Acentos --- */
  --accent:      #35d0bd;  /* turquesa de salina */
  --accent-dark: #1ea795;
  --primary:     #35d0bd;  /* unifica botones que usaban --primary (antes azul) */
  --accent-2:    #ec9a82;  /* rosé/coral de salmuera al atardecer */
  --gold:        #e6bd6c;  /* sal dorada / sol */

  /* --- Tipografía --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* --- Radios --- */
  --radius: 16px;
  --radius-sm: 9px;
  --radius-lg: 14px;

  /* --- Espaciado --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --header-h: 70px;

  --shadow-1: 0 14px 34px rgba(0,0,0,.35);
  --shadow-2: 0 22px 50px rgba(0,0,0,.45);
  --glow: 0 0 0 1px rgba(53,208,189,.25), 0 18px 40px rgba(53,208,189,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 620px at 10% -8%, rgba(53,208,189,.12), transparent 60%),
    radial-gradient(1000px 560px at 105% 4%, rgba(236,154,130,.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 38%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Retícula muy sutil evocando las pozas de las salinas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.014) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { margin: 0 0 var(--space-4); }
ul { line-height: 1.7; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #6fe0d2; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(53,208,189,.30); color: #fff; }

/* Scrollbar discreta */
* { scrollbar-color: var(--accent-dark) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* =====================================================================
   Header + Marca
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,20,23,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(53,208,189,.14);
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .55;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
  padding: 0 var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  transition: transform .25s ease;
}
.brand .logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(53,208,189,.55), transparent 62%),
    radial-gradient(circle at 75% 80%, rgba(236,154,130,.45), transparent 60%),
    var(--surface-2);
  border: 1px solid rgba(53,208,189,.35);
  box-shadow: inset 0 0 14px rgba(0,0,0,.45);
  overflow: hidden;
}
.brand .logo img { width: 42px; height: 42px; border-radius: 50%; }
.brand span:last-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.brand:hover { transform: translateY(-1px) scale(1.02); }
@media (min-width: 768px) {
  .brand span:last-child { font-size: clamp(1.5rem, 2vw, 1.9rem); }
}

/* =====================================================================
   Menú hamburguesa (animado a “X”) + navegación
   ===================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a {
  position: relative;
  display: block;
  color: var(--text-2);
  font-weight: 600;
  font-size: .98rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3);
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Móvil: panel desplegable */
@media (max-width: 859.98px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4) var(--space-4);
    background: rgba(11,20,23,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: var(--space-3) var(--space-3); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: rgba(53,208,189,.14); color: var(--accent); }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 9vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 18% 18%, rgba(53,208,189,.16), transparent 60%),
    radial-gradient(640px 360px at 86% 30%, rgba(236,154,130,.13), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .kicker { margin-bottom: var(--space-4); }
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  background: linear-gradient(180deg, #ffffff 0%, #d8efe9 60%, #aee0d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Palabra destacada del titular: dorado en cursiva. Necesita su propio
   color y anular el recorte de texto del degradado del h1. */
.hero h1 .acento {
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  color: var(--gold);
  font-style: italic;
}
.hero p, .hero .lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-2);
  max-width: 60ch;
  margin: 0;
}
/* onda de cierre del hero (borde de poza de salina) */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 56px;
  background:
    radial-gradient(60px 56px at 50% 0, transparent 55%, rgba(53,208,189,.06) 56%) repeat-x;
  background-size: 120px 56px;
  opacity: .6;
  pointer-events: none;
}

/* =====================================================================
   Secciones, kicker, lead, badge
   ===================================================================== */
.section { padding: clamp(40px, 7vw, 72px) 0; }

@media (prefers-reduced-motion: no-preference) {
  .section { animation: fadeInUp .65s cubic-bezier(.22,.61,.36,1) both; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(230,189,108,.35);
  border-radius: 999px;
  background: rgba(230,189,108,.08);
}
/* Puntito turquesa con un latido muy suave, como señal de "en directo". */
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53,208,189,.5);
  animation: kicker-pulse 2.4s ease-out infinite;
}
@keyframes kicker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53,208,189,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(53,208,189,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,189,0); }
}
@media (prefers-reduced-motion: reduce) {
  .kicker::before { animation: none; }
}

.lead { font-size: 1.2rem; color: var(--text-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: .92rem;
}
.badge.secondary { background: var(--surface); }
.icon { width: 20px; height: 20px; display: inline-block; }

/* =====================================================================
   Grids, Cards, Botones
   ===================================================================== */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-2 { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Filo lateral alternando color: turquesa en las impares, dorado en las
   pares, para dar ritmo visual a la rejilla de tarjetas. */
.grid .card:nth-child(even) { border-left-color: var(--gold); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-top-color: rgba(53,208,189,.4);
  border-right-color: rgba(53,208,189,.4);
  border-bottom-color: rgba(53,208,189,.4);
}
.card:hover::before { transform: scaleX(1); }
.card h2, .card h3 { margin-top: 0; margin-bottom: var(--space-3); }
.card h3 { font-size: 1.35rem; }
.card p { margin: 0; color: var(--text-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #04201d;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(53,208,189,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(53,208,189,.30); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn.secondary:hover {
  border-color: var(--accent);
  background: rgba(53,208,189,.10);
  box-shadow: none;
}

/* =====================================================================
   Cancionero
   ===================================================================== */
.song-list { display: grid; gap: var(--space-3); }
.song {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-weight: 600;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.song:hover { background: var(--surface-2); transform: translateX(4px); border-color: rgba(53,208,189,.35); }
.song > div:first-child { font-size: 1.05rem; }
.song .status { display: flex; gap: var(--space-2); min-width: 220px; flex-wrap: wrap; justify-content: flex-end; }
.slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 84px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s ease;
}
.slot.active {
  border-color: var(--accent);
  background: rgba(53,208,189,.12);
  color: var(--accent);
}
.slot:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }

/* Buscador de canciones */
#search {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 var(--space-5);
  font-size: 1rem;
  font-family: var(--font-body);
}
#search::placeholder { color: var(--text-2); }
#search:focus { border-color: var(--accent); }

/* =====================================================================
   Álbumes / CDs
   ===================================================================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.album-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(53,208,189,.4); }
.album-card img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.album-card h3 { margin: 0 0 var(--space-3); font-size: 1.3rem; }
.view-tracks-btn, .view-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #04201d;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-body);
  transition: transform .2s ease, filter .2s ease;
}
.view-tracks-btn:hover, .view-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* =====================================================================
   Calendario
   ===================================================================== */
.calendar-embed {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow-1);
}
.calendar-embed iframe {
  width: 100%;
  max-width: 80vw;
  height: 70vh;
  border: none;
  border-radius: var(--radius-sm);
  filter: invert(.92) hue-rotate(180deg) brightness(1.05) contrast(.95);
}

/* Imágenes flotadas (nosotros) */
.section img[align="right"],
.section img[align="left"] {
  max-width: 38%;
  height: auto;
  margin: 0 0 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.section img[align="left"] { margin: 0 1.25rem 1rem 0; }

/* =====================================================================
   Galería
   ===================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,20,23,.55));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.filter-select {
  height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(8,16,18,.6));
}
.footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--accent); }
.skip-link { color: var(--text-2); }
.skip-link:hover { color: var(--accent); }

/* =====================================================================
   Breadcrumbs + Sociales
   ===================================================================== */
.breadcrumb { padding: var(--space-3) 0; font-size: 14px; color: var(--text-2); }
.breadcrumb a { color: var(--accent); }

.social-links { display: flex; gap: var(--space-3); align-items: center; }
.social-links a { color: var(--text-2); line-height: 0; transition: transform .2s ease, color .2s ease; }
.social-links a:hover { color: var(--accent); }
.social-links a:hover svg { transform: scale(1.12); }
.social-links a svg { transition: transform .2s ease; }

/* =====================================================================
   Blog
   ===================================================================== */
.post-meta { display: flex; gap: var(--space-4); font-size: 14px; color: var(--text-2); margin-bottom: var(--space-3); }
.post-meta .author { color: var(--gold); }
.blog-post .read-more { margin-top: var(--space-3); }
.post-content { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--text-2); }

/* =====================================================================
   Formularios dentro de tarjetas
   ===================================================================== */
.card form label { display: block; font-weight: 600; color: var(--text); }
.card form input,
.card form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.card form input:focus,
.card form textarea:focus { border-color: var(--accent); }
.card form input::placeholder,
.card form textarea::placeholder { color: var(--text-2); }

/* Mensajes de feedback del formulario de contacto (los aplica contact.js) */
.contact-feedback {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border);
}
.contact-success {
  background: rgba(53,208,189,.12);
  border-color: rgba(53,208,189,.45);
  color: #7fe6d6;
}
.contact-error {
  background: rgba(236,154,130,.12);
  border-color: rgba(236,154,130,.45);
  color: #f0b5a4;
}
.contact-info {
  background: var(--surface-2);
  color: var(--text-2);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 var(--space-4); }
  .grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero .btn, .hero a.btn { width: 100%; }
  .section img[align="right"],
  .section img[align="left"] { display: block; float: none; max-width: 100%; margin: 1rem auto; }
  .calendar-embed { padding: 10px; margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); border-radius: var(--radius-sm); }
  .calendar-embed iframe { max-width: 95vw; height: 60vh; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .song .status { min-width: 0; }
}

@media (max-width: 640px) {
  .footer .inner { flex-direction: column; text-align: center; gap: var(--space-3); }
  .social-links { justify-content: center; }
  .song { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .song .status { width: 100%; justify-content: flex-start; }
  .albums-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .calendar-embed iframe { height: 55vh; min-height: 400px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
  .card { padding: var(--space-4); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .slot { flex: 1; min-width: 0; }
  .calendar-embed iframe { height: 50vh; min-height: 360px; }
}

/* Página calendario: aprovecha el ancho en móvil */
.calendar-page .container { max-width: 1120px; }
@media (max-width: 480px) { .calendar-page .container { padding: 0 var(--space-2); } }

/* =====================================================================
   Modales del cancionero (letra / audio / álbum) — responsive
   Los modales llevan estilos inline; aquí solo ajustamos en móvil.
   ===================================================================== */
@media (max-width: 768px) {
  #letraModal > div,
  #audioModal > div,
  #albumModal > div {
    width: 95% !important;
    max-width: 95% !important;
    padding: var(--space-4) !important;
  }
  #letraModal pre { font-size: 14px !important; line-height: 1.6 !important; }
}
@media (max-width: 480px) {
  #letraModal > div,
  #audioModal > div,
  #albumModal > div {
    width: 98% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

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