/* ============================================================
   SISTEMAS 4S - ESTILOS GLOBALES & TEMA OSCURO
   ============================================================ */

/* 1. Reset y Fondo General Oscuro */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: #020617;
}

body {
    background-color: #020617 !important; /* FONDO OSCURO OBLIGATORIO */
    color: #f1f5f9 !important;            /* TEXTO CLARO */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   TOPBAR SUPERIOR
   ============================================================ */
.topbar {
    background-color: #01040f;
    border-bottom: 1px solid #1e293b;
    padding: 7px 20px;
    font-size: 13px;
    color: #94a3b8;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bh-tag {
    color: #38bdf8;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-right .social {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.topbar-right .social:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

.topbar-right .social-wa:hover {
    color: #22c55e;
}

/* ============================================================
   HEADER Y NAVBAR
   ============================================================ */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e293b;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

/* ============================================================
   MENÚ DESKTOP (TEXTO BLANCO Y DESPLEGABLES)
   ============================================================ */
.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ffffff !important; /* TEXTO DEL MENÚ EN BLANCO */
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link i {
    color: #38bdf8;
    font-size: 13px;
}

.nav-link:hover {
    color: #38bdf8 !important;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 280px !important;
    background: #0b1120 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8) !important;
    padding: 10px !important;
    z-index: 9999 !important;
    text-align: left;
}

.dropdown:hover .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background-color: #1e293b !important;
}

.dropdown-item i {
    color: #38bdf8 !important;
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
}

.dropdown-item strong {
    display: block !important;
    font-size: 13px !important;
    color: #ffffff !important;
}

.dropdown-item span {
    display: block !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
}

/* Botón Header WhatsApp */
.btn-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   SECCIÓN HERO (OSCURA CON EFECTOS DE RED Y LUZ)
   ============================================================ */
.hero {
    position: relative;
    padding: 70px 20px 60px;
    background: radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.12), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.12), transparent 50%),
                #020617;
    border-bottom: 1px solid #1e293b;
    overflow: hidden;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left h1 {
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1.5px solid #334155;
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8 !important;
}

.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #cbd5e1;
}

.hero-meta span i {
    color: #38bdf8;
    margin-right: 5px;
}

/* Tarjetas derechas del Hero */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-card, .metrics-card {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.status-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: #94a3b8;
}

.status-card li {
    color: #cbd5e1;
}

.metrics-card h4 {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.metric {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #38bdf8;
}

.metric-label {
    font-size: 11px;
    color: #64748b;
}

/* ============================================================
   BLOQUES Y VERSIONES
   ============================================================ */
.blocks {
    padding: 70px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

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

.block {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.block:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

.block h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.block p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.block-cta {
    color: #38bdf8 !important;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.block-cta:hover {
    color: #67e8f9 !important;
}

/* ============================================================
   POR QUÉ ELEGIRNOS (WHY)
   ============================================================ */
.why {
    background: #01040f;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 70px 20px;
}

.why h2 {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 45px;
}

.why-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-item {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
}

.why-item i {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 14px;
    display: block;
}

.why-item h4 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ============================================================
   TECNOLOGÍAS
   ============================================================ */
.tech {
    padding: 60px 20px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.tech h2 {
    font-size: 20px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-grid span {
    background: #0b1120;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
    background-color: #01040f;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    padding: 60px 20px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-legal {
    font-size: 12px;
    color: #64748b;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-contact {
    list-style: none;
    font-size: 13.5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact i {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    display: inline-block;
    margin-right: 6px;
}

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */
@media (max-width: 992px) {
    .menu, .header-cta {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-sub {
        margin: 0 auto 24px;
    }
    .hero-actions, .hero-meta {
        justify-content: center;
    }
}