﻿/* =========================================================
   1. BASE / RESET
   ========================================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}


/* =========================================================
   2. NAVBAR / HEADER / FOOTER
   ========================================================= */
.navbar-glass {
    background: rgb(57 154 197);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

    .navbar-glass .navbar-brand,
    .navbar-glass .nav-link,
    .navbar-glass .btn {
        color: #fff !important;
    }

    .navbar-glass .btn-outline-secondary {
        border-color: rgba(255, 255, 255, 0.6);
        color: #fff;
    }

        .navbar-glass .btn-outline-secondary:hover {
            background-color: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}

/* offcanvas vidrio */
.glass-effect {
    background: rgba(120, 200, 220, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

    .glass-effect .nav-link,
    .glass-effect .offcanvas-title {
        color: #fff !important;
    }

    .glass-effect .btn-close {
        filter: invert(1);
    }

/* footer */
.footer a {
    text-decoration: none;
    color: gray;
}

    .footer a:hover {
        color: #fff;
        transition: 0.3s;
    }

/* link fancy */
.nav-fancy {
    display: inline-block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    padding-left: 1.5rem;
    transition: padding-left 0.3s ease;
}

    .nav-fancy::before {
        content: "·";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scale(0);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        color: #fff;
        font-size: 2rem;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    }

    .nav-fancy:hover {
        padding-left: 2.2rem;
    }

        .nav-fancy:hover::before {
            opacity: 1;
            transform: translateY(-55%) scale(1);
        }


/* =========================================================
   3. TARJETAS, IMÁGENES Y OVERLAYS
   ========================================================= */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.text-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-card:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.video-card:hover img {
    transform: scale(1.03);
}

.video-card:hover .text-content {
    opacity: 1;
    transform: translateY(0);
}

.box-shadow-custom {
    box-shadow: 0 .25rem .75rem rgb(146 146 146 / 60%);
}


/* =========================================================
   4. BOTONES, BADGES Y ACCIONES
   ========================================================= */
/* botón base proyecto */
.btn-custom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: 0.35s ease;
}

    .btn-custom:hover {
        opacity: 0.5;
        color: #fff;
    }

/* variantes de color */
.custom-black {
    background-color: #000;
}

.custom-darkblue {
    background-color: #331b82;
    color: #cabaff;
}

.custom-purple {
    background-color: #78069e;
    color: #f2ccff;
}

.custom-darkpurple {
    background-color: #9e065d;
    color: #ffcce9;
}

.custom-darkred {
    background-color: #b0051c;
    color: #fff;
}

.custom-gray {
    background-color: #6c757d;
}

.custom-skyblue {
    background-color: #0dcaf0;
}

.custom-yellow {
    background-color: #ffc107;
    color: #000;
}

.custom-green {
    background-color: #198754;
}

.custom-red {
    background-color: #dc3545;
}

/* badges */
.bg-custom-badge {
    background: rgba(0, 0, 0, 0.6);
}

.badge-custom {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: 6rem;
}

    .badge-custom:hover {
        opacity: 0.85;
    }

.badge-status,
.btn-status {
    min-width: 100px;
    text-align: center;
}

/* acciones en tabla */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   5. TABLAS Y COLUMNAS
   ========================================================= */
.description-column {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table td.description-column {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   6. INPUTS Y FORMULARIOS
   ========================================================= */
.input-square {
    border-radius: 0;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    transition: border-color 0.2s ease;
    width: 100%;
}

    .input-square:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 2px #6c757d;
    }


/* =========================================================
   7. FILTROS Y DROPDOWNS CUSTOM
   ========================================================= */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    .filters-container form,
    .filters-container .dropdown {
        flex: 1 1 200px;
        min-width: 150px;
    }

    .filters-container .filter-input,
    .filters-container .dropbtn {
        width: 100%;
        box-sizing: border-box;
    }

/* botón del dropdown */
.dropbtn {
    background-color: #fff;
    color: #0a0000;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: background-color 0.3s, color 0.3s;
}

    .dropbtn:hover {
        background-color: #000;
        color: #fff;
    }

/* contenedor dropdown */
.dropdown {
    position: relative;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #000;
    border-radius: 0;
}

    .dropdown-content a {
        color: #0a0000;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s, color 0.3s;
    }

        .dropdown-content a:hover {
            background-color: #000;
            color: #fff;
        }

.dropdown:hover .dropdown-content {
    display: block;
    z-index: 3;
    transition: 0.3s;
}


/* =========================================================
   8. REPRODUCTOR / VIDEO
   ========================================================= */
input[type=range]#progress {
    accent-color: #1a1a1a;
}

input[type=range]#volume {
    accent-color: #1a1a1a;
}

#videoContainer {
    position: relative;
}

#video {
    transition: filter 0.3s;
}


/* =========================================================
   9. SELECT2: CATEGORÍAS
   (Se eliminaron duplicados. Esta es la única versión)
   ========================================================= */
#categorySelect + .select2 .select2-selection__choice {
    background-color: #004080 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px 4px 20px !important;
    position: relative !important;
    font-size: 0.85rem;
}

#categorySelect + .select2 .select2-selection__choice__remove {
    position: absolute !important;
    left: 6px !important;
    top: 3px !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
}

    #categorySelect + .select2 .select2-selection__choice__remove:hover {
        color: #dcdcdc !important;
    }

#categorySelect + .select2 .select2-results__option--highlighted {
    background-color: #004080 !important;
    color: #fff !important;
}
