/* =========================================
   VARIABLES
========================================= */

:root {
    --primary-dark: #0F2537;
    --accent-red: #FF0000;
    --accent-red-hover: #E60000;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --text-gray: #4A5568;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1EBE57;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
}


/* =========================================
   HEADER FIJO CON LOGO
========================================= */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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


/* =========================================
   NAV
========================================= */

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-red);
}


/* =========================================
   BOTÓN HEADER WHATSAPP
========================================= */

.btn-header-whatsapp {
    background: var(--whatsapp-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-header-whatsapp:hover {
    transform: translateY(-2px);
    background-color: var(--whatsapp-green-hover);
}


/* =========================================
   BOTÓN FLOTANTE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-green-hover);
}

.whatsapp-float img {
    width: 40px;
    height: auto;
}


/* =========================================
   HERO 3D PARALLAX
========================================= */

.hero-3d {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(
        circle at center,
        #1a3a54 0%,
        #0F2537 100%
    );
    margin-top: 75px;
    padding: 0;
}

.hero-content-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}


/* =========================================
   BADGE EXPERIENCIA
========================================= */

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid var(--accent-red);
    padding: 6px 16px;
    border-radius: 20px;
    color: #FF9999;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}


/* =========================================
   HERO TITULO
========================================= */

.hero-content-inner h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content-inner h1 span {
    color: var(--accent-red);
}

.hero-content-inner p {
    font-size: 18px;
    color: #CBD5E1;
    margin-bottom: 35px;
}


/* =========================================
   HERO BOTONES
========================================= */

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
    background-color: var(--accent-red-hover);
}

.btn-secondary-corporate {
    background: var(--primary-dark);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 37, 55, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary-corporate:hover {
    background: #1a3a54;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}


/* =========================================
   CAPAS PARALLAX DINÁMICAS
========================================= */

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-element {
    position: absolute;
    background: rgba(15, 37, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: monospace;
    font-size: 13px;
    color: #FF9999;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#el-1 { top: 22%; left: 10%; }
#el-2 { top: 72%; left: 14%; color: #60A5FA; }
#el-3 { top: 25%; right: 12%; }
#el-4 { top: 68%; right: 10%; color: #34D399; }


/* =========================================
   RESTO DE SECCIONES
========================================= */

section:not(.hero-3d) {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}


/* =========================================
   SAAS MODULES GRID
========================================= */

.grid-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.module-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-dark);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(15, 37, 55, 0.1);
}

.module-card.active {
    border-top-color: var(--accent-red);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
}

.badge.live {
    background: #DEF7EC;
    color: #03543F;
}

.badge.upcoming {
    background: #FEF08A;
    color: #713F12;
}

.module-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.module-card p {
    font-size: 14px;
    color: var(--text-gray);
}


/* =========================================
   AI & SERVICES SECTION
========================================= */

.ai-banner {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    border-left: 6px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.ai-banner:hover {
    transform: scale(1.01);
}

.ai-banner h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.price-tag {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
    margin: 15px 0;
}


/* =========================================
   FAQ
========================================= */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: border-left 0.3s ease;
    border-left: 4px solid var(--primary-dark);
}

.faq-item:hover {
    border-left-color: var(--accent-red);
}

.faq-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-gray);
}


/* =========================================
   FOOTER
========================================= */

footer {
    display: block;
    width: 100%;
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 50px 40px;
    margin-top: 60px;
    font-size: 14px;
    clear: both;
}

.footer-logo {
    height: 105px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}


/* =========================================
   ANIMACIÓN MOBILE
========================================= */

@keyframes floatMobile {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        position: relative;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        font-size: 13px;
    }

    .hero-3d {
        margin-top: 0;
        height: auto;
        min-height: 100vh;
        padding: 50px 0;
    }

    .experience-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero-content-inner h1 {
        font-size: 34px;
    }

    .hero-content-inner p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .floating-element {
        font-size: 11px;
        padding: 10px 14px;
        transition: none !important;
        animation: floatMobile 4s ease-in-out infinite;
    }

    #el-1 { top: 10%; left: 2%; animation-delay: 0s; }
    #el-2 { top: 85%; left: 2%; animation-delay: 1s; }
    #el-3 { top: 12%; right: 2%; animation-delay: 2s; }
    #el-4 { top: 80%; right: 2%; animation-delay: 1.5s; }

    section:not(.hero-3d) {
        padding: 50px 20px;
    }

    .ai-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .services-split {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .service-box {
        text-align: center;
    }

    .service-box a {
        width: 100%;
    }

}


/* =========================================
   MOBILE PEQUEÑO
========================================= */

@media (max-width: 480px) {

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

}
