/* ============================================================
   EL BANDONEÓN CON RUEDAS — style.css
   Estética: suave, luminosa, tipo Disney/Pixar — para chicos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&display=swap');

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background-color: #5bc8f0;
  color: #1a2e44;
  overflow-x: hidden;
}

/* ---------- VARIABLES ---------- */
:root {
  --sky:       #5bc8f0;
  --sky-light: #a8e4f8;
  --sky-pale:  #d6f3fc;
  --sky-dark:  #2da8d8;
  --white:     #ffffff;
  --yellow:    #ffd43b;
  --orange:    #ff7b3b;
  --pink:      #ff5c8d;
  --green:     #52d68a;
  --purple:    #9b6dff;
  --navy:      #1a2e44;
  --radius:    22px;
  --radius-lg: 36px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sky-light); }
::-webkit-scrollbar-thumb { background: var(--sky-dark); border-radius: 10px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 80px;
  background: var(--sky);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform .2s;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 9px 20px;
  font-family: 'Fredoka One', cursive;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 14px;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.nav-link:hover,
.nav-link.active {
  filter: brightness(0.92);
  transform: translateY(-2px);
}
.nav-link[data-section="home"] {
  background: rgba(255,255,255,0.3);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  padding: 9px 26px;
}
.nav-link[data-section="home"]:hover,
.nav-link[data-section="home"].active { background: rgba(255,255,255,0.45); filter: none; }
.nav-link[data-section="videos"]    { background: rgba(255, 92, 141, 0.65);  color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="cantantes"] { background: rgba(82, 214, 138, 0.65);  color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="creadores"] { background: rgba(155, 109, 255, 0.65); color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="canciones"] { background: rgba(255, 212, 59, 0.65);  color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="videos"]:hover,
.nav-link[data-section="videos"].active    { background: #ff5c8d; color: white; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-link[data-section="cantantes"]:hover,
.nav-link[data-section="cantantes"].active { background: #52d68a; color: white; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-link[data-section="creadores"]:hover,
.nav-link[data-section="creadores"].active { background: #9b6dff; color: white; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-link[data-section="canciones"]:hover,
.nav-link[data-section="canciones"].active { background: #ffd43b; color: #1a2e44; text-shadow: none; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-link[data-section="instrumentos"] { background: rgba(37, 99, 235, 0.65); color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="instrumentos"]:hover,
.nav-link[data-section="instrumentos"].active { background: #2563eb; color: white; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-link[data-section="academia"] { background: rgba(45, 168, 216, 0.65); color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.nav-link[data-section="academia"]:hover,
.nav-link[data-section="academia"].active { background: #2da8d8; color: white; box-shadow: 0 7px 10px rgba(0,0,0,0.28); transform: translateY(-2px); }
.nav-toggle {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label {
  display: none;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: var(--navy);
}
.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-lines span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  display: none;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 64px;
}
.section.active { display: block; }
#home.section      { padding-top: 80px; }
#canciones.section { padding-top: 80px; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 40px rgba(26,46,68,0.15);
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 52px;
}
.hero-banner {
  width: 100%;
  min-width: 900px;
  max-height: 440px;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  filter: none;
  opacity: 1;
}
.hero::before, .hero::after { display: none; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  text-align: center;
  padding: 20px 0 36px;
}
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}

.section-title-white {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.3);
}
.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  opacity: .72;
  max-width: 780px;
  margin: 0 auto;
  white-space: nowrap;
  line-height: 1.5;
}

/* ============================================================
   HOME — intro
   ============================================================ */
.home-intro {
  text-align: center;
  padding: 0 0 44px;
}
.home-intro h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 14px;
}
.home-intro p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.65;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
}
.pill {
  padding: 11px 26px;
  border-radius: 50px;
  border: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
  user-select: none;
}
.pill:hover { transform: translateY(-3px); }
.pill-tango    { background: var(--pink);   color: var(--white); box-shadow: 0 6px 20px rgba(255,92,141,0.4); }
.pill-tango:hover { box-shadow: 0 10px 28px rgba(255,92,141,0.5); }
.pill-milonga  { background: var(--green);  color: var(--white); box-shadow: 0 6px 20px rgba(82,214,138,0.4); }
.pill-milonga:hover { box-shadow: 0 10px 28px rgba(82,214,138,0.5); }
.pill-vals     { background: var(--purple); color: var(--white); box-shadow: 0 6px 20px rgba(155,109,255,0.4); }
.pill-vals:hover { box-shadow: 0 10px 28px rgba(155,109,255,0.5); }
.pill-canciones{ background: var(--yellow); color: var(--navy);  box-shadow: 0 6px 20px rgba(255,212,59,0.4); }
.pill-canciones:hover { box-shadow: 0 10px 28px rgba(255,212,59,0.5); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.feature-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.feature-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.card-icon { font-size: 1.8rem; flex-shrink: 0; margin-bottom: 0; }
.feature-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0;
}
.feature-card p {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: #2e4a65;
}
.feature-card:nth-child(1) { background: #fff0f5; border-top: 5px solid var(--pink); }
.feature-card:nth-child(2) { background: #f0fdf6; border-top: 5px solid var(--green); }
.feature-card:nth-child(3) { background: #fefce8; border-top: 5px solid var(--yellow); }
.feature-card:nth-child(4) { background: #f3eeff; border-top: 5px solid var(--purple); }

.cta-banner {
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  box-shadow: 0 10px 36px rgba(255,212,59,0.35);
  margin-bottom: 64px;
}
.cta-banner h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.cta-banner p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 26px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-sky    { background: var(--sky);   color: var(--navy);  box-shadow: 0 6px 20px rgba(91,200,240,0.4); }
.btn-sky:hover { box-shadow: 0 10px 28px rgba(91,200,240,0.5); }
.btn-yt     { background: #ff0000;      color: var(--white); box-shadow: 0 6px 20px rgba(255,0,0,0.3); }
.btn-yt:hover { box-shadow: 0 10px 28px rgba(255,0,0,0.4); }
.btn-dark   { background: var(--navy);  color: var(--white); box-shadow: 0 6px 20px rgba(26,46,68,0.35); }
.btn-dark:hover { box-shadow: 0 10px 28px rgba(26,46,68,0.45); }
.btn-orange { background: var(--orange);color: var(--white); box-shadow: 0 6px 20px rgba(255,123,59,0.4); }
.btn-orange:hover { box-shadow: 0 10px 28px rgba(255,123,59,0.5); }

.btn-album-cta {
  display: inline-block;
  background: #1DB954;
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  animation: colorCycle 3s ease-in-out infinite;
  transition: transform .18s;
}
.btn-album-cta:hover {
  animation: none;
  transform: scale(1.08);
}
@keyframes colorCycle {
  0%   { background: #ff7b3b; box-shadow: 0 6px 24px rgba(255,123,59,0.5); }
  33%  { background: #1DB954; box-shadow: 0 6px 24px rgba(29,185,84,0.5); }
  66%  { background: #9b6dff; box-shadow: 0 6px 24px rgba(155,109,255,0.5); }
  100% { background: #ff7b3b; box-shadow: 0 6px 24px rgba(255,123,59,0.5); }
}

/* ============================================================
   VIDEOS
   ============================================================ */
.videos-featured {
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26,46,68,0.25);
  margin-bottom: 40px;
}
.videos-featured iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
.videos-featured-label {
  padding: 16px 24px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--sky-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}
.video-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.15); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--sky-light);
  border-radius: 0;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background .2s;
}
.video-card:hover .play-overlay { background: transparent; }
.play-icon {
  width: 28px; height: 28px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .2s;
}
.video-card:hover .play-icon { transform: scale(1.15); }
.video-info { display: none; }
.video-info h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.3;
}
.video-info span {
  font-size: .82rem;
  font-weight: 700;
  color: #5a7a98;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* IMAGE LIGHTBOX */
.img-lightbox { cursor: zoom-in; }
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.img-modal.open { display: flex; }
.img-modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.img-modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
/* Modal para instrumentos: overlay transparente, solo el box tiene fondo celeste */
.img-modal--instrumento {
  background: transparent;
}
.img-modal--instrumento .img-modal-box {
  background: #83c9ed;
  border-radius: 20px;
  padding: 32px 40px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.img-modal--instrumento img {
  max-width: 90vw;
  height: 80vh;
  width: auto;
  object-fit: contain;
  box-shadow: none;
}
.img-modal-label {
  display: none;
}
.img-modal--caption .img-modal-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  text-align: center;
  margin: 0;
}
.img-modal--instrumento .img-modal-label {
  display: block;
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.8rem;
  color: #1a2e44;
  text-align: center;
  margin: 0;
}
.img-modal-close {
  position: absolute;
  top: -16px; right: -16px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  background: var(--pink);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  z-index: 1;
}
@media (max-width: 767px) {
  .img-modal--instrumento .img-modal-box {
    padding: 40px 16px 20px;
    max-width: 85vw;
  }
  .img-modal--instrumento img {
    max-width: 80vw;
    height: 55vh;
  }
  .img-modal--instrumento .img-modal-label { font-size: 1.3rem; }
  .img-modal--instrumento .img-modal-close {
    top: 8px; right: 8px;
    position: absolute;
  }
}

/* Non-instrumento modals keep close button at fixed position */
.img-modal:not(.img-modal--instrumento) .img-modal-close {
  position: fixed;
  top: 20px; right: 24px;
}

/* SUSCRIBETE BUTTON */
.suscribete-btn {
  animation: zoomPulse 1s ease-in-out infinite;
  cursor: pointer;
}
@keyframes zoomPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.suscribete-btn:hover { animation: none; transform: scale(1.08); }

/* NOVEDADES */
.novedades-section { padding: 30px 0 10px; }
.novedades-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.novedad-card {
  background: transparent;
  overflow: hidden;
}
.novedad-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 0 30px 8px rgba(0,0,0,0.35);
}
.novedad-card iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.novedad-card .novedad-body {
  padding: 20px;
}
.novedad-card .novedad-body h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.novedad-card .novedad-body p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--white);
}

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,46,68,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-box iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.3rem;
  color: var(--white);
  cursor: pointer;
  background: var(--pink);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255,92,141,0.4);
  transition: transform .2s;
  z-index: 10;
}
.modal-close:hover { transform: scale(1.2) rotate(10deg); }

/* ============================================================
   PROFILE CARDS
   ============================================================ */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}
.profile-card {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  transition: transform .2s, box-shadow .2s;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.profile-top {
  padding: 30px 28px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid rgba(26,46,68,0.08);
}
.profile-emoji {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-meta h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  border: none;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profile-body { padding: 22px 28px; }
.profile-body p {
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.7;
  color: #2e4a65;
  margin-bottom: 14px;
  text-align: justify;
}
.profile-body p:last-child { margin-bottom: 0; }
.award-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow);
  border: none;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .84rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(255,212,59,0.35);
}

/* card accent top borders */
.acc-pink   { border-top: 5px solid var(--pink);   }
.acc-purple { border-top: 5px solid var(--purple);  }
.acc-orange { border-top: 5px solid var(--orange);  }
.acc-green  { border-top: 5px solid var(--green);   }
.acc-yellow { border-top: 5px solid var(--yellow);  }
.acc-sky    { border-top: 5px solid var(--sky-dark);}

.bg-pink   { background: var(--pink);   color: var(--white); }
.bg-purple { background: var(--purple); color: var(--white); }
.bg-orange { background: var(--orange); color: var(--white); }
.bg-green  { background: var(--green);  color: var(--white); }
.bg-yellow { background: var(--yellow); color: var(--navy);  }
.bg-sky    { background: var(--sky);    color: var(--navy);  }

/* ============================================================
   CANCIONES
   ============================================================ */
.coming-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(255,123,59,0.4);
  margin-bottom: 36px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}
.song-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.song-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.song-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--sky-dark);
  line-height: 1;
  min-width: 34px;
}
.song-info h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.genre-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: none;
}
.gt-tango    { background: var(--pink);   color: var(--white); }
.gt-milonga  { background: var(--green);  color: var(--white); }
.gt-vals     { background: var(--purple); color: var(--white); }
.gt-original { background: var(--yellow); color: var(--navy);  }

.streaming-box {
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(26,46,68,0.25);
  margin-bottom: 60px;
}
.streaming-box h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 10px;
}
.streaming-box p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky-light);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.streaming-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.stream-badge {
  background: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: .92rem;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 44px 24px 30px;
  text-align: center;
  color: #ffffff;
}
.footer-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.3));
}
.footer-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer p {
  font-size: .9rem;
  font-weight: 600;
  opacity: 1;
  color: #ffffff;
  margin-bottom: 12px;
}
footer strong { color: #e0f4fb; }
footer a { color: #e0f4fb; text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--yellow); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s;
}
.footer-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: var(--navy); }
.footer-copy {
  margin-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.section.active {
  animation: fadeIn .35s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) and (orientation: portrait) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; right: 0;
    left: auto;
    width: 32%;
    background: var(--sky);
    padding: 14px;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle-label { display: block; }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; right: 0;
    left: auto;
    width: 50%;
    background: var(--sky);
    padding: 14px;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle-label { display: block; }
  .nav-toggle-lines { display: flex; }
  .nav-logo-img { height: 42px; }
  .hero-banner { min-width: unset; width: 170%; max-height: unset; left: -35%; transform: none; border-radius: 0; }
  .hero { border-radius: 0; margin-bottom: 26px; }
  .home-intro { padding-top: 16px; }
  .home-intro h2 { font-size: 1.6rem; }
  .home-intro p { font-size: 0.88rem; line-height: 1.4; margin-bottom: 20px; }
  .btn-album-cta { font-size: 0.95rem; padding: 12px 24px; white-space: nowrap; }
  .profiles-grid { grid-template-columns: 1fr; }
  #cantantes .section-header { padding-top: 12px; padding-bottom: 16px; }
  #cantantes .section-title { font-size: 1.4rem; white-space: nowrap; }
  #cantantes .section-subtitle { display: none; }
  #creadores .section-header { padding-top: 12px; padding-bottom: 16px; }
  #creadores .section-title { font-size: 1.4rem; white-space: nowrap; }
  #creadores .section-subtitle { display: none; }
  .profile-body p { line-height: 1.4; margin-bottom: 8px; font-size: 0.88rem; }
  #academia .section-title { font-size: 1.4rem; }
  .academia-title-break { display: inline; }
}

.academia-title-break {
  display: none;
}
@media (max-width: 480px) {
  .genre-pills { gap: 10px; }
  .pill { font-size: 1rem; padding: 8px 18px; }
  .feature-card { padding: 12px 14px; }
  .feature-card .card-icon { font-size: 1.2rem; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.8rem; line-height: 1.4; margin-top: 6px; display: block; }
  .feature-grid { gap: 10px; }
  .cta-banner { padding: 30px 20px; }
  .video-modal { padding: 10px; }
  .modal-box { max-width: 100%; border-radius: 12px; }
  .novedad-card iframe[data-size="grande"] { max-width: 960px; }
  .novedad-card iframe[data-size="mediana"] { max-width: 640px; }
  .novedad-card iframe[data-size="chica"] { max-width: 400px; }
}

/* ============================================================
   NAVBAR: botón Canciones (letras)
   ============================================================ */
.nav-link-letras { background: rgba(255,107,53,0.65) !important; border-radius: 8px; }

/* ============================================================
   SECCIÓN LETRAS — grid de canciones
   ============================================================ */
#letras.section { padding-top: 80px; }

.letras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.letra-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  max-width: 290px;
  width: 100%;
  margin: 0 auto;
}
.letra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.letra-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0f4fb;
}
.letra-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.letra-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, rgba(91,200,240,0.55), rgba(58,176,216,0.55)), url('../images/textura.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.letra-thumb-placeholder span {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.7);
}
.letra-thumb-placeholder .letra-thumb-pronto {
  font-size: 1.3rem;
  color: #ffffff;
  text-align: center;
  padding: 0 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.letra-thumb-con-imagen {
  position: relative;
  background-image: none;
}
.letra-thumb-con-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.letra-thumb-con-imagen .letra-thumb-pronto-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  background: var(--orange);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.letra-info {
  padding: 12px 14px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.letra-num {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--sky);
  flex-shrink: 0;
}
.letra-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.letra-btns {
  padding: 8px 14px 14px;
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.btn-letra {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-letra.btn-sky    { background: #ff5c8d; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.btn-letra.btn-orange { background: #9b6dff; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.btn-letra.btn-print  { background: #5bc8f0; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }
.btn-letra.btn-dark   { background: var(--navy);   color: #fff;        box-shadow: 0 3px 10px rgba(26,46,68,0.25); }
.btn-letra:hover      { transform: translateY(-2px); }

/* ============================================================
   MODAL LETRAS
   ============================================================ */
.letra-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,35,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.letra-modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}
.letra-modal-header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.letra-modal-close-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.letra-modal-close-x:hover {
  background: var(--pink);
  color: #fff;
}
.letra-modal-box-pdf {
  max-width: 720px;
}
.musica-pdf-frame {
  width: 100%;
  height: 65vh;
  min-height: 420px;
  border: 0;
  display: block;
}
.musica-modal-placeholder {
  text-align: center;
  padding: 40px 20px;
  font-size: 1.3rem;
  color: #888;
}
#musicaModalCuerpo.musica-modal-pdf {
  padding: 0;
}
.letra-modal-header h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 4px;
}
.letra-creditos {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
}
.letra-modal-cuerpo {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.97rem;
  line-height: 1.4;
  color: #333;
}
.letra-modal-cuerpo p { margin: 0 0 4px; }
.estribillo-label {
  font-weight: 800 !important;
  color: var(--sky) !important;
  margin-top: 14px !important;
  margin-bottom: 4px !important;
  font-size: 0.85rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.estribillo-linea {
  padding-left: 2em;
}
.letra-modal-footer {
  padding: 14px 28px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Platform logos */
.platform-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}
.platform-logo {
  height: 52px;
  width: auto;
  transition: transform .2s, filter .2s;
  cursor: pointer;
}
.platform-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}
.platform-logo-active   { opacity: 1; transform: scale(1.08); filter: brightness(1.15) drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.platform-logo-inactive { opacity: 1; cursor: pointer; }
.platform-logo-inactive:hover { transform: scale(1.05); }

.platform-logo { animation: logoPulse 2.5s ease-in-out infinite; }
.platform-item:nth-child(1) .platform-logo { animation-delay: 0s; }
.platform-item:nth-child(2) .platform-logo { animation-delay: 0.6s; }
.platform-item:nth-child(3) .platform-logo { animation-delay: 1.2s; }
.platform-item:nth-child(4) .platform-logo { animation-delay: 1.8s; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive letras */
@media (max-width: 780px) {
  .platform-logos { flex-wrap: wrap; gap: 16px; }
  .platform-logos a { width: calc(50% - 16px); display: flex; justify-content: center; }
  .platform-logo { height: 44px; }
  .letras-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Reproductor Spotify: más alto en tablet/mobile (la portada se apila arriba de la lista) */
@media (max-width: 1024px) {
  #main-player { height: 900px; }
}

@media (max-width: 480px) {
  #main-player { height: 950px; }
}
@media (max-width: 480px) {
  .letras-grid { grid-template-columns: 1fr; }
  .letra-modal-header { padding: 18px 18px 10px; }
  .letra-modal-cuerpo { padding: 14px 18px; }
  .letra-modal-footer { padding: 10px 18px 16px; }
}

/* ============================================================
   JUEGOS — Rompecabezas
   ============================================================ */
.nav-link-juegos { background: rgba(255,123,59,0.85); }

#juegos.section { padding-top: 80px; }

#miargentina.section { padding-top: 80px; background-color: #f5f5f0; overflow: hidden; width: 100%; }
#federalito-root { width: 1200px; position: relative; transform-origin: top left; }

/* Screens */
.puzz-screen { display: none; }
.puzz-screen.puzz-screen-active { display: block; }

/* Rompecabezas background */

/* Memoria background — aplica cuando bg_memoria.png esté disponible */
/* .puzz-screen[data-screen="memoria-select"],
   .puzz-screen[data-screen="memoria-game"] {
  background-image: url('../images/bg_memoria.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */

/* Title */
.puzz-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 20px 0 18px;
}

/* ── Screen 1: Image grid ── */
.puzz-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 36px;
}
.puzz-thumb {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform .18s, box-shadow .18s;
  aspect-ratio: 1;
}
.puzz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.puzz-thumb:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.puzz-thumb.puzz-thumb-active {
  outline: 4px solid #ff6b35;
  box-shadow: 0 0 0 4px #ff6b35, 0 8px 24px rgba(0,0,0,0.28);
  transform: scale(1.06);
}

/* ── Screen 2: Difficulty ── */
.puzz-chosen-wrap {
  text-align: center;
  margin: 16px auto 8px;
}
.puzz-chosen-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  display: block;
  margin: 0 auto 10px;
}
.puzz-chosen-label {
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin: 0;
}
.puzz-diff-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 22px auto 16px;
}
.puzz-diff-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  border: none;
  border-radius: 50px;
  padding: 15px 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .15s, box-shadow .15s;
}
.puzz-diff-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.puzz-diff-easy   { background: #f0c030; color: #333; }
.puzz-diff-medium { background: #4caf50; color: #fff; }
.puzz-diff-hard   { background: #e53935; color: #fff; }

.puzz-back-btn {
  display: block;
  margin: 0 auto 32px;
  background: none;
  border: 2px solid rgba(255,255,255,0.7);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s;
}
.puzz-back-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Screen 3: Game ── */
.puzz-game-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 10px;
  position: relative;
}
.puzz-game-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
  margin: 0;
}
.puzz-diff-icon, .puzz-puzzle-icon { font-size: 1.3rem; }
.puzz-home-btn {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
  cursor: pointer;
}
.puzz-home-btn:hover { background: none; }

.puzz-example-wrap { text-align: center; margin-bottom: 10px; }
.puzz-example-btn {
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  color: #333;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.puzz-example-btn:hover { background: white; transform: translateY(-1px); }
.puzz-example-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

/* Board */
.puzz-board-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  box-sizing: border-box;
}
.puzz-board {
  display: grid;
  width: 100%;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.puzz-piece {
  background-repeat: no-repeat;
  border-radius: 6px;
  cursor: grab;
  box-sizing: border-box;
  transition: opacity .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.puzz-piece:active { cursor: grabbing; }
.puzz-piece.puzz-piece-dragging { opacity: 0.45; transform: scale(0.93); }
.puzz-piece.puzz-piece-over {
  outline: 3px solid #ff6b35;
  outline-offset: -2px;
  transform: scale(1.06);
  z-index: 5;
}
.puzz-piece.puzz-piece-correct { filter: brightness(1.06); }

.puzz-example-overlay {
  /* position/size/border-radius set by JS via getBoundingClientRect() */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.puzz-example-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating drag clone */
.puzz-drag-clone {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

/* Stats bar */
.puzz-stats {
  display: flex;
  justify-content: space-between;
  max-width: 380px;
  margin: 0 auto 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 22px;
  font-family: 'Nunito', sans-serif;
  color: white;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.puzz-new-record {
  text-align: center;
  color: #ff6b35;
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Win overlay (fixed) */
.puzz-win {
  position: fixed;
  inset: 0;
  background: rgb(91,200,240);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
}
.puzz-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}
.puzz-win-content {
  position: relative;
  z-index: 1002;
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  max-width: 320px;
  width: 90%;
}
.puzz-win-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 0 0 16px;
}
.puzz-win-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  display: block;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .puzz-image-grid { gap: 10px; }
  .puzz-thumb { border-radius: 14px; }
  .puzz-title { font-size: 1.6rem; }
  .puzz-win-img { width: 160px; height: 160px; }
}

/* ══════════════════════════════════════════════════════════════
   PALABRITAS
══════════════════════════════════════════════════════════════ */
.nav-link-palabritas { background: rgba(155,109,255,0.65); }

#palabritas {
  padding: 100px 16px 40px;
  background-image: url('../images/pizarron.png?v=1780021904');
  background-size: 1451px 1266px;
  background-repeat: no-repeat;
  background-position: center top;
  min-height: 100vh;
}

.pal-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* Angelito */
.pal-angelito-wrap {
  position: relative;
  width: 220px;
  height: 260px;
  margin: 0 auto 16px;
  z-index: 10;
}

/* Wrapper pantallas */
#pal-screens-wrap {
  position: relative;
  z-index: 2;
}

/* Screens */
.pal-screen { display: none; }
.pal-screen.pal-screen-active { display: block; }

/* ── Learning ──────────────────────────────────────────────── */
[data-screen="learning"] {
  padding-top: 70px;
}

.pal-progress {
  font-family: 'Nunito', sans-serif;
  font-size: 1.17rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.pal-word-text {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  min-height: 3.2rem;
}
.pal-meaning-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  color: #fffde7;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.1);
  min-height: 2rem;
  line-height: 1.4;
}

/* ── Menu ──────────────────────────────────────────────────── */
.pal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: #fff;
  margin: 70px 0 20px;
}
.pal-menu-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.pal-menu-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  padding: 14px 36px;
  border: none;
  border-radius: 28px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  transition: transform 0.15s, background 0.2s;
  width: 220px;
}
.pal-menu-btn:hover { background: rgba(255,255,255,0.34); transform: scale(1.04); }
.pal-menu-play { background: rgba(76,175,80,0.82); }
.pal-menu-play:hover { background: rgba(76,175,80,0.98); }

/* ── Difficulty ────────────────────────────────────────────── */
.pal-screen[data-screen="difficulty"] .puzz-game-header {
  padding-top: 30px;
}
.pal-diff-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}
.pal-diff-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  padding: 14px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  width: 240px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  transition: transform 0.15s;
}
.pal-diff-btn:hover { transform: scale(1.04); }
.pal-diff-easy   { background: rgba(255,193,7,0.88); }
.pal-diff-medium { background: rgba(76,175,80,0.88); }
.pal-diff-hard   { background: rgba(220,38,38,0.88); }

/* ── Playing ───────────────────────────────────────────────── */
.pal-play-word {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 16px;
  min-height: 2.8rem;
}
.pal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 280px;
}
.pal-option-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 18px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.22);
  color: #ffffff !important;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.25s;
  text-align: center;
  line-height: 1.3;
  width: 60%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pal-option-btn:hover:not(:disabled) { background: rgba(255,255,255,0.34); transform: scale(1.02); }
.pal-option-btn:disabled { cursor: default; }
.pal-opt-correct   { background: rgba(76,175,80,0.88) !important; }
.pal-opt-after-err { background: rgba(255,220,50,0.88) !important; color: #333 !important; }
.pal-opt-wrong     { background: rgba(220,38,38,0.78) !important; }
.pal-play-meaning {
  display: none; /* significado no se muestra durante el juego */
}

/* ── Final / Win overlay ───────────────────────────────────── */
.pal-win {
  position: fixed;
  inset: 0;
  background: rgb(91,200,240);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}
.pal-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}
.pal-win-content {
  position: relative;
  z-index: 1002;
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.18);
  border-radius: 28px;
}
.pal-medal {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}
.pal-win-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 0 8px;
}
.pal-score-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 20px;
}

/* ── Juegos: selector de juegos ────────────────────────────── */
@keyframes zoomPulseGame {
  0%   { transform: scale(1.0); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1.0); }
}
.juegos-btns-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 400px;
  margin: 80px auto 0;
}
.btn-juego {
  max-width: 260px;
  width: 100%;
  cursor: pointer;
  display: block;
  animation: zoomPulseGame 2s ease-in-out infinite;
}
.btn-juego:nth-child(1) { animation-delay: 0s; }
.btn-juego:nth-child(2) { animation-delay: 0.6s; }
.btn-juego:nth-child(3) { animation-delay: 1.2s; }
.btn-juego:nth-child(4) { animation-delay: 1.8s; }
.btn-juego:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}
.btn-juego-miargentina {
  max-width: 208px;
}
.btn-juego-disabled {
  opacity: 0.45;
  filter: grayscale(60%);
  cursor: default;
  pointer-events: none;
  animation: none;
}
.btn-juego-pronto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.btn-juego-pronto-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Memoria ────────────────────────────────────────────────── */
.mem-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 32px;
  position: relative;
}
.mem-back-btn {
  align-self: flex-start;
  margin-bottom: 8px;
}
.mem-title-img {
  max-width: 240px;
  width: 100%;
  margin-bottom: 32px;
}
.mem-diff-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

/* Game screen wrapper — only when active (avoids overriding display:none) */
.puzz-screen.puzz-screen-active[data-screen="memoria-game"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  width: 100%;
}

/* Game header: 3-column grid so centre is always centred */
.mem-game-header {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 0 12px 12px;
  box-sizing: border-box;
}
.mem-game-header > :first-child { justify-self: start; }
.mem-game-header > :nth-child(2) { justify-self: center; }
.mem-game-header > :last-child  { justify-self: end; }

/* Title img in game header: same size as select, no margin */
.mem-title-game {
  max-width: 200px;
  width: 100%;
  object-fit: contain;
  margin: 0;
}

/* Board */
.mem-board {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Card */
.mem-card {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  perspective: 600px;
  border-radius: 18px;
}
.mem-card-back,
.mem-card-front {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  transition: transform 0.28s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.mem-card-back {
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  transform: rotateY(0deg);
}
.mem-card-front {
  overflow: hidden;
  transform: rotateY(180deg);
}
.mem-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Flipped state */
.mem-card.face-up .mem-card-back  { transform: rotateY(180deg); }
.mem-card.face-up .mem-card-front { transform: rotateY(0deg); }

/* Matched */
.mem-card.matched {
  cursor: default;
  opacity: 0.98;
}
.mem-card.matched .mem-card-back  { transform: rotateY(180deg); }
.mem-card.matched .mem-card-front { transform: rotateY(0deg); }

/* Flash on match */
@keyframes memFlash {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0); }
  40%  { box-shadow: 0 0 18px 8px rgba(255,255,255,0.85); }
  100% { box-shadow: 0 4px 12px rgba(0,0,0,0.22); }
}
.mem-flash { animation: memFlash 0.5s ease-out forwards; }

/* ── Palabritas — botones respuesta mobile ───────────────────── */
@media (max-width: 480px) {
  .pal-option-btn {
    width: 80%;
    max-width: 80vw;
    font-size: 1.05rem;
    color: #ffffff !important;
  }
}

/* ── Palabritas — botones respuesta tablet ───────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .pal-option-btn {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 480px;
  }
}

/* ── Palabritas — botones respuesta desktop ──────────────────── */
@media (min-width: 1025px) {
  .pal-option-btn {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: 560px;
  }
}

/* ── Mobile Editor Panel ─────────────────────────────────────── */
#pal-editor-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 0;
}

@media (max-width: 1024px) {
  #pal-editor-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(10, 10, 20, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9998;
    overflow-y: auto;
    padding: 12px 10px;
    display: none;
    font-family: monospace;
    font-size: 12px;
    color: #fff;
    box-sizing: border-box;
  }

  #pal-editor-panel.pal-editor-open {
    display: block;
  }

  .pal-editor-title {
    font-size: 12px;
    font-weight: bold;
    color: #9bbfff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .pal-editor-section {
    margin-bottom: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 8px;
  }

  .pal-editor-section-title {
    font-size: 11px;
    font-weight: bold;
    color: #ffc875;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .pal-editor-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
  }

  .pal-editor-row label {
    width: 38px;
    font-size: 10px;
    color: #aaa;
    flex-shrink: 0;
  }

  .pal-editor-row input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: #9bbfff;
    cursor: pointer;
  }

  .pal-editor-val {
    width: 44px;
    font-size: 10px;
    color: #eee;
    text-align: right;
    flex-shrink: 0;
  }

  .pal-editor-num {
    width: 48px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: #ffd700;
    font-size: 10px;
    text-align: center;
    padding: 2px 3px;
    flex-shrink: 0;
  }

  #pal-editor-save {
    width: 100%;
    margin-top: 10px;
    padding: 8px 6px;
    background: rgba(76, 175, 80, 0.75);
    border: 1px solid rgba(76, 175, 80, 0.9);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    font-family: monospace;
    font-weight: bold;
  }

  #pal-editor-copy {
    width: 100%;
    margin-top: 6px;
    padding: 8px 6px;
    background: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.45);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    font-family: monospace;
  }

  #pal-editor-toast {
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    color: #7dff9b;
    opacity: 0;
    transition: opacity 0.3s;
  }

  #pal-editor-toast.pal-editor-toast-visible {
    opacity: 1;
  }
}

/* ============================================================
   SECCIÓN: ACADEMIA
   ============================================================ */

.academia-card {
  max-width: 880px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  padding: 32px 36px;
  overflow: hidden;
}

.academia-logo {
  float: left;
  width: 135px;
  margin: 14px 20px 10px 0;
  shape-outside: margin-box;
}

@media (max-width: 640px) {
  .academia-logo {
    width: 105px;
    margin: 0 14px 8px 0;
  }
}

.academia-photo {
  float: right;
  width: 240px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  margin: 0 0 10px 12px;
  shape-outside: margin-box;
}

@media (max-width: 640px) {
  .academia-photo {
    clear: both;
    width: 140px;
    margin: 4px 0 8px 10px;
  }
}

.academia-photo-left-img {
  float: left;
  width: 290px;
  margin: 6px 12px 10px 0;
}

.academia-photo-soria {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .academia-photo-left-img {
    float: none;
    clear: both;
    display: block;
    width: 100%;
    margin: 12px 0;
  }
}

.academia-photo-small {
  width: 185px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .academia-photo-small {
    width: 155px;
  }
}

.academia-photo-medium {
  width: 230px;
  margin-top: -22px;
}

@media (max-width: 640px) {
  .academia-photo-medium {
    float: none;
    clear: both;
    display: block;
    width: 235px;
    margin: 12px auto;
  }
}

.academia-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 18px;
}

.academia-card p:last-child {
  margin-bottom: 0;
}

.academia-map {
  clear: both;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed rgba(26,46,68,0.15);
  text-align: center;
}

.academia-map-iframe {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 220px;
  margin: 0 auto 12px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.academia-map-link {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--sky-dark);
  text-decoration: none;
}

.academia-map-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .academia-map-iframe {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .academia-card {
    padding: 24px 20px;
    font-size: 0.95rem;
  }
  .academia-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* ============================================================
   SECCIÓN: INSTRUMENTOS
   ============================================================ */

.instrumentos-intro {
  max-width: 1020px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--navy);
}

.instrumentos-grid-wrap {
  position: relative;
}

.instrumentos-personaje {
  position: absolute;
  top: 50%;
  width: 76.7%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.instrumentos-personaje-chica {
  left: -76.7%;
  transform: translateY(-50%);
}

.instrumentos-personaje-chico {
  right: -76.7%;
  transform: translateY(-50%);
}

.instrumentos-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.instrumento-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 240px;
  flex-shrink: 0;
}

.instrumento-card-bandoneon,
.instrumento-card-contrabajo {
  position: relative;
  overflow: visible;
}

.instrumento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.instrumento-img-wrap {
  width: 100%;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.instrumento-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.instrumento-img-wrap a:hover .instrumento-img {
  transform: scale(1.04);
}

.instrumento-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.instrumento-nombre {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 4px;
}

.instrumento-body p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #334155;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .instrumentos-grid { gap: 10px; }
  .instrumento-card { width: 165px; flex-shrink: 0; }
  .instrumento-img-wrap { padding: 10px; }
  .instrumento-body { padding: 12px; gap: 6px; }
  .instrumento-nombre { font-size: 1.1rem; }
  .instrumento-body p { font-size: 0.8rem; line-height: 1.5; }
}

@media (max-width: 767px) {
  .instrumentos-intro { font-size: 0.85rem; line-height: 1.55; margin-bottom: 28px; }
  .instrumentos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
    gap: 14px;
  }
  .instrumento-card { width: auto; flex-shrink: unset; }
  .instrumento-img-wrap { padding: 10px; }
  .instrumento-body { padding: 12px; gap: 6px; }
  .instrumento-nombre { font-size: 1rem; }
  .instrumento-body p { font-size: 0.78rem; line-height: 1.45; }
}

/* ============================================================
   NAVBAR: menú en dos filas de 4 botones (desktop / tablet ancho)
   ============================================================ */
@media (min-width: 1050px) {
  .navbar {
    height: 120px;
    padding: 14px 2rem;
  }
  .nav-logo-img {
    height: 92px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: auto repeat(4, auto);
    grid-template-rows: repeat(2, auto);
    gap: 8px 10px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-item-home {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-right: 22px;
  }
  .section {
    padding-top: 152px;
  }
  #canciones.section,
  #letras.section,
  #juegos.section,
  #miargentina.section {
    padding-top: 132px;
  }
  #home.section {
    padding-top: 120px;
  }
}
