/* ==========================================================================
   EVENTOS PAGE - Algodón Todo Evento (CSS PREMIUM MEJORADO)
   Diseño ultra premium con carrusel espectacular y optimización móvil perfecta
   Mejoras: Reducción de scroll en móviles pequeños, escalado proporcional, refinamiento desktop y carrusel recomendado optimizado
   ========================================================================== */

/* --------------------------------------------------------------------------
   VARIABLES CSS PREMIUM
   -------------------------------------------------------------------------- */

:root {
  /* Colores principales mejorados */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #1d4ed8;
  --color-sky: #0ea5e9;
  --color-sky-light: #38bdf8;
  --color-cyan: #06b6d4;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-text: #0f172a;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradientes premium */
  --gradient-main: radial-gradient(circle at top left, #e0f2fe 0%, #f9fafb 40%, #dbeafe 100%);
  --gradient-title: linear-gradient(135deg, #3b82f6, #0ea5e9, #06b6d4);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 1));
  --gradient-btn: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --gradient-btn-secondary: linear-gradient(135deg, #8b5cf6, #6366f1);
  --gradient-hover: linear-gradient(135deg, #06b6d4, #0ea5e9);
  --gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);

  /* Sombras premium */
  --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.22);
  --shadow-2xl: 0 40px 100px rgba(15, 23, 42, 0.26);
  --shadow-hover: 0 25px 70px rgba(15, 23, 42, 0.26);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.4);

  /* Transiciones suaves */
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.9, 0.35, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease-out;
  --transition-elastic: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------------------------------------------------------------
   RESET Y BASE MEJORADO
   -------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background: var(--gradient-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* --------------------------------------------------------------------------
   MAIN CONTAINER PREMIUM (Mejorado para desktop: más ancho y espacioso)
   -------------------------------------------------------------------------- */

.main-container {
  width: min(1600px, 96vw);
  max-width: 1800px;
  min-height: 82vh;
  margin: clamp(2rem, 3vh, 3rem) auto 2.5rem;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 28px;
  box-shadow:
    0 18px 60px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(30px);
  animation: evt-fadeInMain 0.9s cubic-bezier(0.25, 0.9, 0.35, 1) forwards;
}

/* Halos decorativos mejorados */
.main-container::before,
.main-container::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  filter: blur(60px);
}

.main-container::before {
  inset: -20%;
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.22), transparent 60%);
  animation: evt-floatHalo 22s ease-in-out infinite;
}

.main-container::after {
  inset: -20%;
  background:
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.2), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(56, 189, 248, 0.2), transparent 60%);
  animation: evt-floatHalo 28s ease-in-out infinite reverse;
}

/* --------------------------------------------------------------------------
   PRODUCT CONTAINER (Mejorado para desktop: mayor gap)
   -------------------------------------------------------------------------- */

.product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 5vw, 5rem);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   PRODUCT GALLERY MEJORADA
   -------------------------------------------------------------------------- */

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;

  opacity: 0;
  transform: translateX(-40px);
  animation: evt-slideInLeft 0.9s cubic-bezier(0.25, 0.9, 0.35, 1) 0.3s forwards;
}

.main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--color-gray-100);

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.main-image:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    var(--shadow-xl),
    0 0 0 1px rgba(59, 130, 246, 0.6),
    var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.6);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.9, 0.35, 1);
  cursor: zoom-in;
}

.main-image:hover img {
  transform: scale(1.1);
}

/* Badge de disponibilidad mejorado - glassmorphism */
.main-image::after {
  content: '✓ Disponible';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background: rgba(14, 165, 233, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 2;
  animation: evt-pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   THUMBNAIL GALLERY MEJORADA
   -------------------------------------------------------------------------- */

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.25);
  background: var(--color-gray-100);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.thumbnail:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    var(--shadow-md),
    0 0 0 2px var(--color-primary);
  border-color: var(--color-primary);
}

.thumbnail:hover img {
  transform: scale(1.12);
}

.thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.3),
    var(--shadow-md);
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   PRODUCT DETAILS MEJORADOS
   -------------------------------------------------------------------------- */

.product-details {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;

  opacity: 0;
  transform: translateX(40px);
  animation: evt-slideInRight 0.9s cubic-bezier(0.25, 0.9, 0.35, 1) 0.3s forwards;
}

/* Glass info sections within product details */
.product-details > .specifications,
.product-details > .pricing,
.product-details > .product-details1,
.product-details > .payment-options {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-details h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
  letter-spacing: 0.01em;

  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  position: relative;
  padding-bottom: 0.3rem;
}

.product-details h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-btn);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.brand {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

.sku {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin: 0;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  width: fit-content;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.availability::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: evt-pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   SPECIFICATIONS PREMIUM
   -------------------------------------------------------------------------- */

.specifications {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.specifications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 20px 20px 0 0;
}

.specifications h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--color-primary-dark);

  display: flex;
  align-items: center;
  gap: 1rem;
}

.specifications h2::before {
  content: '📋';
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.specifications ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.specifications li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  padding-left: 2.5rem;
  position: relative;
  transition: transform var(--transition-fast);
}

.specifications li:hover {
  transform: translateX(5px);
}

.specifications li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--gradient-btn);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 
    0 4px 12px rgba(14, 165, 233, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   PRICING PREMIUM
   -------------------------------------------------------------------------- */

.pricing {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 60%);
  pointer-events: none;
}

.bulk-pricing {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0 0 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bulk-pricing::before {
  content: '💰';
  font-size: 1.4rem;
}

.price {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--color-primary);
  display: inline-block;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-600);
  margin: 1rem 0 0 0;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAILS 1 (Botones de cotización) MEJORADOS
   -------------------------------------------------------------------------- */

.product-details1 {
  background: var(--gradient-card);
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.product-details1 h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-gray-800);

  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

#quote-button,
#pay-button {
  padding: 1.3rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  position: relative;
  overflow: hidden;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

#quote-button {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 
    0 10px 28px rgba(37, 211, 102, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#quote-button::before {
  content: '💬';
  font-size: 1.5rem;
}

#pay-button {
  background: var(--gradient-btn-secondary);
  box-shadow: 
    0 10px 28px rgba(139, 92, 246, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#pay-button::before {
  content: '📱';
  font-size: 1.5rem;
}

#quote-button::after,
#pay-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.25, 0.9, 0.35, 1);
}

#quote-button:hover,
#pay-button:hover {
  transform: translateY(-4px) scale(1.01);
}

#quote-button:hover {
  box-shadow: 
    0 14px 36px rgba(37, 211, 102, 0.55),
    0 0 30px rgba(37, 211, 102, 0.3);
}

#pay-button:hover {
  box-shadow: 
    0 14px 36px rgba(139, 92, 246, 0.55),
    0 0 30px rgba(139, 92, 246, 0.3);
}

#quote-button:hover::after,
#pay-button:hover::after {
  left: 120%;
}

#quote-button:active,
#pay-button:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   PAYMENT OPTIONS MEJORADOS
   -------------------------------------------------------------------------- */

.payment-options {
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.payment-options > p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0;
}

.payment-options img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-bounce);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.payment-options img:hover {
  transform: scale(1.15) translateY(-3px);
}

.installments {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.5rem 0 0 0;
  padding: 0.6rem 1.2rem;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   CARRUSEL PROFESIONAL v3 - Productos y Eventos Destacados
   Drag-to-scroll, indicadores de progreso, fade edges, touch-optimized
   ========================================================================== */

.recommended-products {
  width: min(1600px, 96vw);
  max-width: 1800px;
  margin: 0 auto 3.5rem;
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, #eff6ff 0%, #ffffff 35%, #e0f2fe 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(30px);
  animation: evt-fadeInUp 0.8s cubic-bezier(0.25, 0.9, 0.35, 1) 0.4s forwards;
}

/* Halo decorativo sutil (sin animación para rendimiento) */
.recommended-products::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Header */
.recommended-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.recommended-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.5rem;
}

.recommended-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-btn);
  border-radius: 999px;
}

.recommended-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-600);
  margin: 0.4rem 0 0 0;
}

/* Controles del carrusel */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-prev,
.carousel-next {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.carousel-prev:active,
.carousel-next:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Botón deshabilitado (al inicio/fin) */
.carousel-prev.disabled,
.carousel-next.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Wrapper del carrusel con fade edges */
.recommended-grid-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
  padding: 0.5rem 0;
}

/* Fade edges - indicadores visuales de más contenido */
.recommended-grid-wrapper::before,
.recommended-grid-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.recommended-grid-wrapper::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(239, 246, 255, 0.95) 0%,
    rgba(239, 246, 255, 0) 100%);
  opacity: 0;
}

.recommended-grid-wrapper::after {
  right: 0;
  background: linear-gradient(to left,
    rgba(239, 246, 255, 0.95) 0%,
    rgba(239, 246, 255, 0) 100%);
  opacity: 1;
}

/* Clases JS para controlar fade edges */
.recommended-grid-wrapper.at-start::before { opacity: 0; }
.recommended-grid-wrapper.at-end::after { opacity: 0; }
.recommended-grid-wrapper.scrollable::before { opacity: 1; }

/* Track del carrusel */
.recommended-grid {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 0.8rem 0.3rem 1.5rem;
  scrollbar-width: none; /* Ocultar scrollbar nativa - usamos indicadores custom */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.recommended-grid:active {
  cursor: grabbing;
}

/* Ocultar scrollbar nativa */
.recommended-grid::-webkit-scrollbar {
  display: none;
}

/* ── Tarjetas del carrusel v3 ── */
.recommended-grid > * {
  flex: 0 0 clamp(230px, 22vw, 280px);
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,1));
  border-radius: 18px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  contain: layout style;
}

/* Eliminar glow pesado - usar borde sutil */
.recommended-grid > *::before {
  display: none;
}

/* Imagen de la tarjeta */
.recommended-grid .product-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  aspect-ratio: 16 / 11;
  background: var(--color-gray-100);
}

.recommended-grid .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  box-shadow: none;
  max-height: none;
}

.recommended-grid > *:hover .product-image img {
  transform: scale(1.08);
}

/* Contenido de la tarjeta */
.recommended-grid .product-info {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.recommended-grid h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-gray-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommended-grid p {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.4;
}

/* Precio en carrusel */
.recommended-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

/* Pill / etiqueta */
.recommended-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(219, 234, 254, 0.9);
  color: var(--color-primary-dark);
  align-self: flex-start;
}

/* Botón ver producto */
.recommended-btn {
  margin-top: auto;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.recommended-btn::before {
  content: '→';
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.recommended-btn::after {
  display: none; /* Eliminar shimmer pesado */
}

.recommended-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.recommended-btn:hover::before {
  transform: translateX(3px);
}

.recommended-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Hover tarjeta */
@media (hover: hover) {
  .recommended-grid > *:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
  }
}

@media (hover: none) {
  .recommended-grid > *:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }
}

/* ── Indicador de progreso (dots) ── */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 1rem 0 0.3rem;
  position: relative;
  z-index: 1;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.carousel-dot.active {
  width: 24px;
  background: var(--color-primary);
}

.carousel-dot:hover {
  background: var(--color-primary-light);
}

/* ── Barra de progreso (alternativa a dots) ── */
.carousel-progress {
  position: relative;
  z-index: 1;
  height: 3px;
  background: var(--color-gray-200);
  border-radius: 999px;
  margin: 1rem 2rem 0;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sky));
  border-radius: 999px;
  transition: width 0.3s ease;
  min-width: 10%;
}

/* --------------------------------------------------------------------------
   RESPONSIVE - TABLETS (≤991px) (Mejorado: gaps reducidos para menos scroll)
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .main-container {
    padding: 2.5rem 2rem;
    margin: 2rem auto 2.5rem;
    border-radius: 28px;
  }

  .product-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-gallery,
  .product-details {
    animation: evt-fadeInUp 0.8s ease-out 0.3s forwards;
    transform: translateY(40px);
  }

  .main-image {
    aspect-ratio: 4 / 3;
  }

  .recommended-products {
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    border-radius: 28px;
  }

  .recommended-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .recommended-grid > * {
    flex-basis: clamp(220px, 42vw, 260px);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE - MÓVILES GRANDES (600–767px) (Mejorado: paddings y gaps más pequeños)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .main-container {
    padding: 2rem 1.5rem;
    margin: 1.8rem auto 2.3rem;
    border-radius: 26px;
  }

  .product-container {
    gap: 2.5rem;
  }

  .product-details h1 {
    font-size: 1.7rem;
  }

  .specifications,
  .pricing,
  .product-details1,
  .payment-options {
    padding: 1.8rem;
    border-radius: 18px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .recommended-products {
    padding: 2.2rem 1.5rem;
    border-radius: 24px;
  }

  .recommended-header h2 {
    font-size: 1.6rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 44px;
    height: 44px;
  }

  .recommended-grid {
    gap: 1.5rem;
  }

  .recommended-grid > * {
    flex-basis: 70%;
  }

  #quote-button,
  #pay-button {
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE - MÓVILES (≤600px) - DISEÑO COMPACTO SIN SCROLL EXCESIVO (Mejorado: más compacto, reducidos paddings/margins/fonts/images)
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  /* Agregar padding-bottom para la barra fija */
  body {
    padding-bottom: 90px;
  }

  .main-container {
    width: 97%;
    padding: 1rem 0.8rem;
    margin: 0.8rem auto 1.5rem;
    border-radius: 18px;
    min-height: auto;
  }

  /* Eliminar animaciones de halos en móvil para rendimiento */
  .main-container::before,
  .main-container::after {
    display: none;
  }

  .product-container {
    gap: 0.8rem; /* Reducido para menos scroll */
  }

  /* Galería compacta */
  .product-gallery {
    gap: 0.6rem; /* Reducido */
  }

  .main-image {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .main-image::after {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .thumbnail-gallery {
    gap: 0.5rem;
  }

  .thumbnail {
    border-radius: 10px;
  }

  /* Detalles compactos */
  .product-details {
    gap: 0.6rem; /* Reducido */
  }

  .product-details h1 {
    font-size: 1.2rem;
    padding-bottom: 0.2rem;
  }

  .product-details h1::after {
    height: 3px;
    width: 40px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .sku {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }

  .availability {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .availability::before {
    width: 8px;
    height: 8px;
  }

  /* Especificaciones compactas */
  .specifications {
    padding: 0.8rem; /* Reducido */
    border-radius: 14px;
  }

  .specifications::before {
    height: 2px;
  }

  .specifications h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem; /* Reducido */
    gap: 0.6rem;
  }

  .specifications h2::before {
    font-size: 1.2rem;
  }

  .specifications ul {
    gap: 0.4rem; /* Reducido */
  }

  .specifications li {
    font-size: 0.85rem;
    padding-left: 2rem;
    line-height: 1.4;
  }

  .specifications li::before {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.65rem;
  }

  /* OCULTAR precio inline - se mostrará en barra fija */
  .pricing {
    display: none;
  }

  /* Botones compactos inline (ocultar - usar barra fija) */
  .product-details1 {
    display: none;
  }

  /* Registro y métodos de pago más compactos */
  .registration {
    display: none;
  }

  .payment-options {
    padding: 0.6rem; /* Reducido */
    border-radius: 12px;
    gap: 0.4rem; /* Reducido */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .payment-options > p {
    font-size: 0.85rem;
    flex: 1 1 100%;
    text-align: center;
  }

  .payment-options img {
    height: 24px; /* Reducido */
  }

  .installments {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    flex: 1 1 100%;
    text-align: center;
  }

  /* Sección de botones de acción compacta (ocultar - usar barra fija) */
  .product-action-buttons {
    display: none;
  }

  /* Carrusel compacto móvil */
  .recommended-products {
    width: 97%;
    padding: 1rem 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
  }

  .recommended-products::before {
    display: none;
  }

  .recommended-header {
    margin-bottom: 0.8rem;
    gap: 0.8rem;
  }

  .recommended-header h2 {
    font-size: 1.15rem;
  }

  .recommended-header h2::after {
    width: 40px;
    height: 3px;
  }

  .recommended-subtitle {
    font-size: 0.8rem;
  }

  .carousel-controls {
    gap: 0.4rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .recommended-grid {
    gap: 0.8rem;
    padding: 0.5rem 0.2rem 0.8rem;
    scroll-snap-type: x mandatory;
  }

  .recommended-grid > * {
    flex-basis: 75%;
    border-radius: 14px;
  }

  .recommended-grid .product-image {
    aspect-ratio: 16 / 10;
    border-radius: 14px 14px 0 0;
  }

  .recommended-grid .product-info {
    padding: 0.7rem 0.8rem 0.9rem;
    gap: 0.35rem;
  }

  .recommended-grid h3 {
    font-size: 0.88rem;
  }

  .recommended-grid p {
    font-size: 0.75rem;
  }

  .recommended-price {
    font-size: 0.95rem;
  }

  .recommended-tag,
  .recommended-pill {
    font-size: 0.58rem;
    padding: 0.2rem 0.5rem;
  }

  .recommended-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Fade edges más suave en móvil */
  .recommended-grid-wrapper::before,
  .recommended-grid-wrapper::after {
    width: 30px;
  }

  /* Indicadores más compactos */
  .carousel-indicators {
    padding: 0.7rem 0 0.2rem;
    gap: 4px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .carousel-dot.active {
    width: 18px;
  }

  .carousel-progress {
    margin: 0.7rem 1rem 0;
    height: 2px;
  }
}

/* ==========================================================================
   BARRA FIJA DE PRECIO Y ACCIÓN - MÓVIL (estilo Max.com / Samsung) (Mejorado: más compacta)
   ========================================================================== */

@media (max-width: 600px) {
  /* Crear barra fija inferior */
  .mobile-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15);
    padding: 0.6rem 0.8rem; /* Reducido */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem; /* Reducido */
  }

  .mobile-price-bar .price-info {
    display: flex;
    flex-direction: column;
    gap: 0rem; /* Reducido */
  }

  .mobile-price-bar .price-label {
    font-size: 0.65rem; /* Reducido */
    font-weight: 600;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-price-bar .price-value {
    font-size: 1.3rem; /* Reducido */
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
  }

  .mobile-price-bar .action-buttons {
    display: flex;
    gap: 0.4rem; /* Reducido */
    flex: 1;
    max-width: 200px; /* Reducido */
  }

  .mobile-price-bar .btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem; /* Reducido */
    padding: 0.6rem 0.8rem; /* Reducido */
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 0.8rem; /* Reducido */
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
  }

  .mobile-price-bar .btn-cart:active {
    transform: scale(0.97);
  }

  .mobile-price-bar .btn-whatsapp {
    width: 40px; /* Reducido */
    height: 40px; /* Reducido */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem; /* Reducido */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .mobile-price-bar .btn-whatsapp:active {
    transform: scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE - MÓVILES PEQUEÑOS (≤400px) - ULTRA COMPACTO (Mejorado: escalado adicional para menos scroll)
   -------------------------------------------------------------------------- */

@media (max-width: 400px) {
  body {
    padding-bottom: 80px; /* Reducido */
  }

  .main-container {
    padding: 0.6rem 0.5rem; /* Reducido */
    margin: 0.5rem auto 1rem;
    border-radius: 14px;
  }

  .product-container {
    gap: 0.6rem; /* Reducido */
  }

  .product-gallery {
    gap: 0.4rem; /* Reducido */
  }

  .main-image {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .main-image::after {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }

  .thumbnail-gallery {
    gap: 0.3rem; /* Reducido */
  }

  .thumbnail {
    border-radius: 8px;
    border-width: 1px;
  }

  .product-details {
    gap: 0.5rem; /* Reducido */
  }

  .product-details h1 {
    font-size: 1rem; /* Reducido */
  }

  .sku {
    font-size: 0.75rem; /* Reducido */
    padding: 0.2rem 0.6rem;
  }

  .availability {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem; /* Reducido */
  }

  .specifications {
    padding: 0.6rem; /* Reducido */
    border-radius: 12px;
  }

  .specifications h2 {
    font-size: 0.9rem; /* Reducido */
    margin-bottom: 0.5rem;
  }

  .specifications h2::before {
    font-size: 1rem;
  }

  .specifications ul {
    gap: 0.4rem; /* Reducido */
  }

  .specifications li {
    font-size: 0.75rem; /* Reducido */
    padding-left: 1.6rem;
  }

  .specifications li::before {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.55rem;
  }

  .payment-options {
    padding: 0.5rem; /* Reducido */
    border-radius: 10px;
    gap: 0.3rem; /* Reducido */
  }

  .payment-options > p {
    font-size: 0.7rem; /* Reducido */
  }

  .payment-options img {
    height: 20px; /* Reducido */
  }

  .installments {
    font-size: 0.6rem; /* Reducido */
    padding: 0.3rem 0.6rem;
  }

  /* Carrusel ultra compacto */
  .recommended-products {
    padding: 0.8rem 0.5rem;
    margin-bottom: 1rem;
    border-radius: 14px;
  }

  .recommended-header {
    margin-bottom: 0.6rem;
  }

  .recommended-header h2 {
    font-size: 0.95rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .recommended-grid-wrapper::before,
  .recommended-grid-wrapper::after {
    width: 30px;
  }

  .recommended-grid {
    gap: 0.8rem;
    padding: 0.4rem 0.2rem 1rem;
  }

  .recommended-grid > * {
    flex: 0 0 82%;
    border-radius: 14px;
  }

  .recommended-grid .product-image {
    aspect-ratio: 16 / 10;
    border-radius: 14px 14px 0 0;
  }

  .recommended-grid .product-info {
    padding: 0.6rem 0.7rem 0.8rem;
    gap: 0.35rem;
  }

  .recommended-grid h3 {
    font-size: 0.82rem;
  }

  .recommended-grid p {
    font-size: 0.7rem;
  }

  .recommended-price {
    font-size: 0.9rem;
  }

  .recommended-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .carousel-indicators {
    gap: 4px;
    padding: 0.6rem 0 0.2rem;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .carousel-dot.active {
    width: 18px;
  }

  .carousel-progress {
    margin: 0.6rem 1rem 0;
  }

  /* Barra fija más compacta */
  .mobile-price-bar {
    padding: 0.5rem 0.6rem; /* Reducido */
  }

  .mobile-price-bar .price-label {
    font-size: 0.55rem; /* Reducido */
  }

  .mobile-price-bar .price-value {
    font-size: 1.1rem; /* Reducido */
  }

  .mobile-price-bar .action-buttons {
    max-width: 160px; /* Reducido */
  }

  .mobile-price-bar .btn-cart {
    padding: 0.5rem 0.6rem; /* Reducido */
    font-size: 0.7rem; /* Reducido */
  }

  .mobile-price-bar .btn-whatsapp {
    width: 36px; /* Reducido */
    height: 36px; /* Reducido */
    font-size: 0.95rem; /* Reducido */
  }
}

/* ==========================================================================
   BARRA FIJA - OCULTAR EN DESKTOP
   ========================================================================== */

.mobile-price-bar {
  display: none;
}

@media (max-width: 600px) {
  .mobile-price-bar {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   ANIMACIONES PREMIUM
   -------------------------------------------------------------------------- */

@keyframes evt-fadeInMain {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes evt-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes evt-slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes evt-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes evt-floatHalo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(20px, -22px, 0);
  }
  66% {
    transform: translate3d(-16px, 18px, 0);
  }
}

@keyframes evt-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* --------------------------------------------------------------------------
   ACCESIBILIDAD
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .main-container,
  .product-gallery,
  .product-details,
  .main-container::before,
  .main-container::after,
  .recommended-products {
    animation: none !important;
  }
}

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   UTILIDADES
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   DARK MODE (opcional)
   -------------------------------------------------------------------------- */

.dark .main-container {
  background: radial-gradient(circle at top, #020617 0%, #0f172a 100%);
  border-color: rgba(59, 130, 246, 0.35);
}

.dark .specifications,
.dark .pricing,
.dark .product-details1,
.dark .payment-options,
.dark .recommended-products,
.dark .recommended-grid > * {
  background: linear-gradient(145deg, #0a0f1e 0%, #0f172a 100%);
  border-color: rgba(59, 130, 246, 0.35);
}

.dark .product-details h1,
.dark .specifications h2,
.dark .product-details1 h1,
.dark .recommended-header h2 {
  color: var(--color-sky-light);
  -webkit-text-fill-color: unset;
}

.dark .description,
.dark .specifications li,
.dark .recommended-grid p {
  color: var(--color-gray-300);
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
  .main-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .main-container::before,
  .main-container::after,
  .recommended-products::before {
    display: none;
  }

  #quote-button,
  #pay-button,
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  .recommended-grid {
    overflow: visible;
  }
}