/* Estructura del sitio web */
.layout {
  width: 100%;
  min-height: 100vh;

  display: grid;
  grid:
    "header header header" auto "menu menu menu" auto "body body body" 1fr "footer footer footer" auto / auto auto;
  column-gap: 8px;
  row-gap: 0;
}

.menu {
  grid-area: menu;
}

/* Header */
.header {
  grid-area: header;
  background-color: black;
  padding: 40px;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.banner-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo-container img {
  width: 30%;
  height: 100%;
}

.banner-container img {
  width: 30%;
  height: 100%;
}


/* Body */
.body {
  grid-area: body;
  background-color: white;
  padding: 40px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin-top: 8px;
}

.body p {
  color: black;
}

/* Contenedor para centrar contenido en el body */
#display_body {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* Tarjetas de acceso rapido */

.tarjeta1 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px 10px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accesos_tarjeta {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.accesos_tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icono_tarjeta {
  font-size: 3em;
  margin-bottom: 15px;
}

.accesos_tarjeta h3 {
  color: #333;
  margin: 15px 0 10px 0;
  font-size: 1.3em;
}

.accesos-tarjeta p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.tarjetas_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Footer */
.footer {
  grid-area: footer;
  background-color: black;
  color: white;
  padding: 10px;
  text-align: center;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin-top: 8px;
}

.footer-content {
  display: flex;
  align-items: center;
  padding: 10px;
}

.copyrigth {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  color: white;
}

.redes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: white;
  margin-top: 0;
  flex: 1;
}

.redes a {
  text-align: center;
}

.redes a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.banner-seguridad {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin: 40px auto;
  max-width: 800px;
  justify-content: right;
}

/* Estilos generales del nav */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  color: white;
  padding: 1.5em;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
}

/* Contenedor de enlaces */
nav div {
  margin: 0 1em;
}

/* Lista principal */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

/* Elementos del menú */
nav li {
  margin: 0 1em;
  position: relative;
}

/* Enlaces */
nav a {
  color: black;
  text-decoration: none;
  padding: 0.5em 1em;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Menu para realizar el efecto hover */
nav a:hover {
  background-color: black;
  color: white;
  border-radius: 6px;

}

/* Menu: Submenús ocultos inicialmente */
nav ul.sub-menus {
  display: none;
  position: absolute;
  background-color: black;
  border: 1px solid #444;
  width: 10em;
  flex-direction: column;
  padding: 0.5em 0;
  z-index: 1000;
  top: 100%;
  left: 0;
}

/* Menu: Mostrar submenús al hacer hover */
nav li:hover>ul.sub-menus {
  display: flex;
}

/* Menu: Estilos de los submenús */
nav ul.sub-menus li {
  margin: 0;
  text-align: center;
  position: relative;
}

/* Menu: Submenús enlaces */
nav ul.sub-menus a {
  color: #ccc;
  font-size: 0.95rem;
  padding: 0.5em 1em;
  text-decoration: none;
}

/* Menu: Hover submenú */
nav ul.sub-menus a:hover {
  background-color: black;
  color: white;
  border-radius: 4px;
}

/* -------- SUBMENÚ DE SEGUNDO NIVEL (anidado) -------- */
nav ul.sub-menus li:hover>ul.sub-menus {
  display: flex;
  top: 0;
  left: 100%;
}

nav ul.sub-menus ul.sub-menus {
  top: 0;
  left: 100%;
  display: none;
  position: absolute;
  background-color: black;
  border: 1px solid #444;
  width: 10em;
  flex-direction: column;
  padding: 0.5em 0;
  z-index: 1001;
}

/* Menu Hamburgesa */
.menu a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.3s;
}

.menu a:hover {
  text-decoration: underline;
  background-color: black;
  border-radius: 4px;
}

.menu-activador {
  display: none;
}

.menu ul {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

/* Listas desordenadas */

ul {
  list-style: none;
}

/* Datos de sesion */
#userData {
  display: flex;
  justify-content: flex-end;
  font-weight: bold;
  font-size: 16px;
  color: red;
}

/* Tablas */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  border-radius: 5px;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

table th {
  background-color: #f2f2f2;
  color: black;
}

/* Selectores para la seccion de ayuda */

#panelAux,
#panelAux1,
#panelAux2,
#panelAux3 {
  display: none;
  overflow: hidden;
}

.panel-respuesta {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin: 10px 0 20px 0;
  display: none;
}

#dpg,
#dpg1,
#dpg2,
#dpg3 {
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 10px;
}

#dpg:hover {
  background-color: #e0e0e0;
}

.btn-faq {
  background-color: #f0f0f0 !important;
  border: 2px solid #ccc !important;
  width: 30px !important;
  height: 30px !important;
}


/* Botónes */
.boton_amarillo {
  background-color: yellow;
  color: black;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}


.boton_rojo {
  background-color: red;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}


.boton_azul {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}

.boton_rojo:hover {
  background-color: darkred;
}