/* Custom styles to complement Tailwind and achieve Apple's aesthetic */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000;
    color: #F5F5F7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-light {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-light > * {
    position: relative;
    z-index: 1;
}

/* Colores de texto optimizados para el fondo azul midnight */
.section-light h3,
.section-light h4 {
    color: #e2e8f0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-light p {
    color: #cbd5e1 !important;
}

.section-light .subheadline {
    color: #94a3b8 !important;
}

/* SKU de productos en blanco para secciones light */
.section-light .text-gray-500 {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-dark {
    background-color: #000;
    color: #f5f5f7;
}

.headline-lg {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.headline-md {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: #86868b;
}

.cta-link {
    display: inline-block;
    color: #2997ff;
    font-size: 1.125rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.cta-link:hover {
    opacity: 0.8;
}

/* Grid centrado para productos */
.products-grid-centered {
    display: grid;
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    max-width: 100%;
}

/* Responsive grid para diferentes cantidades de productos */
@media (min-width: 640px) {
    .products-grid-centered {
        grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    }
}

@media (min-width: 1024px) {
    .products-grid-centered {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1280px) {
    .products-grid-centered {
        grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
        max-width: 1400px;
    }
}

.product-card-v2 {
    background-color: #111;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde blanco base */
    /* backdrop-filter: blur(10px); */ /* Eliminado para quitar el efecto de velo */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none; /* Eliminado para quitar la sombra */
    padding: 0; /* Sin padding para que la imagen cuadrada ocupe todo el ancho */
    width: 100%;
    max-width: 350px;
}
.product-card-v2:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none; /* Eliminado para quitar la sombra en hover */
}

/* Contenedor interno para mejor control del espaciado */
.product-card-v2 .card-content {
    padding: 1rem; /* Espaciado interno completo para el contenido */
}

.product-card-v2 h4 {
    margin-top: 0; /* Sin margen superior ya que el contenedor tiene padding */
}

.form-input, .quiz-select {
    background-color: #1d1d1f;
    border: 1px solid #333;
    color: #f5f5f7;
    transition: border-color 0.3s ease;
}

/* Estilos especiales para inputs en secciones light - tema azul midnight */
.section-light .form-input {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(30, 64, 175, 0.1),
        inset 0 1px 0 rgba(147, 197, 253, 0.1);
}

.section-light .form-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 4px 20px rgba(30, 64, 175, 0.2),
        0 0 0 3px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(147, 197, 253, 0.2);
}

.section-light .form-input::placeholder {
    color: #94a3b8;
}

/* Estilos de formulario para secciones light - tema azul midnight */
.section-light input,
.section-light textarea,
.section-light select {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    color: #e2e8f0 !important;
    box-shadow: 
        0 4px 15px rgba(30, 64, 175, 0.1),
        inset 0 1px 0 rgba(147, 197, 253, 0.1);
}

.section-light input:focus,
.section-light textarea:focus,
.section-light select:focus {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 6px 20px rgba(30, 64, 175, 0.2),
        inset 0 1px 0 rgba(147, 197, 253, 0.2);
    outline: none !important;
}

.section-light input::placeholder,
.section-light textarea::placeholder {
    color: #94a3b8 !important;
}

.form-input:focus, .quiz-select:focus {
    outline: none;
    border-color: #2997ff;
}

.primary-button {
    background-color: #2997ff;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Botones especiales para secciones light (azul midnight premium) */
.section-light .primary-button {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
    color: white;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 25px rgba(30, 64, 175, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}


.section-light .primary-button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(30, 64, 175, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.section-light .primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    background-color: #0071e3;
}

/* Modal styling */
.modal-backdrop {
    transition: opacity 0.3s ease-in-out;
}
.modal-content {
    background-color: #1d1d1f;
    border: 1px solid #444;
}

/* Animation Styles */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Efectos glamorosos para secciones light - tema azul midnight */
.section-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(147, 197, 253, 0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(30, 64, 175, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 8s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(0px) translateX(-5px); }
    75% { transform: translateY(5px) translateX(3px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-card-v2 img {
    width: 100%; /* Ancho completo del contenedor */
    height: 100%; /* Altura completa del contenedor cuadrado */
    object-fit: contain; /* Mostrar imagen completa sin recortes */
    object-position: center; /* Centrar la imagen */
    border-radius: 0.75rem; /* Bordes redondeados completos */
    display: block; /* Asegurar que el centrado funcione correctamente */
    border: 3px solid #ffffff; /* Borde blanco sólido */
    background-color: #000; /* Fondo negro para espacios vacíos */
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.15), /* Iluminación exterior blanca */
        inset 0 0 20px rgba(255, 255, 255, 0.1), /* Iluminación interior blanca */
        0 8px 32px rgba(255, 255, 255, 0.08); /* Resplandor de fondo */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transición suave */
    /* Sin efectos de zoom */
}

.product-card-v2:hover img {
    border-color: #ffffff; /* Borde blanco sólido en hover */
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.25), /* Iluminación exterior más intensa */
        inset 0 0 30px rgba(255, 255, 255, 0.15), /* Iluminación interior más intensa */
        0 12px 48px rgba(255, 255, 255, 0.12); /* Resplandor de fondo más brillante */
    /* Eliminado: transform scale para quitar el efecto de zoom */
}

/* Spinner for loading state */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #2997ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Stack Carousel Styles */
.card-stack-carousel {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-slide {
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde blanco base */
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1), /* Iluminación exterior sutil */
        inset 0 0 20px rgba(255, 255, 255, 0.05); /* Iluminación interior */
}

.card-slide:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2), /* Iluminación exterior más intensa */
        inset 0 0 30px rgba(255, 255, 255, 0.1); /* Iluminación interior más intensa */
}

.card-slide.active {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.3), /* Iluminación exterior brillante */
        inset 0 0 40px rgba(255, 255, 255, 0.15), /* Iluminación interior brillante */
        0 25px 50px -12px rgba(41, 151, 255, 0.25); /* Sombra azul adicional */
}

/* Quitar el reflejo anterior ya que ahora usamos iluminación de borde */
.card-slide::after {
    display: none;
}

.card-slide img {
    transition: transform 0.7s ease;
}

.card-slide:hover img {
    transform: scale(1.08); /* Aumentado de 1.02 a 1.08 para mayor zoom */
}

/* Indicadores del carrusel tipo baraja */
.card-indicator {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-indicator:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Botones de navegación del carrusel */
.card-nav-btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-nav-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.card-nav-btn:active {
    transform: scale(0.95);
}

/* Efectos adicionales para el carrusel tipo baraja */
@media (min-width: 768px) {
    .card-slide {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    }
    
    .card-slide.active {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    }
}

/* Animación suave para dispositivos móviles */
@media (max-width: 767px) {
    .card-slide {
        transition: all 0.5s ease;
    }
    
    .card-nav-btn {
        padding: 0.5rem;
    }
    
    .card-indicator {
        width: 0.625rem;
        height: 0.625rem;
    }
}

/* Estilos específicos para el header en diferentes breakpoints */
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Optimización específica para pantallas de 1024px */
    header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header nav > div:first-child {
        /* Logo y texto Professionale */
        flex-shrink: 0;
        min-width: 0;
    }
    
    header nav > div:first-child h1 {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    header nav > div:nth-child(2) {
        /* Enlaces de navegación */
        gap: 1rem;
    }
    
    header nav > div:nth-child(2) a {
        font-size: 1.125rem;
        white-space: nowrap;
    }
    
    header nav > div:last-child {
        /* Botones de acción */
        flex-shrink: 0;
        gap: 0.5rem;
    }
    
    header nav > div:last-child a:last-child {
        /* Botón Order Now */
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Ocultar navegación en tablets para evitar sobreposición */
    header nav > div:nth-child(2) {
        display: none;
    }
    
    header nav > div:last-child a:last-child {
        display: none;
    }
}

/* Mejoras generales para el header */
header nav {
    min-height: 4rem;
    align-items: center;
}

header nav > div:first-child img {
    flex-shrink: 0;
}

header nav > div:first-child h1 {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero Carousel Styles (comentado - mantenido para referencia) */
/*
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide:first-child {
    opacity: 1 !important;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.hero-indicator.active {
    background-color: #2997ff;
    transform: scale(1.2);
}
*/