/* =========================================
   VARIABLES & THEME SETUP
   ========================================= */
   :root {
    /* Color Palette - Red & White */
    --clr-primary: #E50914; /* Striking Red */
    --clr-primary-dark: #B20710;
    --clr-primary-light: #FF4B4B;
    
    --clr-white: #FFFFFF;
    --clr-light: #F8F9FA;
    --clr-gray-light: #E9ECEF;
    --clr-gray: #6C757D;
    --clr-dark: #121212;
    --clr-dark-secondary: #1E1E1E;
    
    --clr-success: #28A745;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(229, 9, 20, 0.2);
    --transition: all 0.3s ease;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;
}

/* =========================================
   RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-dark);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.text-red { color: var(--clr-primary); }
.text-white { color: var(--clr-white); }
.text-dark { color: var(--clr-dark); }
.text-gray { color: var(--clr-gray); }
.text-green { color: var(--clr-success); }
.bg-gray { background-color: var(--clr-light); }
.bg-dark { background-color: var(--clr-dark); }
.bg-red { background-color: var(--clr-primary); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--clr-primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--clr-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-white {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.btn-white:hover {
    background-color: var(--clr-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--clr-white);
    color: var(--clr-white);
}

.btn-outline-white:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Pulse Animation for anxiety trigger */
.btn-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* =========================================
   HEADER & MEGA MENU (MOBILE FIRST)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-dark);
}

.logo span {
    color: var(--clr-primary);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-dark);
    cursor: pointer;
    display: block; /* Default mobile */
}

/* Off-canvas Nav for Mobile */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--clr-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.nav.active {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Mega Menu Mobile Styles */
.mega-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 0 1rem;
    border-left: 2px solid var(--clr-gray-light);
    margin-top: 1rem;
}

.has-dropdown.active .mega-menu {
    display: flex;
}

.mega-menu h3 {
    font-size: 1rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.mega-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mega-menu a {
    color: var(--clr-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.mega-menu a:hover {
    color: var(--clr-primary);
}

.mega-menu a i {
    font-size: 1.1rem;
}

.mega-menu-highlight {
    background-color: var(--clr-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    color: var(--clr-white);
    margin-top: 1rem;
}

.mega-menu-highlight h4 {
    color: var(--clr-white);
    margin-bottom: 0.5rem;
}

.mega-menu-highlight p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.nav-actions {
    margin-top: auto;
}

.nav-actions .btn {
    width: 100%;
}

/* =========================================
   HERO SECTION (P - Problema)
   ========================================= */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    background: linear-gradient(135deg, #FFF9F9 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(229, 9, 20, 0.1);
    color: var(--clr-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--clr-primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(229, 9, 20, 0.15);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--clr-gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.urgency-text {
    font-size: 0.85rem;
    color: var(--clr-primary);
    font-weight: 600;
}

/* Visual Mockup in Hero */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    margin-left: auto;
}

.mockup-header {
    background-color: var(--clr-gray-light);
    padding: 0.8rem 1rem;
    display: flex;
    gap: 6px;
}

.mockup-header i {
    font-size: 0.7rem;
}

.mockup-body {
    padding: 2rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--clr-white);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.highlight-stat {
    border: 2px solid var(--clr-success);
    transform: scale(1.05);
    margin-top: 1rem;
}

.stat-arrow {
    text-align: center;
    color: var(--clr-gray);
    margin: 0.5rem 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    margin-top: 2rem;
    padding-top: 1rem;
    border-bottom: 2px solid var(--clr-gray-light);
}

.bar {
    flex: 1;
    background-color: var(--clr-primary-light);
    border-radius: 4px 4px 0 0;
    opacity: 0.5;
}

.bar-1 { height: 20%; }
.bar-2 { height: 35%; }
.bar-3 { height: 15%; }
.bar-4 { 
    height: 90%; 
    background-color: var(--clr-primary);
    opacity: 1;
    position: relative;
}

.bar-4::after {
    content: 'Cre Agency';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--clr-primary);
    white-space: nowrap;
}

.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.curve-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.curve-bottom .shape-fill {
    fill: var(--clr-light);
}

/* =========================================
   AMPLIFICATION (A - Dolor)
   ========================================= */
.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.pain-card {
    background: var(--clr-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pain-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(229, 9, 20, 0.1);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   SOLUTION (S - Historia)
   ========================================= */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--clr-gray-light) 0%, #D1D5DB 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--clr-white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--clr-primary);
    opacity: 0.1;
}

.founder-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--clr-white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.founder-badge strong {
    color: var(--clr-primary);
    font-size: 1.2rem;
}

.founder-badge span {
    font-size: 0.85rem;
    color: var(--clr-gray);
}

.benefit-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.benefit-list i {
    margin-top: 4px;
}

/* =========================================
   SERVICES (O - Oferta)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.glass-card-dark:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.glass-card-dark h3 {
    color: var(--clr-white);
}

.glass-card-dark p {
    color: #A0AAB2;
}

/* =========================================
   TRANSFORMATION (T - Testimonios)
   ========================================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--clr-gray-light);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    color: var(--clr-primary);
    opacity: 0.1;
    font-family: serif;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--clr-dark-secondary);
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--clr-success);
    font-weight: 600;
}

/* =========================================
   RESPONSE (R - CTA Urgencia)
   ========================================= */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.timer-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.time-box {
    background: var(--clr-white);
    color: var(--clr-dark);
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
}

.time-box span {
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.time-box small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--clr-gray);
}

.urgency-subtext {
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--clr-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--clr-gray-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-dark);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer a {
    color: var(--clr-gray);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--clr-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-gray);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--clr-gray-light);
    color: var(--clr-gray);
    font-size: 0.9rem;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-wa 2s infinite;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@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); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--clr-white);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--clr-white);
    color: var(--clr-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: var(--transition);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--clr-white);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 992px) {
    .section {
        padding: 7rem 0;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-cta-group {
        flex-direction: row;
        align-items: center;
    }

    .pain-grid, .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    /* Desktop Navigation & Mega Menu */
    .mobile-menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        overflow-y: visible;
        align-items: center;
        gap: 2rem;
    }

    .nav-list {
        flex-direction: row;
        margin-bottom: 0;
        align-items: center;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .nav-actions {
        margin-top: 0;
    }

    .nav-actions .btn {
        width: auto;
    }

    /* Desktop Mega Menu */
    .mega-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: 800px;
        background-color: var(--clr-white);
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius);
        padding: 0;
        border: 1px solid var(--clr-gray-light);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: none;
    }

    .has-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    /* Invisible hover bridge */
    .mega-menu::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
    }

    .mega-menu-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
    }

    .mega-menu-column {
        padding: 2rem;
        border-right: 1px solid var(--clr-gray-light);
    }

    .mega-menu-column:last-child {
        border-right: none;
    }

    .mega-menu-highlight {
        margin-top: 0;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        display: flex;
        align-items: center;
    }
}
