:root {
    /* Paleta de colores */
    --primary-color: #061c6b;
    --accent-color: #07ba86;

    --secondary-color: #4a5568;
    --light-color: #f8f9fa;
    --dark-color: #1a202c;
    --text-muted: #6c757d;

    /* Gradiente de Marca */
    --brand-gradient: linear-gradient(135deg, #061c6b 0%, #07ba86 100%);

    --nav-bg-scrolled: rgba(4, 19, 46, 0.95);
    --transition: all 0.3s ease;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ----- UTILIDADES DE COLOR ----- */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; color: white; }

.btn-brand {
    background: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: #041545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 28, 107, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: #06966f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 186, 134, 0.3);
}

.btn-outline-accent {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: white;
}

/* ----- ESTILOS DE LA NAVEGACIÓN ----- */
.navbar {
    transition: var(--transition);
    padding: 15px 0;
    background: rgba(4, 19, 46, 0.72);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after { width: calc(100% - 2rem); }

/* --- NAVBAR TOGGLER (Móviles) --- */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- ESTILOS GENERALES ----- */
.hero-section {
    background: linear-gradient(135deg, rgba(6, 28, 107, 0.92), rgba(7, 186, 134, 0.85));
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23ffffff' fill-opacity='0.10'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
}

.hero-mockup {
    width: 100%;
    max-width: 520px;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mockup { animation: none; }
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* Tarjetas */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(6, 28, 107, 0.1);
}

/* Iconos con degradado */
.icon-circle-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-circle-gradient {
    transform: rotate(15deg) scale(1.1);
}

/* Iconos sólidos */
.icon-box-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.bg-primary-soft { background-color: rgba(6, 28, 107, 0.08); color: var(--primary-color); }
.bg-accent-soft { background-color: rgba(7, 186, 134, 0.08); color: var(--accent-color); }

/* ----- PRECIOS ----- */
.pricing-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #eee;
    height: 100%;
    background: white;
    border-radius: 16px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    position: relative;
    box-shadow: 0 10px 25px rgba(6, 28, 107, 0.15);
}

.pricing-card.recommended:hover {
    border-color: var(--accent-color);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
    background: var(--brand-gradient);
    border: none;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-card .price-period {
    color: var(--text-muted);
}

/* Toggles de precios */
.btn-group .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-group .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ----- ACCORDION ----- */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(6, 28, 107, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 28, 107, 0.15);
    border-color: rgba(6, 28, 107, 0.15);
}

/* ----- SECCIÓN POR QUÉ MANTIS ----- */
.stat-box {
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* ----- TESTIMONIOS ----- */
.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-color);
}

/* ----- TECNOLOGÍA ----- */
.tech-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.tech-icon {
    font-size: 2.5rem;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* ----- CTA & FOOTER ----- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(7,186,134,0.2) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.footer {
    background-color: #04132e;
    color: #adb5bd;
    padding: 60px 0 30px;
    border-top: 5px solid var(--accent-color);
}

.footer h5, .footer h6 {
    color: white;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== HEADER UNIFICADO — CSS de SysPower (re-declaracion con autoridad final) ===== */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background: rgba(4, 19, 46, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(4, 19, 46, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover,
.nav-link.active {
    color: #07ba86 !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    background-color: #07ba86;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: calc(100% - 2rem);
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
