﻿:root {
    --color-primary: black;
    --color-secondary: red;
    --color-accent: red;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Trebuchet MS', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: #f8f9fa;
}

.nave {
    background-color: black !important; /* Fondo negro */
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 20px;
}

#logo {
    max-height: 50px;
}

.subnave {
    background-color: red !important; /* Fondo rojo */
    height: 30px !important;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

#cajacontenedor {
    margin-top: 130px; /* Altura de nave (100px) + subnave (30px) */
    padding: 15px; /* Espaciado interno */
}

.texto h2 {
    color: var(--color-primary);
}

.texto h5 {
    color: #6c757d;
}

.botonsubmit {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

    .botonsubmit:hover {
        background-color: var(--color-secondary);
    }

/* Menú lateral */
.menulateral {
    background-color: #2f2f2f; /* Gris oscuro */
    width: 250px; /* Ancho del menú */
    min-height: 100vh;
    position: fixed;
    top: 130px; /* Debajo de la nave y subnave */
    left: -250px; /* Fuera de la vista */
    transition: all 0.3s ease-in-out; /* Transición suave */
    z-index: 1000;
    color: white;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}


.checkbox:checked ~ .menulateral {
    left: 0; /* Mostrar el menú */
}

.menulateral ul {
    list-style: none;
    padding: 0;
}
    .menulateral ul li {
        margin: 15px 0;
    }

        .menulateral ul li a {
            text-decoration: none;
            color: white;
            padding: 10px;
            display: block;
            border-radius: 5px;
            transition: background-color 0.2s;
        }

            .menulateral ul li a:hover {
                background-color: red; /* Color de acento */
            }

.panelbloqueadorizq {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Opacidad del fondo */
    z-index: 999; /* Por detrás del menú lateral */
    display: none; /* Oculto inicialmente */
}

.checkbox:checked ~ .panelbloqueadorizq {
    display: block; /* Mostrar cuando el menú esté abierto */
}

/* Barras de navegación */
.fijador {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: black;
    z-index: 1050; /* Por encima del contenido */
}

.fijadordos {
    position: fixed;
    top: 100px;
    width: 100%;
    background-color: var(--color-secondary); /* Fondo de la subnavegación */
    z-index: 1040;
}

/* Estilo de los elementos del menú lateral */
.titulomenu {
    font-weight: bold;
    margin: 10px 0;
    color: white;
    text-transform: uppercase;
}

.menulateral ul {
    list-style: none;
    padding: 0;
}

    .menulateral ul li {
        margin: 10px 0;
    }

        .menulateral ul li a {
            text-decoration: none;
            color: white;
            padding: 10px;
            display: block;
            border-radius: 5px;
            transition: background-color 0.2s;
        }

            .menulateral ul li a:hover {
                background-color: var(--color-secondary);
                color: black;
            }

/* Botón de cierre de sesión */
.botoncierre {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, color 0.2s;
}

    .botoncierre:hover {
        background-color: white;
        color: black;
    }

/* Tablas */
.mGrid {
    width: 100%;
    background-color: #fff;
    margin: 20px 0;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

    .mGrid th, .mGrid td {
        padding: 12px;
        text-align: center;
        border: 1px solid #ddd;
    }

    .mGrid th {
        background-color: gray; /* Color principal */
        color: white;
        font-weight: bold;
        font-size: 14px;
    }

.alt {
    background-color: #f9f9f9; /* Color alternativo para filas */
}

.pgr {
    text-align: right;
    padding: 10px;
}

    .pgr a {
        text-decoration: none;
        color: gray;
        margin: 0 5px;
    }

        .pgr a:hover {
            color: lightgray; /* Color secundario en hover */
        }

/* Selección de fila */
.mGrid .selected {
    background-color: #cccccc;
    font-weight: bold;
    color: white;
}
/* Contenedor principal */
.container {
    margin-top: 20px;
}

/* Tarjetas */
.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    overflow: hidden;
}

.card-header {
    background-color: gray; /* Color principal */
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* Formularios */
.formulario {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px auto;
    display: block;
}

.botonsubmit {
    background-color: gray;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

    .botonsubmit:hover {
        background-color: lightgray;
    }

/* Ocultar el checkbox */
.checkbox {
    display: none;
}

/* Estilo del ícono de menú hamburguesa */
.botonsub {
    font-size: 24px; /* Tamaño del ícono */
    color: white; /* Color blanco para visibilidad */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    margin-left: 10px; /* Espaciado a la izquierda */
    z-index: 1100; /* Asegura que esté sobre otros elementos */
    display: inline-block; /* Asegura que se vea como un botón */
    position: relative; /* Crear contexto de posición */
}

    .botonsub:hover {
        color: red; /* Cambia a rojo al pasar el cursor */
    }

.formularioDos {
    font-size: 14px; /* Texto más pequeño */
    display: block; /* Forzar que sea bloque */
    margin-bottom: 10px; /* Espaciado debajo */
}

