html {
  height: 100%;
}

/* Tipografías: Merienda (títulos) + Poppins (UI moderna) */
@import url("https://fonts.googleapis.com/css2?family=Merienda:wght@300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* MARGEN DE TODA LA PAGINA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CONFIGURACION PARA EL CUERPO DE LA PAGINA E IMAGEN DE FONDO */
body {
  font-family: "Merienda";

  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgb(0, 0, 0, 0.9));
  background-color: #000000;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100%;
  /*display: flex;*/
  flex-direction: column;
}

/* Barra informativa superior: más legible y agradable */
.info {
  /* Fondo moderno tipo glass con gradiente y transparencia */
  background: linear-gradient(135deg, rgba(255, 64, 194, 0.75) 0%, rgba(255, 114, 216, 0.62) 60%, rgba(255, 142, 228, 0.58) 100%);
  color: #ffffff;
  /* tipografía y legibilidad */
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.2px;
  line-height: 1.45;
  /* layout centrado y con aire */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  text-align: center;
  /* acabados modernos */
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(13, 17, 23, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}




/* CONFIGURACION PARA LOS LOGOS DE REDES SOCIALES*/
.redes a img {
  width: 40px;
  display: inline-block;
  margin: 5px;
  margin-top: 40px;
 
}

/* CONFIGURACION DE LA POCICION DE LA BARRA DE NAV  , INICIO / SABORE ETC */
header {
  padding: 8px 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
  /* Fondo glass con gradiente de baja opacidad para no saturar */
  background: linear-gradient(135deg,
    rgba(255, 64, 194, 0.18) 0%,
    rgba(28, 33, 39, 0.46) 40%,
    rgba(255, 114, 216, 0.12) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(13, 17, 23, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px) saturate(1.12);
  -webkit-backdrop-filter: blur(6px) saturate(1.12);
}
header nav { margin-right: auto; }

/* CONFIGURACION DE LA BARRA DE NAVEGACION ORDEN DE LAS OPCIONES INCIO SABORES ETC */
nav ul {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  gap: 16px;
  margin-top: 0;
  margin: 0;
}



  /* CONFIGURACION DE LA BARRA DE NAVEGACION */
  nav ul li a {
    text-decoration: none;
    color: #eaf4ff;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    backdrop-filter: saturate(1.2) blur(4px);
    display: inline-block;
    width: 130px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}


.titulo h1 {
  color: #0c0b0b;
  background-color: #fbf9f6;
  text-align: center;
}

.titulo {
  margin: 20px;
background-image: url(../fotospdf/banner\ acordes.jpg);
  border: 1px solid whitesmoke;
  margin-top: 30px;
  background-size: auto;
}
.titulo button{
  background-color: #db0606;
  color: #f0eaea;
  padding: 10px;
  border-radius: 15px;
  font-style: normal;
}






/* --- */









/* .clase1{
  padding: 20px;
}


.clase2{
  padding: 20px;
}

.clase3{
  padding: 20px;
} */


/* .clase1 p{
  color: azure;
  font-size: 40px;
  padding-left: 100px;
}

.clase2 p{
  color: azure;
  font-size: 40px;
  padding-left: 100px;
}

.clase3 p{
  color: azure;
  font-size: 40px;
  padding-left: 100px;
} */

h4{
  text-align: center;
  background-color: #f0eaea;
  font-size: 25px;
  font-family: monospace;
}





.titulosongs h1 {
  color: #f0eeee;
  background-color: #005380;
  text-align: center;
}

.titulosongs {
  margin: 20px;
  background-image: url(../FOTOSPDF/benner\ do\ re\ mi\ fa\ sol.jpg);
 background-position: 30px;
background-size: contain;
  border: 1px solid whitesmoke;
  background-position: center;
 
 
}

.titulosongs button {
 background-color: #f71818;
 color: #e9dfdf;
 padding: 10px;
 border-radius: 10px;
}




.titulojuego h1 {
  color: #000000;
  background-color: #0df74f;
  text-align: center;
  
}


.titulojuego button{
  color: #000000;
  background-color: #e4fb14;
  padding: 13px;
  border-radius: 20px;
 border-color: #000000;
 
}

.titulojuego h2 :hover{
  background: #e80c0c;
}


.titulojuego {
  color: #cb0b0b;
  background-color: #46fe1c;
  text-align: center;
 

  background-image: url(../FOTOSPDF/banner.jpg);
 background-position: 20px;

  

}

.titulojuego {
  margin: 20px;

  border: 1px solid whitesmoke;
 
}

section{
  margin-top: 199px;
}

/* === Rediseño: botones de navegación compactos (profesional) === */
section .titulo,
section .titulosongs,
section .titulojuego {
  margin: 12px auto !important;
  max-width: 980px !important;
  background: rgba(0, 0, 0, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-align: left !important;
}
section .titulo h1,
section .titulosongs h1,
section .titulojuego h1 {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  margin: 0 !important;
  background: none !important;
}
section .titulo button,
section .titulosongs button,
section .titulojuego button {
  font-size: 16px !important;
  min-width: 120px !important;
}

/* Compacto en móviles */
@media (max-width: 600px) {
  section .titulo, section .titulosongs, section .titulojuego { padding: 12px !important; gap: 10px !important; }
  section .titulo h1, section .titulosongs h1, section .titulojuego h1 { font-size: 1rem !important; }
}

/* Más pequeño en forma de tarjetas: grilla responsiva en el primer section */
section:first-of-type {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  margin-top: 36px !important; /* aún más cerca del top */
  margin-bottom: 64px !important; /* separación amplia bajo las tarjetas antes del título de videos */
}

/* Margen específico en móviles: la barra suele ser más alta */
@media (max-width: 600px) {
  section:first-of-type {
    margin-top: 56px !important; /* aún más cerca en móviles */
    margin-bottom: 72px !important; /* separación más amplia bajo las tarjetas en móvil */
  }
}
section:first-of-type .titulo,
section:first-of-type .titulosongs,
section:first-of-type .titulojuego {
  margin: 0 !important;
  max-width: none !important;
  padding: 16px 10px 10px !important;
  border-radius: 10px !important;
  gap: 8px !important;
  aspect-ratio: 1 / 1 !important; /* cuadradas */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background-color: rgba(28, 33, 39, 0.6) !important; /* glass oscuro */
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(6px) saturate(1.2) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
  position: relative !important;
}

section:first-of-type .titulojuego {
  background-image: url(../FOTOSPDF/banner.jpg) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Más espacio superior en móviles para separar el título de la barra */
@media (max-width: 600px) {
  section:first-of-type .titulo,
  section:first-of-type .titulosongs,
  section:first-of-type .titulojuego {
    padding-top: 18px !important;
  }
}
section:first-of-type .titulo:hover,
section:first-of-type .titulosongs:hover,
section:first-of-type .titulojuego:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(0, 179, 126, 0.45) !important; /* acento teal */
  background: rgba(28, 33, 39, 0.68) !important;
}
/* Barra de acento teal en la parte superior de cada tarjeta */
section:first-of-type .titulo::before,
section:first-of-type .titulosongs::before,
section:first-of-type .titulojuego::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  height: 3px;
  width: 56%;
  background: #00b37e;
  border-radius: 3px;
}
section:first-of-type .titulo h1,
section:first-of-type .titulosongs h1,
section:first-of-type .titulojuego h1 {
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: inline-block !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.35) !important; /* fondo sutil para contraste */
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35) !important;
  line-clamp: initial !important;
  -webkit-line-clamp: initial !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
}
section:first-of-type .titulo h2,
section:first-of-type .titulosongs h2,
section:first-of-type .titulojuego h2 {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  display: contents !important; /* evita contenedor extra */
}
section:first-of-type .titulo button,
section:first-of-type .titulosongs button,
section:first-of-type .titulojuego button {
  font-size: 12px !important;
  min-width: 84px !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  background: #00b37e !important; /* teal */
  color: #ffffff !important;
  border: 1px solid rgba(0, 179, 126, 0.4) !important;
  border-width: 1px !important; /* asegura ancho del borde */
  border-style: solid !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28) !important;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, filter 160ms ease !important;
  cursor: pointer !important;
  display: inline-block !important; /* evita desbordes */
}
section:first-of-type .titulo button:hover,
section:first-of-type .titulosongs button:hover,
section:first-of-type .titulojuego button:hover {
  background: #00c48b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Neutralizar reglas antiguas que pintaban rojo en hover dentro de h2 */
section:first-of-type .titulo h2 :hover,
section:first-of-type .titulosongs h2 :hover,
section:first-of-type .titulojuego h2 :hover {
  background: transparent !important;
}

/* Botones: acento por tarjeta para combinar con el marco neón */
section:first-of-type > div:nth-child(1) button {
  /* teal */
  background: #00b37e !important;
  border-color: rgba(0, 255, 200, 0.55) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 8px rgba(0, 255, 200, 0.22) !important;
}
section:first-of-type > div:nth-child(1) button:hover {
  background: #00c48b !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 14px rgba(0, 255, 200, 0.38), 0 0 26px rgba(0, 255, 200, 0.28) !important;
  filter: brightness(1.08) !important;
}
section:first-of-type > div:nth-child(1) button:active {
  transform: translateY(0) scale(0.99) !important;
}
section:first-of-type > div:nth-child(1) button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 255, 200, 0.6) inset, 0 0 14px rgba(0, 255, 200, 0.45) !important;
}

section:first-of-type > div:nth-child(2) button {
  /* morado */
  background: #7b3ff9 !important;
  border-color: rgba(155, 80, 255, 0.55) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 8px rgba(155, 80, 255, 0.22) !important;
}
section:first-of-type > div:nth-child(2) button:hover {
  background: #8e5aff !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 14px rgba(155, 80, 255, 0.40), 0 0 26px rgba(155, 80, 255, 0.30) !important;
  filter: brightness(1.08) !important;
}
section:first-of-type > div:nth-child(2) button:active {
  transform: translateY(0) scale(0.99) !important;
}
section:first-of-type > div:nth-child(2) button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(155, 80, 255, 0.6) inset, 0 0 14px rgba(155, 80, 255, 0.45) !important;
}

section:first-of-type > div:nth-child(3) button {
  /* fucsia */
  background: #ff2e9f !important;
  border-color: rgba(255, 70, 165, 0.55) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 8px rgba(255, 70, 165, 0.22) !important;
}
section:first-of-type > div:nth-child(3) button:hover {
  background: #ff4fb0 !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 14px rgba(255, 70, 165, 0.40), 0 0 26px rgba(255, 70, 165, 0.30) !important;
  filter: brightness(1.08) !important;
}
section:first-of-type > div:nth-child(3) button:active {
  transform: translateY(0) scale(0.99) !important;
}
section:first-of-type > div:nth-child(3) button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 70, 165, 0.6) inset, 0 0 14px rgba(255, 70, 165, 0.45) !important;
}

section:first-of-type > div:nth-child(4) button {
  /* ámbar */
  background: #ffbf2a !important;
  border-color: rgba(255, 220, 75, 0.55) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 8px rgba(255, 220, 75, 0.22) !important;
}
section:first-of-type > div:nth-child(4) button:hover {
  background: #ffd24a !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 14px rgba(255, 220, 75, 0.42), 0 0 26px rgba(255, 220, 75, 0.32) !important;
  filter: brightness(1.08) !important;
}
section:first-of-type > div:nth-child(4) button:active {
  transform: translateY(0) scale(0.99) !important;
}
section:first-of-type > div:nth-child(4) button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 220, 75, 0.6) inset, 0 0 14px rgba(255, 220, 75, 0.45) !important;
}

/* Fondos por tarjeta (según el título de cada botón) */
section:first-of-type > div:nth-child(1) {
  /* Laboratorio de Acordes */
  background-image: 
    linear-gradient(rgba(28,33,39,0.55), rgba(28,33,39,0.55)),
    url(../img/tuner111.jpeg) !important;
  background-size: cover !important;
  background-position: center !important;
}
section:first-of-type > div:nth-child(2) {
  /* Librería Virtual */
  background-image: 
    linear-gradient(rgba(28,33,39,0.55), rgba(28,33,39,0.55)),
    url(../img/libreria.jpg) !important;
  background-size: cover !important;
  background-position: center !important;
}
section:first-of-type > div:nth-child(3) {
  /* Juego | Teoría Musical */
  background-image: 
    linear-gradient(rgba(28,33,39,0.55), rgba(28,33,39,0.55)),
    url(../img/1\ kahoot.png) !important;
  background-size: cover !important;
  background-position: center !important;
}
section:first-of-type > div:nth-child(4) {
  /* Acordes | PDF */
  background-image: 
    linear-gradient(rgba(28,33,39,0.55), rgba(28,33,39,0.55)),
    url(../img/PIANO\ COVER\ ESALAS.jpg) !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Iconografía clara con Font Awesome (no requiere cambiar HTML) */
section:first-of-type > div::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 179, 126, 0.9); /* teal sólido para claridad */
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-family: "Font Awesome 6 Free"; /* requiere el CSS de FA ya cargado */
  font-weight: 900;
  font-size: 18px;
  transition: color 160ms ease, box-shadow 160ms ease;
}
/* Iconos por tarjeta */
section:first-of-type > div:nth-child(1)::after { content: "\f0c3"; } /* flask: Laboratorio */
section:first-of-type > div:nth-child(2)::after { content: "\f02d"; } /* book: Librería */
section:first-of-type > div:nth-child(3)::after { content: "\f11b"; } /* gamepad: Juego */
section:first-of-type > div:nth-child(4)::after { content: "\f1c1"; } /* file-pdf: Acordes PDF */

/* Colores del círculo del badge por tarjeta (combina con marco) */
section:first-of-type > div:nth-child(1)::after {
  background: rgba(0, 255, 200, 0.9);
  border: 1px solid rgba(0, 255, 200, 0.55);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.35);
}
section:first-of-type > div:nth-child(2)::after {
  background: rgba(155, 80, 255, 0.9);
  border: 1px solid rgba(155, 80, 255, 0.55);
  box-shadow: 0 0 8px rgba(155, 80, 255, 0.35);
}
section:first-of-type > div:nth-child(3)::after {
  background: rgba(255, 70, 165, 0.92);
  border: 1px solid rgba(255, 70, 165, 0.55);
  box-shadow: 0 0 8px rgba(255, 70, 165, 0.35);
}
section:first-of-type > div:nth-child(4)::after {
  background: rgba(255, 220, 75, 0.92);
  border: 1px solid rgba(255, 220, 75, 0.55);
  box-shadow: 0 0 8px rgba(255, 220, 75, 0.35);
}

/* Hover: aumentar levemente el glow del badge sin cambiar el círculo */
section:first-of-type > div:nth-child(1):hover::after {
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.50), 0 0 28px rgba(0, 255, 200, 0.35);
}
section:first-of-type > div:nth-child(2):hover::after {
  box-shadow: 0 0 14px rgba(155, 80, 255, 0.50), 0 0 28px rgba(155, 80, 255, 0.35);
}
section:first-of-type > div:nth-child(3):hover::after {
  box-shadow: 0 0 14px rgba(255, 70, 165, 0.50), 0 0 28px rgba(255, 70, 165, 0.35);
}
section:first-of-type > div:nth-child(4):hover::after {
  box-shadow: 0 0 14px rgba(255, 220, 75, 0.50), 0 0 28px rgba(255, 220, 75, 0.35);
}
/* Hover: solo cambia el color del símbolo */
section:first-of-type > div:hover::after {
  color: #0b1b22; /* icono oscuro para mayor contraste sobre fondo teal */
}


.acordeongaleria{
  /* Fondo con toque moderno y menos plano */
  background: linear-gradient(180deg, rgba(4, 113, 181, 0.2), rgba(17, 123, 156, 0.28));
  padding: 40px;
}

.videos-container{
  /* Grilla uniforme para alinear y igualar tamaños */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: start;
  max-width: 1120px;
  margin: 22px auto 0;
  text-align: left;
}
/* Neutralizar <br> que rompe la grilla */
.acordeongaleria .videos-container br { display: none !important; }





.acordeongaleria h1{
  /* Título tipo chip con acabado glassy */
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: 0.5px;
  color: #101828;
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 18px;
  /* espacio a la izquierda para el icono circular */
  padding: 16px 20px 16px 68px;
  /* radio mayor para sensación de tarjeta */
  border-radius: 16px;
  min-height: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.55));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 22px rgba(13, 17, 23, 0.25);
  backdrop-filter: saturate(120%) blur(4px);
  position: relative;
  text-shadow: none;
}

.acordeongaleria h1::before{
  /* Icono circular con imagen (nota musical) al inicio */
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  background: url(../img/guitarrock.gif) center/100% 100% no-repeat;
  border: none;
  box-shadow: none;
}

.acordeongaleria h1::after{ content: none; display: none; }

.clase1 p{
  color: #0b1b22;
  background: linear-gradient(90deg, #93C5FD 0%, #60A5FA 100%);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(11,27,34,0.10);
  box-shadow: 0 2px 8px rgba(13,17,23,0.14);

 }


 .clase2 p{
  background: linear-gradient(90deg, #A7F3D0 0%, #6EE7B7 100%);
  color: #0b1b22;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(11,27,34,0.10);
  box-shadow: 0 2px 8px rgba(13,17,23,0.14);

 }



 .clase3 p{
  background: linear-gradient(90deg, #FCA5A5 0%, #F87171 100%);
  color: #0b1b22;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(11,27,34,0.10);
  box-shadow: 0 2px 8px rgba(13,17,23,0.14);

 }


 
.acordeongaleria h3{
  /* Leyenda compacta y responsiva como chip grande */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: min(1100px, 92%);
  margin: 14px auto 8px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 2.4vw, 16px);
  letter-spacing: 0.2px;
  color: #0b1b22;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(253, 246, 178, 0.92));
  border: 1px solid rgba(11,27,34,0.10);
  box-shadow: 0 3px 10px rgba(13,17,23,0.14);
  text-align: center;
  white-space: normal;
}

/* Chips internos dentro de la leyenda h3 */
.acordeongaleria h3 .legend-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(11,27,34,0.10);
  box-shadow: 0 2px 8px rgba(13,17,23,0.12);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0b1b22;
  position: relative;
  margin: 4px 8px;
}
.acordeongaleria h3 .legend-chip:not(:last-child)::after{
  content: "||";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(11,27,34,0.38);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(13,17,23,0.10);
}
@media (max-width: 600px){
  .acordeongaleria h3 .legend-chip:not(:last-child)::after{
    right: -10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: rgba(11,27,34,0.34);
    text-shadow: 0 1px 2px rgba(13,17,23,0.08);
  }
}
.acordeongaleria h3 .legend-blue{
  background: linear-gradient(90deg, #93C5FD, #60A5FA);
}
.acordeongaleria h3 .legend-green{
  background: linear-gradient(90deg, #A7F3D0, #6EE7B7);
}
.acordeongaleria h3 .legend-red{
  background: linear-gradient(90deg, #FCA5A5, #F87171);
}
@media (max-width: 600px){
  .acordeongaleria h3 .legend-chip{ padding: 5px 9px; font-weight: 600; margin: 3px 6px; }
}
/* Caja informativa bajo el título con look moderno */
.acordeongaleria h4{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.45;
  color: #0b1b22;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(11, 27, 34, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 1100px;
  margin: 12px auto;
  box-shadow: 0 6px 16px rgba(13,17,23,0.16);
}

/* Tarjetas de video con borde y sombra suaves */
.acordeongaleria .acordeongaleria-video{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(13,17,23,0.20);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Centrar etiqueta (p) arriba del video como chip compacto */
.acordeongaleria .acordeongaleria-video p {
  width: clamp(200px, 65%, 280px);
  min-height: 2.6em;
  margin: 6px auto 8px;
  text-align: center;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acordeongaleria .acordeongaleria-video iframe{
  border: none;
  border-radius: 10px;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: #000; /* fondo negro para consistencia */
}

/* Centrar el título del reproductor principal y hacerlo chip compacto */
.main-video .title {
  text-align: center !important;
  display: inline-block !important;
  margin: 10px auto 0 !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
}

@media (max-width: 600px) {
  .videos-container{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
  .acordeongaleria h3 {
    gap: 12px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 12px;
    width: 92%;
  }
  .acordeongaleria h1 {
    font-size: 30px;
    letter-spacing: 0.3px;
    padding: 12px 14px 12px 54px;
    border-radius: 14px;
  }
  .acordeongaleria h1::before { width: 28px; height: 28px; left: 12px; font-size: 16px; }
  .acordeongaleria h1::before { background-size: 100% 100%; }
  .acordeongaleria h4 { font-size: 13.5px; padding: 12px 14px; }
  .acordeongaleria h3 { font-size: 13px; padding: 6px 12px; }
  .acordeongaleria .acordeongaleria-video { padding: 8px; }
  .acordeongaleria .acordeongaleria-video p {
    width: clamp(160px, 80%, 220px);
    min-height: 2.4em;
    margin: 6px auto 6px;
    font-size: 13px;
    letter-spacing: 0.1px;
  }
}















h2 {
  padding: 7px;
  text-align: center;
}

button {
  background-color: #f3f0ec;
  border-radius: 5px;
  font-size: 20px;
  border: 4px solid #2980b9;
}




.marginTop {
  margin-top: 7em;
}

/* Ocultar footer únicamente en piano.html */
footer { display: none !important; }

/* Override móvil para mejorar legibilidad de títulos en tarjetas */
@media (max-width: 600px) {
  section:first-of-type .titulo h1,
  section:first-of-type .titulosongs h1,
  section:first-of-type .titulojuego h1 {
    font-size: 1.05rem !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.38) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55) !important;
  }
}

 
/* Marco neón para las tarjetas del primer bloque */
section:first-of-type > div {
  border: 2px solid rgba(0, 255, 200, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.2) inset,
    0 0 12px rgba(0, 255, 200, 0.35),
    0 0 24px rgba(0, 255, 200, 0.25);
}

section:first-of-type > div:hover {
  border-color: rgba(99, 255, 230, 0.85);
  box-shadow:
    0 0 0 1px rgba(99, 255, 230, 0.3) inset,
    0 0 16px rgba(99, 255, 230, 0.5),
    0 0 32px rgba(99, 255, 230, 0.4);
}

/* Variar color por tarjeta: 1 teal, 2 morado, 3 fucsia, 4 ámbar */
section:first-of-type > div:nth-child(1) {
  border-color: rgba(0, 255, 200, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.2) inset,
    0 0 12px rgba(0, 255, 200, 0.35),
    0 0 24px rgba(0, 255, 200, 0.25);
}
section:first-of-type > div:nth-child(1):hover {
  border-color: rgba(99, 255, 230, 0.85);
  box-shadow:
    0 0 0 1px rgba(99, 255, 230, 0.3) inset,
    0 0 16px rgba(99, 255, 230, 0.5),
    0 0 32px rgba(99, 255, 230, 0.4);
}

section:first-of-type > div:nth-child(2) {
  border-color: rgba(155, 80, 255, 0.7); /* morado neón */
  box-shadow:
    0 0 0 1px rgba(155, 80, 255, 0.22) inset,
    0 0 12px rgba(155, 80, 255, 0.40),
    0 0 24px rgba(155, 80, 255, 0.30);
}
section:first-of-type > div:nth-child(2):hover {
  border-color: rgba(179, 120, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(179, 120, 255, 0.32) inset,
    0 0 16px rgba(179, 120, 255, 0.55),
    0 0 32px rgba(179, 120, 255, 0.45);
}

section:first-of-type > div:nth-child(3) {
  border-color: rgba(255, 70, 165, 0.75); /* fucsia neón */
  box-shadow:
    0 0 0 1px rgba(255, 70, 165, 0.24) inset,
    0 0 12px rgba(255, 70, 165, 0.42),
    0 0 24px rgba(255, 70, 165, 0.32);
}
section:first-of-type > div:nth-child(3):hover {
  border-color: rgba(255, 120, 195, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 120, 195, 0.34) inset,
    0 0 16px rgba(255, 120, 195, 0.58),
    0 0 32px rgba(255, 120, 195, 0.48);
}

section:first-of-type > div:nth-child(4) {
  border-color: rgba(255, 220, 75, 0.8); /* ámbar neón */
  box-shadow:
    0 0 0 1px rgba(255, 220, 75, 0.26) inset,
    0 0 12px rgba(255, 220, 75, 0.45),
    0 0 24px rgba(255, 220, 75, 0.35);
}
section:first-of-type > div:nth-child(4):hover {
  border-color: rgba(255, 235, 120, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 235, 120, 0.36) inset,
    0 0 16px rgba(255, 235, 120, 0.60),
    0 0 32px rgba(255, 235, 120, 0.50);
}

/* (Revertido) Sin iconos en chips: se mantiene estilo original */

/* Mitigación iOS: desactivar filtros pesados del header en pantallas pequeñas */
@media (max-width: 600px) {
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(28, 33, 39, 0.65) !important;
  }
}

 

/* SEARCH BAR STYLE UPDATED */
.search-wrapper {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: 15px auto;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff !important;
  opacity: 1 !important;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  z-index: 20;
}

@keyframes neon-rgb {
  0% {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
  }
  16% {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.4), inset 0 0 10px rgba(255, 0, 255, 0.2);
  }
  32% {
    border-color: #0000ff;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.8), 0 0 30px rgba(0, 0, 255, 0.4), inset 0 0 10px rgba(0, 0, 255, 0.2);
  }
  48% {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.2);
  }
  64% {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.4), inset 0 0 10px rgba(0, 255, 0, 0.2);
  }
  80% {
    border-color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8), 0 0 30px rgba(255, 255, 0, 0.4), inset 0 0 10px rgba(255, 255, 0, 0.2);
  }
  100% {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
  }
}

.search-bar {
  display: block;
  width: 100%;
  padding: 12px 20px 12px 50px; /* Padding left para dejar espacio al icono */
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro */
  border: 2px solid #00ffc8;
  border-radius: 25px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  text-align: left;
  /* Animación neón multicolor */
  animation: neon-rgb 4s infinite alternate linear;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-bar:focus {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.02);
}

/* Ocultar iconos de play superpuestos, efectos blur y overlays */
.acordeongaleria-video::after,
.acordeongaleria-video::before,
.acordeongaleria-video .play-icon,
.acordeongaleria-video img,
.acordeongaleria-video svg,
.acordeongaleria-video [class*="play"],
.acordeongaleria-video .fa-play,
.acordeongaleria-video .fas.fa-play,
.acordeongaleria-video .overlay,
.acordeongaleria-video p::before,
.acordeongaleria-video p::after,
.acordeongaleria-video button,
.acordeongaleria-video .yt-placeholder button,
.acordeongaleria-video .yt-placeholder .play {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Asegurar que no haya filtros de desenfoque en el contenedor del video */
.acordeongaleria-video {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
