:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-navy: #000c1d;
    --text-muted: #64748b;
    --primary-pink: #ff007a;
    --primary-pink-hover: #e6006e;
    --accent-pink-glow: rgba(255, 0, 122, 0.2);
    --glass-border: rgba(0, 12, 29, 0.1);
    --font-main: 'Outfit', sans-serif;
    --section-padding: 120px 5%;
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: #ffffff !important;
}

body {
    background-color: #ffffff !important;
    color: var(--text-navy);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
/* Typography Refinement */
h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-navy) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-pink);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -10px var(--accent-pink-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-pink-hover);
    box-shadow: 0 15px 30px -10px var(--accent-pink-glow);
}

.btn-white {
    background: white;
    color: var(--primary-pink);
    border: none;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Navigation */
nav {
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.nav-links a { 
    color: #000000; 
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

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

.nav-btn {
    background: var(--primary-pink);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: var(--transition-base);
}

.nav-btn:hover {
    background: var(--primary-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-pink-glow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

/* Sections */
section {
    padding: var(--section-padding);
    scroll-margin-top: 100px;
}

/* Hero Section */
#hero {
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 12, 29, 0.8), rgba(0, 12, 29, 0.7)), url('images/hero-tech.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nav-links a { color: var(--text-navy); }

.btn-white {
    background: var(--text-navy);
    color: white;
    border: none;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
    background: var(--text-navy);
    color: white;
}

/* Removed Portals */

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

/* Transition Block */
.transition-block {
    text-align: center;
    background: #ffffff;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.05;
    color: var(--primary-pink);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.icon-1 { top: 10%; left: 10%; animation: float 6s ease-in-out infinite; }
.icon-2 { top: 60%; left: 80%; animation: float 8s ease-in-out infinite; }
.icon-3 { top: 40%; left: 15%; animation: float 7s ease-in-out infinite; }
.icon-4 { top: 20%; left: 85%; animation: float 9s ease-in-out infinite; }

.transition-block h2 {
    color: var(--bg-navy);
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.2;
}

.transition-block p {
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.capability-card {
    background: white;
    border: 1px solid #f1f5f9;
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.capability-card h3 {
    color: var(--bg-navy);
    margin-bottom: 1rem;
}

.capability-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 122, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 122, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-pink);
    font-size: 1.5rem;
}

/* Solutions Zig-Zag */
.solution-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 180px;
}

/* Alternate order for even blocks: Image Left, Info Right */
.solution-block:nth-of-type(even) .solution-info {
    order: 2;
    padding-left: 50px;
}

.solution-block:nth-of-type(even) .solution-image {
    order: 1;
}

/* Padding for odd blocks: Info Left, Image Right */
.solution-block:nth-of-type(odd) .solution-info {
    padding-right: 50px;
}

.solution-image {
    perspective: 1000px;
}

.solution-image img, .solution-image video {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: transform 0.6s ease;
}

.solution-image:hover img, .solution-image:hover video {
    transform: rotateY(-5deg) rotateX(5deg);
}

/* Differentiator */
.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.diff-card {
    padding: 60px;
    border-radius: 32px;
    transition: all 0.4s ease;
}

.diff-legacy {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--bg-navy);
}

.diff-legacy h3 { color: #ef4444 !important; }

.diff-ctc {
    background: var(--bg-light);
    border: 1px solid var(--primary-pink);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.diff-ctc h3 { color: var(--primary-pink) !important; }
.diff-ctc ul li { color: var(--text-navy); }

.industry-item {
    background: var(--bg-light);
    border: 1px solid #eee;
    border-radius: 20px;
    transition: var(--transition-base);
}

.industry-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* New Premium Footer Styles */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}
.footer-col h4 {
    color: var(--text-navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}
.footer-col ul li a:hover {
    color: var(--primary-pink);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p {
    font-size: 0.85rem;
}

/* Speed Test Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 12, 29, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: white;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-navy);
    font-size: 1.5rem;
    transition: var(--transition-base);
}
.close-modal:hover {
    color: var(--primary-pink);
}
.speedometer-container {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    position: relative;
}
.speedometer-svg {
    transform: rotate(-135deg);
}
.speedometer-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 12;
    stroke-linecap: round;
}
.speedometer-progress {
    fill: none;
    stroke: var(--primary-pink);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 439.8; /* 2 * PI * 70 */
    stroke-dashoffset: 439.8;
    transition: stroke-dashoffset 0.1s linear;
}
.speedometer-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.speed-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1;
}
.speed-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.test-results {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}
.result-box h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.result-box p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-navy);
}

/* Highlights Section */
#destacados {
    background: var(--bg-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 100px 5%;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.highlight-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: left;
}
.highlight-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 0, 122, 0.08);
}
.highlight-card h3 {
    font-size: 1.25rem;
    color: var(--text-navy);
    margin-bottom: 15px;
    font-weight: 600;
}
.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.highlight-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    display: block;
}

/* Infrastructure and Counters */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.counter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}
.counter-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-pink);
    transform: translateY(-5px);
}
.counter-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.counter-num span {
    color: var(--primary-pink);
}
.counter-box h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.counter-box p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Coverage Country Card */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.country-card {
    background: var(--bg-light);
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-base);
}
.country-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-pink);
    box-shadow: 0 15px 35px rgba(255, 0, 122, 0.05);
}
.country-flag {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.country-card h3 {
    font-size: 1.2rem;
    color: var(--text-navy);
    margin-bottom: 15px;
}
.country-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.country-btn {
    color: var(--primary-pink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.country-btn:hover {
    gap: 8px;
}

/* Map visual layout */
.map-layout-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}
.map-text-content h2 {
    font-size: 2.2rem;
    color: var(--text-navy);
    margin-bottom: 20px;
    font-weight: 700;
}
.map-features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
.map-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-navy);
}
.map-features-list li i {
    color: var(--primary-pink);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .infra-grid {
        grid-template-columns: 1fr;
    }
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-layout-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    background: var(--bg-white);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-out forwards;
}

.nav-links nav-scroll {
    /* Potential for future use */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--primary-pink);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px var(--accent-pink-glow);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: float-btn 3s ease-in-out infinite;
}

.whatsapp-float i {
    width: 20px;
    height: 20px;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

@keyframes float-btn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 5%;
    }

    /* Hero Mobile */
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content {
        padding: 0;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        margin: 0 !important;
        width: 100%;
    }

    /* Nav Mobile */
    .nav-links {
        display: none; /* Simplification for now, or could be a hamburger */
    }

    nav {
        justify-content: center;
    }

    /* Solutions Mobile */
    .solution-block {
        grid-template-columns: 1fr !important;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .solution-block:nth-of-type(even) .solution-info {
        order: 0;
        padding-left: 0;
    }

    .solution-block:nth-of-type(odd) .solution-info {
        padding-right: 0;
    }

    .solution-info {
        padding: 0 !important;
    }

    /* Differentiator Mobile */
    .diff-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .diff-card {
        padding: 40px 20px;
    }

    /* Capabilities Mobile */
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    /* Industry Mobile */
    #industrias .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .industry-item {
        padding: 20px 10px !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        width: 60px;
        height: 60px;
        justify-content: center;
        border-radius: 50%;
    }
    
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float i {
        width: 24px;
        height: 24px;
    }
}
