/* VARIABLES CORPORATIVAS (Misma línea que la App) */
:root {
    --bg-deep: #05070a;
    --bg-antracita: #0b0f14;
    --bg-card: #11161d;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --text-white: #ffffff;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    
    --esmeralda: #10b981;
    --cyan: #06b6d4;
    --naranja-alerta: #f97316;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR EMPRESARIAL */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--esmeralda);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links .btn-nav-control {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--esmeralda);
}

.nav-links .btn-nav-control:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--esmeralda);
}

/* SECCIÓN HERO */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.06), transparent 60%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--esmeralda);
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--esmeralda);
    color: #000000;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ELEMENTOS GENERALES DE SECCIÓN */
.section-tag {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--naranja-alerta);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* SECCIÓN SOLUCIÓN */
.section-solution {
    padding: 100px 0;
    background: var(--bg-antracita);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.solution-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feat-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
}

.feat-icon {
    font-size: 1.8rem;
}

.feat-item h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 5px;
}

.feat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECCIÓN MÓDULOS */
.section-modules {
    padding: 100px 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
}

.card-cyan:hover { border-color: rgba(6, 182, 212, 0.3); }
.card-emerald:hover { border-color: rgba(16, 185, 129, 0.3); }

.module-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SECCIÓN PASARELA DE CONTROL (PREMIUM) */
.section-pasarela {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.04), transparent 50%);
    border-top: 1px solid var(--border-color);
}

.pasarela-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.portal-box {
    background: rgba(255, 255, 255, 0.01);
    border: 2px solid var(--border-color);
    padding: 45px;
    border-radius: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.portal-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portal-box h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 15px;
}

.portal-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 400px;
}

.btn-portal {
    width: 100%;
    padding: 16px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

/* Ajuste específico para cada puente de mando */
.portal-bitacora:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.02);
}
.portal-bitacora .btn-portal {
    background: var(--cyan);
    color: #000000;
}
.portal-bitacora .btn-portal:hover {
    background: #0891b2;
}

.portal-suite:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.02);
}
.portal-suite .btn-portal {
    background: #3b82f6;
    color: #ffffff;
}
.portal-suite .btn-portal:hover {
    background: #2563eb;
}

/* SECCIÓN PRECIOS / PLANES */
.section-pricing {
    padding: 100px 0;
    background: var(--bg-antracita);
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.price-card {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
}

.price-featured {
    border-color: var(--esmeralda);
    background: rgba(16, 185, 129, 0.01);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--esmeralda);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.price-card h4 {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 5px;
}

.price-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-list li {
    font-size: 0.85rem;
    color: #c9d1d9;
    display: flex;
    gap: 10px;
}

.price-list li::before {
    content: "✓";
    color: var(--esmeralda);
    font-weight: bold;
}

/* FOOTER */
.main-footer {
    padding: 40px 20px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-audit {
    font-weight: bold;
    color: #c9d1d9;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .solution-grid, .modules-grid, .pasarela-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}

/* COMPLEMENTOS DE SUBPÁGINAS */
.page-sub {
    background-color: var(--bg-deep);
    padding-top: 60px;
}

.section-padding {
    padding: 60px 0;
}

.btn-back {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 40px;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--esmeralda);
}