body {
    font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
}

/* Loader Animation */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 2s forwards ease-in-out;
}

.loader-logo {
    max-width: 150px;
    max-height: 150px;
}

.loader-logo img {
    width: 100%;
    height: auto;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    85% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
} 


:root {
    --bs-primary: #0057b8;
    --bs-blue: #0156B8;
    --bs-success: #00a86b;
    --bs-light: #e0e0e0;
}
.logo-box {
    width: 120px;
    height: 48px;
    background-color: var(--bs-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.hero {
    padding: 4rem 0;
}
.top-bar {
    background-color: #1a365d;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: white;
    text-decoration: none;
}
.top-bar a:hover {
    color: #e2e8f0;
}
/*Colores principales*/
.font-primary {
    color: var(--bs-primary) !important;
}
.font-primary-none {
    color: var(--bs-primary) !important;
}
.font-primary:hover {
    color: var(--bs-success) !important;
}
.font-success {
    color: var(--bs-success) !important;
}
.portal-link-small {
    font-size: 0.8rem;
}
/*Boton de registrarse*/
.btn-custom-primary {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-decoration: none !important;
}
.btn-custom-primary:hover {
    background-color: var(--bs-success);
}
.btn-custom-success{
    background-color: var(--bs-success);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-decoration: none !important;
}
.btn-custom-success:hover {
    background-color: var(--bs-primary);
}
.hero h1 {
    line-height: 1;
    font-size: 3.4rem;
}
.products-text{
    line-height: 2;
    padding-left: 20px;
    padding-right: 20px;
}

/* Footer Minimal Styles */
.footer-minimal {
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-social-link {
    color: #6c757d;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
}

.footer-social-link:hover {
    color: var(--bs-primary);
    background-color: rgba(0, 87, 184, 0.1);
    transform: translateY(-2px);
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--bs-success);
}

.footer-legal-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--bs-primary);
}

.footer-copyright {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 2rem;
    width: calc(200% + 4rem);
}

.carousel-slide {
    flex-shrink: 0;
    width: 200px;
}

.logo-box-carousel {
    background-color: white;
    /* border: 2px solid #f0f0f0; */
    /* border-radius: 12px; */
    padding: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
    transition: all 0.4s ease;
}

.logo-box-carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logo-box-carousel:hover .logo-img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.bg-empresa {
    background: linear-gradient(180deg,#e0e0e0, #25236C );
}

/* Normalize font sizes across all pages */
body {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Ensure consistent scaling for all pages */
html {
    font-size: 16px !important;
    zoom: 1 !important;
    -moz-transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    transform: scale(1) !important;
}

/* Specific fixes for empresas page */
body.empresas-page {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    zoom: 1 !important;
    transform: scale(1) !important;
}

body.empresas-page * {
    box-sizing: border-box !important;
}

body.empresas-page .container {
    max-width: 1200px !important;
}

body.empresas-page h1 {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.empresas-page h2 {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.empresas-page h3 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

body.empresas-page h4 {
    font-size: 1.8rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

body.empresas-page h5 {
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
}

body.empresas-page .lead {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

body.empresas-page p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

body.empresas-page .display-6 {
    font-size: 3rem !important;
    font-weight: 700 !important;
}

/* FAQ Accordion Styles */
.accordion-button:not(.collapsed) {
    background: #00a86b !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 87, 184, 0.25) !important;
    
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transition: transform 0.3s ease !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg) !important;
}

.accordion-button {
    transition: all 0.3s ease !important;
}

.accordion-button:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #ffffff 100%) !important;
    /* color: #0057b8 !important; */
    /* transform: translateY(-1px) !important; */
}

.accordion-button:not(.collapsed):hover {
    background: #00a86b !important;
    color: white !important;
}

.accordion-collapse {
    /* border-top: 2px solid #00a86b !important; */
}

/* Accordion Item Spacing */
.accordion-item {
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    border: 1px solid #f0f0f0 !important;
}

.accordion-item:last-child {
    margin-bottom: 0 !important;
}

.accordion-button {
    border-radius: 12px !important;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    /* Top bar mobile */
    .top-bar {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
    
    .portal-link-small {
        font-size: 0.75rem;
    }
    
    /* Navigation mobile */
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Products section mobile */
    .products-text {
        padding-left: 10px;
        padding-right: 10px;
        line-height: 1.6;
    }
    
    /* Services images mobile */
    .col-lg-4 img {
        max-width: 80%;
        height: auto;
        margin-bottom: 1rem;
    }
    
    /* Buttons mobile */
    .btn-custom-primary,
    .btn-custom-success {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }
    
    /* Footer mobile */
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 1rem !important;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .footer-legal span {
        display: none;
    }

    /* Carousel mobile */
    .carousel-track {
        animation-duration: 20s;
        gap: 1rem;
    }
    
    .carousel-slide {
        width: 140px;
    }
    
    .logo-box-carousel {
        height: 90px;
        padding: 0.8rem;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    /* Text adjustments mobile */
    .display-6 {
        font-size: 1.8rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    /* Container padding mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card spacing mobile */
    .card {
        margin-bottom: 1rem;
    }
}

/* ========== ANIMACIONES DE HEADER ========== */
.hero .animate__animated {
    opacity: 0;
    animation-fill-mode: both;
}

.hero .animate__animated.animate__fadeInUp,
.hero .animate__animated.animate__fadeInRight {
    animation-duration: 1s;
}

/* ========== HERO FULLSCREEN ========== */
.hero-fullscreen {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-fullscreen .container {
    position: relative;
    z-index: 2;
}

.hero-fullscreen h1,
.hero-fullscreen h4,
.hero-fullscreen p,
.hero-fullscreen .lead {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-fullscreen .font-success {
    color: #20c997 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

.hero-fullscreen .btn-custom-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-fullscreen .btn-custom-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-fullscreen {
        background-attachment: scroll;
        min-height: 80vh;
    }
}


