/* ==========================================================================
   1. GLOBAL ARCHITECTURE & DESIGN TOKENS
   ========================================================================== */
:root {
    --bg-dark: #070b14;
    --bg-card: rgba(15, 23, 42, 0.7);
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.35);
    --secondary: #7f00ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   2. STICKY GLASSMORPHISM NAVBAR HEADER
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000; /* Stays above carousel layer contents */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Smooth semantic alignment layout spacing */
}

.logo-img {
    height: 100px; /* Lock height coordinates to protect your sticky navbar layout */
    width: auto;  /* Auto calculates responsive aspect ratio parameters cleanly */
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow)); /* Preserves modern neon glow look */
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   3. HIGH-PERFORMANCE JAVASCRIPT CAROUSEL (FIXED OVERFLOW)
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 550px;
    overflow: hidden; /* Encapsulates the moving slider tracks */
    z-index: 10;
}

.carousel-slides {
    display: flex;
    width: 100%; /* FIXED: Keeps structural container locked to screen sizes */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%; /* FIXED: Maps precisely to 100% viewport spacing scale */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 12%;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    transform: translateY(25px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .slide-content {
    transform: translateY(0);
}

.badge-promo {
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.slide h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* Floating Navigation Arrow System */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.carousel-arrow svg {
    width: 22px;
    height: 22px;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: #020617;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-arrow.prev { left: 30px; }
.carousel-arrow.next { right: 30px; }

/* Carousel Pagination Indicator Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    width: 30px;
    border-radius: 10px;
}

/* ==========================================================================
   4. INTERACTIVE PRICING ESTIMATOR WIDGET
   ========================================================================== */
.tool-section {
    padding: 40px 6% 20px;
    margin-top: -60px;
    position: relative;
    z-index: 30;
}

.calculator-widget {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    max-width: 550px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.calculator-widget h3 {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: center;
}

.range-container {
    margin: 20px 0;
}

#speedSlider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.calc-output {
    margin-top: 20px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

#calcPrice {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   5. ACTION SYSTEM BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-nav {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #00b8fe 100%);
    color: #020617;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--text-muted);
}

.btn-nav {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 8px 22px;
}

.btn-nav:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* ==========================================================================
   6. MAIN SECTIONS CONTENT GRID UNIVERSAL LAYOUTS
   ========================================================================== */
section {
    padding: 90px 6%;
}

.sub-title {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

section h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 45px;
    text-align: center;
}

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

/* Card Foundations */
.card, .price-card, .team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px 25px;
    border-radius: 20px;
    transition: var(--transition);
}

.card:hover, .team-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-glow);
    box-shadow: 0 12px 25px rgba(0, 242, 254, 0.08);
}

/* About Us Custom Layout Blocks */
.about-container {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-text-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    font-size: 16px;
    color: var(--text-muted);
}

.card-icon-wrapper {
    background: rgba(255,255,255,0.02);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.card-icon {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

/* Pricing Highlight Grid Modifications */
.price-card.popular {
    border-color: var(--secondary);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(127, 0, 255, 0.04) 100%);
    position: relative;
}

.price-card .badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.price {
    font-size: 40px;
    font-weight: 800;
    margin: 10px 0;
}

.price span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.speed-indicator {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 25px;
}

.features-list {
list-style: none;
margin-bottom: 30px;
}

.features-list li {
margin-bottom: 12px;
font-size: 14px;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 8px;
}

.features-list li::before {
content: "✓";
color: var(--primary);
font-weight: bold;
}
.price-card .btn-primary, .price-card .btn-secondary {
width: 100%;
text-align: center;}

/* Management Profiles Team Layout Blocks */
.team {background: rgba(255,255,255,0.01);}
.team-card {text-align: center;}
.avatar-glow {width: 70px;
height: 70px;
border-radius: 50%;
background: rgba(127, 0, 255, 0.1);
border: 1px solid rgba(127, 0, 255, 0.3);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;}.team-icon {width: 30px;height: 30px;color: var(--primary);}.team-card h3 {font-size: 18px;margin-bottom: 4px;}.role {font-size: 13px;color: var(--primary);font-weight: 600;}
/* ==========================================================================7. ADVANCED LEAD FORM & FOOTER SYSTEM========================================================================== */
.footer {border-top: 1px solid var(--border);background: #04070d;padding: 70px 6% 30px;}
.footer-container {max-width: 650px;margin: 0 auto;text-align: center;}
.contact-links-grid {display: flex;flex-wrap: wrap;justify-content: center;gap: 15px;margin: 30px 0;}
.contact-pill {background: rgba(255,255,255,0.03);border: 1px solid var(--border);padding: 10px 20px;border-radius: 30px;color: var(--text-main);text-decoration: none;font-size: 14px;transition: var(--transition);}.contact-pill:hover {border-color: var(--primary);background: rgba(0, 242, 254, 0.05);}
.contact-pill.whatsapp {border-color: rgba(37, 211, 102, 0.4);}.contact-pill.whatsapp:hover {background: rgba(37, 211, 102, 0.1);border-color: #25d366;}.contact-form {display: flex;flex-direction: column;gap: 15px;margin-top: 30px;}.contact-form input, .contact-form textarea {background: var(--bg-card);border: 1px solid var(--border);padding: 15px 20px;border-radius: 12px;color: #fff;font-size: 14px;outline: none;transition: var(--transition);width: 100%;}.contact-form input:focus, .contact-form textarea:focus {border-color: var(--primary);}.divider {height: 1px;background: var(--border);margin: 40px 0 20px;}.copy {font-size: 13px;color: var(--text-muted);}
/* ==========================================================================8. FLUID RESPONSIVE MEDIA BREAKPOINTS========================================================================== */
/* @media (max-width: 992px) {.navbar { padding: 15px 5%; }.nav-links { display: none; }  */
/* Standard industry approach for mobile optimization layout matrices */
.carousel-container { height: 65vh; }.carousel-arrow { width: 44px; height: 44px; }.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }}@media (max-width: 576px) {section { padding: 60px 4%; }.carousel-container { height: 70vh; }
.tool-section { margin-top: -30px; }.contact-links-grid { flex-direction: column; align-items: stretch; }.carousel-arrow { display: none; } 
/* Disables side buttons for mobile thumb gesture spaces */}

/* ==========================================================================
   MOBILE HAMBURGER DESIGN SYSTEM
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive Override Breakdown Matrix */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Shows hamburger menu button on target screen sizes */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Keeps navigation drawer safely hidden offscreen */
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1005;
    }

    /* Active Responsive State Drawer Trigger */
    .nav-links.open {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Hamburger Animation Transitions */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary);
    }
}

/* Fluid Responsive Breakpoint Adjustments */
@media (max-width: 576px) {
    .logo-img {
        height: 60px; /* Scales down logo sizes for tighter smartphone screen displays */
    }
}

/* ==========================================================================
   KINETIC SCROLL TO TOP UI COMPONENT
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500; /* Layers safely on top of form headers and drawer overlays */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Elegant entry fade parameters */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Hover Feedback Loops */
.scroll-to-top:hover {
    background: var(--primary);
    color: #020617;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

/* Visibility State Modifier class */
.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Thumb Ergonomics Adjustment for Mobile Screens */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}
