/* estilos.css */

/* Variables de color y fuente */
:root {
  --color-fondo: #d9ceb8;
  --color-texto-principal: #2e0854;
  --color-texto-secundario: #722108;
  --color-boton-fondo: #2e0854;
  --color-boton-texto: #d9ceb8;

  --fuente-titulo: 'Cinzel', serif;
  --fuente-texto: 'Playfair Display', serif;
  --fuente-secundaria: 'Libre Baskerville', serif;
  
  /* Jerarquía tipográfica consistente */
  --titulo-principal: clamp(1.5rem, 4vw, 2.2rem);    /* Encabezado principal */
  --titulo-seccion: clamp(1.2rem, 3vw, 1.48rem);     /* Títulos de sección */
  --texto-normal: clamp(1rem, 2.5vw, 1.2rem);        /* Texto corriente */
  --texto-boton: clamp(1rem, 2.5vw, 1.3rem);         /* Botones */
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-fondo);
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
}

.fondo-con-textura {
  background-image: url("img/Fondo.png");
  background-repeat: repeat;
  background-size: cover;
  padding: 1rem;
}

/* Encabezado principal */
.encabezado {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.encabezado h1 {
  color: var(--color-texto-principal);
  font-family: var(--fuente-secundaria);
  font-size: var(--titulo-principal);
  line-height: 1.4;
}

.encabezado h1 span {
  font-size: var(--titulo-principal);
}

/* TARJETA CON LA PAREJA */
.tarjeta-pareja {
  margin: .2rem auto;
  max-width: 450px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tcg-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.imagen-tarjeta {
  width: 100%;
  display: block;
}

/* ESTILOS PARA EL BRILLO TCG MORADO-TURQUESA */
.tcg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  /* Gradiente con morados y turquesas */
  /* HSL: Purple (aprox 270-300), Turquoise (aprox 170-190) */
  background: linear-gradient(
    var(--shine-angle, 115deg), /* Ángulo controlado por JS o fijo */
    hsla(280, 80%, 60%, 0.25) 0%,   /* Morado claro, más transparente */
    hsla(180, 75%, 55%, 0.4) 25%,  /* Turquesa */
    hsla(290, 85%, 65%, 0.35) 50%,  /* Morado más intenso */
    hsla(175, 70%, 50%, 0.4) 75%,  /* Otro tono de Turquesa */
    hsla(275, 80%, 60%, 0.25) 100%  /* Morado claro de nuevo */
  );

  background-size: 280% 280%; /* Ajusta para la velocidad y efecto del movimiento */
  animation: moveShine 7s linear infinite;

  mix-blend-mode: overlay; /* Cambiado de color-dodge para preservar colores */
  opacity: 0.9; /* Reducido para menos exposición */
  pointer-events: none;
  border-radius: inherit;
}

@keyframes moveShine {
  0% {
    background-position: 100% 100%;
  }
  25% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 0%;
  }
  75% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* SECCIÓN LUGAR - CASTILLO DE LA CAVA */

.seccion-lugar {
  text-align: center;
  margin: 3rem auto;
  padding: 1rem 1.5rem;
  max-width: 600px;
}

.icono-seccion {
  width: 7rem;
  margin: 0 auto 1rem;
  display: block;
    background-color: #decfb8 ;
    border-radius: 100%;
}

.titulo-seccion {
  font-family: var(--fuente-titulo);
  color: var(--color-texto-principal);
  font-size: var(--titulo-seccion);
}

.adorno {
  margin: .5rem;
  width: 22rem;
  height: auto;
}

.texto-direccion {
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
  font-size: var(--texto-normal);
  line-height: 1.35;
}

/* BOTÓN ESTILO PRINCIPAL */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-boton-fondo); /* #2e0854 */
  color: var(--color-boton-texto);            /* #d9ceb8 */
  font-family: var(--fuente-secundaria);      /* Libre Baskerville */
  font-size: var(--texto-boton);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  text-align: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: 600;
}

.boton i {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* SECCIÓN CEREMONIA - NUEVA DISTRIBUCIÓN */

.seccion-ceremonia {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1rem;
  gap: 1rem;
}

/* COLUMNA IZQUIERDA */
.columna-titulo-ceremonia {
  text-align: left;
  width: 42%;
  flex-shrink: 0;
  margin-right: 1rem;
}

.text-center{
  text-align: center;
}

.titulo-ceremonia {
  font-family: var(--fuente-titulo);
  font-size: var(--titulo-seccion);
  color: var(--color-texto-principal);
  margin: 0;
}

/* COLUMNA DERECHA */
.columna-detalles-ceremonia {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.detalle-ceremonia {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icono-columna {
  width: 1rem;
  height: auto;
  margin: -.2rem .5rem 0rem 0rem;
}

.texto-columna {
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
  font-size: var(--texto-normal);
  line-height: 1.8rem;
}

/* RESPONSIVO: para celulares pequeños, apilar columnas */
@media (max-width: 390px) {
  .seccion-ceremonia {
    grid-template-columns: 1fr;
  }

  .columna-detalles-ceremonia {
    align-items: center;
  }
}
/* BLOQUE CONFIRMACIÓN DE ASISTENCIA CON IMAGEN A LA DERECHA */

.bloque-confirmacion {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1rem;
  text-align: left;
  flex-direction: row;
}

.icono-extra {
    width: 7rem;
    height: 7rem;
  flex-shrink: 0;
    margin: -4rem 0rem -0rem 0rem
}

.contenido-extra {
  flex: 1;
}

.titulo-izq {
  font-family: var(--fuente-titulo);
  color: var(--color-texto-principal);
  font-size: var(--titulo-seccion);
  margin-left: 1.5rem;
}

.adornomini {
  margin-left: .5rem;
    margin-top: -3rem;
  width: 20rem;
  height: auto;
}

.texto1{
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
  font-size: var(--texto-normal);
  line-height: 1.35;
  margin: 0;
}

/* CONTENEDOR DEL BOTÓN CENTRADO */
.contenedor-boton {
  display: flex;
  justify-content: center;
  margin-left: 24vw;
}
    
/* RESPONSIVO: mantiene imagen a la derecha incluso en móviles */
@media (max-width: 600px) {
  .bloque-confirmacion {
    flex-direction: row;
    justify-content: space-between;
  }

  .contenido-extra {
    flex: 1 1 60%;
  }

  .icono-extra {
    flex: 1 1 30%;
    align-self: center;
  }
}

/* BLOQUE VESTIMENTA */
.bloque-vestimenta {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1rem;
  text-align: left;
}

.texto-imagen {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icono-ropa {
    width: 7rem;
    height: 7rem;
    margin: 0rem -0rem -.5rem;
    background-color: #decfb8 ;
    border-radius: 100%;
  }

/* Botón alineado a la izquierda */
.boton-izquierda {
  display: flex;
  justify-content: flex-start;
  margin-top: -.5rem;
    margin-left: 2.5rem;
}

/* Botones de vestimenta */
.botones-vestimenta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 480px) {
  .texto-imagen {
    flex-direction: row;
    align-items: flex-start;
  }

  .texto-imagen img {
    width: 50px;
  }
}

/* DESKTOP RESPONSIVE - 3 COLUMNS LAYOUT */
@media (min-width: 768px) {
  .fondo-con-textura {
    padding: 2rem;
  }
  
  .desktop-container {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    gap: 1%;
    margin: 0 auto;
    align-items: start;
  }
  
  /* Hide desktop layout on mobile */
}

.inline-block {
  display: inline-block;
}

@media (max-width: 767px) {
  .desktop-container {
    display: block;
  }
  
  .desktop-column-1,
  .desktop-column-2,
  .desktop-column-3 {
    display: block;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  
  .desktop-column-3 .bloque-confirmacion,
  .desktop-column-3 .bloque-vestimenta,
  .desktop-column-3 .bloque-regalos {
    background: none;
    border-radius: 0;
    border: none;
    padding: 0;
  }
}
  
  /* Column 1: Image */
  .desktop-column-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .desktop-column-1 .encabezado {
    margin: 1.5rem 0.5rem;
    padding: 0;
  }

  .encabezado span {
    font-size: 39px!important;
  }
  
  .desktop-column-1 .tarjeta-pareja {
    margin: 0;
    max-width: 100%;
    width: 100%;
  }
  
  /* Column 2: Title, Address, Ceremony */
  .desktop-column-2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 15px;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .desktop-column-2 .seccion-lugar {
    margin: 0;
    padding: 0;
  }
  
  .desktop-column-2 .seccion-ceremonia {
    margin: 0 15px;
    padding: 0;
    flex-direction: row;
    gap: 1rem;
  }
  
  .desktop-column-2 .columna-titulo-ceremonia {
    text-align: center;
    margin-right: 0;
  }
  
  .desktop-column-2 .columna-detalles-ceremonia {
    align-items: center;
  }
  
  .desktop-column-2 .adorno {
    width: 100%;
    max-width: 18rem;
  }
  
  /* Column 3: Confirmation, Dress Code, Gifts */
  .desktop-column-3 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 15px;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .flex-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .desktop-column-3 .bloque-confirmacion,
  .desktop-column-3 .bloque-vestimenta,
  .desktop-column-3 .bloque-regalos {
    margin: 0;
    max-width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .desktop-column-3 .bloque-confirmacion {
    flex-direction: column;
    text-align: center;
  }
  
  .desktop-column-3 .contenedor-boton {
    margin: 1rem 0 0 0;
    justify-content: center;
  }
  
  .desktop-column-3 .boton-izquierda,
  .desktop-column-3 .boton-derecha {
    justify-content: center;
    float: none;
    margin: 1rem 0 0 0;
  }
  
  .desktop-column-3 .titulo-regalos,
  .desktop-column-3 .titulo-izq {
    text-align: center;
    margin: 0 0 0.5rem 0;
  }
  
  .desktop-column-3 .adornomini,
  .desktop-column-3 .adornominiReg {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 15rem;
  }
  
  .desktop-column-3 .imagen-texto,
  .desktop-column-3 .texto-imagen {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }
  
  .desktop-column-3 .imagen-texto p,
  .desktop-column-3 .texto1 {
    text-align: center;
    margin: 0;
  }
  
  .desktop-column-3 .icono-extra {
    align-self: center;
    margin: 0;
  }
  
  .desktop-column-3 .icono-ropa,
  .desktop-column-3 .icono-regalos {
    width: 7rem;
    margin: 0;
  }
}

/* BLOQUE MESA DE REGALOS */
.bloque-regalos {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: left;
}

.imagen-texto {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icono-regalos {
    width: 7rem;
    height: 7rem;
    margin: 0rem -0rem -.5rem;
    background-color: #decfb8 ;
    border-radius: 100%;
  }

.titulo-regalos{
  font-family: var(--fuente-titulo);
  color: var(--color-texto-principal);
  text-align: center;
  font-size: var(--titulo-seccion);
  margin: 0;
}

.adornominiReg {
  margin: 0.5rem auto;
  display: block;
  width: 20rem;
  height: auto;
}

.imagen-texto p {
  flex: 1;
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  margin: 0;
  text-align: right;
}

/* Botón alineado a la izquierda */
.boton-derecha {
  display: flex;
  justify-content: flex-start;
    float: right;
    margin-top: -1rem;
    margin-right: 2.5rem
}

/* Estilos para la sección de la iglesia */
.iglesia-botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.iglesia-botones button {
  cursor: pointer;
}

/* Estilos para los iconos en los botones */
.iglesia-botones .boton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.iglesia-botones .boton i {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}


/* Estilos para la sección del bunker (reutiliza las clases de iglesia) */
.bunker-botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bunker-botones button {
  cursor: pointer;
}

.bunker-botones .boton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.bunker-botones .boton i {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}


/* Galería de miniaturas del bunker */
.galeria-bunker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 800px;
  margin: 0 auto 0.3rem auto;
  padding: 0 1rem;
}

.miniatura-bunker {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(46, 8, 84, 0.2);
}

.miniatura-bunker:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(46, 8, 84, 0.3);
}

.miniatura-bunker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.8);
  transition: filter 0.3s ease;
}

.miniatura-bunker:hover img {
  filter: sepia(0.4);
}

/* Galería de miniaturas de la iglesia */
.galeria-iglesia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 800px;
  margin: 0 auto 0.3rem auto;
  padding: 0 1rem;
}

.miniatura-iglesia {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(46, 8, 84, 0.2);
}

.miniatura-iglesia:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(46, 8, 84, 0.3);
}

.miniatura-iglesia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.8);
  transition: filter 0.3s ease;
}

.miniatura-iglesia:hover img {
  filter: sepia(0.4);
}

/* Modal del carrusel */
.carrusel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.carrusel-contenido {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrusel-imagen {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: sepia(0.3);
}

/* Botón cerrar */
.carrusel-cerrar {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.carrusel-cerrar:hover {
  color: var(--color-fondo);
}

/* Botones de navegación */
.carrusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 8, 84, 0.8);
  border: none;
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.carrusel-nav:hover {
  background: var(--color-boton-fondo);
  transform: translateY(-50%) scale(1.1);
}

.carrusel-prev {
  left: -70px;
}

.carrusel-next {
  right: -70px;
}

/* Contador de imágenes */
.carrusel-contador {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 8, 84, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--fuente-texto);
  font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
  .iglesia-botones {
    flex-direction: row;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
  }
  
  .iglesia-botones .boton {
    flex: 1;
    max-width: 180px;
    min-width: 140px;
    padding: 0.8rem 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
  
  .iglesia-botones .boton i {
    width: 1.3rem;
    height: 1.3rem;
  }
  
  /* Botones del bunker en móvil */
  .bunker-botones {
    flex-direction: row;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
  }
  
  .bunker-botones .boton {
    flex: 1;
    max-width: 180px;
    min-width: 140px;
    padding: 0.8rem 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
  
  .bunker-botones .boton i {
    width: 1.3rem;
    height: 1.3rem;
  }
  
  .galeria-iglesia {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.5rem;
    max-width: 400px;
  }
  
  .galeria-bunker {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.5rem;
    max-width: 400px;
  }
  
  .carrusel-nav {
    font-size: 25px;
    width: 45px;
    height: 45px;
  }
  
  .carrusel-prev {
    left: -55px;
  }
  
  .carrusel-next {
    right: -55px;
  }
  
  .carrusel-cerrar {
    top: -35px;
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  .iglesia-botones {
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .iglesia-botones .boton {
    max-width: 160px;
    min-width: 120px;
    padding: 0.7rem 0.8rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }
  
  .iglesia-botones .boton i {
    width: 1.1rem;
    height: 1.1rem;
  }
  
  .bunker-botones {
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .bunker-botones .boton {
    max-width: 160px;
    min-width: 120px;
    padding: 0.7rem 0.8rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }
  
  .bunker-botones .boton i {
    width: 1.1rem;
    height: 1.1rem;
  }
  
  .carrusel-prev {
    left: 10px;
  }
  
  .carrusel-next {
    right: 10px;
  }
  
  .carrusel-cerrar {
    top: 10px;
    right: 10px;
  }
  
  .carrusel-contador {
    bottom: 10px;
  }
}

/* ======================================
   ESTILOS ESPECÍFICOS PARA DRESSCODE PAGE
   ====================================== */

/* Contenedor principal para dresscode */
.desktop-container-dresscode {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Contenido principal */
.contenido-dresscode {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Sección intro centrada */
.seccion-intro {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

/* Layout de dos columnas para desktop */
.layout-dos-columnas {
  display: grid;
  grid-template-columns: 45% 45%;
  gap: 10%;
  align-items: start;
  width: 100%;
}

/* Columna de contenido (izquierda) */
.columna-contenido {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Columna de galería (derecha) */
.columna-galeria {
  position: sticky;
  top: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Secciones */
.seccion-explicacion,
.seccion-inspiracion,
.seccion-ejemplos,
.seccion-advertencia {
  text-align: left;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.seccion-galeria {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.galeria-descripcion {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Grid de ejemplos */
.ejemplos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ejemplo-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.ejemplo-item h3 {
  font-family: var(--fuente-titulo);
  color: var(--color-texto-principal);
  font-size: var(--titulo-seccion);
  margin-bottom: 0.5rem;
}

.ejemplo-item p {
  font-family: var(--fuente-texto);
  color: var(--color-texto-secundario);
  font-size: var(--texto-normal);
  line-height: 1.4;
}

/* Carrusel principal */
.carrusel-principal {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Imagen principal con botones */
.imagen-principal-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 10px;
}

.imagen-principal {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: sepia(0.3);
}

.imagen-principal:hover {
  filter: sepia(0.1);
  transform: scale(1.02);
}

/* Botones del carrusel principal */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 8, 84, 0.8);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carrusel-btn:hover {
  background: var(--color-boton-fondo);
  transform: translateY(-50%) scale(1.1);
}

.carrusel-btn-prev {
  left: 10px;
}

.carrusel-btn-next {
  right: 10px;
}

.carrusel-btn i {
  width: 20px;
  height: 20px;
}

/* Contenedor de miniaturas */
.miniaturas-container {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.miniaturas-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-texto-secundario) transparent;
}

.miniaturas-scroll::-webkit-scrollbar {
  height: 6px;
}

.miniaturas-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.miniaturas-scroll::-webkit-scrollbar-thumb {
  background: var(--color-texto-secundario);
  border-radius: 3px;
}

.miniaturas-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-texto-principal);
}

/* Miniaturas */
.miniatura-dresscode {
  flex: 0 0 60px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0.7;
}

.miniatura-dresscode:hover,
.miniatura-dresscode.active {
  opacity: 1;
  border-color: var(--color-texto-principal);
  transform: scale(1.05);
}

.miniatura-dresscode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  filter: sepia(0.5);
}

.miniatura-dresscode:hover img,
.miniatura-dresscode.active img {
  filter: sepia(0.1);
}

/* Botón de regreso */
.boton-regreso {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Modal específico para dresscode */
#carrusel-modal-dresscode {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#carrusel-modal-dresscode .carrusel-contenido {
  position: relative;
  max-width: 70vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

#carrusel-modal-dresscode .carrusel-imagen {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* Controles de visibilidad */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* Responsive design para dresscode */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .desktop-container-dresscode {
    width: 100%;
    max-width: 100vw;
    padding: 0.5rem 0.25rem;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .contenido-dresscode {
    gap: 1rem;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Cambiar a layout de una columna en móvil */
  .layout-dos-columnas {
    display: block;
    gap: 0;
  }
  
  .seccion-intro {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
  }
  
  .columna-galeria {
    position: static;
    margin-top: 1rem;
  }
  
  /* Cambiar galería a grid en móvil */
  .carrusel-principal {
    display: none;
  }
  
  .seccion-galeria {
    padding: 1rem;
  }
  
  .seccion-galeria::after {
    content: "";
    display: block;
    margin-top: 1rem;
  }
  
  /* Mostrar galería en grid para móvil */
  .columna-galeria .seccion-galeria::after {
    content: "";
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  /* Crear grid de miniaturas dinámicamente para móvil */
  .galeria-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin: 0.5rem 0;
    padding: 0;
    width: 100%;
    justify-items: center;
  }
  
  .galeria-mobile .miniatura-dresscode {
    flex: none;
    aspect-ratio: 1/1;
    border: none;
    opacity: 1;
    width: 100%;
    max-width: 100%;
  }
  
  .ejemplos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .seccion-explicacion,
  .seccion-inspiracion,
  .seccion-advertencia,
  .seccion-galeria {
    padding: 0.5rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Controles de visibilidad móvil */
  .mobile-only {
    display: flex;
  }
  
  .desktop-only {
    display: none;
  }
}

@media (max-width: 480px) {
  .desktop-container-dresscode {
    width: 100%;
    max-width: 100vw;
    padding: 0.25rem;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .galeria-mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
    margin: 0.25rem 0;
  }
  
  .seccion-explicacion,
  .seccion-inspiracion,
  .seccion-advertencia,
  .seccion-galeria {
    padding: 0.25rem;
    margin: 0 0 0.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .seccion-intro {
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .contenido-dresscode {
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .miniatura-dresscode {
    aspect-ratio: 1/1;
  }
}