/* 
   Mi Gusto - Premium Theme Styles
   Basado en Bootstrap 5 + Vanilla CSS Customizations
*/

:root {
    /* Colores Principales */
    --color-primary: #0A58CA; /* Azul Confianza */
    --color-primary-light: rgba(10, 88, 202, 0.1);
    --color-secondary: #FD7E14; /* Naranja Energía */
    --color-secondary-hover: #e86e0c;
    
    /* Neutrales */
    --color-bg-light: #F8F9FA;
    --color-text-dark: #212529;
    --color-text-muted: #6C757D;
    
    /* Efectos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
}

/* =========================================
   Base & Overrides
   ========================================= */
body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
}

.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-light { background-color: var(--color-primary-light) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: #084298;
    border-color: #084298;
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: white;
}

/* Utilidades adicionales */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.tracking-wide { letter-spacing: 0.05em; }
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.glass-nav.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.logo-img {
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* Animación de línea bajo los enlaces */
@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    .nav-link:hover::after, .nav-link.active::after {
        width: 70%;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../assets/images/hero-banner.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
}

/* =========================================
   Nosotros Section
   ========================================= */
.image-wrapper {
    transition: transform 0.5s ease;
}
.image-wrapper:hover {
    transform: translateY(-10px);
}

.experience-badge {
    backdrop-filter: blur(5px);
    background: rgba(10, 88, 202, 0.9) !important;
}

.feature-list .icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.feature-list li:hover .icon-box {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: scale(1.1);
}

/* =========================================
   Servicios Section
   ========================================= */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg) !important;
}

.card-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   Accesibilidad Banner
   ========================================= */
.bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 20px 20px;
}

/* =========================================
   Pagos Section
   ========================================= */
.payments-wrapper {
    opacity: 0.8;
}
.payment-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}
.payment-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--color-primary);
}

/* =========================================
   WhatsApp Floating Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #FFF;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   Scroll Animations (JS Triggered)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Fix para background fixed en móviles */
    }
    .display-3 {
        font-size: 2.5rem;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
