/*
 * Archivo de estilos para Remor.es
 *
 * Este archivo implementa un enfoque mobile‑first para asegurar
 * que la página se visualice correctamente en teléfonos, tablets
 * y ordenadores de sobremesa. Las variables CSS se definen fuera
 * de cualquier media query para que estén disponibles en todas
 * las resoluciones. A continuación se establecen los estilos
 * base que se aplican a pantallas pequeñas, seguidos de los
 * ajustes para tablets (min‑width: 768px) y, finalmente, se
 * mantienen los estilos originales para resoluciones de 1400 px
 * o más. El objetivo es que el sitio sea responsive sin perder
 * la estética original.
 */

/* ======== Variables globales ======== */
:root {
  --negro: #111315;
  --blanco: #ffffff;
  --gris-claro: #F6F6F7;
  --verde: #13FF18;
  --rosa: #C448EB;
  --azul: #1fb6d3;
  --verde-t: #13FF1870;
  --rosa-t: #C448EB85;
  --beis-t: #B59C7DDE;
  --azul-t: #1FB6D36E;
  --negro-t: #0000007A;
  --shadow: 0 8px 42px 0 rgba(32, 40, 52, 0.13);
  --font-main: 'Montserrat', Arial, sans-serif;
  --font-art: 'DM Serif Display', serif;
}

/* ======== Estilos base (mobile‑first) ======== */

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--blanco);
  color: var(--negro);
  font-size: 16px;
  line-height: 1.5;
}

/* Fondo artístico fijo */
#background-art {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.17;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 18% at 90% 4%, var(--azul) 0%, transparent 100%),
    radial-gradient(ellipse 30% 23% at 12% 80%, var(--rosa) 0%, transparent 100%),
    radial-gradient(ellipse 37% 16% at 70% 80%, var(--verde) 0%, transparent 100%);
  filter: blur(24px);
}

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

#hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) blur(8px) grayscale(0.05);
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, #00000099 60%, var(--azul) 100%),
    linear-gradient(120deg, #000000 14%, var(--rosa) 94%);
  opacity: 0.8;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  border: 2px solid rgba(31, 182, 211, 0.15);
  box-shadow: 0 6px 40px rgba(31, 182, 211, 0.2);
  backdrop-filter: blur(12px) saturate(1.1);
  padding: 2rem 1.5rem;
  width: 90%;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -40px;
  width: 130%;
  height: 110%;
  border-radius: 3rem;
  background:
    radial-gradient(circle at 18% 40%, var(--verde-t) 0, transparent 60%),
    radial-gradient(circle at 77% 14%, var(--rosa-t) 0, transparent 74%),
    radial-gradient(circle at 93% 90%, var(--azul-t) 0, transparent 67%);
  opacity: 0.22;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

  .hero-content::after {
    content: "";
    position: absolute;
    left: 5%;
    top: -40px;
    width: 100px;
    height: 50px;
    background: none;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
  }

.logo-remor-hero {
  width: 70%;
  max-width: 260px;
  display: block;
  margin: auto;
  filter: drop-shadow(0 6px 24px rgba(31, 182, 211, 0.4));
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--blanco);
  margin: 0;
}

/* Texto con degradado */
.grad-text {
  background: linear-gradient(90deg, var(--verde) 16%, var(--rosa) 65%, var(--azul) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.boton-grad,
.boton-artista {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8em 2em;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(90deg, var(--verde), var(--rosa) 80%);
  color: var(--blanco);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(31, 182, 211, 0.3);
  cursor: pointer;
  transition: filter 0.17s, box-shadow 0.18s, background 0.19s;
}

.boton-grad:hover,
.boton-artista:hover,
.boton-grad:focus,
.boton-artista:focus {
  filter: brightness(1.13) saturate(1.16);
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  box-shadow: 0 8px 24px rgba(196, 72, 235, 0.25);
}

.logos-espacios {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.logo-espai {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(0.13) brightness(1.12) drop-shadow(0 3px 8px rgba(196, 72, 235, 0.2));
  transition: filter 0.18s, transform 0.17s;
  background: #fff;
  border-radius: 50%;
  padding: 0.12em;
  border: 1px solid #ededf1;
}

.logo-espai:hover {
  filter: none;
  transform: scale(1.08);
}

/* ======== SOBRE NOSOTROS ======== */
.sobre {
  padding: 3.5em 0 3em 0;
  z-index: 2;
}

.sobre-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 95%;
  margin: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(197, 197, 197, 0.2);
  padding: 2em 1.5em;
  border: 2px solid #e5e5e9;
}

.sobre-texto h2 {
  font-family: var(--font-art);
  font-size: 2rem;
  margin-bottom: 0.6em;
  font-weight: 800;
  color: var(--negro);
  letter-spacing: 0.01em;
}

.grad-title {
  font-weight: 900;
}

.sobre-texto .musica {
  color: var(--verde);
  font-weight: 900;
}

.sobre-texto .escenicas {
  color: var(--rosa);
  font-weight: 900;
}

.sobre-texto .plasticas {
  color: var(--azul);
  font-weight: 900;
}

.sobre-texto p {
  font-size: 1rem;
  color: #232326;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Carrusel de sobre nosotros */
.img-art-container {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  height: 250px;
  margin: auto;
  box-shadow: 0 8px 32px rgba(31, 182, 211, 0.25);
  background: #1113150c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-carrusel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 1.6rem;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 1;
}

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

.sobre-carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.8em;
  position: absolute;
  width: 100%;
  bottom: 12px;
  left: 0;
  z-index: 5;
}

.sobre-carrusel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--azul);
  opacity: 0.5;
  transition: all 0.18s;
  cursor: pointer;
}

.sobre-carrusel-dot.active {
  opacity: 1;
  border-color: var(--azul);
  background: var(--azul);
  box-shadow: 0 1px 6px var(--azul);
}

.img-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 65%, var(--azul) 100%);
  opacity: 0.19;
  pointer-events: none;
  z-index: 1;
}

/* ======== GALERÍA ======== */
.galeria {
  padding: 3.5em 0 2.5em;
  text-align: center;
  overflow: hidden;
}

.galeria h2 {
  font-family: var(--font-art);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5em;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--azul), var(--rosa), var(--verde));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.galeria-codepen {
  margin: 0 auto;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.galeria-codepen ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.galeria-codepen li {
  list-style-type: none;
  margin: 0;
  display: flex;
  justify-content: center;
}

.galeria-codepen .image {
  width: 180px;
  height: 180px;
  transform: rotate(45deg);
  position: relative;
  transition: all 0.3s ease;
}

.galeria-codepen .image:hover {
  transform: rotate(45deg) scale(1.05);
  z-index: 10;
}

.galeria-codepen figure {
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(31, 182, 211, 0.2);
}

.galeria-codepen img {
  transform: rotate(-45deg);
  margin-top: -70px;
  margin-left: -70px;
  height: 200%;
  width: 200%;
  transition: all 0.3s ease;
  filter: brightness(0.9) contrast(1.1);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.galeria-codepen .image:hover img {
  filter: brightness(1) contrast(1.2);
  transform: rotate(-45deg) scale(1.1);
}

.galeria-codepen .first {
  margin-top: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.galeria-codepen .second {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ======== 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(--azul), var(--rosa));
  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(31, 182, 211, 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(31, 182, 211, 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 {
  padding: 3.5em 0 2.5em;
  background: none;
  text-align: center;
}

.actividades h2 {
  font-family: var(--font-art);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  color: var(--negro);
}

.actividades-categorias {
  display: flex;
  justify-content: center;
  gap: 1.4em;
  margin-bottom: 1.7em;
  flex-wrap: wrap;
}

.categoria-tab {
  font-family: var(--font-art);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.5em 1.6em;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(90deg, var(--azul-t) 0, var(--rosa-t) 80%);
  color: #1e1e1e;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
  box-shadow: 0 3px 12px rgba(31, 182, 211, 0.15);
  outline: none;
  transition: background 0.19s, color 0.13s, box-shadow 0.15s, filter 0.12s;
  border: 2px solid #ededf1;
}

.categoria-tab.active,
.categoria-tab:focus {
  background: linear-gradient(90deg, var(--azul), var(--rosa) 80%);
  color: var(--blanco);
  filter: brightness(1.13) drop-shadow(0 3px 12px rgba(196, 72, 235, 0.22));
  box-shadow: 0 6px 24px rgba(196, 72, 235, 0.1);
  border-color: var(--rosa);
}

.actividades-etiquetas {
  margin-bottom: 2em;
  min-height: 50px;
  position: relative;
}

.etiquetas-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

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

.actividad-tag {
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.35em 1.3em;
  border-radius: 2rem;
  background: var(--gris-claro);
  border: 2px solid #ededf1;
  color: #29282b;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.4em;
  transition: background 0.16s, color 0.15s, border 0.17s, box-shadow 0.13s, transform 0.16s;
  box-shadow: 0 2px 8px rgba(31, 182, 211, 0.15);
}

.actividad-tag.active,
.actividad-tag:focus {
  background: linear-gradient(90deg, var(--rosa-t), var(--azul-t), var(--verde-t));
  color: var(--blanco);
  border-color: var(--azul);
  box-shadow: 0 4px 18px rgba(31, 182, 211, 0.25);
  filter: brightness(1.09);
  transform: scale(1.07);
}

.actividad-ficha {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 2em auto 1em ;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.6rem;
  box-shadow: 0 6px 32px rgba(196, 72, 235, 0.1);
  border: 2px solid #ededf1;
  overflow: hidden;
}

.actividad-ficha-media {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-claro);
  border-bottom: 1.5px solid #ededf1;
  position: relative;
  overflow: hidden;
}

#actividad-ficha-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(31, 182, 211, 0.2);
  background: #1fb6d322;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.actividad-ficha-texto {
  width: 90%;
  padding: 1.5em 1.8em 1.8em 1.8em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

#actividad-ficha-titulo {
  font-family: var(--font-art);
  font-size: 1.4rem;
  margin-bottom: 0.4em;
  font-weight: 800;
  background: linear-gradient(90deg, var(--azul), var(--rosa) 65%, var(--verde) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.01em;
}

#actividad-ficha-desc {
  font-size: 1rem;
  color: #212125;
  font-family: var(--font-main);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 0;
}

/* Ocultación accesible */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ======== Tablet (≥ 768px) ======== */
@media (min-width: 768px) {
  .hero-content {
    padding: 3rem 2rem 2.5rem 2rem;
    max-width: 700px;
    border-radius: 3rem;
  }
  .logo-remor-hero {
    width: 60%;
    max-width: 300px;
  }
  .hero-desc {
    font-size: 1.15rem;
  }
  .boton-grad,
  .boton-artista {
    font-size: 1rem;
    padding: 0.9em 2.5em;
  }
  .logos-espacios {
    gap: 1.8rem;
  }
  .logo-espai {
    width: 70px;
    height: 70px;
  }
  .sobre-grid {
    max-width: 90%;
    padding: 2.4em 2em;
  }
  .sobre-texto h2 {
    font-size: 2.2rem;
  }
  .sobre-texto p {
    font-size: 1.05rem;
  }
  .img-art-container {
    max-width: 440px;
    height: 280px;
  }
  .galeria h2 {
    font-size: 2rem;
  }
  
  /* ======== GALERÍA RESPONSIVE PARA TABLET ======== */
  .galeria-codepen {
    padding: 1.5rem;
    max-width: 700px;
  }
  
  .galeria-codepen .image {
    width: 160px;
    height: 160px;
  }
  
  .galeria-codepen img {
    margin-top: -60px;
    margin-left: -60px;
  }
  
  .galeria-codepen ul {
    gap: 1.5rem;
  }
  
  .galeria-codepen .first,
  .galeria-codepen .second {
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  /* En tablet, máximo 3 rombos por fila en primera fila, 2 en segunda */
  .galeria-codepen .first li:nth-child(n+4) {
    margin-top: 1.5rem;
  }
  
  .galeria-codepen .second li:nth-child(n+3) {
    margin-top: 1.5rem;
  }
  
  /* 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;
  }
  
  /* Mostrar todas las imágenes en tablet */
  .galeria-codepen .second {
    display: flex !important;
  }
  .actividad-ficha {
    flex-direction: row;
    align-items: stretch;
    max-width: 800px;
  }
  .actividad-ficha-media {
    flex: 0 0 260px;
    height: auto;
    border-bottom: none;
    border-right: 1.5px solid #ededf1;
  }
  .actividad-ficha-texto {
    padding: 2em 2.2em 2em 1.5em;
  }
  #actividad-ficha-titulo {
    font-size: 1.6rem;
  }
}

/* ======== Estilos originales para ≥ 1400 px ======== */
@media (min-width: 1400px) {
  /* Paleta y fuentes principales */
  :root {
    --negro: #111315;
    --blanco: #ffffff;
    --gris-claro: #F6F6F7;
    --verde: #13FF18;
    --rosa: #C448EB;
    --azul: #1fb6d3;
    --verde-t: #13FF1870;
    --rosa-t: #C448EB85;
    --beis-t: #B59C7DDE;
    --azul-t: #1FB6D36E;
    --negro-t: #0000007A;
    --shadow: 0 8px 42px 0 rgba(32, 40, 52, 0.13);
    --font-main: 'Montserrat', Arial, sans-serif;
    --font-art: 'DM Serif Display', serif;
  }

  html,
  body {
    font-size: 18px;
    background: var(--blanco);
    min-height: 100vh;
    color: var(--negro);
    font-family: var(--font-main);
    margin: 0;
  }

  #background-art {
    opacity: 0.17;
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background:
      radial-gradient(ellipse 40% 18% at 90% 4%, var(--azul) 0%, transparent 100%),
      radial-gradient(ellipse 30% 23% at 12% 80%, var(--rosa) 0%, transparent 100%),
      radial-gradient(ellipse 37% 16% at 70% 80%, var(--verde) 0%, transparent 100%);
    filter: blur(34px);
  }

  /* ========== HERO ========== */
  .hero {
    position: relative;
    min-height: 780px;
    height: 100vh;
    max-height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 3.5em;
    background: none;
  }

  #hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 780px;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.89) blur(11px) grayscale(0.09);
    pointer-events: none;
  }

  .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background:
      linear-gradient(90deg, #00000099 60%, var(--azul) 100%),
      linear-gradient(120deg, #000000 14%, var(--rosa) 94%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: lighten;
    opacity: 0.82;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 70px 22px 90px 55px / 62px 88px 62px 98px;
    box-shadow: 0 10px 80px 0 #1fb6d334, 0 1px 40px #C448EB25;
    padding: 4rem 3rem 3.5rem 3rem;
    max-width: 800px;
    margin: auto;
    text-align: center;
    border: 3px solid rgba(31, 182, 211, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.7rem;
    overflow: visible;
    backdrop-filter: blur(18px) saturate(1.13);
  }

  .hero-content::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -50px;
    width: 125%;
    height: 115%;
    border-radius: 95px 30px 90px 120px / 75px 100px 90px 135px;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(circle at 18% 40%, var(--verde-t) 0, transparent 60%),
      radial-gradient(circle at 77% 14%, var(--rosa-t) 0, transparent 74%),
      radial-gradient(circle at 93% 90%, var(--azul-t) 0, transparent 67%);
    opacity: 0.22;
    filter: blur(16px);
  }

  .hero-content::after {
    content: "";
    position: absolute;
    left: 7%;
    top: -52px;
    width: 120px;
    height: 60px;
    background: none;
    opacity: 0.13;
    pointer-events: none;
    z-index: 1;
  }

  .logo-remor-hero {
    width: 300px;
    max-width: 85vw;
    display: block;
    filter: drop-shadow(0 6px 34px #1fb6d369);
    background: transparent;
    border-radius: 100%;
    pointer-events: none;
    z-index: 2;
    position: relative;
    margin: auto;
  }

  .remor-logo-text {
    display: none;
  }

  .hero-desc {
    font-size: 1.23rem;
    margin-bottom: 0.6em;
    line-height: 1.5;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
  }

  /* Clase para texto con degradado */
  .grad-text {
    background: linear-gradient(90deg, var(--verde) 16%, var(--rosa) 65%, var(--azul) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .boton-grad,
  .boton-artista {
    display: inline-block;
    margin: 1.2em auto 0 auto;
    padding: 1.11em 2.9em;
    border-radius: 2.1em;
    border: none;
    background: linear-gradient(90deg, var(--verde), var(--rosa) 80%);
    color: var(--blanco);
    font-family: inherit;
    font-size: 1.13rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 28px #1fb6d338;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: filter 0.17s, box-shadow 0.18s, background 0.19s;
    position: relative;
    z-index: 2;
  }

  .boton-grad:hover,
  .boton-artista:hover,
  .boton-grad:focus,
  .boton-artista:focus {
    filter: brightness(1.13) saturate(1.16);
    background: linear-gradient(90deg, var(--rosa), var(--azul));
    box-shadow: 0 10px 35px #C448EB40;
  }

  .logos-espacios {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    margin-bottom: 0.2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
  }

  .logo-espai {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: grayscale(0.13) brightness(1.12) drop-shadow(0 3px 12px #C448EB22);
    transition: filter 0.18s, transform 0.17s;
    background: #fff;
    border-radius: 50%;
    padding: 0.14em;
    border: 1.2px solid #ededf1;
  }

  .logo-espai:hover {
    filter: none;
    transform: scale(1.09);
  }

  /* ========== SOBRE NOSOTROS ========== */
  .sobre {
    padding: 5.5em 0 4em 0;
    z-index: 2;
  }

  .sobre-grid {
    display: grid;
    grid-template-columns: 2fr 1.15fr;
    gap: 4vw;
    align-items: center;
    max-width: 1140px;
    margin: auto;
    background: #fff;
    border-radius: 1.1em;
    box-shadow: 0 7px 44px #c5c5c523;
    padding: 2.6em 2.5em;
    border: 2.5px solid #e5e5e9;
    position: relative;
  }

  .sobre-texto h2 {
    font-family: var(--font-art);
    font-size: 2.5rem;
    margin-bottom: 0.44em;
    letter-spacing: 0.01em;
    font-weight: 800;
    color: var(--negro);
    text-shadow: 0 2px 12px #1fb6d333;
  }

  .grad-title {
    font-weight: 900;
  }

  .sobre-texto .musica {
    color: var(--verde);
    font-weight: 900;
  }

  .sobre-texto .escenicas {
    color: var(--rosa);
    font-weight: 900;
  }

  .sobre-texto .plasticas {
    color: var(--azul);
    font-weight: 900;
  }

  .sobre-texto p {
    font-size: 1.15rem;
    color: #232326;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 0;
  }

  .img-art-container {
    position: relative;
    border-radius: 2.1em;
    overflow: hidden;
    max-width: 420px;
    min-height: 230px;
    height: 300px;
    box-shadow: 0 16px 54px 0 #1fb6d340;
    margin: auto;
    background: #1113150c;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .img-artistica,
  .sobre-carrusel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2em;
    box-shadow: 0 8px 44px 0 #1fb6d325;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 1;
  }

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

  .sobre-carrusel-dots {
    display: flex;
    justify-content: center;
    gap: 0.65em;
    margin-top: 1em;
    position: absolute;
    width: 100%;
    bottom: 16px;
    left: 0;
    z-index: 5;
  }

  .sobre-carrusel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--azul);
    opacity: 0.54;
    transition: all 0.18s;
    cursor: pointer;
  }

  .sobre-carrusel-dot.active {
    opacity: 1;
    border-color: var(--azul);
    background: var(--azul);
    box-shadow: 0 1px 8px var(--azul);
  }

  .img-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 65%, var(--azul) 100%);
    opacity: 0.19;
    pointer-events: none;
    z-index: 1;
  }

  /* ========== GALERÍA ========== */
  /*
   * La galería se ha reimplementado para evitar duplicaciones y
   * problemas de superposición. El contenedor principal utiliza
   * position: relative para permitir el uso de flechas
   * absolutamente posicionadas. El track emplea scroll horizontal
   * con snap y las flechas disponen de un z-index elevado para
   * permanecer visibles sobre las imágenes.
   */
  .galeria {
    padding: 4.8em 0 3.5em;
    text-align: center;
    overflow: hidden;
  }

  .galeria h2 {
    font-family: var(--font-art);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.7em;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, var(--azul), var(--rosa), var(--verde));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }


  .galeria-carrusel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 4em 2em 2em;
  max-width: 1600px;
  margin: 0 auto;
  overflow-y: hidden;      /* refuerzo - no estorba */
}
.galeria-carrusel {
      overflow-y: hidden; /* evita scroll vertical */

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    padding: 4em 2em 2em;
    max-width: 1600px;
    margin: 0 auto;
  }

  .galeria-carrusel-track {
  display: flex;
  gap: 2em;
  overflow-x: auto;
  overflow-y: hidden;      
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 1em;
}


  .galeria-carrusel-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }

  .galeria-carrusel-img {
    display: block;
    height: 200px;
    width: auto;
    border-radius: 1em;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .galeria-carrusel-img:hover {
    transform: scale(1.05);
  }

  .galeria-prev,
  .galeria-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.4em;
    color: var(--azul);
    cursor: pointer;
    padding: 0.2em;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  .galeria-prev {
    left: 1%;
  }

  .galeria-next {
    right: 1%;
  }

  .galeria-prev:hover,
  .galeria-next:hover {
    transform: translateY(-50%) scale(1.2);
  }

  .galeria-boton-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5em;
  }

  .galeria-ver-mas {
    display: inline-block;
    padding: 1.2em 3.2em;
    background: linear-gradient(90deg, var(--azul), var(--rosa), var(--verde));
    color: var(--blanco);
    font-family: var(--font-main);
    font-size: 1.08rem;
    font-weight: 900;
    border: 0;
    border-radius: 2.4em;
    box-shadow: 0 4px 22px #1fb6d31a;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.19s, filter 0.15s, box-shadow 0.17s;
    outline: none;
  }

  .galeria-ver-mas:hover,
  .galeria-ver-mas:focus {
    filter: brightness(1.08) saturate(1.19);
    box-shadow: 0 10px 28px #C448EB40;
    background: linear-gradient(90deg, var(--rosa), var(--azul), var(--verde));
  }


  /* ========== ACTIVIDADES ========== */
  .actividades {
    padding: 4.7em 0 3em 0;
    background: none;
    text-align: center;
  }

  .actividades h2 {
    font-family: var(--font-art);
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    color: var(--negro);
  }

  .actividades-categorias {
    display: flex;
    justify-content: center;
    gap: 1.9em;
    margin-bottom: 2em;
    flex-wrap: wrap;
  }

  .categoria-tab {
    font-family: var(--font-art);
    font-size: 1.17rem;
    font-weight: 800;
    padding: 0.63em 2.2em;
    border-radius: 2.7em;
    border: none;
    background: linear-gradient(90deg, var(--azul-t) 0, var(--rosa-t) 80%);
    color: #1e1e1e;
    cursor: pointer;
    letter-spacing: 0.01em;
    margin-bottom: 0.7em;
    box-shadow: 0 3px 14px #1fb6d325;
    outline: none;
    transition: background 0.19s, color 0.13s, box-shadow 0.15s, filter 0.12s;
    border: 2.2px solid #ededf1;
  }

  .categoria-tab.active,
  .categoria-tab:focus {
    background: linear-gradient(90deg, var(--azul), var(--rosa) 80%);
    color: var(--blanco);
    filter: brightness(1.13) drop-shadow(0 3px 18px #C448EB22);
    box-shadow: 0 6px 28px #C448EB16;
    border-color: var(--rosa);
  }

  .actividades-etiquetas {
    margin-bottom: 2.3em;
    min-height: 64px;
    position: relative;
  }

  .etiquetas-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }

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

  .actividad-tag {
    font-family: var(--font-main);
    font-size: 1em;
    padding: 0.41em 1.5em;
    border-radius: 2em;
    background: var(--gris-claro);
    border: 2.1px solid #ededf1;
    color: #29282b;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0.4em;
    margin-right: 0.09em;
    transition: background 0.16s, color 0.15s, border 0.17s, box-shadow 0.13s, transform 0.16s;
    box-shadow: 0 2px 10px #1fb6d313;
  }

  .actividad-tag.active,
  .actividad-tag:focus {
    background: linear-gradient(90deg, var(--rosa-t), var(--azul-t), var(--verde-t));
    color: var(--blanco);
    border-color: var(--azul);
    box-shadow: 0 4px 18px #1fb6d33c;
    filter: brightness(1.09);
    transform: scale(1.07);
  }

  .actividad-ficha {
    display: flex;
    max-width: 880px;
    margin: 2.7em auto  1em ;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 2em;
    box-shadow: 0 6px 36px #C448EB15;
    border: 2px solid #ededf1;
    overflow: hidden;
    min-height: 285px;
  }

  .actividad-ficha-media {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gris-claro);
    min-height: 100%;
    border-right: 1.5px solid #ededf1;
    position: relative;
    overflow: hidden;
  }

  #actividad-ficha-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 250px;
    min-height: 235px;
    border-radius: 1.8em 0 0 1.8em;
    box-shadow: 0 8px 44px 0 #1fb6d326;
    background: #1fb6d322;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .actividad-ficha-texto {
    flex: 1;
    padding: 2.5em 2.7em 2.2em 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  #actividad-ficha-titulo {
    font-family: var(--font-art);
    font-size: 1.55rem;
    margin-bottom: 0.38em;
    font-weight: 800;
    background: linear-gradient(90deg, var(--azul), var(--rosa) 65%, var(--verde) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.01em;
  }

  #actividad-ficha-desc {
    font-size: 1.15em;
    color: #212125;
    font-family: var(--font-main);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0;
  }

  /* Utilidad accesible para ocultar títulos visualmente pero mantenerlos para lectores de pantalla */
  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ======== 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;
  }
  
  /* ======== GALERÍA RESPONSIVE PARA MÓVIL ======== */
  .galeria-codepen {
    padding: 1rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .galeria-codepen .image {
    width: 120px;
    height: 120px;
  }
  
  .galeria-codepen img {
    margin-top: -50px;
    margin-left: -50px;
    height: 200%;
    width: 200%;
  }
  
  .galeria-codepen ul {
    gap: 1rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  .galeria-codepen .first,
  .galeria-codepen .second {
    gap: 1rem;
    margin-top: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  /* En móvil, solo mostrar la primera lista */
  .galeria-codepen .first li {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  /* La tercera imagen de la primera fila centrada sola */
  .galeria-codepen .first li:nth-child(3) {
    flex: 0 0 100%;
    max-width: 100%;
    justify-content: center;
  }
  
  /* Ocultar toda la segunda lista en móvil */
  .galeria-codepen .second {
    display: none !important;
  }
  
  /* Botón de galería responsive */
  .galeria-boton-container {
    margin-top: 1.5rem;
  }
  
  .galeria-ver-mas {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
