/* ====================================
   VENTACOMP - ESTILOS GLOBALES
   Responsabilidad: Estilos personalizados del proyecto
   ==================================== */

/* ====================================
   VARIABLES PERSONALIZADAS
   ==================================== */
:root {
    /* Azul corporativo oscuro */
    /* --primary-color: #1e3a5f; */
    --primary-color: #0d6efd;

    --primary-hover: #2c547a;
    --secondary-color: #2c3e50;
    /* Gris azulado */
    --accent-color: #3498db;
    /* Azul brillante para acentos */
    --text-light: #ecf0f1;
    --navbar-height: 60px;
}

/* Override Bootstrap Primary Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ====================================
   NAVBAR
   ==================================== */
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: var(--navbar-height);
}

/* Logo en navbar */
.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: brightness(1.1);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Links del navbar */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: white;
}

/* Dark mode toggle en navbar */
.dark-mode-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 32px;
    }

    .navbar-brand span {
        font-size: 0.8rem;
    }
}

/* ====================================
   HERO SECTION (LANDING)
   ==================================== */
.hero-section h2 {
    font-weight: 600 !important;
    font-size: 2rem !important;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.071),
        1px 1px 4px rgba(0, 0, 0, 0.5); */
}

.hero-section .lead {
    font-weight: 500 !important;
    font-size: 1.35rem !important;
    /* text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.112),
        1px 1px 3px rgba(0, 0, 0, 0.107); */
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    background-color: var(--bg-secondary, #f8f9fa);
    border-top: 1px solid var(--border-color, #dee2e6);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-color);
}

/* Footer fino para páginas internas */
.slim-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.slim-footer img {
    filter: brightness(1.2);
}

.slim-footer small {
    font-size: 0.75rem;
}

/* Footer del Home - Icono */
.footer-home-icon {
    padding-top: 5px;
    width: 140px;
    height: auto;
    filter: brightness(1.1);
}

.footer-logo-container {
    flex-shrink: 0;
}

.footer-info-text {
    flex-grow: 1;
}

/* ====================================
   BOTONES PERSONALIZADOS
   ==================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ====================================
   CARDS Y COMPONENTES
   ==================================== */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0.1, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
   FORMULARIOS
   ==================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ====================================
   UTILIDADES
   ==================================== */
.text-muted {
    transition: color 0.3s ease;
}

/* Transiciones suaves globales */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   MEJORAS DE ACCESIBILIDAD
   ==================================== */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ====================================
   EFECTOS PROFESIONALES
   ==================================== */
.shadow-professional {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ====================================
   BOTÓN PROYECTOS (NAVBAR)
   ==================================== */
.btn-white-primary {
    position: relative;
    background: rgba(255, 255, 255, 0.155);
    color: white;
    text-decoration: none;
    padding: 0.2rem 0.8rem;
    border-radius: 0.9rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    /* border: 1px solid rgba(255, 255, 255, 0.164); */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Efecto de onda en hover */
.btn-white-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

.btn-white-primary:hover {
    background: rgb(255, 255, 255);
    color: #1C6CAA;
    /* color: #1C6CAA; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 2px 6px rgba(0, 0, 0, 0.15),
                0 0 0 3px rgba(255, 255, 255, 0.2); */
}

/* .btn-white-primary:hover::before {
    width: 300px;
    height: 300px;
} */

.btn-white-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 991px) {
    .btn-white-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ====================================
   MENÚ DESPLEGABLE USUARIO
   ==================================== */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    min-width: 220px;
}

.dropdown-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(150, 150, 150, 0.251);
    color: var(--primary-color);
    font-size: 1.05rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}