/* ==========================================================================
   1. VARIABLES (El cerebro de tu diseño)
   ========================================================================== */
:root {
    /* Colores */
    --vqv-navy: #183764;
    --vqv-magenta: #E74167;
    --vqv-magenta-light: #EC626F;
    --vqv-gradient: linear-gradient(90deg, #E74167 0%, #EC626F 100%);
    --vqv-nav-gradient: linear-gradient(135deg, #EF456C 0%, #F16670 100%);
    
    /* Fuentes */
    --font-titulos: 'Varien', sans-serif;
    --font-cuerpo: 'Open Sans Custom', sans-serif;
}

/* 1. Comportamiento Global */
html {
    scroll-behavior: smooth;
}

body {
    /* Eliminamos el height: 100vh de aquí para que no bloquee laptops pequeñas */
    margin: 0;
    padding: 0;
}

/* Base para todas las secciones */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px; /* Margen de seguridad para el menú */
}

/* ==========================================================================
   2. EFECTO IMÁN (Solo en Laptops/Desktop con suficiente altura)
   ========================================================================== */
@media (min-width: 1024px) and (min-height: 750px) {
    body {
        scroll-snap-type: y mandatory;
        height: 100vh;
        overflow-y: scroll;
    }

    section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        height: 100vh; /* Aquí sí forzamos el alto porque la pantalla lo permite */
    }
}

/* ==========================================================================
   3. AJUSTE RESPONSIVO (Laptops pequeñas, Tablets y Celulares)
   ========================================================================== */
@media (max-width: 1023px), (max-height: 749px) {
    body {
        /* Desactivamos el imán si la pantalla es bajita o pequeña */
        scroll-snap-type: none;
        height: auto;
        overflow-y: visible;
    }

    section {
        min-height: 100vh; 
        height: auto; /* Permite que la sección crezca según el contenido */
        padding-top: 100px; 
        padding-bottom: 50px;
        scroll-snap-align: none;
    }
}

/* ==========================================
   SECCIÓN DE INVENTARIO (CARRUSEL)
   ========================================== */

/* Asegurar que las tarjetas tengan la misma altura */
.swiper-slide {
    height: auto;
}

/* Efecto hover en las tarjetas de inventario */
.inventario-swiper .info-card-vqv {
    transition: all 0.4s ease-in-out;
}

.inventario-swiper .swiper-slide-active .info-card-vqv,
.inventario-swiper .info-card-vqv:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(24, 55, 100, 0.15); /* Sombra color Navy VQV */
}

/* Personalización de los botones de navegación */
.swiper-button-next,
.swiper-button-prev {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Ocultar flechas en tablets/móviles para limpiar diseño */
    }
}

/* Personalización de la paginación (puntos) */
.swiper-pagination-bullet {
    background: var(--vqv-navy) !important;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--vqv-magenta) !important;
    opacity: 1;
}

/* ==========================================
   SECCIÓN SOBRE NOSOTROS
   ========================================== */
#sobrenosotros .aspect-\[3\/4\] {
    /* Mantenemos una proporción vertical para la valla */
    box-shadow: 0 30px 60px -12px rgba(24, 55, 100, 0.15);
}

/* Efecto de brillo tecnológico sobre la imagen al pasar el mouse */
#sobrenosotros .group:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Animación sutil para el overlay de glassmorphism */
#sobrenosotros .backdrop-blur-md {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translateY(10px);
    opacity: 0.9;
}

#sobrenosotros .group:hover .backdrop-blur-md {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   2. FUENTES EXTERNAS
   ========================================================================== */
@font-face {
    font-family: 'Varien';
    src: url('../fonts/Varien.ttf') format('truetype'),
         url('../fonts/Varien.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans Custom';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal;
}

@font-face {
    font-family: 'Open Sans Custom';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300; font-style: normal;
}

    .font-varien {
        font-family: var(--font-titulos) !important;
}

/* ==========================================================================
   3. ESTILOS BASE Y TIPOGRAFÍA GLOBAL
   ========================================================================== */
html { scroll-behavior: smooth; }

section { scroll-margin-top: 90px; }

h1, h2, h3, h4, .nav-link-white, .btn-nav-vqv, .hero-title, .section-header {
    font-family: var(--font-titulos);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p, span:not(.font-varien), li, label {
    font-family: var(--font-cuerpo);
    line-height: 1.6;
}

/* ==========================================================================
   4. COMPONENTES (Botones, Navegación, Cards)
   ========================================================================== */

/* Navegación */
.nav-vqv-gradient {
    background: var(--vqv-nav-gradient);
    background-color: #EF456C;
}

.nav-link-white {
    font-family: var(--font-cuerpo) !important; 
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link-white:hover, .nav-link-white:active {
    color: var(--vqv-navy) !important;
    transform: translateY(-2px);
}

.btn-nav-vqv {
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-nav-vqv:hover {
    background-color: var(--vqv-navy);
    border-color: var(--vqv-navy);
    color: white;
    transform: scale(1.05);
}

/* Botones Hero y Globales */
.btn-vqv-hero {
    background-color: var(--vqv-navy);
    color: #ffffff;
    font-family: var(--font-titulos);
    font-size: 14px;
    padding: 16px 40px;
    border-radius: 9999px;
    border: 2px solid var(--vqv-navy);
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-vqv-hero:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-vqv-primary {
    background-color: var(--vqv-navy);
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-vqv-primary:hover {
    background: var(--vqv-gradient);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(233, 69, 96, 0.3);
}

/* Tarjetas de Producto */
.product-card {
    border: 1px solid #f0f0f0;
    transition: all 0.5s ease;
    border-radius: 32px;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--vqv-magenta);
    transform: translateY(-10px);
}

/* ==========================================================================
   5. LAYOUT Y SECCIONES ESPECÍFICAS
   ========================================================================== */

.vqv-main-gradient {
    background: var(--vqv-gradient);
}

.hero-title-vqv, 
.hero-title-vqv span {
    font-family: var(--font-titulos) !important; /* Varien */
    text-transform: uppercase;
    font-weight: normal !important; 
}

.hero-title-vqv span {
    color: rgba(24, 55, 100, 1);
    display: block;
}

.hero-title-vqv {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.hero-desc-vqv {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.section-header {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

/* Colores dinámicos para Tailwind */
.text-vqv-navy { color: var(--vqv-navy); }
.text-vqv-magenta { color: var(--vqv-magenta); }
.bg-vqv-magenta\/10 { background-color: rgba(231, 65, 103, 0.1); }

/* Animación sutil para la card de "+500 Vallas" */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* Asegurar clases de fuentes */
.font-varien { font-family: var(--font-titulos) !important; }
.font-cuerpo { font-family: var(--font-cuerpo) !important; }

/* Estilo para los recuadros de anunciantes */
#anunciantes .shadow-sm {
    transition: all 0.3s ease;
}

#anunciantes .shadow-sm:hover {
    transform: translateY(-5px);
    shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Para que el video tenga ese look cinematográfico */
video {
    filter: brightness(0.9) contrast(1.1);
}

/* ==========================================
   SECCIÓN CONTACTO PREMIUM
   ========================================== */

/* Color de fondo específico solicitado */
.bg-vqv-navy {
    background-color: #183764 !important;
}

/* Estilo de inputs minimalistas (línea de fondo) */
.form-input-vqv {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 0 !important;
    color: white !important;
    font-family: var(--font-cuerpo);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    outline: none;
    transition: all 0.3s ease;
}

.form-input-vqv:focus {
    border-bottom-color: var(--vqv-magenta) !important;
}

/* Animación de la flecha */
@keyframes bounce-horizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
.animate-bounce-horizontal {
    animation: bounce-horizontal 2s infinite;
}

/* Botones de Redes Sociales circulares */
.social-icon-vqv {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon-vqv:hover {
    background: var(--vqv-magenta);
    border-color: var(--vqv-magenta);
    transform: translateY(-5px);
}

.reveal-text {
    position: relative;
    color: transparent;
    animation: reveal-text-anim 1s ease forwards;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #EF456C; /* Tu color magenta */
    animation: reveal-block-anim 1s ease;
}

@keyframes reveal-block-anim {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

@keyframes reveal-text-anim {
    to { color: #183764; } /* El color final de tu título */
}

/* Efecto de máscara: el texto sube desde una línea invisible */
.overflow-hidden-vqv {
    overflow: hidden;
    display: block;
}

[data-aos="reveal-up"] {
    transform: translateY(100%);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="reveal-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}