
/* Estilos Index */
body {
    margin: 0;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    background-color: #F5F7FA;
    color: #222222;
}

.hero {
  background-image: url('img/fondo-inicio.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.overlay {
  background-color: rgba(13, 26, 75, 0.6);
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
}

.logo {
  height: 100px;
  margin-bottom: 1.5rem;
}

.slogan {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.btn-primario {
  background-color: #F8AE25;
  color: #1F2548;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primario:hover {
  background-color: #1F2548;
  color: #fff;
}

.footer {
  background-color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: #888;
  border-top: 1px solid #D1D5DB;
}

/* Estilos Login */

body.login-page {
  background-image: url('img/login-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  padding: 2rem;
}

.login-box {
  background-color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo-login {
  height: 60px;
  margin-bottom: 1rem;
}

.login-box h2 {
  font-size: 1.5rem;
  color: #1F2548;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1F2548;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #1F2548;
}

.btn-login {
  width: 100%;
  font-size: 1rem;
}

/* Dashboard layout */
.dashboard-page {
    background-image: url('img/dashboard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    padding: 0;
    margin: 0;
}

/* Header */
.navbar {
  background-color: #1F2548;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-line {
  height: 4px;
  background: linear-gradient(90deg, #F8AE25 0%, #1F2548 100%);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 1rem;
}

.titulo {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Botón cerrar sesión */
.btn-salida {
  background-color: #F8AE25;
  color: #1F2548;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-salida:hover {
  background-color: #fff;
  color: #1F2548;
}

/* Contenido principal */
.bienvenida {
  text-align: center;
  margin: 2rem 0;
}

.bienvenida h2 {
  font-size: 2rem;
  color: #1F2548;
  margin-bottom: 0.5rem;
}

.bienvenida p {
  font-size: 1rem;
  color: #444;
}

/* Tarjetas de opciones */
.opciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.opcion-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  text-align: left;
  text-decoration: none;
  color: #1F2548;
  transition: all 0.25s ease;
  cursor: pointer;
}

.opcion-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: #F8AE25;
  color: #1F2548;
}

.opcion-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.opcion-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}
.icono-card {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    display: block;
}

.horizontal-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icono-card {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.contenido-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2548;
}

.contenido-card p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #333;
}


/* Footer */
.footer {
  background-color: #1F2548;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

/* Formulario Crear Auditoría */
.formulario-auditoria {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 16px;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Calibri Light', 'Calibri', sans-serif;
}

.formulario-auditoria h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1F2548;
}

.formulario-auditoria label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #1F2548;
}

.formulario-auditoria input,
.formulario-auditoria select,
.formulario-auditoria textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  font-weight: normal;
  color: #1F2548;
}

.formulario-auditoria button {
  margin-top: 2rem;
  background-color: #F8AE25;
  color: #1F2548;
  font-weight: bold;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-auditoria button:hover {
  background-color: #1F2548;
  color: #fff;
}

/* Header enlaces simplificados */
.navbar-links a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, background-color 0.3s;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.navbar-links a:hover {
  background-color: #F8AE25;
  color: #1F2548;
}

/* Sección consultar auditorías */
.descripcion-consulta {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.tabla-auditorias {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  font-size: 0.95rem;
}

.tabla-auditorias th {
  background-color: #1F2548;
  color: #fff;
  padding: 0.75rem;
  text-align: left;
}

.tabla-auditorias td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: middle; /* ✅ Esta línea es la clave */
}

.btn-ver {
  display: inline-block; /* Asegura que no se desborde ni se monte */
  background-color: #F8AE25;
  color: #1F2548;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-ver:hover {
  background-color: #1F2548;
  color: #fff;
}


/* Menú horizontal de categorías (tipo navbar) */
.menu-normas {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

/* .menu-horizontal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
} */

.menu-horizontal {
  display: flex;
  flex-wrap: nowrap; 
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto; /* permite scroll si no cabe */
}


.menu-horizontal li {
  position: relative;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: bold;
  color: #1F2548;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.menu-horizontal li:hover,
.menu-horizontal li.active {
  border-color: #F8AE25;
  color: #F8AE25;
}

.menu-horizontal li.active {
  background-color: #F8AE25;
  color: #1F2548;
  border-bottom: 3px solid #F8AE25;
}

/* Subnumerales centrados debajo */
.submenu-desplegado {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.submenu-desplegado button {
  background-color: #1F2548;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.submenu-desplegado button:hover {
  background-color: #F8AE25;
  color: #1F2548;
}

.submenu-desplegado {
  transition: opacity 0.3s ease;
}

table {
  border: 1px solid #ddd;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}
table thead th {
  background-color: #1F2548;
  color: white;
}

.proximas-auditorias li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.proximas-auditorias li::before {
    content: "🟢";
    position: absolute;
    left: 0;
    top: 0.1rem;
}


.notificaciones-container {
    position: relative;
    margin-right: 1rem;
}

#botonNotificaciones {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.badge {
    background: red;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -10px;
}

.panel-notis {
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    z-index: 1000;
}

    .panel-notis.oculto {
        display: none;
    }

    .panel-notis p {
        margin: 0;
        padding: 10px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
.badge {
    background: red;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -10px;
    display: none; /* <-- oculto por defecto */
}

.panel-notis {
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    z-index: 1000;
    color: #333; /* <-- añade esto */
    font-family: 'Calibri Light', 'Calibri', sans-serif;
}

    .panel-notis p {
        margin: 0;
        padding: 10px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
        color: #333; /* <-- y esto para cada notificación */
    }


select, option {
  font-family: 'Calibri Light', 'Calibri', sans-serif;
}
input, textarea, select {
  font-family: 'Calibri Light', 'Calibri', sans-serif;
}

