/* ==========================================================================
   MAYO ADS ECUADOR - Landing Page Styles Premium
   ========================================================================== */

/* 1. VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors (Basados en el código de origen y contexto) */
    --color-primary: #046bd2;
    --color-primary-light: #3a8ee6;
    --color-primary-dark: #034b93;
    
    --color-secondary: #ff6600; /* Naranja identificativo */
    --color-secondary-light: #ff8533;
    
    --color-dark: #1c1c1c; 
    --color-dark-blue: #0B1020;
    --color-dark-soft: #1e293b;
    
    --color-light: #ffffff;
    --color-light-gray: #F0F5FA;
    
    --color-text: #334155;
    --color-text-light: #94a3b8;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #0ea5e9;
    --color-whatsapp: #25D366;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Box Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    --glow-primary: 0 0 20px rgba(4, 107, 210, 0.4);
    --glow-secondary: 0 0 20px rgba(255, 102, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Layout */
    --navbar-height: 80px;
}

/* 2. RESET & NORMALIZATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark-soft);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. TYPOGRAPHY (Fluid)
   ========================================================================== */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text);
}

.h2-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}

.fw-black { font-weight: 900; }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-justify { text-align: justify; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.cursor-pointer { cursor: pointer; }

/* 4. UTILITIES
   ========================================================================== */
.section-padding { padding: 90px 0; }
.bg-light-gray { background-color: var(--color-light-gray); }
.bg-dark-blue { background-color: var(--color-dark-blue); }
.bg-dark { background-color: var(--color-dark) !important; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.w-fit-content { width: fit-content; }

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

/* Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    width: 400px; height: 400px;
    background: rgba(4, 107, 210, 0.15);
    top: -100px; left: -100px;
}

.glow-2 {
    width: 300px; height: 300px;
    background: rgba(255, 102, 0, 0.15);
    bottom: 20%; right: -50px;
}

.glow-primary { background: rgba(4, 107, 210, 0.4); }
.glow-secondary { background: rgba(255, 102, 0, 0.4); }

/* 5. BUTTONS
   ========================================================================== */
.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* 6. NAVBAR (Fondo Negro, Logo Ajustado, Vínculos Blancos y Centrados Verticalmente)
   ========================================================================== */
.navbar-custom {
    height: var(--navbar-height);
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    z-index: 1050;
}

.navbar-custom.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-link {
    color: var(--color-light); 
    font-weight: 500;
    font-family: var(--font-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.nav-link:hover { color: var(--color-secondary); }
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-mobile-menu {
    background: none;
    border: none;
    color: var(--color-light);
}

/* Control del tamaño del logo en el header para que encaje perfecto y se vea un poco más grande que antes */
.logo-img {
    max-height: 55px; /* Aumentado de 45px a 55px */
    width: auto;
    object-fit: contain;
}

/* Sidebar Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed;
    top: 0; right: -300px;
    width: 300px; height: 100vh;
    background: white;
    z-index: 1070;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-sidebar.active { right: 0; }

.btn-close-sidebar { background: none; border: none; color: var(--color-dark); }
.mobile-link { display: block; padding: 10px 0; color: var(--color-dark-soft); font-weight: 500; font-family: var(--font-primary); font-size: 1.1rem; border-bottom: 1px solid #eee; }

/* 7. HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--navbar-height) + 2rem);
    min-height: 100vh;
}

.badge-premium {
    background: rgba(4, 107, 210, 0.1);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(4, 107, 210, 0.2);
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-google { top: 10%; right: -20px; animation-delay: 0s; }
.badge-seo { bottom: 15%; left: -30px; animation-delay: 1s; }
.badge-ai { top: 50%; right: -10px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 8. SERVICES CARDS
   ========================================================================== */
.service-card {
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    border-bottom: 3px solid var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.service-card img {
    border-radius: 8px;
    mix-blend-mode: multiply;
}

/* 9. TIMELINE / CASE STUDIES
   ========================================================================== */
.case-card { transition: var(--transition-base); }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.testimonialsSwiper .swiper-slide { height: auto; }
.testimonialsSwiper .swiper-pagination-bullet-active { background-color: var(--color-secondary); }

/* Logos Marquee */
.logos-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.logos-track {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 10. ACCORDION FAQ / POR QUÉ NOSOTROS
   ========================================================================== */
.custom-accordion .accordion-button { padding: 20px; font-size: 1.1rem; }
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--color-secondary);
    background-color: rgba(255,102,0,0.05);
}
.custom-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(35%) sepia(100%) saturate(1633%) hue-rotate(11deg) brightness(101%) contrast(105%);
}
.bg-dark .custom-accordion .accordion-button::after {
    filter: invert(1);
}

/* 11. CONTACT 
   ========================================================================== */
.contact-bg-gradient {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
}

/* 12. FOOTER
   ========================================================================== */
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.social-link:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
}
.hover-white:hover { color: white !important; }

/* 13. FLOATING BUTTONS
   ========================================================================== */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition-base);
    animation: pulse-wa 2s infinite;
}
.float-whatsapp:hover { color: white; transform: scale(1.1); }

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: var(--color-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transition: var(--transition-base);
}
.float-whatsapp:hover .wa-tooltip { opacity: 1; visibility: visible; }

@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); }
}

.float-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border: none;
    border-radius: 4px;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}
.float-scroll-top.visible { opacity: 1; visibility: visible; }
.float-scroll-top:hover { background-color: var(--color-primary); color: white; }

/* 14. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
    .section-padding { padding: 60px 0; }
    .hero-section { text-align: center; padding-top: calc(var(--navbar-height) + 3rem); }
    .hero-content { padding-right: 0 !important; }
    .hero-content .d-flex { justify-content: center; }
    .floating-badge { display: none; }
}

@media (max-width: 576px) {
    .h2-title { font-size: 2rem; }
    .btn-whatsapp.btn-lg {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1.1rem !important; 
    }
}