/*
 * Espai de Rock – Remor.es
 * Estilos específicos que complementan index.css
 * Mantiene la paleta de colores: rosa (#C448EB), azul (#1fb6d3), verde (#13FF18)
 */

/* ======== Variables específicas ======== */
:root {
  --rosa: #C448EB;
  --azul: #1fb6d3;
  --verde: #13FF18;
  --rosa-t: #C448EB85;
  --azul-t: #1FB6D36E;
  --verde-t: #13FF1870;
}

/* ======== Estilos específicos del hero ======== */
.hero-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 2px solid rgba(196, 72, 235, 0.3);
  border-radius: 2rem;
  box-shadow: 
    0 20px 60px rgba(196, 72, 235, 0.2),
    0 8px 32px rgba(31, 182, 211, 0.15);
}

.logo-remor-hero {
  filter: drop-shadow(0 6px 20px rgba(196, 72, 235, 0.4));
  transition: transform 0.3s ease;
}

.logo-remor-hero:hover {
  transform: scale(1.05);
}

/* ======== Botones específicos ======== */
.boton-grad {
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.boton-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 72, 235, 0.35);
}

/* ======== Sección sobre ======== */
.sobre-grid {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 2px solid rgba(196, 72, 235, 0.2);
  box-shadow: 
    0 8px 32px rgba(196, 72, 235, 0.1),
    0 4px 16px rgba(31, 182, 211, 0.1);
  
  /* Layout moderno y responsive */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sobre-texto {
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Contenedor de la imagen */
.sobre-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.sobre-texto h2 {
  background: linear-gradient(90deg, var(--azul), var(--rosa));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.sobre-texto p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* ======== Carrusel de imágenes ======== */
.img-art-container {
  border: 2px solid rgba(196, 72, 235, 0.2);
  box-shadow: 
    0 12px 40px rgba(196, 72, 235, 0.15),
    0 6px 20px rgba(31, 182, 211, 0.1);
}

.sobre-carrusel-dot {
  border-color: var(--azul);
  transition: all 0.3s ease;
}

.sobre-carrusel-dot:hover {
  background: var(--azul-t);
  transform: scale(1.1);
}

.sobre-carrusel-dot.active {
  background: var(--azul);
  box-shadow: 0 2px 12px var(--azul);
}

/* ======== Carrusel moderno y responsive ======== */
.espai-rock-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 400px;
  aspect-ratio: 16/10;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 
    0 12px 40px rgba(196, 72, 235, 0.15),
    0 6px 20px rgba(31, 182, 211, 0.1);
  border: 2px solid rgba(196, 72, 235, 0.2);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  box-sizing: border-box;
}

.espai-rock-carousel:active {
  cursor: grabbing;
}

.espai-rock-carousel .sobre-carrusel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  border-radius: 1.6rem;
  z-index: 1;
}

.espai-rock-carousel .sobre-carrusel-img.active {
  opacity: 1;
  z-index: 2;
}

/* ======== GALERÍA CON ESTILOS DEL CODEPEN ======== */
@import url('https://fonts.googleapis.com/css?family=Lobster');


/* ======== Botón de galería mejorado ======== */
.galeria-boton-container {
  text-align: center;
  margin-top: 2rem;
}

.galeria-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(45deg, var(--rosa), var(--azul));
  color: white;
  padding: 1rem 2rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(196, 72, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.galeria-ver-mas::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.galeria-ver-mas:hover::before {
  left: 100%;
}

.galeria-ver-mas:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(196, 72, 235, 0.4);
}

.galeria-ver-mas i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.galeria-ver-mas:hover i {
  transform: scale(1.1);
}

/* ======== Actividades ======== */
.actividades h2 .grad-text {
  background: linear-gradient(90deg, var(--verde), var(--rosa), var(--azul));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.categoria-tab {
  border: 2px solid rgba(196, 72, 235, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.categoria-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 72, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.categoria-tab:hover::before {
  left: 100%;
}

.categoria-tab.active {
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  border-color: var(--rosa);
  transform: translateY(-2px);
}

.actividad-tag {
  border: 2px solid rgba(196, 72, 235, 0.2);
  transition: all 0.3s ease;
}

.actividad-tag:hover {
  border-color: var(--azul);
  transform: translateY(-1px);
}

.actividad-tag.active {
  background: linear-gradient(90deg, var(--rosa-t), var(--azul-t));
  border-color: var(--azul);
  transform: scale(1.05);
}

/* ======== Ficha de actividad ======== */
.actividad-ficha {
  border: 2px solid rgba(196, 72, 235, 0.2);
  box-shadow: 
    0 12px 40px rgba(196, 72, 235, 0.15),
    0 6px 20px rgba(31, 182, 211, 0.1);
  transition: all 0.3s ease;
}

.actividad-ficha:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 60px rgba(196, 72, 235, 0.2),
    0 10px 30px rgba(31, 182, 211, 0.15);
}

#actividad-ficha-titulo {
  background: linear-gradient(90deg, var(--azul), var(--rosa), var(--verde));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ======== Estilos para las pestañas de actividades ======== */
.actividades-categorias {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.categoria-tab {
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: #333;
  border: 2px solid rgba(196, 72, 235, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.categoria-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 72, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.categoria-tab:hover::before {
  left: 100%;
}

.categoria-tab.active {
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  border-color: var(--rosa);
  transform: translateY(-2px);
  color: white;
}

/* ======== Estilos para las etiquetas de actividades ======== */
.actividades-etiquetas {
  margin-bottom: 2rem;
}

.etiquetas-tabs {
  display: none;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.etiquetas-tabs.active {
  display: flex;
}

.actividad-tag {
  padding: 0.8rem 1.5rem;
  border-radius: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  background: white;
  color: #333;
  border: 2px solid rgba(196, 72, 235, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.actividad-tag:hover {
  border-color: var(--azul);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 182, 211, 0.2);
}

.actividad-tag.active {
  background: linear-gradient(90deg, var(--rosa-t), var(--azul-t));
  border-color: var(--azul);
  transform: scale(1.05);
  color: white;
}

/* ======== Estilos para la ficha de actividad ======== */
.actividad-ficha {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  border: 2px solid rgba(196, 72, 235, 0.2);
  box-shadow: 
    0 12px 40px rgba(196, 72, 235, 0.15),
    0 6px 20px rgba(31, 182, 211, 0.1);
  transition: all 0.3s ease;
  max-width: 800px;
  margin: 0 auto;
}

.actividad-ficha:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 60px rgba(196, 72, 235, 0.2),
    0 10px 30px rgba(31, 182, 211, 0.15);
}

.actividad-ficha-media {
  flex: 0 0 300px;
}

.actividad-ficha-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(196, 72, 235, 0.1);
}

.actividad-ficha-texto {
  flex: 1;
}

#actividad-ficha-titulo {
  background: linear-gradient(90deg, var(--azul), var(--rosa), var(--verde));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.actividad-ficha-texto p {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* ======== Efectos de hover y animaciones ======== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-content:hover {
  animation: float 3s ease-in-out infinite;
}

/* ======== Responsive específico ======== */
@media (min-width: 768px) {
  .hero-content {
    max-width: 700px;
    padding: 4rem 3rem;
  }
  
  .sobre-grid {
    flex-direction: row;
    gap: 3rem;
    padding: 3.5em 3em;
  }
  
  .img-art-container {
    height: 320px;
    max-width: 450px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 800px;
  }
  
  .sobre-grid {
    max-width: 1200px;
    gap: 4rem;
  }
  
  .img-art-container {
    height: 380px;
  }
}

/* ======== RESPONSIVE COMPLETO PARA MÓVIL ======== */

/* ======== OCULTAR IMÁGENES DE DESKTOP EN MÓVIL ======== */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
  }
}

/* ======== Hero Section ======== */
@media (max-width: 767px) {
  .hero-content {
    margin: 2rem auto;
    padding: 1.5rem 1rem;
    width: 95%;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .boton-grad {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.3rem;
  }
  
  /* ======== GALERÍA RESPONSIVE PARA MÓVIL ======== */
  
  /* Botón de galería responsive */
  .galeria-boton-container {
    margin-top: 1.5rem;
  }
  
  .galeria-ver-mas {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* ======== Sobre Section ======== */
@media (max-width: 767px) {
  .sobre-grid {
    display: block !important;
    padding: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
  }
  
  .sobre-texto {
    padding: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    min-width: 0 !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
  }
  
  .sobre-texto h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .sobre-texto p {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 0.8rem;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .sobre-img {
    padding: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    min-width: 0 !important;
    display: block !important;
  }
  
  .espai-rock-carousel {
    min-height: 250px;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  
  .sobre-carrusel-dots {
    bottom: 0.8rem;
    gap: 0.4rem;
  }
  
  .sobre-carrusel-dot {
    width: 10px;
    height: 10px;
  }
}

/* ======== Móvil muy pequeño ======== */
@media (max-width: 480px) {
  .hero-content {
    margin: 1.5rem auto;
    padding: 1rem 0.75rem;
    width: 98%;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
  
  .boton-grad {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    margin: 0.2rem;
  }
  
  /* ======== GALERÍA PARA MÓVILES MUY PEQUEÑOS ======== */
 
  .galeria-ver-mas {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
  
  .sobre-grid {
    padding: 1rem;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0.8rem;
    overflow: hidden;
  }
  
  .sobre-texto {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .sobre-texto h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .sobre-texto p {
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    line-height: 1.4;
    text-align: justify;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .sobre-img {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .espai-rock-carousel {
    min-height: 200px;
    aspect-ratio: 3/2;
    border-radius: 0.8rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  
  .actividades {
    padding: 1.5rem 0.75rem;
  }
  
  .actividades h2 {
    font-size: 1.4rem;
  }
  
  .categoria-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .actividad-tag {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .actividad-ficha {
    padding: 1rem;
    gap: 1rem;
  }
  
  .actividad-ficha-texto h3 {
    font-size: 1.2rem;
  }
  
  .actividad-ficha-texto p {
    font-size: 0.85rem;
  }
}

/* ======== Tablet ======== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    width: 90%;
  }
  
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .espai-rock-carousel {
    min-height: 350px;
    aspect-ratio: 16/10;
  }
  
  /* Botón de galería responsive para tablet */
  .galeria-boton-container {
    margin-top: 2rem;
  }
  
  .galeria-ver-mas {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
  }
  
 
  .actividades-categorias {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .actividad-ficha {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ======== Pantallas grandes ======== */
@media (min-width: 1024px) and (max-width: 1399px) {
  .sobre-grid {
    width: 80%;
    max-width: 900px;
    margin: 2.5rem auto;
  }
  
  .espai-rock-carousel {
    min-height: 400px;
    aspect-ratio: 16/10;
  }
  
}

@media (min-width: 1400px) {
  .sobre-grid {
    width: 80%;
    max-width: 1000px;
    margin: 3rem auto;
  }
  
  .espai-rock-carousel {
    min-height: 450px;
    aspect-ratio: 16/10;
    max-width: 450px;
  }
  
}

/* ======== MEJORAS PARA EXPERIENCIA TÁCTIL ======== */
@media (max-width: 767px) {
  /* Mejorar botones para dedos */
  .boton-grad,
  .categoria-tab,
  .actividad-tag {
    min-height: 44px; /* Tamaño mínimo recomendado para dedos */
    touch-action: manipulation; /* Optimizar para touch */
  }
  
  
  /* Optimizar carrusel para touch */
  .espai-rock-carousel {
    touch-action: pan-x; /* Solo scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  }
  
  /* Mejorar dots para touch */
  .sobre-carrusel-dot {
    min-width: 44px;
    min-height: 44px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Optimizar texto para móvil */
  .hero-content p,
  .sobre-texto p,
  .actividad-ficha-texto p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* Mejorar espaciado para touch */
  .actividades-categorias,
  .etiquetas-tabs {
    gap: 0.8rem;
  }
  
  /* Optimizar imágenes para móvil */
  .actividad-ficha-media img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* ======== GALERÍA TÁCTIL OPTIMIZADA ======== */
  
  
  /* Mejorar botón de galería para touch */
  .galeria-ver-mas {
    min-height: 48px;
    touch-action: manipulation;
  }
  
  /* ======== FIXES ESPECÍFICOS PARA BOTONES EN MÓVIL ======== */
  
  /* Botones de categorías más pequeños en móvil */
  .categoria-tab {
    font-size: 0.85rem !important;
    padding: 0.4em 1.2em !important;
    margin-bottom: 0.3em !important;
    min-height: 36px !important;
  }
  
  /* Botones de actividades con mejor espaciado */
  .actividad-tag {
    font-size: 0.8rem !important;
    padding: 0.3em 1em !important;
    margin-bottom: 0.5em !important;
    min-height: 32px !important;
  }
  
  /* Contenedor de etiquetas con mejor layout */
  .etiquetas-tabs {
    gap: 0.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 0.5rem !important;
  }
  
  /* Contenedor de categorías con mejor espaciado */
  .actividades-categorias {
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 0.5rem !important;
  }
  
  /* Evitar superposición de botones */
  .actividades-etiquetas {
    min-height: auto !important;
    padding: 0.5rem 0 !important;
  }
}

/* ======== ORIENTACIÓN LANDSCAPE EN MÓVIL ======== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-content {
    margin: 1rem auto;
    padding: 1rem;
  }
  
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .sobre-texto h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-align: left;
  }
  
  .sobre-texto p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    text-align: left;
  }
  
  .espai-rock-carousel {
    min-height: 200px;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 100%;
  }
  
  /* ======== GALERÍA EN LANDSCAPE ======== */
  
  
  
  
  .actividades-categorias {
    flex-direction: row;
    justify-content: center;
  }
  
  .actividad-ficha {
    flex-direction: row;
    gap: 1rem;
  }
}

/* ======== PREVENCIÓN DE OVERFLOW GLOBAL ======== */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ======== Actividades Section ======== */
@media (max-width: 767px) {
  .actividades {
    padding: 2rem 1rem;
  }
  
  .actividades h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .actividades-categorias {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .categoria-tab {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 1.5rem;
    text-align: center;
  }
  
  .actividades-etiquetas {
    margin-bottom: 2rem;
  }
  
  /* Ocultar etiquetas no activas */
  .etiquetas-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .etiquetas-tabs.active {
    display: flex;
  }
  
  .actividad-tag {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    border-radius: 1rem;
    white-space: nowrap;
  }
  
  .actividad-ficha {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .actividad-ficha-media {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .actividad-ficha-media img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
  }
  
  .actividad-ficha-texto {
    text-align: center;
  }
  
  .actividad-ficha-texto h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .actividad-ficha-texto p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ======== CONTAINER PRINCIPAL ======== */
.container,
main,
section,
.hero,
.sobre,
.galeria,
.actividades {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ======== PREVENCIÓN DE OVERFLOW EN TEXTO ======== */
.sobre-texto h2,
.sobre-texto p,
.actividades h2,
.actividades p {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

/* ======== FORZAR CONTAINER SIN OVERFLOW ======== */
@media (max-width: 767px) {
  .container,
  main,
  section,
  .hero,
  .sobre,
  .galeria,
  .actividades {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Forzar que no haya scroll horizontal */
  body {
    position: relative !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ==== Galería como carrusel (1 en móvil, 3 en escritorio) ==== */
.galeria-codepen { max-width: 100%; padding: 0 1rem; }
.galeria-codepen ul {
  display: flex;
  gap: 1rem;
  padding: 0 0.5rem;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;           /* clave para carrusel */
}
.galeria-codepen li {
  list-style: none;
  flex: 0 0 100%;              /* 1 tarjeta por vista en móvil */
  scroll-snap-align: center;   /* centra cada item al parar */
}
.galeria-codepen .image {
  width: 100%;
  aspect-ratio: 16 / 9;        /* alto fijo proporcional */
  position: relative;
  transform: none !important;  /* neutraliza rombo */
}
.galeria-codepen figure {
  width: 100%; height: 100%;
  overflow: hidden;
  margin:0px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(31, 182, 211, 0.2);
}
.galeria-codepen img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: none !important;  /* neutraliza rombo */
  margin: 0 !important;
  image-rendering: auto;
}

/* En tablet/escritorio: 3 por vista */
@media (min-width: 768px) {
  .galeria-codepen li { flex: 0 0 calc(33.333% - 0.67rem); }
}

/* Opcional: suaviza el scroll con botones o drag */
.galeria-codepen ul::-webkit-scrollbar { height: 8px; }
.galeria-codepen ul::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

