/* =========================================================
   BIBLIOTECA INFANTIL DE CANCIONES - ESTILOS PRINCIPALES
   Inspirado en Cantando Aprendo a Hablar (CAH)
   ========================================================= */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent-yellow: #f59e0b;
  --accent-yellow-light: #fef3c7;
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-blue: #0ea5e9;
  --accent-blue-light: #e0f2fe;
  --accent-pink: #ec4899;
  --accent-pink-light: #fce7f3;

  --spotify: #1db954;
  --spotify-hover: #1aa34a;
  --youtube: #ff0000;
  --youtube-hover: #cc0000;
  --lyrics: #8b5cf6;
  --lyrics-hover: #7c3aed;

  --bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #818cf8;

  --header-bg: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  --body-bg: #f8fafc;
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  --table-bg: #ffffff;
  --table-border-color: #e2e8f0;
  --table-border-style: solid;
  --table-border-width: 1px;
  --table-radius: 12px;
  --table-header-bg: #f8fafc;
  --table-header-text-color: #475569;
  --table-row-alt-bg: #f8fafc;
  --table-row-hover-bg: #f1f5f9;
  --song-title-color: #1e293b;
  --song-detail-color: #64748b;
  --badge-age-bg: #dbeafe;
  --badge-age-text: #1e40af;
  --badge-obj-bg: #ede9fe;
  --badge-obj-text: #5b21b6;
  --menu-bg: rgba(15, 23, 42, 0.9);
  --menu-text-color: #ffffff;
  --menu-hover-color: #38bdf8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

body.has-custom-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ======== HEADER ======== */
.site-header {
  background: var(--header-bg);
  color: white;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  max-height: 46px;
  max-width: 46px;
  object-fit: contain;
}

.brand-banner-logo {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
}

.btn-media-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-nav-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-nav-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-nav-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-nav-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ======== BOTÓN HAMBURGUESA ======== */
.btn-hamburger {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.btn-hamburger:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ======== MENÚ OVERLAY FULLSCREEN (PANTALLA COMPLETA) ======== */
.fullscreen-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: var(--menu-bg, rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.fullscreen-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-close-btn {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  color: #ffffff;
}

.fullscreen-nav-content {
  text-align: center;
  max-width: 600px;
  width: 90%;
  animation: menuContentFade 0.35s ease forwards;
}

@keyframes menuContentFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fullscreen-nav-header {
  margin-bottom: 2.5rem;
}

.fullscreen-nav-header .menu-brand-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.fullscreen-nav-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
}

.fullscreen-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.fullscreen-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 2.25rem;
  color: var(--menu-text-color, #ffffff);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 290px;
  max-width: 90vw;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fullscreen-nav-link:hover {
  color: var(--menu-hover-color, #38bdf8);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ======== MAIN CONTAINER ======== */
.main-content {
  max-width: 1300px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem;
  flex: 1;
}

/* ======== CONSEJOS / BANNER ======== */
.hero-tips-card {
  background: linear-gradient(to right, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-tips-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #92400e;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.hero-tips-content {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.6;
}

.hero-tips-content ul {
  margin-left: 1.25rem;
  margin-top: 0.4rem;
}

.hero-tips-content code {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  color: #b45309;
}

/* Banner centrado destacado (fuera de la tarjeta de consejos) */
.tips-banner-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto 1.5rem auto;
}

.tips-banner-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tips-banner-img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ======== CONTROLES DE FILTRO Y BÚSQUEDA ======== */
.controls-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.search-bar-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
  background: #f8fafc;
}

.search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  display: none;
}
.clear-search-btn:hover {
  color: var(--text-main);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.filter-select {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background-color: white;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  border-color: var(--primary);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* ======== BARRA DE ESTADO / CONTADOR ======== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-size-selector select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  outline: none;
}

/* ======== TABLA DE CANCIONES ======== */
.table-card {
  background: var(--table-bg);
  border: var(--table-border-width) var(--table-border-style) var(--table-border-color);
  border-radius: var(--table-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.songs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.songs-table th {
  background: var(--table-header-bg);
  color: var(--table-header-text-color);
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: calc(var(--table-border-width) + 1px) var(--table-border-style) var(--table-border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.songs-table td {
  padding: 0.9rem 1rem;
  border-bottom: var(--table-border-width) var(--table-border-style) var(--table-border-color);
  vertical-align: middle;
}

.songs-table tbody tr {
  transition: background-color 0.15s ease;
}

.songs-table.striped tbody tr:nth-child(even) {
  background-color: var(--table-row-alt-bg);
}

.songs-table tbody tr:hover {
  background-color: var(--table-row-hover-bg) !important;
}

/* Celdas específicas */
.col-song-title {
  font-weight: 600;
  color: var(--song-title-color);
  min-width: 220px;
}

.text-detail {
  color: var(--song-detail-color);
  font-size: 0.85rem;
  line-height: 1.4;
  min-width: 180px;
}

.badge-age {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background-color: var(--badge-age-bg);
  color: var(--badge-age-text);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-objective {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background-color: var(--badge-obj-bg);
  color: var(--badge-obj-text);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botones de acción / medios */
.media-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
}

.btn-media {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-spotify {
  background-color: var(--spotify);
  color: white;
}
.btn-spotify:hover {
  background-color: var(--spotify-hover);
  transform: translateY(-1px);
}

.btn-youtube {
  background-color: var(--youtube);
  color: white;
}
.btn-youtube:hover {
  background-color: var(--youtube-hover);
  transform: translateY(-1px);
}

.btn-lyrics {
  background-color: var(--lyrics);
  color: white;
}
.btn-lyrics:hover {
  background-color: var(--lyrics-hover);
  transform: translateY(-1px);
}

.btn-disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}

/* ======== PAGINACIÓN ======== */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: white;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-controls {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.btn-page {
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-page.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ======== MODALES ======== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Visor de letras */
.lyrics-container {
  white-space: pre-wrap;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #334155;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  max-height: 50vh;
  overflow-y: auto;
}

.lyrics-link-card {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* Video e Iframe embed */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: black;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spotify-player-container {
  min-height: 152px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ======== FOOTER ======== */
.site-footer {
  margin-top: auto;
  background: white;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Redes Sociales en el Footer */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.footer-social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

/* Colores de marca en hover */
.footer-social-btn.social-youtube:hover {
  background: #ff0000;
  color: #ffffff;
}

.footer-social-btn.social-spotify:hover {
  background: #1db954;
  color: #ffffff;
}

.footer-social-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #ffffff;
}

.footer-social-btn.social-facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

.footer-social-btn.social-tiktok:hover {
  background: #000000;
  color: #ffffff;
}

.footer-social-btn.social-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

.footer-social-btn.social-twitter:hover,
.footer-social-btn.social-x:hover {
  background: #0f1419;
  color: #ffffff;
}

.footer-social-btn.social-globe:hover,
.footer-social-btn.social-website:hover {
  background: #3b82f6;
  color: #ffffff;
}

/* ======== RESPONSIVE STYLES ======== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .songs-table thead {
    display: none;
  }

  .songs-table, .songs-table tbody, .songs-table tr, .songs-table td {
    display: block;
    width: 100%;
  }

  .songs-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    padding: 0.75rem;
  }

  .songs-table td {
    border-bottom: none;
    padding: 0.4rem 0.25rem;
  }

  .media-actions {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    justify-content: flex-start;
  }
}

/* ======== POPUP / BANNER INSTALAR COMO WEBAPP (PWA) ======== */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.pwa-install-banner.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.pwa-install-card {
  background: white;
  width: 100%;
  max-width: 520px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUpBottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (min-width: 600px) {
  .pwa-install-banner {
    padding: 1.5rem;
    align-items: center;
  }
  .pwa-install-card {
    border-radius: 24px;
  }
}

@keyframes slideUpBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.pwa-titles {
  flex: 1;
}

.pwa-titles h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.pwa-titles p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pwa-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-close-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.pwa-features {
  display: flex;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: #475569;
}

.pwa-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pwa-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-pwa-install {
  flex: 2;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}
.btn-pwa-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

.btn-pwa-dismiss {
  flex: 1;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}
.btn-pwa-dismiss:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Guía para iPhone / Safari */
.pwa-ios-guide {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: #1e40af;
  line-height: 1.5;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.ios-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 6px;
  border: 1px solid #93c5fd;
  font-weight: bold;
}

