/* ==========================================================================
   TABLA DE CONTENIDOS - EVOLU B1 STYLES
   ==========================================================================
   1. VARIABLES GLOBALES & RESET
   2. NAVBAR (Barra de Navegación)
   3. HERO SECTION (Cabecera Principal & Carrusel)
   4. SECCIÓN ACERCA DE (Perfil)
   5. SECCIÓN SERVICIOS (Tarjetas)
   6. SECCIÓN PRODUCTOS (Grilla, Filtros y Swiper Móvil)
   7. SECCIÓN CASOS DE ÉXITO (Tarjetas, Swiper y Logos)
   8. COMPONENTES GLOBALES (Captcha, Botones)
   9. FOOTER (Pie de Página)
   10. ANIMACIONES (Keyframes)
   ========================================================================== */

/* =========================================
   1. VARIABLES GLOBALES Y RESET
   ========================================= */
:root {
    --sap-blue: #008FD3; /* Azul Corporativo SAP (Cian Intenso) */
    --sap-dark: #0a1929; /* Azul Profundo (Navy) para fondos oscuros */
    --accent-color: #f0ad4e; /* Naranja/Dorado para acentos y CTAs */
    --light-bg: #f8f9fa; /* Gris muy claro para fondos alternos */
    --text-muted: #6c757d; /* Gris estándar para textos secundarios */
}

html {
    /*scroll-behavior: smooth;*/ /* Desplazamiento suave al hacer clic en anclas (#) */
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    padding-top: 76px; /* Compensación por el Navbar fijo (Ajustar según altura real) */
}

/* =========================================
   2. NAVBAR (Barra de Navegación)
   ========================================= */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); /* Sombra sutil */
    background-color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-weight: 800;
    color: var(--sap-dark) !important;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-right: 15px;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--sap-blue) !important;
    }

/* Botón Contacto (Sólido) */
.btn-contact-nav {
    background-color: var(--sap-blue);
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 143, 211, 0.2);
}

    .btn-contact-nav:hover {
        background-color: var(--sap-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 143, 211, 0.3);
    }

/* Botón de Login (Outline) */
.btn-login-nav {
    border: 2px solid var(--sap-blue);
    color: var(--sap-blue) !important;
    background-color: transparent;
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s;
}

    .btn-login-nav:hover {
        background-color: #e3f2fd;
        color: var(--sap-dark) !important;
        border-color: var(--sap-dark);
        transform: translateY(-2px);
    }

/* =========================================
   3. HERO SECTION (Cabecera Principal)
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--sap-dark) 0%, var(--sap-blue) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px; /* Corrige línea blanca divisoria */
}

/* --- Carrusel del Hero --- */
.hero-carousel-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Sombra profunda */
    height: 400px;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Oscurecer para legibilidad del texto */
    transition: transform 6s ease; /* Zoom muy lento (Efecto Ken Burns) */
}

/* Efecto Zoom al estar activo */
.carousel-item.active .hero-carousel-img {
    transform: scale(1.1);
}

.hero-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: left;
}

    .hero-carousel-caption h3 {
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: 10px;
    }

    .hero-carousel-caption p {
        font-size: 1.1rem;
        font-weight: 300;
        opacity: 0.95;
        margin-bottom: 0;
    }

/* =========================================
   4. ACERCA DE MÍ (Perfil)
   ========================================= */
.about-img-container {
    position: relative;
    padding: 10px;
}

.about-img {
    border-radius: 20px;
    /* Sombra sólida desplazada (Efecto moderno) */
    box-shadow: 20px 20px 0px rgba(0, 143, 211, 0.1);
    transition: all 0.3s ease;
}

    .about-img:hover {
        box-shadow: 10px 10px 0px rgba(0, 143, 211, 0.2);
        transform: translate(5px, 5px);
    }

/* =========================================
   5. SERVICIOS (Tarjetas Minimalistas)
   ========================================= */
.service-card-minimal {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    height: 100%;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra flotante */
}

    .service-card-minimal:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

.icon-box-minimal {
    width: 60px;
    height: 60px;
    background-color: #e1f5fe;
    color: var(--sap-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #212529;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tech-tag-minimal {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* =========================================
   6. PRODUCTOS (Grilla & Filtros)
   ========================================= */

/* --- Tarjetas de Producto --- */
.product-card {
    background: white;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 143, 211, 0.15);
    }

.product-header {
    background: linear-gradient(135deg, var(--sap-dark) 0%, var(--sap-blue) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

    .product-header h4 a {
        color: white !important;
        font-weight: 700;
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .product-header h4 a:hover {
            opacity: 0.8;
        }

.product-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: inline-block;
}

/* Botón flotante sobre tarjeta */
.btn-z-index {
    position: relative;
    z-index: 2;
}

/* --- Filtros (Botones Píldora) --- */
.portfolio-filters {
    margin-bottom: 40px;
}

.filter-btn {
    border: 2px solid #e9ecef;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin: 0 5px 10px;
    transition: all 0.3s;
}

    .filter-btn:hover {
        border-color: var(--sap-blue);
        color: var(--sap-blue);
    }

    .filter-btn.active {
        background-color: var(--sap-blue);
        border-color: var(--sap-blue);
        color: white;
        box-shadow: 0 5px 15px rgba(0, 143, 211, 0.3);
    }

/* --- Animación de Filtrado --- */
.product-item {
    transition: all 0.4s ease-out;
}

/* =========================================
   7. CASOS DE ÉXITO & LOGOS
   ========================================= */
.case-card {
    border-left: 5px solid var(--sap-blue);
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .case-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }

.case-badge {
    background-color: #e3f2fd;
    color: var(--sap-blue);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-result {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    color: #28a745; /* Verde éxito */
    font-weight: 700;
}

/* --- Logos de Clientes (Dark Mode) --- */
.client-logo-light {
    max-width: 120px;
    height: auto;
    /* Filtro Mágico: Convierte logos negros/color en BLANCO PURO */
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: all 0.3s;
}

    .client-logo-light:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* Espaciado de letras para títulos pequeños */
.ls-2 {
    letter-spacing: 2px;
}

/* Swiper en modo continuo (Cinta transportadora) */
.swiperLogos .swiper-wrapper {
    transition-timing-function: linear !important;
    -webkit-transition-timing-function: linear !important;
}

/* Paginación Swiper (Puntitos) */
#casos .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

#casos .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

/* =========================================
   8. COMPONENTES GLOBALES
   ========================================= */

/* --- Captcha Visual --- */
.captcha-icon {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s;
}

    .captcha-icon:hover {
        color: var(--sap-blue);
        background-color: #f0f8ff;
    }

    .captcha-icon.selected {
        color: var(--sap-blue);
        border-color: var(--sap-blue);
        background-color: #e3f2fd;
        transform: scale(1.15);
        box-shadow: 0 5px 15px rgba(0, 143, 211, 0.2);
    }

/* =========================================
   9. FOOTER
   ========================================= */
.footer-link {
    transition: all 0.3s ease;
}

    .footer-link:hover {
        color: white !important;
        padding-left: 8px; /* Pequeño desplazamiento a la derecha */
    }

/* =========================================
   10. ANIMACIONES (Keyframes)
   ========================================= */

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}