body {
    font-family: Arial;
    background-color: #fbfcfb;
    margin: auto;
}

h1, p {
    text-align: center;
}

.contenedor {
    text-align: center;
    background-color: white;
    background-size: contain;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);

}
button {
     padding: 15px 25px;
     font-size: 16px;
     cursor: pointer;
    }
    
    #texto {
        margin-top: 20px;
        font-weight: bold;
    }
    #respuesta {
        margin-top: 10px;
        color: green;
    }

    .header {
    /* Ancho adaptativo: se ajusta automáticamente sin encogerse demasiado */
    width: clamp(240px, 12vw, 300px); 
    height: 120px; /* Altura adecuada para un logo de encabezado */
    position: absolute;
    z-index: 10;

    /* Imagen de fondo */
    background-image: url("limsjap.png");
    background-size: contain; /* CLAVE: Muestra la imagen COMPLETA sin recortarla */
    background-position: left center; /* Centrado verticalmente, alineado a la izquierda */
    background-repeat: no-repeat;

    /* Margen para despegarlo de los extremos superiores e izquierdos */
    margin-top: 10px;
    margin-left: 20px; 

    /* Si necesitas el efecto de difuminado sutil en los bordes */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}
/* 🔥 NAVBAR */
.navbar {
    width: 100%;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

/* 🔥 MENU HORIZONTAL FORZADO */
.menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;

    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 🔥 ITEMS */
.menu li {
    position: relative;
}

/* 🔥 LINKS */
.menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
}

/* 🔥 SUBMENU */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;

    background: white;
    border: 1px solid #ccc;

    display: none;
    list-style: none;
    padding: 0;
}

/* 🔥 MOSTRAR */
.dropdown:hover .submenu {
    display: block;
}
#tablaRegistros tbody tr {
    cursor: pointer;
}

#tablaRegistros tbody tr:hover {
    background-color: #ddd;
}

/* =========================================================
   BARRA DE NAVEGACIÓN PROFESIONAL Y SUBMENÚS FLOTANTES
   ========================================================= */

/* Estilos de la barra principal */
.navbar {
    background-color: #1e293b; /* Azul slate oscuro corporativo */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1000; /* Asegura que la barra esté sobre el contenido base */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-bottom: 1px solid #334155;
}

/* Lista principal de navegación */
.navbar .menu {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* Elementos individuales del menú */
.navbar .menu > li {
    position: relative; /* CLAVE: Define el contexto de posicionamiento para el submenú */
}

/* Enlaces del menú principal */
.navbar .menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

/* Flecha desplegable */
.navbar .menu > li.dropdown > a::after {
    content: "▾";
    font-size: 11px;
    transition: transform 0.25s ease;
    margin-left: 2px;
}

/* Efectos Hover en ítems principales */
.navbar .menu > li:hover > a {
    color: #ffffff;
    background-color: #334155;
}

.navbar .menu > li.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* =========================================================
   SUBMENÚS (DESPLEGABLE SOBRE CUALQUIER ELEMENTO)
   ========================================================= */

.navbar .submenu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; /* Se despliega exactamente debajo del ítem padre */
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 99999 !important; /* CLAVE: Superpone el menú sobre cualquier formulario o div */
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Mostrar submenú con animación al pasar el cursor */
.navbar .menu > li.dropdown:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Enlaces del submenú */
.navbar .submenu li a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover en ítems del submenú */
.navbar .submenu li a:hover {
    background-color: #f1f5f9;
    color: #2563eb; /* Azul brillante de acento */
    padding-left: 22px; /* Efecto sutil de desplazamiento a la derecha */
}

/* Separadores internos si fueran necesarios */
.navbar .submenu li:not(:last-child) {
    border-bottom: 1px solid #f8fafc;
}