/* ================================================= */
/* 01. GENERAL Y RESET */
/* ================================================= */

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

body,
h1,
h2,
h3,
p,
section,
nav,
div,
img,
ul,
li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TÍTULOS DE SECCIÓN UNIFICADOS --- */
.artista-titulo,
.piezas-titulo,
.estudio-titulo,
.sponsors-titulo {
  display: block;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: 800;
  text-transform: uppercase;
  color: #333;
  letter-spacing: 2px;
  font-family: Arial, sans-serif;
}

/* ================================================= */
/* 02. NAVEGACIÓN (NAV) Y MENÚ MÓVIL */
/* ================================================= */

.main-nav {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 15px 30px;
  color: #ffffff;
  font-size: 20px;
  transition: background-color 0.3s;
}

.main-nav.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-logo a {
  /* Mantenemos el 'a' como contenedor */
  color: #ffffff;
  text-decoration: none;
  display: block;
}

/* ➡️ ESTILOS PARA LA IMAGEN DEL LOGO */
.nav-logo .logo-img {
  height: 45px;
  /* Define la altura de tu logo */
  width: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.nav-logo a:hover .logo-img {
  transform: scale(1.05);
  /* Efecto sutil al pasar el ratón */
}

.nav-links {
  list-style: none;
  display: flex;
  /* Por defecto, en escritorio es flex (fila) */
  gap: 30px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1em;
  padding: 5px 0;
  display: block;
  position: relative;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scaleX(0);
  transform-origin: bottom left;
  box-shadow: 0 1px 5px rgba(239, 184, 16, 0.2);
}

.nav-links a:hover {
  color: #ffffff;
  transform: scale(1.08) translateY(-3px);
  text-shadow: 0 0 5px #efb810, 0 0 10px #efb810;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  background: #efb810;
  box-shadow: 0 0 10px rgba(239, 184, 16, 0.8), 0 0 20px rgba(239, 184, 16, 0.5);
}

/** Estilos para el botón de menú hamburguesa (Móvil) */
.menu-toggle {
  display: none;
  /* Oculto en escritorio */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

/* ================================================= */
/* 03. ENCABEZADO PRINCIPAL (HEADER) */
/* ================================================= */

.marble_header {
  padding-top: 60px;
  background-image: url("Imagenes/Header_background/header_black_marble.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 800px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* --- ÍCONOS SOCIALES --- */
.social {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  list-style: none;
}

.social li {
  position: relative;
  flex-basis: 4.5rem;
  flex-shrink: 0;
}

.social li::after {
  position: absolute;
  content: attr(data-tooltip);
  inset: -45% auto auto 50%;
  z-index: 100;
  translate: -50%;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  background: var(--bg, #070707);
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5),
    visibility 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.social li:has(a:hover, a:focus-visible)::after {
  opacity: 1;
  visibility: visible;
  inset-block-start: -60%;
}

.social a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  font-size: 1.75rem;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 100%;
  text-decoration: none;
  outline: none;
  overflow: hidden;
  transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.social a>i {
  position: relative;
  z-index: 1;
}

.social a::after {
  position: absolute;
  content: "";
  inset: 100% 0 0;
  background: var(--bg, #070707);
  pointer-events: none;
  transition: inset 0.3s ease-in-out;
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
  border-color: transparent;
}

.social a:hover::after,
.social a:focus-visible::after {
  inset-block-start: 0;
}

/* --- POSICIONAMIENTO SOCIAL EN HEADER --- */
.header-social-list {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-content {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.header-content h1 {
  font-size: 3em;
}

/* ================================================= */
/* 04. FONDO DEL CONTENIDO (BODY MARBLE) */
/* ================================================= */
.seo-h1 {
  text-align: center;
  margin: 0;
}

/* Marca invisible (SEO safe) */
.seo-brand {
  display: block;
  font-size: 0.01px;
  line-height: 0;
  height: 0;
  overflow: hidden;
}

/* Texto visible */
.seo-claim {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

.content-background {
  background-image: url("Imagenes/Body/body_withe_marble.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: scroll;
  min-height: 50vh;
}

/* ================================================= */
/* 05. SECCIÓN ARTISTA (#artista) */
/* ================================================= */

.artista {
  text-align: center;
  padding: 40px 0;
  background-color: transparent;
}

.artista-contenido {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.artista-info-izquierda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 40px;
}

.artista-info-izquierda img {
  width: 400px;
  height: 600px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
}

.artista-info-izquierda img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.artista-nombre {
  margin-top: 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.artista-historia-card {
  flex-grow: 1;
  border-radius: 5px;
  max-width: 600px;
  padding: 30px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
  height: fit-content;
}

.artista-historia-card h3 {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.artista-historia-card p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #555;
}

/* ================================================= */
/* 06. SECCIÓN GALERÍA DE PIEZAS (#piezas) Y MODAL */
/* ================================================= */

/*
 * ---------------------------------------------------------------------
 * MODAL DE GALERÍA EXPANDIDO
 * ---------------------------------------------------------------------
 */

.modal-contenido-expandido {
  position: relative;
  background-color: #1a1a1a;
  margin: auto;
  /* Usar Flexbox para controlar el espacio vertical entre Carrusel y Caption */
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #888;
  width: 70%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4);
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 10px;
  max-height: 95vh;
  overflow-y: auto;
}

/* Si ya tiene animatetop, puede omitir esta parte */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0
  }

  to {
    top: 0;
    opacity: 1
  }
}

.modal-caption-expandido {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--color-text-light, #fff);
  padding: 15px 20px;
  margin-top: 0;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Carrusel */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-grow: 1;
  border-radius: 8px 8px 0 0;
  background-color: #000;

  /* 💡 AJUSTE DE ALTURA PARA ASEGURAR ESPACIO VISIBLE */
  height: 80vh;
  /* Altura fija para el carrusel (ej: 80% de la altura de la ventana) */
  max-height: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  height: 100%;
}

.carousel-item img,
.carousel-item video {
  /* Ocupar el 100% del ancho y alto disponible para que no queden bordes */
  width: 100%;
  height: 100%;

  /* ✅ SOLUCIÓN CLAVE: Usar 'contain' para que la imagen/video se ajuste sin recortarse */
  object-fit: cover;

  display: block;
  margin: 0 auto;
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  z-index: 10;
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* --- SECCIÓN GALERÍA PRINCIPAL (sin cambios) --- */

.seccion-piezas {
  padding: 60px 20px;
  background-color: transparent;
  text-align: center;
  min-height: 80vh;
}

/** --- Botones de Filtro --- */
.filtro-botones {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.filtro-btn {
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, transform 0.1s;
  text-transform: capitalize;
}

.filtro-btn:hover {
  background-color: #eee;
}

.filtro-btn.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
  transform: translateY(-2px);
}

/** --- Galería - AJUSTE A 4 COLUMNAS --- */
.galeria-piezas {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.pieza-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
  transition: transform 0.3s ease-in-out, opacity 0.5s ease;
  cursor: pointer;
  opacity: 1;
  display: block;
}

#captionModal,
.modal-caption-expandido {
  display: none !important;
}

.pieza-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pieza-card.hidden-by-filter {
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease;
}

.pieza-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.card-caption {
  padding: 15px;
  font-size: 1.1em;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/** --- Modal de Imagen --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

.modal-contenido {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 900px;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease-in-out;
}

#captionModal {
  margin: 20px auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2em;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 20;
}

.cerrar:hover,
.cerrar:focus {
  color: #bbb;
  text-decoration: none;
}

.modal-contenido,
#captionModal {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* --- Estilos para la Galería de Piezas --- */

/* Clase para ocultar las piezas extra (usada en el HTML) */
.pieza-card.hidden-initial {
  display: none;
  /* Oculta el elemento completamente al cargar */
  opacity: 0;
}

/* Contenedor del Botón Mostrar Más - Centrado y Espaciado */
.ver-mas-container {
  display: flex;
  justify-content: center;
  /* Esto lo centra horizontalmente */
  width: 100%;
  margin: 30px 0;
}

/* Estilo para el botón "Mostrar Más" (PRIMARY-BTN) - **DEJADO COMO ESTABA POR TI** */
.primary-btn {
  background-color: #333;
  /* Fondo oscuro */
  color: #efb810;
  /* Color de texto amarillo/dorado */
  border: 2px solid #efb810;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background-color 0.3s, color 0.3s, transform 0.1s;
  text-transform: uppercase;
  display: inline-block;
}

.primary-btn:hover {
  background-color: #efb810;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- ESTILOS SUTILES PARA EL BOTÓN MOSTRAR MÁS (SOLUCIÓN) --- */
/* Sobrescribimos la clase primary-btn solo para el botón Mostrar Más */

#mostrarMasBtn {
  /* Reiniciar estilos de botón primario */
  background: none !important;
  border: none !important;
  padding: 10px 20px !important;

  /* Nuevos estilos sutiles */
  color: #333;
  font-size: 1.15rem !important;
  /* Un poco más grande para destacar */
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: color 0.3s, border-bottom 0.3s, opacity 0.3s !important;
  text-transform: none !important;
  /* Sin mayúsculas forzadas */
  display: inline-flex !important;
  /* Para alinear texto e ícono */
  align-items: center !important;
  gap: 8px !important;

  /* Subrayado sutil y animado */
  border-bottom: 2px solid transparent !important;
  transform: none !important;
  /* Quitar animación de traslación */
  box-shadow: none !important;
}

#mostrarMasBtn:hover {
  color: #efb810 !important;
  /* Color principal */
  opacity: 0.9;
  border-bottom: 2px solid #ffffff !important;
  /* Mostrar subrayado */
  background: none !important;
  transform: none !important;
}

/* Animación de entrada para las piezas al hacer clic en "Mostrar Más" */
.galeria-piezas .pieza-card {
  transition: opacity 0.3s ease-in-out;
}

/* La clase 'hidden-by-filter' del JS también puede usar esta misma transición */

/* Asegúrate de añadir el display: none para la clase que oculta al filtrar */
.pieza-card.hidden-by-filter {
  opacity: 0;
}

/* ================================================= */
/* 07. SECCIÓN SPONSORS (#sponsors) */
/* ================================================= */

.seccion-sponsors {
  padding: 60px 0;
  text-align: center;
  color: #333;
  overflow: hidden;
  background-image: url("Imagenes/Fondos/marmol_blanco.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.sponsors-subtitulo {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.sponsors-container-interactivo {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 400px;
  padding: 0 10px;
  background-color: rgba(0, 0, 0, 0.05);
}

.sponsor-interactivo-card {
  flex-grow: 1;
  flex-basis: 33.33%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.5s ease-in-out;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.sponsor-interactivo-card:last-child {
  border-right: none;
}

.sponsor-interactivo-card:hover {
  flex-grow: 3;
}

.sponsor-interactivo-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
  position: relative;
  z-index: 5;
}

.sponsor-imagen {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.5s ease-in-out;
}

/* --- AJUSTES ESPECÍFICOS DE IMAGEN --- */
.jarana-ajuste {
  background-size: 80%;
  background-position: center;
}

.tautau-ajuste {
  background-size: 70%;
  background-repeat: no-repeat;
}

.sponsor-interactivo-card:hover .sponsor-imagen {
  filter: grayscale(0%) brightness(1);
}

.sponsor-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
  z-index: 10;
}

.sponsor-interactivo-card:hover .sponsor-info {
  transform: translateY(0);
}

.sponsor-info h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #efb810;
  font-weight: 700;
}

.sponsor-info p {
  margin: 5px 0 10px 0;
  font-size: 0.9rem;
  color: #fff;
}

.sponsor-info .fab.fa-instagram {
  font-size: 1.8rem;
  color: white;
}

/* ================================================= */
/* 08. SECCIÓN ESTUDIO (#estudio / .mapa-horario) */
/* ================================================= */

.mapa-horario {
  padding: 60px 20px;
  text-align: center;
  background-image: none;
  background-color: transparent;
  background-attachment: scroll;
}

.imagenestudio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.mapa,
.horario {
  flex: 1;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.mapa h3,
.horario h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 15px;
}

.mapa p {
  margin-bottom: 10px;
}

.horario ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horario li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
  font-size: 1.1em;
}

.horario li:last-child {
  border-bottom: none;
}

.horario strong {
  color: #333;
  display: inline-block;
  min-width: 80px;
}

.horario em {
  display: block;
  margin-top: 15px;
  font-size: 0.9em;
  color: #888;
}

/* ================================================= */
/* 09. FOOTER Y CONTACTO (#contacto) */
/* ================================================= */

.main-footer {
  position: relative;
  background-color: #000000;
  color: #ffffff;
  padding: 50px 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 5px solid #efb810;
  z-index: 1;
  background-image: none;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("Imagenes/Header_background/header_black_marble.jpg");
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.footer-col {
  width: 23%;
  margin-bottom: 30px;
  min-width: 250px;
}

.footer-title {
  font-size: 1.4em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  border-bottom: 2px solid #efb810;
  padding-bottom: 5px;
}

.main-footer ul {
  list-style: none;
  padding: 0;
}

.main-footer li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.main-footer a {
  color: #f9f9f9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-footer a:hover {
  color: #efb810;
}

.main-footer i {
  margin-right: 10px;
  color: #efb810;
  font-size: 1.1em;
}

.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2em;
  transition: all 0.3s ease;
}

.social-icons a i {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.social-icons a:hover {
  background-color: #efb71000;
  color: #000000;
  transform: translateY(-3px);
}

.footer-brand {
  margin-top: 30px;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-brand p {
  font-size: 0.9em;
  opacity: 0.7;
}

/** Estilos específicos para alineación en móviles */
.footer-col.footer-links {
  text-align: center;
}

.footer-col.footer-links ul {
  display: inline-block;
  text-align: left;
}

.footer-col.footer-links li {
  justify-content: flex-start;
}

/* ================================================= */
/* 10. ELEMENTOS FLOTANTES (WHATSAPP) Y ANIMACIONES */
/* ================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  animation: floatAnimation 2.5s ease-in-out infinite;
}

.whatsapp-float a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 28px;
  text-decoration: none;
  transition: transform 0.3s ease;
  position: relative;
}

.whatsapp-float a:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.whatsapp-float a[title]:hover::before {
  content: attr(title);
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #efb810;
  color: black;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-float .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff0000;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  transition: opacity 0.5s ease-in-out;
}

.whatsapp-float .badge.active {
  opacity: 1;
}

.whatsapp-float .badge:not(.active) {
  opacity: 0;
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ================================================= */
/* 11. MEDIA QUERIES (RESPONSIVIDAD) */
/* ================================================= */

/** --- Estilos para pantallas pequeñas (General) --- */
@media (max-width: 860px) {

  /** NAV y Menú Móvil - CORRECCIÓN CRÍTICA DE MENÚ MÓVIL */
  .marble_header {
    padding-top: 50px;
    height: 550px;
  }

  .header-content h1 {
    font-size: 2em;
  }

  .main-nav {
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.95);
    top: 0;
    left: 0;
    z-index: 1000;
  }

  .nav-logo .logo-img {
    height: 30px;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  /* ESTILOS DE LA LISTA DE ENLACES (OCULTO/ABIERTO) */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 100px;
    text-align: center;
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    transform: translateX(100%);
    visibility: hidden;
    gap: 0;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    margin: 10px 0;
  }

  .nav-links a {
    font-size: 1.5em;
    padding: 15px 0;
  }

  .nav-links a:hover {
    color: #ffffff;
    transform: scale(1.08) translateY(-3px);
    text-shadow: 0 0 5px #efb810, 0 0 10px #efb810;
  }

  .nav-links a::after {
    display: block;
    height: 2px;
    bottom: 5px;
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
    background: #efb810;
  }

  /* --- ÍCONOS SOCIALES DEL HEADER (MÓVIL) --- */
  .header-social-list {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
  }

  .social {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 0.8rem;
  }

  .social li {
    flex-basis: 3rem;
    flex-shrink: 0;
  }

  .social a {
    font-size: 1.25rem;
    border-width: 1px;
  }

  /** Sección Artista */
  .artista {
    padding: 20px 0;
  }

  .artista-titulo,
  .piezas-titulo,
  .sponsors-titulo,
  .estudio-titulo {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .artista-contenido {
    flex-direction: column;
    padding: 10px;
    align-items: center;
  }

  .artista-info-izquierda {
    align-items: center;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .artista-info-izquierda img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: none;
  }

  .artista-nombre {
    text-align: center;
    font-size: 1.3em;
  }

  .artista-historia-card {
    width: 100%;
    max-width: 90%;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  /** Galería - AJUSTE A 2 COLUMNAS EN MÓVIL (LIMPIA) */
  .galeria-piezas {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    /* Mantenemos el espacio de 15px original */
  }

  .pieza-card {
    background-color: transparent !important;
    /* Quita el blanco */
    border: none !important;
    /* Quita el borde */
    box-shadow: none !important;
    /* Quita la sombra */
    padding: 0 !important;
  }

  .card-caption {
    display: none !important;
    /* Quita el nombre */
  }

  .pieza-card img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
  }

  /* ------------------------------------------- */
  /* CORRECCIÓN MODAL EXPANDIDO (CARRUSEL) PARA MÓVIL */
  /* ------------------------------------------- */
  #captionModal,
  .modal-caption-expandido {
    display: none !important;
  }

  .modal-contenido-expandido {
    width: 95%;
    max-width: 95vw;
    height: 100%;
    max-height: 100vh;
  }

  .carousel-container {
    height: auto;
    max-height: calc(100vh - 120px);
    overflow: hidden;
  }

  /** Galería Modal (Modal simple) */
  .modal-contenido {
    width: 100%;
  }

  .cerrar {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  /** Sección Estudio */
  .mapa-horario {
    padding: 30px 10px;
  }

  .imagenestudio {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .mapa,
  .horario {
    width: 100%;
    max-width: none;
    padding: 15px;
  }

  /** Sección Sponsors */
  .seccion-sponsors {
    background-attachment: scroll;
  }

  .sponsors-container-interactivo {
    flex-direction: column;
    min-height: auto;
  }

  .sponsor-interactivo-card {
    flex-basis: 200px;
    flex-grow: 1;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .sponsor-imagen {
    filter: grayscale(0%) brightness(1);
  }

  .sponsor-info {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
  }

  /** Footer */
  .main-footer {
    padding: 40px 10%;
  }

  .footer-col {
    width: 100%;
    min-width: auto;
    margin-bottom: 25px;
  }
}

/** --- Estilos para Tablet/Desktop intermedio (769px a 1250px) --- */
@media (min-width: 769px) and (max-width: 1250px) {
  .galeria-piezas {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
  }

  .footer-col {
    width: 48%;
  }
}