/*
 * ===============================================
 * EVENTOS SHOWCASE - Boulangeri
 * ===============================================
 * Estilos para la sección de eventos con diseño
 * imagen-texto alternado
 * ===============================================
 */

/* ===================================================
   CONTENEDOR PRINCIPAL
   =================================================== */

.eventos-showcase {
  background: linear-gradient(
    to bottom,
    var(--color-gray-50) 0%,
    var(--color-white) 50%,
    var(--color-gray-50) 100%
  );
  padding: var(--spacing-20) 0;
}

/* ===================================================
   EVENTO INDIVIDUAL
   =================================================== */

.evento-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-20);
  align-items: center;
}

@media (min-width: 1024px) {
  .evento-feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-12);
  }
  
  /* Versión invertida (imagen a la derecha) */
  .evento-feature--reverse {
    direction: rtl;
  }
  
  .evento-feature--reverse > * {
    direction: ltr;
  }
}

/* ===================================================
   CONTENEDOR DE IMAGEN
   =================================================== */

.evento-feature__image-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.evento-feature__image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.evento-feature__image-container:hover .evento-feature__image {
  transform: scale(1.05);
}

/* Borde decorativo */
.evento-feature__border {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--color-primary);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .evento-feature__border {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border-width: 2px;
  }
  
  .evento-feature__image {
    min-height: 300px;
  }
}

/* ===================================================
   CONTENIDO
   =================================================== */

.evento-feature__content {
  padding: var(--spacing-6);
}

@media (min-width: 1024px) {
  .evento-feature__content {
    padding: var(--spacing-8);
  }
}

/* Tag / Etiqueta del tipo de evento */
.evento-feature__tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background-color: rgba(138, 31, 39, 0.1);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: 2px;
  margin-bottom: var(--spacing-4);
  border-left: 3px solid var(--color-primary);
}

.evento-feature__tag--purple {
  color: #8b3a8f;
  background-color: rgba(139, 58, 143, 0.1);
  border-left-color: #8b3a8f;
}

.evento-feature__tag--gold {
  color: #c9a961;
  background-color: rgba(201, 169, 97, 0.1);
  border-left-color: #c9a961;
}

/* Título */
.evento-feature__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-black);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-4);
}

/* Descripción */
.evento-feature__description {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-6);
}

/* Link "Descubrir más" */
.evento-feature__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-6);
}

.evento-feature__link:hover {
  gap: var(--spacing-3);
  color: #9d2834;
}

.evento-feature__arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.evento-feature__link:hover .evento-feature__arrow {
  transform: translateX(4px);
}

/* ===================================================
   GALERÍA DE MINIATURAS
   =================================================== */

.evento-feature__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3);
  margin-top: var(--spacing-6);
}

.evento-feature__thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: grayscale(30%);
  opacity: 0.8;
  position: relative;
}

/* Icono de zoom en hover */
.evento-feature__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px;
  height: 40px;
  background: rgba(139, 21, 56, 0.9);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  /* Icono de zoom (lupa) con SVG inline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.evento-feature__thumb:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.evento-feature__thumb:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .evento-feature__thumb {
    height: 120px;
  }
}

/* ===================================================
   ANIMACIONES DE SCROLL
   =================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
  .eventos-showcase {
    padding: var(--spacing-12) 0;
  }
  
  .evento-feature {
    margin-bottom: var(--spacing-12);
  }
  
  .evento-feature__content {
    padding: var(--spacing-4);
  }
  
  .evento-feature__gallery {
    gap: var(--spacing-2);
  }
  
  .evento-feature__thumb {
    height: 80px;
  }
}

/* ===================================================
   EFECTOS ESPECIALES
   =================================================== */

/* Efecto de brillo en hover */
.evento-feature__image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.evento-feature__image-container:hover::after {
  left: 100%;
}

/* ===================================================
   BOTÓN PREMIUM "VER TODOS NUESTROS EVENTOS"
   =================================================== */

.btn-premium-eventos {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  padding: 20px 40px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

/* Border glow animado */
.btn-premium-eventos::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    #ff69b4,
    var(--color-primary)
  );
  background-size: 200% 100%;
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  animation: glow-pulse-border 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.btn-premium-eventos:hover::before {
  opacity: 1;
}

@keyframes glow-pulse-border {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.5;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

/* Shimmer effect - brillo deslizante */
.btn-premium-eventos::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: shimmer-slide 3s ease-in-out infinite;
}

@keyframes shimmer-slide {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Hover effects */
.btn-premium-eventos:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 21, 56, 0.6);
}

/* Ícono de flecha */
.btn-premium-eventos svg {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.btn-premium-eventos:hover svg {
  transform: translateX(6px);
}

/* Texto del botón */
.btn-premium-eventos span {
  position: relative;
  z-index: 2;
}

/* Partículas decorativas opcionales */
.eventos-cta-wrapper {
  position: relative;
  padding: 60px 0;
}

.eventos-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.eventos-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float-particle 20s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Variaciones de delay para partículas */
.eventos-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.eventos-particle:nth-child(2) { left: 25%; animation-delay: 2s; }
.eventos-particle:nth-child(3) { left: 40%; animation-delay: 4s; }
.eventos-particle:nth-child(4) { left: 55%; animation-delay: 1s; }
.eventos-particle:nth-child(5) { left: 70%; animation-delay: 3s; }
.eventos-particle:nth-child(6) { left: 85%; animation-delay: 5s; }

/* Responsive */
@media (max-width: 768px) {
  .btn-premium-eventos {
    font-size: var(--font-size-base);
    padding: 16px 32px;
    width: 100%;
    max-width: 400px;
  }
}