:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --gradient-start: rgba(13, 110, 253, 0.1);
    --gradient-end: rgba(25, 135, 84, 0.1);
}

body {
    background-color: var(--dark-bg);
    color: #e9ecef !important;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cambia esta regla: */
.text-muted {
    color: var(--text-muted) !important;
}

/* Por esta: */
.text-muted {
    color: #adb5bd !important;
}

/* Cambia esta regla: */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* Por esta: */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e9ecef !important;
    opacity: 0.9;
}

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo-svg {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* Sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Service Cards */
.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(13, 110, 253, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(25, 135, 84, 0.2) 100%);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(25, 135, 84, 0.3) 100%);
}

.service-icon i {
    font-size: 35px;
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--darker-bg);
    padding: 80px 0;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: var(--text-light);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Language Switcher */
.language-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 5px;
    display: inline-flex;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 30px;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        border-radius: 10px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Terminal Preview */
.terminal-preview {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-comment { color: #6a737d; }
.terminal-command { color: #63c0f5; }
.terminal-output { color: #9ec49f; }

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Lists */
.list-unstyled li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    margin-top: 4px;
    margin-right: 10px;
}

/* Icons */
.bi {
    vertical-align: -0.125em;
}

/* Formularios en modo oscuro */
.form-control, .form-select {
    background-color: rgba(33, 37, 41, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(33, 37, 41, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    color: #fff !important;
}

.form-label {
    color: #fff !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-label {
    color: #fff !important;
}

option {
    background-color: #212529 !important;
    color: #fff !important;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Forzar colores de texto en todas las páginas */
* {
    color: #e9ecef !important;
}

/* Específicamente para páginas de servicios */
.service-card {
    color: #e9ecef !important;
}

.service-card h3,
.service-card .h4 {
    color: #ffffff !important;
}

.service-card ul {
    color: #e9ecef !important;
}

.service-card li {
    color: #e9ecef !important;
}

/* Para páginas individuales de servicios */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6 {
    color: #ffffff !important;
}

.container p {
    color: #e9ecef !important;
}

.container ul,
.container ol {
    color: #e9ecef !important;
}

/* Específicamente para blog */
.card-title {
    color: #ffffff !important;
}

.card-text {
    color: #e9ecef !important;
}

.breadcrumb-item a {
    color: #6ea8fe !important;
}

.breadcrumb-item.active {
    color: #adb5bd !important;
}

/* Forzar en formularios de contacto */
.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

.form-label {
    color: #e9ecef !important;
}

/* Específico para páginas de servicios */
.page-content h1,
.page-content h2,
.page-content h3 {
    color: #ffffff !important;
}

.page-content p,
.page-content li {
    color: #e9ecef !important;
}

/* Asegurar contraste en todas las cards */
.card {
    color: #e9ecef !important;
}

.card h5 {
    color: #ffffff !important;
}

/* Específico para secciones */
.section-title {
    color: #ffffff !important;
}

/* Botones de navegación */
.nav-link {
    color: #e9ecef !important;
}

.nav-link:hover {
    color: #6ea8fe !important;
}

/* Footer text */
.footer {
    color: #e9ecef !important;
}

.footer-link {
    color: #adb5bd !important;
}

.footer-link:hover {
    color: #6ea8fe !important;
}

/* Asegurar buen contraste en todo el body */
body, 
body * {
    color: #e9ecef !important;
}

/* Estilos para paginación en modo oscuro */
.pagination {
    --bs-pagination-color: #e9ecef;
    --bs-pagination-bg: #212529;
    --bs-pagination-border-color: #495057;
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: #0d6efd;
    --bs-pagination-hover-border-color: #0d6efd;
    --bs-pagination-focus-color: #fff;
    --bs-pagination-focus-bg: #0b5ed7;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #0d6efd;
    --bs-pagination-active-border-color: #0d6efd;
    --bs-pagination-disabled-color: #6c757d;
    --bs-pagination-disabled-bg: #212529;
    --bs-pagination-disabled-border-color: #495057;
}

.page-link {
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
    color: #e9ecef !important;
}

.page-link:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #6c757d !important;
}

/* Asegurar contraste en paginación */
.pagination .page-item:not(.active):not(.disabled) .page-link {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #343a40 !important;
    border-color: #6c757d !important;
}

/* Estilos para las tarjetas de servicios con imágenes */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #212529;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(13, 110, 253, 0.3);
}

.service-card .card-img-top {
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.service-card .card-body {
    flex: 1 1 auto;
}

.service-card .card-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card ul li {
    color: #e9ecef;
    margin-bottom: 0.5rem;
}