/* ============================================
   SECCIÓN: EL SALÓN NOVO
   ============================================ */

.salon {
  padding: var(--space-section) 0;
  background: var(--color-white);
  position: relative;
}

.salon__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.salon__subtitle {
  font-family: var(--font-accent);
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-normal);
}

.salon__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.salon__intro {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  max-width: 800px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Layout principal del salón */
.salon__content {
  display: grid;
  gap: var(--space-3xl);
}

/* Características destacadas */
.caracteristicas-destacadas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.caracteristica-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.caracteristica-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.05) 0%,
    rgba(234, 179, 8, 0) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.caracteristica-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-primary)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.caracteristica-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(234, 179, 8, 0.15);
}

.caracteristica-card:hover::before,
.caracteristica-card:hover::after {
  opacity: 1;
}

.caracteristica-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.caracteristica-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
  transition: all var(--transition-base);
  position: relative;
}

.caracteristica-card__icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--transition-base);
}

.caracteristica-card__icon svg {
  color: var(--color-secondary);
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.caracteristica-card:hover .caracteristica-card__icon {
  transform: translateY(-2px) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
}

.caracteristica-card:hover .caracteristica-card__icon::before {
  opacity: 0.6;
}

.caracteristica-card__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-bold);
  transition: color var(--transition-base);
}

.caracteristica-card:hover .caracteristica-card__title {
  color: var(--color-primary);
}

.caracteristica-card__value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-primary);
  line-height: 1;
  transition: all var(--transition-base);
}

.caracteristica-card:hover .caracteristica-card__value {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.3));
}

.caracteristica-card__description {
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
  transition: color var(--transition-base);
}

.caracteristica-card:hover .caracteristica-card__description {
  color: var(--color-gray-700);
}

/* Instalaciones del salón */
.instalaciones {
  margin-top: var(--space-3xl);
}

.instalaciones__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-weight-bold);
}

.instalaciones__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.instalacion-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.instalacion-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateX(8px);
}

.instalacion-item__imagen {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.instalacion-item__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.instalacion-item:hover .instalacion-item__imagen img {
  transform: scale(1.1);
}

.instalacion-item__contenido {
  padding: var(--space-xl);
}

.instalacion-item__icono {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.instalacion-item__nombre {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-bold);
}

.instalacion-item__descripcion {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.instalacion-item__detalles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.detalle-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
}

.detalle-tag::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
}

/* Especificaciones técnicas */
.especificaciones {
  margin-top: var(--space-3xl);
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: var(--color-white);
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.especificaciones::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(234, 179, 8, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.especificaciones::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(234, 179, 8, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite 4s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.especificaciones__contenido {
  position: relative;
  z-index: 1;
}

.especificaciones__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2xl);
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  position: relative;
  display: inline-block;
  width: 100%;
}

.especificaciones__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}

.especificaciones__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.especificacion-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
  position: relative;
  backdrop-filter: blur(10px);
}

.especificacion-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(234, 179, 8, 0.3),
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.especificacion-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(234, 179, 8, 0.4);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(234, 179, 8, 0.15);
}

.especificacion-item:hover::before {
  opacity: 1;
}

.especificacion-item__icon {
  flex-shrink: 0;
  margin-top: var(--space-xs);
  color: var(--color-primary);
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.4));
  transition: all var(--transition-base);
}

.especificacion-item:hover .especificacion-item__icon {
  filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.6));
  transform: scale(1.1);
}

.especificacion-item__texto {
  flex: 1;
}

.especificacion-item__label {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.especificacion-item__valor {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-white);
}

/* CTA del salón */
.salon__cta {
  margin-top: var(--space-3xl);
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(
    135deg,
    var(--color-gray-50) 0%,
    var(--color-white) 100%
  );
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
}

.salon__cta-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-bold);
}

.salon__cta-text {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile: hasta 767px */
@media (max-width: 767px) {
  .especificaciones {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
  }

  .especificaciones__contenido {
    text-align: center;
  }

  .especificaciones__title {
    font-size: var(--font-size-2xl);
    text-align: center;
  }

  .especificaciones__grid {
    text-align: left;
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .salon__title {
    font-size: var(--font-size-5xl);
  }

  .caracteristicas-destacadas {
    grid-template-columns: repeat(2, 1fr);
  }

  .instalaciones__grid {
    gap: var(--space-2xl);
  }

  .instalacion-item {
    grid-template-columns: 1fr 1fr;
  }

  .instalacion-item:nth-child(even) {
    direction: rtl;
  }

  .instalacion-item:nth-child(even) > * {
    direction: ltr;
  }

  .especificaciones__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .salon {
    padding: var(--space-4xl) 0;
  }

  .caracteristicas-destacadas {
    grid-template-columns: repeat(4, 1fr);
  }

  .caracteristica-card__icon {
    width: 60px;
    height: 60px;
  }

  .instalaciones__grid {
    gap: var(--space-3xl);
  }

  .especificaciones__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

/* Large: 1280px+ */
@media (min-width: 1280px) {
  .instalacion-item {
    gap: var(--space-2xl);
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */

/* Animación de entrada para cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.caracteristica-card,
.instalacion-item,
.especificacion-item {
  animation: slideInUp 0.6s ease-out both;
}

/* Stagger para animaciones secuenciales */
.caracteristica-card:nth-child(1) { animation-delay: 0.1s; }
.caracteristica-card:nth-child(2) { animation-delay: 0.2s; }
.caracteristica-card:nth-child(3) { animation-delay: 0.3s; }
.caracteristica-card:nth-child(4) { animation-delay: 0.4s; }

.instalacion-item:nth-child(1) { animation-delay: 0.1s; }
.instalacion-item:nth-child(2) { animation-delay: 0.2s; }
.instalacion-item:nth-child(3) { animation-delay: 0.3s; }
.instalacion-item:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   ACCESIBILIDAD
   ============================================ */

/* Reducir movimiento para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
  .caracteristica-card,
  .caracteristica-card__icon,
  .instalacion-item,
  .instalacion-item__imagen img,
  .especificacion-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Focus visible para navegación por teclado */
.caracteristica-card:focus-within,
.instalacion-item:focus-within,
.especificacion-item:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Asegurar contraste en texto sobre imágenes */
.instalacion-item__imagen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}
