/* Estilos comunes para todas las páginas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  position: fixed;
  margin: 0;
  padding: 0;
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* =====================================================
   COMPREHENSIVE PAGE ANIMATIONS
   ===================================================== */

/* Base animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes contentBoxSlideIn {
  from {
    opacity: 0;
    transform: translateX(calc(-50% + 50px));
  }

  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes bgZoomIn {
  from {
    opacity: 0.3;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Background animation on page load */
body::before {
  animation: bgZoomIn 1s ease-out forwards !important;
}

/* Header entrance */
.header {
  animation: fadeInDown 0.6s ease-out forwards;
  animation-delay: 0s;
  opacity: 0;
}

/* Content box entrance */
.content-box {
  animation: contentBoxSlideIn 0.7s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

/* Page title entrance */
.page-title {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Sections container */
.sections-container {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
  flex: 1;
  display: flex;
  gap: 2rem;
  min-height: 0;
  /* Permitir que se encoja */
}

/* Left section */
.left-section {
  animation: fadeInLeft 0.7s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /* No scroll on desktop by default */
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Right section */
.right-section {
  animation: fadeInRight 0.7s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /* No scroll on desktop by default */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images entrance */
.content-image,
.main-video-wrapper,
.portrait-image,
.main-concert-image-wrapper {
  animation: scaleIn 0.8s ease-out forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

/* Cards and items staggered entrance */
.small-video-card,
.small-concert-card,
.publication-card {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.small-video-card:nth-child(1),
.small-concert-card:nth-child(1),
.publication-card:nth-child(1) {
  animation-delay: 0.5s;
}

.small-video-card:nth-child(2),
.small-concert-card:nth-child(2),
.publication-card:nth-child(2) {
  animation-delay: 0.6s;
}

.small-video-card:nth-child(3),
.small-concert-card:nth-child(3),
.publication-card:nth-child(3) {
  animation-delay: 0.7s;
}

.small-video-card:nth-child(4),
.small-concert-card:nth-child(4),
.publication-card:nth-child(4) {
  animation-delay: 0.8s;
}

.small-video-card:nth-child(5),
.small-concert-card:nth-child(5),
.publication-card:nth-child(5) {
  animation-delay: 0.9s;
}

.small-video-card:nth-child(6),
.small-concert-card:nth-child(6),
.publication-card:nth-child(6) {
  animation-delay: 1s;
}

/* Contact info items */
.contact-item {
  animation: fadeInLeft 0.5s ease-out forwards;
  opacity: 0;
}

.contact-item:nth-child(1) {
  animation-delay: 0.4s;
}

.contact-item:nth-child(2) {
  animation-delay: 0.5s;
}

.contact-item:nth-child(3) {
  animation-delay: 0.6s;
}

/* Social links */
.social-links,
.social-icons {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

/* Navigation arrows */
.nav-arrow {
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* Form elements */
.contact-form {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* Music player */
.music-player {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

/* Section dividers */
.section-divider {
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Header común */
.header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 3px;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.active {
  opacity: 1;
  border-bottom: 2px solid #ffffff;
}

/* Contenedor principal común */
.content-box {
  position: fixed;
  top: 6.5rem;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1600px;
  border: 2px solid #ffffff;
  border-radius: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  /* No scroll on desktop */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 10;
  /* Z-index para que esté encima del botón del footer */
}

/* Content boxes are centered on all pages - parallax effect is only on background */

/* Footer Styles - Nueva sección abajo del todo */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1600px;
  height: auto;
  min-height: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 500;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #ffffff;
}

/* BLACK HOLE TRANSITIONS */

/* Simple Implosion Exit (Current Page -> Home) */
@keyframes blackHoleSuck {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0px);
  }

  100% {
    transform: scale(0.5);
    /* Partial scale down */
    opacity: 0;
    filter: blur(10px);
  }
}

.black-hole-exit {
  animation: blackHoleSuck 0.8s ease-in forwards !important;
  pointer-events: none;
  transform-origin: center center;
}

/* Big Bang Entrance (Index Page) - Keep this */
@keyframes bigBang {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(200%);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(100%);
  }
}

.big-bang-entrance {
  animation: bigBang 1.2s ease-out forwards;
}

/* Título de página común */
.page-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  flex-shrink: 0;
  /* Prevent shrinking */
}

/* Responsive común - Mobile */
@media (max-width: 640px) {
  /* Regla .content-box eliminada - cada página tiene su propia regla específica con padding-bottom: 0.2rem */

  .left-section,
  .right-section {
    overflow: visible;
    height: auto;
    flex: none;
  }

  .sections-container {
    overflow: visible;
    flex-direction: column;
    height: auto;
  }

  .page-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .header {
    padding: 0.5rem 1rem;
    top: 0;
    /* Stick to top more? or just small gap */
    top: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    /* Opaque for readability */
  }

  .logo {
    font-size: 1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    /* Force single row */
    overflow-x: auto;
    /* Enable horizontal scroll */
    width: 100%;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-bottom: 5px;
    /* Space for hidden scrollbar area */
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    /* Fade out effect */
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  .nav::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
  }

  .nav a {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.25rem 0;
  }
}

/* Mini-reproductor: portada dentro del reproductor */
.music-player .player-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 640px) {
  .music-player .player-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }
}

/* Responsive común - Tablet */
@media (max-width: 968px) {
  .content-box {
    top: 7rem;
    width: 95vw;
    padding: 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    /* Permitir scroll */
    display: block;
    height: auto;
    bottom: 4rem;
  }

  .sections-container {
    overflow: visible;
    flex-direction: column;
    height: auto;
  }

  .left-section,
  .right-section {
    overflow: visible;
    height: auto;
    flex: none;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .header {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    top: 1rem;
  }

  .nav {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.7rem;
  }

  .logo {
    font-size: 1rem;
  }
}

/* Estilos específicos para la página de VÍDEOS (scope: .videos-page) */
.videos-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: -1;
}

.videos-page .sections-container {
  display: flex;
  gap: 3rem;
  flex: 1;
  min-height: 0;
}

.videos-page .left-section {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

/* Videos destacados en columna */
.featured-videos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.featured-video-card {
  flex: 1;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.featured-video-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.featured-video-thumbnail {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.featured-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.featured-video-card:hover .featured-video-overlay {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.featured-video-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.featured-video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.featured-video-description {
  font-size: 0.85rem;
  color: #cccccc;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
}

.videos-page .main-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
}

.videos-page .main-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.videos-page .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.videos-page .main-video-wrapper:hover .main-video-thumbnail {
  transform: scale(1.05);
}

.videos-page .main-video-wrapper:hover .play-overlay {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.videos-page .main-video-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.videos-page .main-video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.videos-page .main-video-description {
  font-size: 0.85rem;
  color: #cccccc;
  line-height: 1.5;
  margin: 0;
}

.videos-page .right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.videos-page .videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Changed from 3 to 2 columns */
  grid-template-rows: repeat(2, 1fr);
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
}

.videos-page .small-video-card {
  position: relative;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.videos-page .small-video-card:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.videos-page .small-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.videos-page .small-video-card:hover .small-video-thumbnail {
  transform: scale(1.1);
}

.videos-page .small-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.videos-page .small-video-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  /* Permitir hasta 2 líneas y que se adapte */
}

.videos-page .small-video-date {
  display: none;
  /* Ocultar año en versión web, solo mostrar título */
}

.videos-page .small-video-description {
  display: none;
  /* Ocultar descripción en versión web, solo mostrar título */
}

.videos-page .video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.videos-page .video-modal.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.videos-page .modal-content {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  position: relative;
  padding-top: 3rem;
  align-items: flex-start;
}

.videos-page .modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2001;
}

.videos-page .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.videos-page .modal-video-wrapper {
  position: relative;
  flex: 0 0 60%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffffff;
  min-width: 0;
}

.videos-page .modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.videos-page .modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 0;
}

.videos-page .modal-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.videos-page .modal-social-link {
  width: 45px;
  height: 45px;
  color: #ffffff;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.videos-page .modal-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.videos-page .modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.videos-page .modal-description {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.8;
  margin: 0;
}

.videos-page .modal-date {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
}

/* Global Slider Arrows - Enhanced styling */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.nav-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.nav-arrow-left {
  left: 1rem;
}

.nav-arrow-right {
  right: 1rem;
}

@media (max-width: 1200px) {
  .videos-page .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .videos-page .left-section {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
  }

  .videos-page .right-section {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
  }

  .videos-page .main-video-wrapper {
    padding-bottom: 56.25%;
  }

  .videos-page .modal-content {
    flex-direction: column;
    padding-top: 4rem;
  }

  .videos-page .modal-video-wrapper {
    flex: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .videos-page .modal-info {
    flex: 1;
    width: 100%;
    padding: 1.5rem;
  }

  .videos-page .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  /* Estilos de videos-page eliminados - se usan solo los de videos.css */
}

/* Rain Animation for Title */
.rain-letter {
  display: inline-block;
  opacity: 0;
  animation: rainDrop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.rain-letter:hover {
  color: #ffffff;
  transform: scale(1.1);
  transition: all 0.3s;
}

@keyframes rainDrop {
  0% {
    opacity: 0;
    transform: translateY(-150px);
  }

  60% {
    opacity: 1;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MENÚ HAMBURGUESA === */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Header con hamburguesa */
@media (max-width: 640px) {
  .header {
    position: fixed !important;
    top: 0.5rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .hamburger-menu {
    display: flex !important;
  }

  .logo {
    flex: 1;
    text-align: center !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  /* Overlay para difuminar fondo */
  .menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
  }

  .menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 3rem 2rem 2rem 2rem !important;
    transition: right 0.3s ease !important;
    z-index: 1000 !important;
    border: none !important;
    /* Sin borde */
  }

  .nav.active {
    right: 0 !important;
    border-left: none !important;
    /* Quitar borde cuando esté activo */
  }

  .nav::before {
    content: "" !important;
    /* Eliminado el texto, ahora se usa un enlace real */
  }

  /* Enlace "KIKE CALZADA" en el menú móvil */
  .nav .menu-home-link {
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 2px !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }

  .nav .menu-home-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
  }

  .nav a {
    font-size: 1.2rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
  }

  .nav a:last-child {
    border-bottom: none !important;
  }

  /* Resaltar página actual en menú móvil */
  .nav a.active {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 4px solid #ffffff !important;
    padding-left: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
  }
}

/* === CONTENIDO EN COLUMNA EN SUBPÁGINAS (MÓVIL) === */
@media (max-width: 640px) {
  .sections-container {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .left-section,
  .right-section {
    width: 100% !important;
  }
}

/* Ocultar pestaña y modal del footer en desktop */
.footer-mobile-tab,
.footer-mobile-modal {
  display: none !important;
}

/* === FOOTER RESPONSIVE === */
@media (max-width: 640px) {
  .site-footer {
    display: none !important;
    /* Footer oculto en móvil en todas las páginas */
  }

  /* Pestaña flotante del footer en móvil */
  .footer-mobile-tab {
    position: fixed !important;
    bottom: 0 !important;
    /* Pegado completamente abajo */
    left: 1rem !important;
    /* Mismo margen izquierdo que content-box */
    right: 1rem !important;
    /* Mismo margen derecho que content-box */
    width: calc(100vw - 2rem) !important;
    /* Mismo ancho que content-box */
    height: 32px !important;
    background: transparent !important;
    /* Sin fondo */
    border: none !important;
    border-radius: 4px 4px 0 0 !important;
    /* Bordes redondeados solo arriba */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1 !important;
    /* Z-index muy bajo para que NO se monte encima del content-box */
    transition: all 0.3s ease !important;
  }

  .footer-mobile-tab:hover {
    opacity: 0.8 !important;
  }

  .footer-mobile-tab svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
    /* Color blanco */
    transition: transform 0.3s ease !important;
  }

  .footer-mobile-tab:hover svg {
    transform: translateY(-2px) !important;
    /* Animación sutil de flecha hacia arriba al hover */
  }

  /* Modal del footer en móvil */
  .footer-mobile-modal {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    z-index: 2000 !important;
    /* Z-index muy alto para que esté encima de todo */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
    pointer-events: none !important;
    /* Deshabilitar clicks cuando está cerrado */
    display: block !important;
  }

  .footer-mobile-modal.active {
    max-height: 300px !important;
    /* Altura fija para que se vea */
    pointer-events: auto !important;
    /* Habilitar clicks cuando está abierto */
    overflow: visible !important;
    /* Sin scroll */
  }

  .footer-modal-content {
    overflow: hidden !important;
    /* Sin scroll en el contenido */
  }

  .footer-mobile-tab:hover {
    opacity: 0.8 !important;
  }

  .footer-mobile-tab svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
    /* Color blanco */
    transition: transform 0.3s ease !important;
  }

  .footer-mobile-tab:hover svg {
    transform: translateY(-2px) !important;
    /* Animación sutil de flecha hacia arriba al hover */
  }

  /* Modal del footer en móvil */
  .footer-mobile-modal {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    z-index: 2000 !important;
    /* Z-index muy alto para que esté encima de todo */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
    pointer-events: none !important;
    /* Deshabilitar clicks cuando está cerrado */
    display: block !important;
  }

  .footer-mobile-modal.active {
    max-height: 300px !important;
    /* Altura fija para que se vea */
    pointer-events: auto !important;
    /* Habilitar clicks cuando está abierto */
    overflow: visible !important;
    /* Sin scroll */
  }

  .footer-modal-content {
    overflow: hidden !important;
    /* Sin scroll en el contenido */
  }

  .footer-mobile-modal.active {
    max-height: 50vh !important;
  }

  .footer-modal-content {
    position: relative !important;
    padding: 2rem 1.5rem 1.5rem 1.5rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .footer-modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
  }

  .footer-modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: rotate(90deg) !important;
  }

  .footer-modal-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
    margin-top: 1rem !important;
  }

  .footer-modal-inner > * {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .footer-modal-inner a[href="/admin/public/login.php"] {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s !important;
    padding: 0.5rem 0 !important;
  }

  .footer-modal-inner a[href="/admin/public/login.php"]:hover {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
  }

  .footer-inner {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }

  .footer-inner > * {
    display: block !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  /* Resaltar enlace administrador */
  .footer-inner a[href="/admin/public/login.php"] {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s !important;
    display: block !important;
    margin-top: 0.25rem !important;
  }

  .footer-inner a[href="/admin/public/login.php"]:hover {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
  }

  .footer-inner a[href="https://antoniobenalcazar.in"] {
    color: #ffffff !important;
    text-decoration: none !important;
  }
}

/* === MEJORAS GENERALES MÓVIL === */
@media (max-width: 640px) {

  html,
  body {
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .content-box {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 4.5rem 1rem 1rem 1rem !important;
    /* Margen superior: altura del header (~3.5rem) + margen (1rem) = 4.5rem para estar más cerca del header */
    padding: 1.5rem !important;
    border: 2px solid #ffffff !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Permitir scroll dentro de la sección */
    max-height: calc(100vh - 6.5rem) !important;
    /* Altura máxima para permitir scroll dentro */
  }

  /* Sin padding adicional ya que el footer está oculto */
  body {
    padding-bottom: 0 !important;
  }

  .page-title {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .sections-container {
    padding: 0 !important;
    gap: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  .sections-container > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .left-section,
  .right-section {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .left-section > *:last-child,
  .right-section > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* === OPTIMIZACIONES DE CONTENIDO === */
/* Asegurar que el contenido de texto se adapte */
.text-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.text-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Asegurar que las imágenes se adapten */
.content-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Formularios adaptables */
.contact-form {
  width: 100%;
  max-width: 500px;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Videos adaptables */
.main-video-wrapper,
.modal-video-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Grids adaptables */
.videos-grid,
.albums-container {
  width: 100%;
  overflow-x: auto;
}