﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.image-wrapper {
    position: relative;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* sin fondo por defecto */
    pointer-events: none;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1rem;
}

/* Textos ocultos por defecto */
.text-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Al hacer hover, activamos todo */
.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);
}

.glass-effect {
    background: rgba(0, 0, 0, 0.2); /* fondo semitransparente */
    backdrop-filter: blur(15px); /* difuminado */
    -webkit-backdrop-filter: blur(15px); /* Safari */
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
}

    .glass-effect .nav-link,
    .glass-effect .offcanvas-title {
        color: white !important;
    }

    .glass-effect .btn-close {
        filter: invert(1); /* botón cerrar blanco */
    }

.nav-fancy {
    display: inline-block;
    color: white;
    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: white;
        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);
        }

.footer a {
    text-decoration: none;
    color:gray;
}
.footer a:hover {
    color: white;
    transition: 0.3s;
}

.navbar-glass {
    background: rgba(0, 0, 0, 0.3); /* transparencia oscura */
    backdrop-filter: blur(10px); /* efecto vidrio */
    -webkit-backdrop-filter: blur(10px); /* compatibilidad safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

    .navbar-glass .navbar-brand,
    .navbar-glass .nav-link,
    .navbar-glass .btn {
        color: white !important;
    }

    .navbar-glass .btn-outline-secondary {
        border-color: rgba(255,255,255,0.6);
        color: white;
    }

        .navbar-glass .btn-outline-secondary:hover {
            background-color: rgba(255,255,255,0.2);
            color: white;
        }


.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}


/*Custom CSS*/
/* === Botones y cuadros de estado === */

/* Reset general */
.btn-custom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0; /* Bordes cuadrados */
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s ease;
}

.badge-custom {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0; /* Bordes cuadrados */
    color: #fff;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Negro */
.custom-black {
    background-color: #000;
}

/* Gris */
.custom-gray {
    background-color: #6c757d;
}

/* Celeste */
.custom-skyblue {
    background-color: #0dcaf0;
}

/* Amarillo */
.custom-yellow {
    background-color: #ffc107;
    color: #000; /* Mejor contraste */
}

/* Estado: habilitado (verde) */
.custom-green {
    background-color: #198754;
}

/* Estado: deshabilitar (rojo) */
.custom-red {
    background-color: #dc3545;
}

.btn-custom:hover {
    opacity: 0.85;
    color:white;
}

.badge-custom:hover {
    opacity: 0.85;
}

.badge-status {
    min-width: 100px;
    text-align: center;
}


.btn-status {
    min-width: 100px;
    text-align: center;
}


.table-actions {
    display: flex;
    gap: 8px; /* espacio entre botones */
    flex-wrap: wrap; /* opcional: permite saltar línea en pantallas chicas */
}

.table td.description-column {
    max-width: 150px; /* Ajusta a tu gusto */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*Inputs*/

.input-square {
    border-radius: 0; /* Bordes cuadrados */
    border: 1px solid #ced4da; /* Borde base Bootstrap */
    padding: 8px 12px; /* Espaciado cómodo */
    transition: border-color 0.2s ease;
    width: 100%; /* Ancho completo */
}

    .input-square:focus {
        border-color: #6c757d; /* Gris oscuro al hover o focus */
        outline: none; /* Quitar borde azul feo */
        box-shadow: 0 0 0 2px #6c757d; /* contorno gris alrededor */
        border-color: #6c757d;
    }


    /*Dropdown*/

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    .filters-container form,
    .filters-container .dropdown {
        flex: 1 1 200px; /* crece y se reduce, base 200px */
        min-width: 150px; /* ancho mínimo */
    }

    .filters-container .filter-input,
    .filters-container .dropbtn {
        width: 100%; /* que llenen el contenedor flex */
        box-sizing: border-box;
    }

/* === BOTÓN DEL DROPDOWN === */
.dropbtn {
    background-color: #ffffff;
    color: #0a0000;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 0; /* esquinas cuadradas */
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid #000; /* borde negro base */
    transition: background-color 0.3s, color 0.3s;
}

    .dropbtn:hover {
        background-color: #000; /* hover negro */
        color: #fff;
    }

/* === CONTENEDOR DEL MENÚ DESPLEGABLE === */
.dropdown {
    position: relative;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #000; /* opcional: borde para el menú */
    border-radius: 0; /* esquinas cuadradas */
}

    /* === OPCIONES DEL MENÚ === */
    .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;
        }

/* === MOSTRAR EL MENÚ AL PASAR MOUSE === */
.dropdown:hover .dropdown-content {
    display: block;
    z-index: 3;
    transition: 0.3s;
}


/*Linea del reproductor*/
/* Personaliza colores de barra de progreso y volumen */
input[type=range]#progress {
    accent-color: #1a1a1a; /* verde por ejemplo */
}

input[type=range]#volume {
    accent-color: #1a1a1a; /* azul por ejemplo */
}



/**VIDEOOOO*/

#videoContainer {
    position: relative;
}

#video {
    transition: filter 0.3s;
}