:root {
    /* Paleta de colores corporativos moderna basada en el azul */
    --primary-blue: #1e40af;      /* Azul principal más elegante */
    --secondary-blue: #3b82f6;    /* Azul secundario */
    --light-blue: #60a5fa;        /* Azul claro */
    --dark-blue: #1e3a8a;         /* Azul oscuro */
    --accent-green: #10b981;      /* Verde de acento */
    --light-gray: #f8fafc;        /* Gris muy claro */
    --medium-gray: #64748b;       /* Gris medio */
    --dark-gray: #1e293b;         /* Gris oscuro */
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-light: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================
   NAVEGACIÓN Y HEADER
================================= */
.navbar {
    background: var(--gradient-primary) !important;
    padding: 0.75rem 0 !important;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: none !important;
}

.navbar.scrolled {
    padding: 0.5rem 0 !important;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* =================================
   BANNER PRINCIPAL
================================= */
.barner {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.barner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,100"></polygon></svg>');
    background-size: 100px 100px;
}

.barner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.barner p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .barner {
        padding: 80px 20px;
    }
    
    .barner h1 {
        font-size: 2.5rem;
    }
    
    .barner p {
        font-size: 1.1rem;
    }
}

/* =================================
   SECCIONES GENERALES
================================= */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--gradient-light);
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =================================
   CAJAS DE SERVICIOS Y PRODUCTOS
================================= */
.service-box, .product-box {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.service-box::before, .product-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
}

.service-box:hover::before, .product-box:hover::before {
    left: 0;
}

.service-box:hover, .product-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-box .icon, .product-box .icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-box:hover .icon, .product-box:hover .icon {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.service-box h3, .product-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-box:hover h3, .product-box:hover h3 {
    color: var(--primary-blue);
}

.service-box p, .product-box p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =================================
   SECCIÓN DE FACTURACIÓN
================================= */
.facturacion {
    background: var(--gradient-light);
    padding: 80px 0;
}

.facturacion .product-box {
    height: auto;
    min-height: 450px;
}

.facturacion .product-box h3 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* =================================
   SECCIÓN DE CONTACTO
================================= */
.contact-section {
    background: var(--white);
    padding: 80px 0;
}

.contact-section h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info h5 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h5::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-info p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.btn-send {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =================================
   FOOTER
================================= */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 20px;
}

.footer-left {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.footer-left img {
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-left p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-middle {
    flex: 1;
    min-width: 200px;
}

.footer-middle h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.footer-middle h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-blue);
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    margin-bottom: 0.75rem;
}

.footer-middle ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-middle ul li a:hover {
    color: var(--light-blue);
    padding-left: 8px;
}

.footer-middle ul li a::before {
    content: '?';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-middle ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-middle:last-child p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-middle:last-child i {
    color: var(--secondary-blue);
    width: 20px;
}

/* =================================
   UTILIDADES Y RESPONSIVE
================================= */
.container-fluid {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Efectos de focus mejorados */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-left,
    .footer-middle {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .service-box,
    .product-box {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animaciones para elementos que entran en viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* =================================
   CSS ADICIONAL PARA NUEVAS CARACTERÍSTICAS
================================= */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    box-shadow: var(--shadow-xl);
}

/* Mejoras para el banner */
.barner .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.barner .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.barner .btn-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.barner .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* Estilos para la sección de beneficios */
.benefits p {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.benefits p:last-child {
    border-bottom: none;
}

.benefits p:hover {
    background-color: var(--light-gray);
    padding-left: 1rem;
    border-radius: 8px;
}

/* Mejoras para las listas de verificación */
.list-unstyled li {
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

/* Mejoras adicionales para formularios */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--medium-gray);
    opacity: 0.8;
}

/* Efectos de hover mejorados para enlaces */
.contact-info a:hover {
    color: var(--primary-blue) !important;
    text-decoration: underline !important;
}

/* Responsive para WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Mejoras para navegación fija */
.navbar.fixed-top {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--dark-gray) !important;
    backdrop-filter: blur(10px);
}

/* Espaciado para navegación fija */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Mejoras adicionales para el diseño responsivo */
@media (max-width: 576px) {
    .barner h1 {
        font-size: 2rem;
    }
    
    .barner p {
        font-size: 1rem;
    }
    
    .barner .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Efectos de carga suave */
.service-box,
.product-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.service-box.animate-on-scroll,
.product-box.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras en accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible mejorado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}