:root {
    --primary: #FF8C00;
    --highlight: #00f2ff;
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    width: 100% !important;
}



/* Global Floating Assets (GSAP) */
.float-asset {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.4));
    -webkit-mask-image: radial-gradient(circle, black 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(circle, black 40%, rgba(0, 0, 0, 0) 70%);
    display: block;
}

@keyframes float-idle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(15px) rotate(-5deg); }
}

@media (max-width: 1024px) {
    .float-asset { 
        width: 60vw !important; 
        opacity: 0.3 !important; 
        right: -20vw !important; 
        top: 20% !important;
    }
}

#float-laptop { display: none; }
#float-globe { 
    width: 550px; 
    top: 50%; 
    right: 20px; 
    transform: translateY(-50%);
    opacity: 0.6 !important; 
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100% !important;
    z-index: 1000;
    padding: 2.2rem 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.3); /* Initial subtle glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,140,0,0.2);
}

.logo-container { width: 180px; }
#t1mx-logo { width: 100%; height: auto; display: block; }

nav { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 3rem; }
.nav-links a { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 600; 
    opacity: 0.8; 
    transition: 0.3s; 
    font-size: 1.1rem; 
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Hero Swiper */
.hero-section { height: 100vh; min-height: 600px; width: 100% !important; overflow: hidden; position: relative; }
.hero-swiper { height: 100%; width: 100% !important; }

.swiper-slide { display: flex; align-items: center; width: 100% !important; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.4); z-index: -1; }

.slide-inner { position: relative; z-index: 5; width: 100% !important; padding: 140px 0 60px; }
#inicio .container { height: 100%; display: flex; align-items: center; }

.content-box h1 { 
    font-size: clamp(2.5rem, 8vw, 5.5rem); 
    line-height: 1.1; 
    font-weight: 800; 
    margin-bottom: 2rem; 
}
.content-box h1 span { 
    color: var(--primary); 
    font-size: 0.5em; 
    display: block;
    margin-top: 0.2rem;
    letter-spacing: 1px;
    font-weight: 600;
}
.content-box p { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #bbb; max-width: 650px; margin-bottom: 3rem; }

/* Services */
.services { 
    padding: 3rem 0 8rem 0; 
    background: linear-gradient(rgba(28, 40, 58, 0.95), rgba(28, 40, 58, 0.95)), url('../assets/curves-pattern.png') center/cover no-repeat fixed;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.section-header { text-align: center; margin-bottom: 6rem; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1.5rem; }
.subtitle { color: #888; font-size: 1.2rem; }
.highlight { color: var(--highlight); }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}

@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.12);
    padding: 2.5rem 1.5rem; /* Slimmer for 4-column layout */
    border-radius: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: 100%;
    position: relative;
    z-index: 5;
}
.service-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-10px); 
    background: rgba(255,140,0,0.08);
    box-shadow: 0 30px 60px rgba(255,140,0,0.15);
}
.icon-box { font-size: 3rem; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.card-list { list-style: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; color: #888; }
.card-list li { margin-bottom: 0.5rem; }
.card-list li::before { content: '→'; margin-right: 10px; color: var(--primary); }

/* Regional Presence (Local SEO) */
.regional-presence {
    padding: 8rem 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(27, 39, 57, 0.3));
    border-top: 1px solid rgba(255,255,255,0.05);
}
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.location-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
}
.location-card h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.location-card p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}
.location-card:hover {
    background: rgba(255, 140, 0, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

@media (max-width: 992px) {
    .location-grid { grid-template-columns: 1fr; }
}

/* Tech Stack Section */
.tech-stack-section { 
    padding: 3rem 0; 
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.8)), url('../assets/office-bg.png') center/cover no-repeat fixed;
    perspective: 1500px;
    overflow: hidden;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    position: relative;
    transform-style: preserve-3d;
}

.tech-item {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floating-cloud 8s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.05); /* Premium glass pod */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tech-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: none; /* No more gray icons! */
    opacity: 0.9;
    transition: 0.4s;
}

.tech-item:hover {
    transform: translateZ(150px) scale(1.1) !important;
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.2);
}

.tech-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.depth-1 { transform: translateZ(50px); animation-delay: 0s; }
.depth-2 { transform: translateZ(-50px); animation-delay: -2s; opacity: 0.7; }
.depth-3 { transform: translateZ(100px); animation-delay: -4s; }

@keyframes floating-cloud {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(5deg); }
}

.tech-item:hover {
    transform: translateZ(150px) scale(1.2) !important;
}

/* Process Section */
/* Methodology Dark-Theme Overhaul (Requested Color) */
.process-section.light-theme {
    background: #1b2739;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}
.process-section.light-theme .section-header h2 { color: #fff; }
.process-section.light-theme .highlight { color: var(--primary); text-shadow: 0 0 15px rgba(255,140,0,0.4); }
.process-section.light-theme .subtitle { color: #ccc; }
.process-section.light-theme .step h4 { color: #fff; font-weight: 800; }
.process-section.light-theme .step p { color: #aaa; }
.process-section.light-theme .step-num { 
    color: rgba(255,140,0,0.1); 
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
}

/* Sound Waves Styles (Thicker Lines) */
.wave-bg-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.sound-waves {
    width: 100%; height: 100%;
    opacity: 0.6;
}
.wave-path {
    fill: none;
    stroke-width: 4;
    stroke: var(--primary);
    opacity: 0.4;
}
.path-2 { stroke: #ffffff; opacity: 0.15; }
.path-3 { stroke: var(--primary); opacity: 0.1; }

.process-section.light-theme .container {
    position: relative;
    z-index: 2;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}
.step { position: relative; padding-top: 3rem; }
.step-num { 
    font-size: 4rem; 
    font-weight: 900; 
    opacity: 0.05; 
    position: absolute; 
    top: 0; 
    left: 0; 
    color: var(--primary); 
}
.step h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }

/* Support/Infrastructure */
.support-section { 
    padding: 6rem 0; 
    background: linear-gradient(rgba(10,10,10,0.85), rgba(10,10,10,0.85)), url('../assets/vector-bg.png') center/cover no-repeat fixed;
    border-top: 1px solid rgba(255,140,0,0.1);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.stat-item h3 { font-size: 3rem; font-weight: 900; color: var(--primary); }
.support-visual { 
    height: 320px; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/servidores_t1mx.png') center/cover no-repeat;
    border-radius: 2rem; 
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* CTA Section */
.cta-section { 
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2%;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.8)), url('../assets/cta_final_clean.png') center/cover no-repeat fixed;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-box { 
    background: transparent;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 800px;
}
.cta-box h2 { 
    font-size: clamp(2rem, 5vw, 4rem); 
    margin-bottom: 0.5rem; 
    line-height: 1.1;
}
.cta-box p {
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 2.5rem;
}
.cta-actions { display: flex; gap: 1.5rem; justify-content: flex-start; margin-top: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; padding: 1.25rem 3rem; border-radius: 100px; text-decoration: none; font-weight: 800; display: inline-block; transition: 0.3s; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(255,140,0,0.3); }
.btn-secondary { border: 2px solid #fff; color: #fff; padding: 1.15rem 3rem; border-radius: 100px; text-decoration: none; font-weight: 800; transition: 0.3s; }
.btn-secondary:hover { background: #fff; color: #000; }
.btn-cta-small { 
    background: #1b2739; 
    color: #ffffff !important; 
    padding: 0.7rem 1.5rem; 
    border-radius: 50px; 
    text-decoration: none !important; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-cta-small:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,140,0,0.3);
    color: #fff !important;
}
.btn-cta-small::after { display: none !important; }

/* Footer */
.footer { padding: 6rem 0 3rem; background: #050505; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-logo { width: 140px; margin-bottom: 2rem; }
.footer-links h4 { margin-bottom: 2rem; color: var(--primary); font-size: 1.4rem; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-contact svg { color: var(--primary); flex-shrink: 0; }
.footer-links a { color: #fff; text-decoration: none; transition: 0.3s; font-weight: 400; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; text-align: center; color: #444; font-size: 0.9rem; }

/* RE-RESPONSIVE FIXES */
@media (max-width: 992px) {
    .split, .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 2rem; }
    .nav-links { display: none; }
    .cta-box h2 { font-size: 2.2rem; }
    .stat-grid { justify-items: center; }
}

@media (max-width: 600px) {
    .services, .process-section, .support-section, .cta-section { padding: 5rem 0; }
    .cta-box { padding: 4rem 1.5rem; }
    .cta-actions { flex-direction: column; }
    header { padding: 1.5rem 0; }
    .logo-container { width: 140px; }
}

/* Partners Bar */
.partners-bar {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.partners-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.partners-bar p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: #666;
    margin: 0;
}
.partners-grid {
    display: flex;
    gap: 3rem;
}
.partners-grid span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #444;
    transition: 0.3s;
    cursor: default;
}
.partners-grid span:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255,140,0,0.3);
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.float-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
}
.wa-tooltip {
    position: absolute;
    right: 75px;
    background: #fff;
    color: #111;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.float-whatsapp:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Mobile Adjustments for SEO sections */
@media (max-width: 768px) {
    .partners-bar .container { flex-direction: column; gap: 1.5rem; text-align: center; }
    .partners-grid { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .float-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* Pain Points Section */
.pain-points-section {
    padding: 8rem 0;
    background: rgba(10, 10, 10, 0.2);
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.pain-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: 0.4s;
}
.pain-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateY(-10px);
}
.pain-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; }
.pain-item h4 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }
.pain-item p { color: #888; font-size: 1rem; line-height: 1.6; }

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-question h4 { margin: 0; font-size: 1.1rem; color: #eee; }
.faq-toggle { font-size: 1.5rem; color: var(--primary); transition: 0.3s; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(0,0,0,0.2);
}
.faq-answer p { padding: 0 2rem 1.5rem; color: #999; margin: 0; line-height: 1.7; }

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }

@media (max-width: 768px) {
    .pain-grid { grid-template-columns: 1fr; }

    /* Mobile Navigation Styles */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(10, 15, 25, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        gap: 2rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.nav-active li {
        animation: navLinkFade 0.5s ease forwards 0.2s;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1000;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* Hamburger Animation */
    .menu-toggle.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
        background: var(--primary);
    }
    .menu-toggle.toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .menu-toggle.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
        background: var(--primary);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
