/* Importar variables y componentes */
@import url('./variables.css');
@import url('./components/header.css');
@import url('./components/navbar.css');
@import url('./components/carousel.css');
@import url('./components/products.css');
@import url('./components/modal.css');
@import url('./components/footer.css');
@import url('./components/promo.css');
@import url('./components/informacion.css');
@import url('./components/float-buttons.css');
@import url('./components/catalog.css');



/* Estilos base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px; /* Aumentado para compensar navbar + header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-regular);
    line-height: 1.6;
    background-color: var(--bg-dark);   
}

/* Animaciones */
@keyframes shine {
    from { background-position: -200% center; }
    to { background-position: 200% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(25%); }
}

@keyframes lightBeam {
    from {
        transform: translateX(-100%) skewX(-15deg);
    }
    to {
        transform: translateX(200%) skewX(-15deg);
    }
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-bold);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-semibold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-medium);
}

p {
    font-size: var(--font-size-base);
    font-weight: var(--font-regular);
}


/* Logo Section */
.logo-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.logo-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.logo {
    max-width: 150px;
    height: auto;
}

.logo-title-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #f7f6f9;
    /* Agregar el gradiente de difuminado */
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 85%, 
        rgba(0,0,0,0)
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 85%, 
        rgba(0,0,0,0)
    );
}

.logo-title {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
    padding: 0;
}

.logo-title img {
    width: 80%;
    height: auto;
    display: block;
    object-fit: contain;
}


.subtitle {
    display: block;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

/* Estilos específicos para el video */
.logo-video {
    height: auto;
    display: block;
    object-fit: contain;
}

/* Clases utilitarias */
.blur-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.semi-transparent {
    background-color: rgba(51, 51, 51, 0.9);
}

/* Optimizaciones de rendimiento */
.carousel,
.product-card {
    will-change: transform;
}

/* Reducción de animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
    }
}



/* Clase para elementos ocultos visualmente pero accesibles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animated Background */
.bg {
    animation: slide 4s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, var(--primary-color) 50%, var(--secundary-color) 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 5s;
}

.bg3 {
    animation-duration: 5s;
}

.bg4 {
    
    animation-duration: 6s;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s var(--transition-bezier);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 1s;
}

.reveal-delay-2 {
    transition-delay: 2s;
}

.reveal-delay-3 {
    transition-delay: 3s;
}

/* Titulos grandes con animacion */
.big-title-container {
    width: 100%;
    padding: 2rem 0 0.1rem 0;
    overflow: hidden;
}

.big-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-4xl);
    margin-bottom: 0.1rem;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 1;
    text-align: left;
    transform: translateX(-100%);
    transition: all 1.5s var(--transition-bezier);
    margin-left: 300px;
}

.big-title-container.reveal.active .big-title {
    transform: translateX(0);
}

/* Efecto de luz */
.big-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transform: skewX(-15deg);
    animation: lightBeam 3s infinite linear;
    filter: blur(5px);
}

/* Media Query para resolución 1366x768 */
@media (max-width: 1366px) and (max-height: 768px) {

    .logo-title img {
        width: 100%;
        height: auto;
    }

    .logo-video {
        width: 100%;
        height: auto;
        object-position: center 30%;
    }
}

@media (max-width: 768px) {
    /* Tablets */
    html {
        scroll-padding-top: 100px;
    }

    .navbar {
        padding: 0.5rem;
    }

    .big-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-left: 2rem;
        text-align: left;
    }
    
    .big-title-container {
        padding: 2rem 0 1.5rem;
    }

    .nav-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar input {
        height: 2rem;
    }

    .modal-product {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-video {
        object-position: center 20%;
        width: 160%; /* Mismo ancho que tenía la imagen */
        height: auto;
        display: block;
        object-fit: contain;
    }
}

/* Laptop - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .big-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
        margin-left: 5rem;
        text-align: left;
    }
    
    .big-title-container {
        padding: 2.5rem 0 2rem;
    }
}

/* Laptop L - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
    .big-title {
        font-size: clamp(2.1rem, 6vw, 2.6rem);
        margin-left: 9rem;
        text-align: left;
    }
    
    .big-title-container {
        padding: 2.5rem 0 2rem;
    }
}

/* Para asegurar que se pegue al header */
.header {
    margin-bottom: 0;
    border-bottom: none;
}

.logo-section {
    margin-top: 0;
}
