:root {
    --bg-main: #030712;
    --bg-light: #ffffff;
    --text-dark: #0f172a;
    --bg-card: #0b0f19;
    --bg-card-light: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-muted-light: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* GRADIENT TEXT */
.gradient-text {
    color: #38bdf8 !important; /* Celeste eléctrico brillante de máxima visibilidad */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* BADGE TAG */
.badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(8px);
    color: #a5b4fc;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* HEADER FLOTANTE TIPO CÁPSULA (GRIS TRANSPARENTE / EFECTO CRISTAL) */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.nav-container {
    max-width: 1160px;
    width: 100%;
    background: rgba(241, 245, 249, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.6);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #0f172a;
}

.btn-acceso-clientes {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    color: #0f172a !important;
}

.btn-acceso-clientes:hover {
    background: rgba(15, 23, 42, 0.12);
}

.btn-cotizar {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem !important;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.btn-cotizar:hover {
    transform: scale(1.03);
    background: #334155 !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 1.3rem;
    cursor: pointer;
}

/* HERO SECTION CON VIDEO DE FONDO CLARO Y LLENO DE COLOR */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #000;
    max-width: 100%;
    margin: 0;
    padding: 180px 20px 120px 20px;
    display: flex;
    justify-content: flex-start;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    /* Brillo más alto y contraste equilibrado para que el video se vea con mucha luz y color */
    filter: brightness(0.75) contrast(1.05);
}

/* Capa oscura general muy ligera y sutil (solo un toque para equilibrar) */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.2);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    padding-left: 15px;
}

/* SIN CAJAS: Texto flotante directo sobre el video con sombra profunda de alto contraste */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 750px;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 2px 5px rgba(0, 0, 0, 0.9);
    text-align: left;
}

.hero-content p {
    color: #f8fafc;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.btn-primary, .btn-secondary {
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: transform 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-hover); }

.btn-secondary { background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(8px); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); }
.btn-secondary:hover { background: rgba(11, 15, 25, 1); }

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding-top: 25px;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.hero-features div { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: #ffffff; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    text-align: left; 
}

.hero-features div i { 
    color: #818cf8; 
    display: block; 
    margin-bottom: 6px; 
    font-size: 1.1rem; 
}

.hero-features small { 
    color: #e2e8f0; 
    display: block; 
    font-weight: 400; 
    font-size: 0.75rem; 
    margin-top: 2px; 
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

/* SECCIÓN FLUJO AUTOMATIZADO MTS */
.flow-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 30px;
    text-align: center;
}

.flow-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    align-items: center;
    margin-top: 50px;
}

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    text-align: left;
    transition: border-color 0.3s;
}

.flow-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.flow-center-node {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, var(--bg-card) 80%);
    border: 2px solid rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    margin: 0 auto;
}

.flow-center-node span { font-weight: 800; font-size: 1.1rem; color: white; letter-spacing: 1px; }
.flow-center-node small { font-size: 0.5rem; color: var(--text-muted); }

/* SECCIÓN CASOS DE ÉXITO */
.cases-section { max-width: 1200px; margin: 120px auto; padding: 0 30px; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.section-light .case-card {
    background: var(--bg-light);
    border-color: var(--border-color-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.case-image-container {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
}

.case-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-thumb { transform: scale(1.06); }
.case-content { flex-grow: 1; }
.case-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.case-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; }
.section-light .case-card p { color: var(--text-muted-light); }
.case-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }

/* CATÁLOGO */
.catalog { max-width: 1200px; margin: 120px auto; padding: 0 30px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; }

/* SWITCH */
.pricing-switch-container { text-align: center; margin-bottom: 35px; }
.switch-toggle { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px; border-radius: 40px; gap: 6px; }
.switch-btn { background: transparent; border: none; color: var(--text-muted); padding: 12px 26px; border-radius: 30px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.switch-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.saas-badge { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); font-size: 0.65rem; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.switch-hint { margin-top: 15px; font-size: 0.85rem; color: var(--text-muted); }

/* FILTROS TABS */
.category-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 20px; border-radius: 30px; cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: 0.2s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }

/* GRID LAYOUT DE SOLUCIONES */
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: start; }
.column-group { background: rgba(11, 15, 25, 0.6); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 24px; padding: 30px; }
.section-light .column-group { background: rgba(255, 255, 255, 0.8); border-color: var(--border-color-light); }
.group-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.group-title small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.group-title.express { color: #f59e0b; }
.group-title.enterprise { color: #38bdf8; }

.cards-stack { display: flex; flex-direction: column; gap: 20px; }

/* CARDS */
.sol-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; transition: all 0.3s ease; }
.section-light .sol-card { background: #ffffff; border-color: var(--border-color-light); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.sol-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.sol-card-header { display: flex; gap: 16px; align-items: start; }
.icon-box { font-size: 1.4rem; color: #818cf8; background: rgba(99, 102, 241, 0.12); padding: 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border: 1px solid rgba(99, 102, 241, 0.2); }
.sol-card h3 { font-size: 1.15rem; margin-bottom: 6px; font-weight: 700; }
.sol-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.section-light .sol-card p { color: var(--text-muted-light); }

.price-container { margin: 18px 0; padding: 14px; background: var(--bg-main); border-radius: 10px; text-align: center; border: 1px solid var(--border-color); }
.section-light .price-container { background: #f8fafc; border-color: var(--border-color-light); }
.price-display { font-size: 1.4rem; font-weight: 800; }
.price-container small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

.features-list { list-style: none; margin-bottom: 22px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 10px; }
.features-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); line-height: 1.4; }
.section-light .features-list li { color: var(--text-muted-light); }
.features-list li i { color: var(--accent-green); margin-top: 2px; flex-shrink: 0; }

.btn-card { display: block; text-align: center; background: var(--primary); color: white; text-decoration: none; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn-card:hover { background: var(--primary-hover); transform: translateY(-1px); }

.custom-project-banner { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(168, 85, 247, 0.08); border: 1px dashed rgba(168, 85, 247, 0.4); color: #c084fc; padding: 14px; border-radius: 10px; text-decoration: none; font-weight: 700; margin-top: 10px; transition: background 0.2s; }
.custom-project-banner:hover { background: rgba(168, 85, 247, 0.15); }

/* COTIZADOR FORM */
.cotizador-section { max-width: 1150px; margin: 120px auto; padding: 0 30px; }
.cotizador-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.cotizador-header h2 { font-size: 2.4rem; margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; }
.cotizador-header p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }
.btn-wa-main { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-green); color: white; padding: 14px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); transition: transform 0.2s; }
.btn-wa-main:hover { transform: translateY(-2px); }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 20px; }
.opt-pill { background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-muted); padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; text-align: center; }
.opt-pill.active, .opt-pill:hover { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }

.form-control { width: 100%; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; color: white; resize: none; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--primary); }

.btn-submit-wa { width: 100%; background: var(--accent-green); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); transition: transform 0.2s; }
.btn-submit-wa:hover { transform: translateY(-2px); }

/* FOOTER */
.footer { border-top: 1px solid var(--border-color); padding: 60px 30px 40px; background: #020408; }

.footer-top-features {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-top-features div { font-size: 0.85rem; color: var(--text-main); display: flex; flex-direction: column; gap: 6px; }
.footer-top-features div i { color: var(--primary); font-size: 1.3rem; margin-bottom: 6px; }
.footer-top-features div strong { font-weight: 700; }
.footer-top-features div small { color: var(--text-muted); font-size: 0.75rem; }

.footer-bottom { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo-img { height: 40px; width: auto; object-fit: contain; display: block; }
.footer-text { max-width: 350px; line-height: 1.5; }
.footer-text p { color: var(--text-main); font-size: 0.85rem; margin-bottom: 4px; font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: var(--text-main); font-weight: 600; font-size: 0.9rem; }
.footer-contact span i { color: var(--primary); margin-right: 8px; }

.social-icons { display: flex; gap: 12px; }
.social-icons a { background: var(--bg-card); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.social-icons a:hover { background: var(--primary); border-color: var(--primary); }

/* ADAPTABILIDAD PARA PANTALLA DIVIDIDA Y MÓVILES */
@media(max-width: 1300px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-menu {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(241, 245, 249, 0.98);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(203, 213, 225, 0.8);
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        padding: 25px 20px;
        gap: 15px;
        display: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .nav-menu.active-menu {
        display: flex;
    }

    .nav-menu a {
        font-size: 0.95rem;
        color: #0f172a !important;
    }

    .nav-menu .btn-cotizar {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        width: 80% !important;
        max-width: 250px;
        background: #0f172a !important;
        color: #ffffff !important;
        padding: 10px 20px !important;
        border-radius: 30px;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    }
}

@media(max-width: 1024px) {
    .hero {
        padding: 150px 20px 80px;
        text-align: center;
        justify-content: center;
    }

    .hero-inner {
        justify-content: center;
        text-align: center;
        padding-left: 0;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1, 
    .hero-content p {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        text-align: center;
    }
    
    .hero-features div {
        text-align: center;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .cotizador-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-top-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}