/* Estilos del Dashboard Principal (Premium Dark Glassmorphism) */
:root {
    --kcm-blue: #00b4eb;
    --kcm-dark: #002d72;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-bg-dark: rgba(255, 255, 255, 0.03);
    --card-border-dark: rgba(255, 255, 255, 0.1);
}

html, body {
    background-color: #040d21 !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 136, 255, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgb(0, 155, 252) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 132, 255, 0.979) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(0, 20, 60, 0.8) 0%, transparent 50%) !important;
    background-size: 150% 150% !important;
    background-attachment: fixed !important;
    animation: gradientMove 15s ease infinite !important;
    color: var(--text-light) !important;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-section {
    padding: 90px 0 40px;
    display: flex;
    align-items: center;
    position: relative;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: calc(100vh - 80px);
    }
}

/* Ocultamos los shapes viejos porque el fondo animado ya hace el trabajo */
.bg-shape {
    display: none !important;
}

.hero-title {
    font-size: clamp(1.8rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 24px;
    word-wrap: break-word;
    hyphens: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--kcm-blue), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 180, 235, 0.15);
    color: var(--kcm-blue);
    padding: 8px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 180, 235, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--kcm-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 180, 235, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 235, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 180, 235, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 235, 0);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Modificadores de subtítulos */
.hero-section h3.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-subtitle {
    color: var(--text-muted);
}

/* Tarjetas tipo Dark Glassmorphism */
.module-card {
    background: var(--card-bg-dark) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border-dark) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.module-card>* {
    position: relative;
    z-index: 1;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 180, 235, 0.3) !important;
    border-color: rgba(0, 180, 235, 0.5) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module-card:hover .module-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

/* Colores vibrantes para iconos (Ajustados para tema oscuro y coincidentes con el navbar) */
.icon-visita {
    background: linear-gradient(135deg, #00b4eb, #009acc);
    color: #fff;
}

.icon-transporte {
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
}

.icon-proveedor {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: #000;
}

.icon-equipo {
    background: linear-gradient(135deg, #6c757d, #5c636a);
    color: #fff;
}

.icon-trabajo {
    background: linear-gradient(135deg, #002d72, #001940);
    color: #fff;
}

.icon-salida {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.module-card h6 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--text-light) !important;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.module-card p.desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.arrow-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
    background: var(--kcm-blue);
}

/* Overrides for Navbar/Footer on Login/Index */
.navbar {
    background: rgba(4, 13, 33, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar-brand span {
    color: #ffffff !important;
}

.nav-link.text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-link.text-secondary:hover {
    color: #ffffff !important;
}

.navbar-toggler {
    background: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler i {
    color: #ffffff !important;
}

/* Dropdown menu dark glassmorphism */
.navbar .dropdown-menu {
    background: rgba(10, 25, 50, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar .dropdown-item {
    color: #ffffff !important;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.navbar .dropdown-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.navbar .dropdown-item .text-dark {
    color: #ffffff !important;
}

.footer {
    background: rgba(4, 13, 33, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer .text-dark {
    color: #ffffff !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer a.text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer a.text-secondary:hover {
    color: #00b4eb !important;
}