:root {
    --primary: #38bdf8;
    --dark: #0f172a;
    --glass: rgba(15, 23, 42, 0.45); 
    --border: rgba(255, 255, 255, 0.08);
}
/* TITULO */
.system-status {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.2);
    padding: 10px 25px;
    border: 1px solid var(--primary-cyan);
    border-radius: 50px;
    display: flex;             
    justify-content: center;  
    align-items: center;       
    margin: 0 auto;            
    text-align: center;
}


* { box-sizing: border-box; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', sans-serif; color: white; background: var(--dark); overflow-x: hidden; }
.fixed-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), url('hero.png');
    background-size: cover; background-position: center; z-index: -1;
}
/* Hero UI */
.hero-section {
    min-height: 80vh;    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;  
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
}

/* NAVBAR*/
.navbar {
    position: absolute;     
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 10;            
    background: transparent; 
}

/* CONTENEDOR 1*/
.nav-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    width: 100%;
}

/* BOTÓN */
.system-status {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.2); 
    padding: 12px 30px;
    border: 2px solid var(--primary-cyan);
    border-radius: 50px;
    margin-left: auto;
    margin-right: auto; 
    transform: translateX(-40px);
}

/* Fuerzado de pocisioón*/
.container {
    max-width: 1280px; 
    margin: 0 auto;    
    padding: 0 30px;   
    width: 100%;
}
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: all 0.5s ease;
    background: transparent;
}
.navbar {
    width: 100%;
    padding: 20px 0;   
    display: flex;
}

.brand-logo {
    height: 70px !important; 
    width: auto;
    filter: brightness(0) invert(1) !important; 
    display: block;
}

/* Hero Card */
.hero-section { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 50px 20px; }
.glass-hero-card {
    text-align: center; padding: 80px 40px; border-radius: 50px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    backdrop-filter: blur(15px); max-width: 1000px;
}
.hero-badge { background: var(--primary); color: #000; font-weight: 900; padding: 8px 20px; border-radius: 50px; display: inline-block; margin-bottom: 20px; font-size: 0.8rem; }
.main-title { font-family: 'Montserrat'; font-size: 3; font-weight: 550; line-height: 1; margin: 0; }
.main-title span { color: var(--primary); text-shadow: 0 0 40px rgba(56, 189, 248, 0.5); }

/* Flujograma Movimiento */
.flow-grid { display: flex; align-items: center; justify-content: center; max-width: 1100px; margin: 60px auto; gap: 0; }
.node { padding: 40px; flex: 1; text-align: center; transition: 0.5s; }
.glass-active { border: 2px solid var(--primary); box-shadow: 0 0 40px rgba(56, 189, 248, 0.3); transform: scale(1.1); }
.arrow-path { height: 2px; flex: 0.5; background: rgba(255,255,255,0.1); position: relative; }
.moving-glow { position: absolute; width: 30%; height: 100%; background: var(--primary); box-shadow: 0 0 15px var(--primary); animation: flow 2s infinite linear; }
@keyframes flow { from { left: -50%; } to { left: 110%; } }

/* Botón WhatsApp*/
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--primary); color: #000; padding: 18px 30px;
    border-radius: 50px; font-weight: 900; text-decoration: none;
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5); display: flex; align-items: center; gap: 10px;
    z-index: 1000; transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); background: white; }

/* Celular */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .flow-grid { flex-direction: column; gap: 40px; }
    .arrow-path { width: 2px; height: 50px; transform: rotate(90deg); }
}
/* Contenedor de los botones */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 35px;
}

/* Botón Principal  */
.btn-primary {
    background: var(--primary-cyan);
    color: #eae4e4  !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5);
    background: rgb(45, 124, 199);
}

/* Botón Secundario */
.btn-secondary {
    background: var(--primary-cyan);
    color: #eae4e4 !important; 
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
    background: rgb(45, 124, 199);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
/* Contenedor en Cuadrícula */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Los Cuadros  */
.stat-box {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(15, 23, 42, 0.45);
}

.stat-box:hover {
    transform: translateY(-15px);
    background: rgba(15, 23, 42, 0.65);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured {
    border: 2px solid var(--primary-cyan) !important;
    background: rgba(56, 189, 248, 0.05);
}

.icon-sphere {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-cyan);
    margin: 10px 0;
}

.stat-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: white;
}

.stat-detail {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta efec*/
.p-card.glass {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 35px 20px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.p-card.glass:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
}

/* BOTONES REDONDEADOS */
.btn-round {
    margin-top: 20px;
    padding: 12px 25px;
    border-radius: 50px; 
    background: transparent;
    border: 1px solid #38bdf8;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.p-card.glass:hover .btn-round {
    background: #38bdf8;
    color: #000;
}

/* MODAL  */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-3d-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 50px;
    box-shadow: 18px 18px 50px rgba(0,0,0,0.1), -15px -15px 40px rgba(255,255,255,1);
    color: #0f172a;
    position: relative;
    transform: scale(0.5);      
    transform-origin: center;  
}
@media (max-width: 600px) {
    .modal-3d-card {
        transform: scale(1);
    }
}

.section-label {
    font-size: 2.8rem !important; 
    letter-spacing: 2px;
}

/* Modal: Título de la Ciudad */
.modal-3d-card h2 {
    font-size: 2.0rem !important; 
    line-height: 1.1;
}

/* Modal: Rango de Presupuesto */
.budget-value {
    font-size: 2.5rem !important;
    letter-spacing: -1px;
}

/* Modal: Detalles y Notas */
.tech-detail-text {
    font-size: 1.15rem !important; /* Lectura más cómoda para el contratista */
    line-height: 1.6;
}

.note-text {
    font-size: 1.1rem !important; /* Nota operativa resaltada */
}

.close-modal-btn {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 2.5rem;
    background: none; border: none;
    color: #94a3b8; cursor: pointer;
}

/* RESPONSIVO: De 4 a 1 en celular */
@media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
.section-label {
    text-align: center;       /* Centra el texto horizontalmente */
    display: block;           /* Asegura que ocupe todo el ancho disponible */
    margin: 40px auto;        /* Centra el contenedor y da espacio arriba/abajo */
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.services-accordion {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}

.service-icon { font-size: 1.8rem; margin-right: 20px; }
.service-title { font-size: 1.2rem; font-weight: 700; flex-grow: 1; font-family: 'Montserrat'; }
.arrow { font-size: 0.8rem; transition: transform 0.3s; color: var(--primary-cyan); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0 30px;
}

.accordion-content p { margin: 20px 0; line-height: 1.6; color: rgba(255,255,255,0.8); }

.benefit-list {
    list-style: none;
    padding-bottom: 30px;
}f

.benefit-list li::before {
    content: "✓";
    color: var(--primary-cyan);
    margin-right: 10px;
    font-weight: bold;
}

.benefit-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Estado activo */
.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.accordion-item.active .arrow { transform: rotate(180deg); }
.accordion-item.active { border-color: var(--primary-cyan); background: rgba(56, 189, 248, 0.05); }
/* Contenedor de los iconos centrados */
.step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: 60px; 
}

/* Filtro para el logo blanco*/
.logo-flow-white {
    height: 125px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #38bdf8;
    margin-bottom: 5px;
}

.node h4 {
    margin: 5px 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.node p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Resalte del nodo central */
.glass-active {
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}
.value-deep-dive {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.container-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
    gap: 25px;
    width: 100%;
    justify-content: center;
}

.value-card-compact {
    padding: 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s ease;
}

.value-card-compact:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.6);
    border-color: #38bdf8;
}

.v-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.v-header h3 {
    font-size: 1.2rem;
    color: #38bdf8; 
    margin: 0;
    font-weight: 800;
}

.v-icon-glow {
    background: rgba(56, 189, 248, 0.1);
    padding: 10px;
    border-radius: 12px;
    display: flex;
}

.v-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.v-specs {
    list-style: none;
    padding: 0;
}

.v-specs li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-specs li::before {
    content: "→";
    color: #38bdf8;
    font-weight: bold;
}
/* --- ESTILO DEL HEADER UNIFICADO --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9); 
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px !important;
    filter: brightness(0) invert(1); 
}

/* --- MENÚ Hz */
.nav-list {
    display: flex !important;
    list-style: none !important;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #38bdf8 !important; 
}

/* --- BOTÓN CTA --- */
.btn-outline {
    border: 2px solid #38bdf8;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* --- Vr MÓVIL --- */
@media (max-width: 768px) {
    .main-nav, .nav-cta {
        display: none !important; /* Esconde el menú de texto para evitar el amontonamiento */
    }
    .nav-wrapper {
        justify-content: center !important;
    }
}
/* --- HEADER  --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent; 
    transition: all 0.4s ease-in-out;
}

/* scroll */
.header.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
}

.hero-section {
    padding-top: 120px !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* MODAL CEL*/
.modal-3d-card {
    background: #ffffff;
    padding: 30px; 
    border-radius: 30px;
    width: 90%; 
    max-width: 500px;
    max-height: 85vh; 
    overflow-y: auto; 
    position: relative;
    color: #0f172a;
    transform: scale(1); 
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    color: #0f172a;
    background: #f1f5f9; 
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.budget-value {
    font-size: 1.8rem !important;
    background: #0f172a;
    color: #38bdf8;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }
    .p-card.glass {
        padding: 20px 10px !important;
    }
    .loc-tag {
        font-size: 0.7rem !important;
    }
    .btn-round {
        font-size: 0.6rem !important;
        padding: 8px 12px !important;
    }
}
/* FOOTER PRINCIPAL */
.footer-main {
    background: #0b1120;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

.logo-f {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 350px;
}

/* RESPONSIVO PARA EL FOOTER */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .social-links {
        justify-content: center;
    }
}

.footer-main {
    background: #000000 !important; 
    padding: 100px 0 40px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Poppins', sans-serif; 
}

.footer-top {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1.2fr !important; 
    gap: 80px !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía de los Títulos */
.footer-links h4, .footer-contact h4 {
    color: #38bdf8 !important; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px !important;
    text-transform: none; 
}


.footer-brand p, .footer-links a, .footer-contact p {
    color: #ffffff !important; 
    font-size: 0.95rem;
    line-height: 1.8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8 !important;
}

/* Iconos de Contacto */
.footer-contact i {
    color: #38bdf8 !important;
    font-size: 1.1rem;
    width: 25px;
}

/* Redes Sociales */
.social-links a {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    margin-right: 20px;
    transition: 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #38bdf8 !important;
}

/* Barra inferior de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    /* 1. Proyectos Táctiles y Pequeños */
    .project-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
        padding: 20px 10px !important;
        position: relative !important;
        z-index: 20 !important; 
        pointer-events: auto !important; 
    }

    .p-card.glass {
        padding: 20px 10px !important;
        border-radius: 15px !important;
        min-height: 150px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        cursor: pointer !important;
        pointer-events: all !important;
        touch-action: manipulation !important;
    }

    .p-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    .btn-round {
        font-size: 0.7rem !important;
        padding: 8px 12px !important;
        pointer-events: none !important; 
    }

    /*  Menú Hamburguesa  */
    .nav-list {
        display: none !important;
    }
    .menu-toggle {
        display: block !important; 
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .footer-main {
        background: #000000 !important;
        padding: 50px 0 20px 0 !important;
    }
    .footer-top {
        grid-template-columns: 1fr !important; 
        text-align: center !important;
        gap: 40px !important;
    }
    .footer-brand, .footer-links, .footer-contact {
        align-items: center !important;
    }
    .footer-contact p {
        justify-content: center !important; 
        width: 100%;
        font-size: 0.88rem !important;
    }
    .social-links {
        justify-content: center !important;
        margin-top: 20px !important;
    }
}
@media (max-width: 768px) {
    /* boton hamburguesa */
    .menu-toggle {
        display: block !important;
        color: #38bdf8 !important; 
        font-size: 1.5rem !important; 
        cursor: pointer;
        z-index: 2100;
        transition: transform 0.3s ease;
        padding: 5px;
    }

    .menu-toggle:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5)); 
    }

    .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
    }
}
