/**
 * Luminatti Sistemas Informáticos - Main CSS File
 * Archivo principal que importa todos los módulos CSS
 *
 * Estructura modular:
 * 1. Variables y configuración base
 * 2. Reset y estilos fundamentales
 * 3. Tipografía
 * 4. Componentes principales
 * 5. Layout y utilidades
 * 6. Estilos específicos del proyecto
 */

/* ===== BASE STYLES ===== */
@import './base/variables.css';
@import './base/reset.css';
@import './base/typography.css';

/* ===== COMPONENTS ===== */
@import './components/buttons.css';
@import './components/forms.css';
@import './components/cards.css';
@import './components/navigation.css';
@import './components/alerts.css';
@import './components/auth-pages.css';

/* ===== LAYOUT & UTILITIES ===== */
@import './utils/layout.css';

/* ===== PROJECT SPECIFIC STYLES ===== */

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 600ms var(--transition-smooth) forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 600ms var(--transition-smooth) 300ms forwards;
}

/* ===== SERVICE ICONS ===== */
.service-content .bi {
    transition: all var(--animation-duration) var(--transition-smooth);
}

.service-content:hover .bi {
    transform: scale(1.1);
    color: var(--bs-secondary) !important;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
}

footer a {
    transition: color var(--animation-duration) var(--transition-smooth);
}

footer a:hover {
    color: var(--bs-secondary) !important;
}

/* ===== COOKIE BANNER ===== */
#cookieBanner {
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ACCORDION ===== */
.accordion-button {
    font-weight: var(--font-weight-semibold);
    background-color: var(--bs-light);
    border: none;
    border-radius: var(--border-radius);
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

/* ===== CONTACT PAGE SPECIFIC ===== */
@media (max-width: 767.98px) {
    .contact-section .row {
        flex-direction: column-reverse;
    }

    .contact-section .col-md-4 {
        margin-bottom: 2rem;
    }

    .sticky-lg-top {
        position: static !important;
    }
}

/* ===== GOOGLE MAPS STYLING ===== */
.map-container {
    position: relative;
    min-height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container iframe {
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
}

.map-container::before {
    content: "Cargando mapa...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
}

.map-container iframe[src] + ::before {
    display: none;
}

/* ===== TECHNOLOGIES & PARTNERS SECTION ===== */
#technologies {
    background: var(--bg-gradient-light);
}

.tech-logo {
    transition: all var(--animation-duration) var(--transition-smooth);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.tech-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.8);
}

.tech-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.tech-logo svg {
    filter: grayscale(100%) contrast(0.8) brightness(0.6);
    transition: filter var(--animation-duration) var(--transition-smooth);
    opacity: 0.8;
}

.tech-logo:hover svg {
    filter: grayscale(80%) contrast(1) brightness(0.8);
    opacity: 1;
}

.tech-logo-img {
    width: 80px;
    height: 48px;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.8) brightness(0.6);
    transition: filter var(--animation-duration) var(--transition-smooth);
    opacity: 0.8;
}

.tech-logo:hover .tech-logo-img {
    filter: grayscale(80%) contrast(1) brightness(0.8);
    opacity: 1;
}

/* Logos más grandes para marcas específicas */
.tech-logo-img.large-logo {
    width: 120px;
    height: 72px;
}

/* Logo extra grande para Azure */
.tech-logo-img.extra-large-logo {
    width: 180px;
    height: 108px;
    filter: grayscale(100%) contrast(1.2) brightness(0.4);
}

/* Logos más oscuros para ciertas marcas */
.tech-logo-img.dark-logo {
    filter: grayscale(100%) contrast(1.1) brightness(0.4);
}

.tech-logo:hover .tech-logo-img.dark-logo {
    filter: grayscale(80%) contrast(1.2) brightness(0.6);
}

.tech-logo:hover .tech-logo-img.extra-large-logo {
    filter: grayscale(80%) contrast(1.3) brightness(0.6);
}

.tech-logo .small {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity var(--animation-duration) var(--transition-smooth);
}

.tech-logo:hover .small {
    opacity: 1;
}

/* Responsive adjustments for technology logos */
@media (max-width: 768px) {
    .tech-logo-container {
        min-height: 60px;
    }

    .tech-logo svg,
    .tech-logo-img {
        width: 60px;
        height: 36px;
    }

    .tech-logo-img.large-logo {
        width: 90px;
        height: 54px;
    }

    .tech-logo-img.extra-large-logo {
        width: 135px;
        height: 81px;
    }

    .tech-logo .small {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    #technologies .row {
        justify-content: center;
    }

    #technologies .col-6 {
        flex: 0 0 45%;
        max-width: 45%;
        margin-bottom: 1rem;
    }
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
#whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-fixed);
    animation: slideInRight 0.5s ease-out;
}

#whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all var(--animation-duration) var(--transition-smooth);
    animation: pulse 2s infinite;
}

#whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

#whatsapp-float i {
    color: white;
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    #whatsapp-float a {
        width: 55px;
        height: 55px;
    }

    #whatsapp-float i {
        font-size: 24px;
    }
}

/* ===== MOBILE NAVIGATION IMPROVEMENTS ===== */
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 1rem;
        padding: 1rem;
    }

    .navbar-nav .nav-link {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
        padding: 0.75rem 0;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--bs-light);
        border-radius: var(--border-radius-sm);
        padding-left: 0.5rem;
        transition: all var(--animation-duration) var(--transition-smooth);
    }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .fade-in-delay {
        opacity: 1;
        transform: none;
        animation: none;
    }

    #whatsapp-float {
        animation: none;
    }

    #whatsapp-float a {
        animation: none;
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    .tech-logo {
        border: 2px solid var(--border-color-dark);
    }
}