/* Estilos para la Interfaz - interfase.css */

/* Contenedor Principal */
.container-grid {
    display: grid;
    grid-template-columns: 240px auto;
    grid-template-rows: 73px auto;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    gap: 14px;
    padding: 14px;
    height: 100vh;
    background-color: #e2ecf9;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    position: fixed;
    width: 240px;
    height: calc(100vh - 28px);
    background-color: #edf3fb;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: solid thin #fff;
}

/* Logo Superior */
.logo {
    text-align: center;
    padding-bottom: 20px;
}
.logo img {
    width: 160px;
}
.logo p {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
}

/* Menú de navegación */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}
.sidebar nav ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-left: 20px;
}
.sidebar nav ul li img {
    width: 40px;
    height: 40px;
}
.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
.sidebar nav ul li a:hover {
    color: #ef2b70;
}

/* Logo Inferior */
.footer-logo {
    text-align: center;
    padding-top: 20px;
}
.footer-logo img {
    width: 120px;
}
.footer-logo p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.linea {
    width: 50px;
    height: 2px;
    background-color: #007bff;
    margin: 5px auto;
}


/* Header */
.header {
    grid-area: header;
    height: 73px;
    background-color: #edf3fb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: solid thin #fff;
}

/* Menú de Navegación */
.header nav ul {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

/* Elementos del Menú */
.header nav ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    transition: background 0.3s ease-in-out;
}

/* Iconos del Menú */
.header nav ul li img {
    width: 42px;
    height: 42px;
}

/* Enlaces del Menú */
.header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}
.header nav ul li a:hover {
    color: #ef2b70
}

/* Estado Activo */
.header nav ul li.active {
    background-color: #f5427b;
    color: #fff;
}
.header nav ul li.active a {
    color: #fff;
}

/* Contenido Principal */
.main-content {
    grid-area: main;
    background-color: #edf3fb;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #fff; /* Línea blanca */
}
/* Título de la Sección Principal */
.titulo-seccion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.titulo-seccion img {
    width: 90px; /* Ajustar tamaño del icono */
    height: 90px;
}

.titulo-seccion h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.titulo-seccion p {
    font-size: 16px;
    color: #555;
    margin: 5px 0 0;
}

/* Formulario de Creación de Sesión */
.crear-sesion {
    margin-top: 20px;
    background: #edf3fb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fff; /* Línea blanca */
    font-size: .95rem;
}
.crear-sesion h2 {
    margin-bottom: 14px;
}

/* Botón */
body .btn-primary {
    background-color: #ef2b70;
    color: #fff;
    padding: 5px 10px; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
body  .btn-primary:hover {
    background-color: #2e4c57;
}
.div_dentro {
    background-color: #ffffff7d;
    border: solid thin #ffffff;
    border-radius: 10px;
}
.img_morena, .img_movimiento_ciudadano, .img_nueva_alianza,.img_pan,.img_pri,.img_pt,.img_verde_ecologista {
    border-radius: 50%;
    border: solid thin #fff;
}
.ocultar {
    display: none;
}

/* Fondo con blur + overlay */
#div_cargar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px); /* Desenfoque del fondo */
    background-color: rgba(0, 0, 0, 0.2); /* Ligero oscurecimiento */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Rueda giratoria */
.loading {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;         /* Color base del borde */
    border-top: 6px solid #ef2b70;      /* Color del spinner (animado) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de giro */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

td.activa {
  background-color: #ef2b70 !important;
  color: white;
}
td.activa button {
  color: white;
  border-color: white;
}
td.cerrada {
  background-color: #f0f0f0 !important; /* Gris claro */
  color: #999 !important;
  font-style: italic;
}
.QR {
    cursor: pointer;
    width: 35px;
    height: 35px;
}
.codigo_seguridad {
    font-size: 1.6rem;
    color: #333;
}
.codigo_seguridad span {
    font-size: 2.4rem;
    font-weight: bold;
    color: #000;
}

.img-home {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
    display: block;
}
/* Cambios nuevos de sesión*/

#formIniciativa.activo, .form-sesion.activo {
  background-color: #dde4ee; /* Gris claro (Bootstrap-like) */
}
/* tablet */
.contenedor-votacion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.btn-votar {
  flex: 1 1 250px; /* crece, encoge, base de 250px */
  max-width: 300px;

  overflow: hidden;
  cursor: pointer;

}

.btn-votar:hover {
  transform: scale(1.05);

}

.voto-img {
  width: 100%;
  height: auto;
  display: block;
}
.icono-cursor {
    cursor: pointer;
}

/* Se agrego al final de la migración */

#formAgregarDiputado.activo {
    background-color: #dde4ee;
}