/* Colores Mirabyte */
:root {
    --primary-blue: #0052CC;
    --primary-cyan: #00D4FF;
    --dark-gray: #2D2D2D;
    --light-bg: #F8FAFC;
}

/* Fuentes */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Colores Bootstrap personalizados */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #003D99;
    border-color: #003D99;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-cyan {
    color: var(--primary-cyan) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-light-primary {
    background-color: rgba(0, 82, 204, 0.1) !important;
}

.border-cyan {
    border-color: var(--primary-cyan) !important;
}

/* Navbar */
.navbar-custom {
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

/* Estilos para logos del navbar */
.navbar-logo-white {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar-logo-blue {
    filter: none;
    transition: filter 0.3s ease;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-cyan) !important;
}

/* Cambiar color de items cuando navbar es blanco (después de scroll) */
.navbar-custom.scrolled .nav-link {
    color: #333 !important;
}

.navbar-custom.scrolled .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video de fondo fullscreen */
.hero-video-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay oscuro para mejor legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0.5;
}

/* Contenedor del contenido */
.hero-content-container {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.15) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    border-color: var(--primary-blue) !important;
}

/* Project Cards */
.project-card {
    overflow: hidden;
}

.project-card .card-img-top {
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-overlay {
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1 !important;
}

/* Animaciones */
.transition {
    transition: all 0.3s ease;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .hero-section {
        min-height: 80vh;
    }
}

/* Utilidades */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 1rem;
}

.object-fit-cover {
    object-fit: cover;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Links */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Badges */
.badge-primary {
    background-color: var(--primary-blue) !important;
}

/* Secciones alternadas */
.bg-light {
    background-color: var(--light-bg) !important;
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

/* Estilos para clientes */
.cliente-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cliente-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.4);
    text-decoration: none;
    color: white;
}

.cliente-logo {
    max-width: 120px;
    max-height: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: none;
}

.cliente-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
}

.cliente-card.placeholder {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-blue);
    border: 2px dashed var(--primary-cyan);
}

/* Estilos para botones */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Estilos para iconos */
.fa-external-link-alt {
    font-size: 0.75rem;
}

/* Animación suave */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el alert de clientes */
.alert-light {
    background-color: #f8f9fa !important;
    border-color: var(--primary-blue) !important;
}

.alert-light strong {
    color: var(--primary-blue);
}

/* Texto blanco en hero */
.hero-section .text-white {
    color: white !important;
}

.hero-section .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}


/* ============================================
   ESTILOS PARA CLIENTES EN MODAL
   ============================================ */

.cliente-card-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.08), rgba(0, 212, 255, 0.08));
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-cyan);
}

.cliente-card-modal:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.3);
    text-decoration: none;
    color: #333;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.12), rgba(0, 212, 255, 0.12));
    border-color: var(--primary-blue);
}

.cliente-logo-modal {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: none;
}

.cliente-fallback-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
}

/* ============================================
   ESTILOS DEL MODAL
   ============================================ */

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}


/* ============================================
   ESTILOS PARA TARJETAS DE VALORES
   ============================================ */

.valores-card {
    border: none;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.08);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valores-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.15);
}

.valores-card .card-body {
    padding: 2rem;
    min-height: 200px;
}

.valores-card .card-title {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Estilos para los iconos */
.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.valores-card:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 82, 204, 0.3);
}

.icon-box i {
    color: white;
}
