<!-- start Simple Custom CSS and JS -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Radish&display=swap');

#contenedor-estampados {
  max-width: 700px;
  margin: 0 auto;
  font-family: sans-serif;
  text-align: center;
}

/* Cada fieldset como bloque separado */
#contenedor-estampados .bloque {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 1em 1.2em;
  margin-bottom: 1.8em;
  background-color: #fafafa;
}

/* Leyenda más destacada */
#contenedor-estampados legend {
  font-weight: bold;
  font-size: 1.1em;
  padding: 0 0.3em;
  margin-bottom: 0.8em;
  color: #333;
}

/* Contenedor de opciones: flex con wrap */
#contenedor-estampados .opciones {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Cada opción: columna centrada */
#contenedor-estampados .opcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  min-height: 120px;
}

/* Ocultar el input radio real */
#contenedor-estampados input[type="radio"] {
  display: none;
}

/* Estilo común de círculo */
#contenedor-estampados .circle {
  width: 60px;
  height: 60px;
  border: 2px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin: 0 auto;
}

/* Hover sobre círculos */
#contenedor-estampados .circle:hover {
  transform: scale(1.5);
}

/* Círculos seleccionados */
#contenedor-estampados input[type="radio"]:checked + label .circle {
  box-shadow: 0 0 0 4px #ffd000;
}

/* Texto debajo del círculo */
#contenedor-estampados .texto {
  margin-top: 0.6em;
  font-size: 0.95em;
  color: #333;
  text-transform: capitalize;
  text-align: center;
  user-select: none;
}

/* Fondo por defecto de ESTAMPADOS */
#contenedor-estampados .circle.liso {
  background-color: #fff;
}

#contenedor-estampados .circle.cuadricula {
  background-image: url('/wp-content/uploads/formulario-estampados/cuadricula.jpg');
}

#contenedor-estampados .circle.punteado {
  background-image: url('/wp-content/uploads/formulario-estampados/punteado.jpg');
}

#contenedor-estampados .circle.personalizado {
  background-color: #e0e0e0;
  font-size: 28px;
  color: #555;
}

/* Esquinas */
#contenedor-estampados .circle.esquinas-recta,
#contenedor-estampados .circle.esquinas-redondeada {
  /* se rellena dinámicamente */
}

/* Clase de utilidad para ocultar bloques */
#contenedor-estampados .oculto {
  display: none !important;
}

/* Nota inferior */
#contenedor-estampados .nota {
  margin-top: 1em;
  font-size: 0.9em;
  color: #555;
}

/* RESULTADO: imagen final o mensaje+botón */
#contenedor-estampados #resultado {
  margin-top: 2em;
  text-align: center;
}

#contenedor-estampados #resultado img {
  max-width: 100%;
  height: auto;
}

#contenedor-estampados #resultado .mensaje {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #333;
}

#contenedor-estampados #resultado .btn-enviar {
  padding: 0.6em 1.2em;
  font-weight: bold;
  background: #000000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s ease;
  margin-bottom: 2em;
}

#contenedor-estampados #resultado .btn-enviar:hover {
  background: #333333;
}

/* ========== ESTILO PARA EL TÍTULO "VOILÀ!!!" ========== */
.voila-titulo {
  font-family: 'Radish', cursive;
  font-size: 2.5em;
  color: #333;
  margin: 0 0 0.3em 0;
  text-align: center;
  font-weight: normal;
}

/* ========== ESTILOS PARA EL CARRUSEL INFINITO ========== */
.carrousel-container {
  position: relative;
  margin: 2em auto 0;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carrousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin: 0 auto;
  width: calc(100% - 80px);
}

.carrousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  will-change: transform;
}

.carrousel-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.imagen-galeria {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  display: block;
  background-color: #fff;
}

.imagen-galeria:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Botones de navegación */
.carrousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carrousel-btn:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carrousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carrousel-btn-prev {
  left: 10px;
}

.carrousel-btn-next {
  right: 10px;
}

/* ========== ESTILOS PARA EL LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-overlay.activo {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
  visibility: visible;
}

.lightbox-contenedor {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox-overlay.activo .lightbox-contenedor {
  transform: scale(1);
}

.lightbox-imagen {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-cerrar {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  color: #333;
}

.lightbox-cerrar:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .carrousel-slide {
    flex: 0 0 calc(100% / 2);
  }
}

@media (max-width: 768px) {
  .voila-titulo {
    font-size: 2em;
  }
  
  .carrousel-container {
    padding: 30px 15px;
  }
  
  .carrousel-wrapper {
    width: calc(100% - 60px);
    padding: 15px 0;
  }
  
  .carrousel-slide {
    flex: 0 0 100%;
  }
  
  .imagen-galeria {
    height: 150px;
  }
  
  .carrousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  left: 5px;
  }
  
  .carrousel-btn-next {
    right: 5px;
    left: auto;
  }
  
  .lightbox-contenedor {
    max-width: 95%;
    max-height: 85%;
  }
  
  .lightbox-cerrar {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .voila-titulo {
    font-size: 1.8em;
  }
  
  .carrousel-container {
    padding: 25px 10px;
  }
  
  .carrousel-wrapper {
    padding: 10px 0;
  }
  
  .imagen-galeria {
    height: 130px;
  }
  
  .carrousel-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}</style>
<!-- end Simple Custom CSS and JS -->
