/* assets/estilos.css */
/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.menu {
    list-style: none;
    padding: 0 20px;
}

.menu li {
    margin-bottom: 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

/* Contenido principal */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.header h1 {
    color: #2c3e50;
    font-size: 2rem;
}

.header-right {
    color: #3498db;
    font-weight: bold;
}

/* Contenido */
.content {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.update-date {
    display: block;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.info-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.info-body strong {
    display: block;
    color: #2c3e50;
    margin: 15px 0 8px;
    font-size: 1.1rem;
}

.info-body p {
    margin-bottom: 15px;
}

.video-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.video-card strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Galería */
.gallery-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-card strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.news strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .menu {
        display: flex;
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .menu li {
        margin-bottom: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .info-body {
        grid-template-columns: 1fr;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/**/

/* ===== Galería / Swiper de imágenes ===== */
.gallery { width: 100%; }

.image-swiper {
  width: 100%;
  max-width: 500px;              /* opcional, límite de ancho */
  aspect-ratio: 16 / 9;          /* controla proporción (usa 1 / 1 si quieres cuadrado) */
  border-radius: 10px;
  overflow: hidden;
  background: #f3f5f8;
}


.image-swiper .swiper-wrapper { align-items: stretch; }
.image-swiper .swiper-slide {
  display: flex;          /* para que el img pueda ocupar todo */
}

.image-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* llena sin deformar */
  display: block;
}

/* Botones y paginación (scoped a esta galería) */
.image-swiper .swiper-button-next,
.image-swiper .swiper-button-prev {
  width: 34px; height: 34px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.75);
}

.image-swiper .swiper-button-next:after,
.image-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
  color: #384457;
}

.image-swiper .swiper-pagination-bullet {
  opacity: .5;
}
.image-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== Noticias / Swiper de noticias ===== */
.news-swiper {
  width: 100%;
  max-width: 500px;           /* opcional: ancho máximo */
  aspect-ratio: 16 / 9;       /* controla la proporción del swiper */
  border-radius: 10px;
  overflow: hidden;
  background: #f3f5f8;
  margin-top: 10px;
}

.news-swiper .swiper-wrapper {
  align-items: stretch;
}

.news-swiper .swiper-slide {
  display: flex;              /* permite que el contenido ocupe todo el slide */
  flex-direction: row;        /* imagen a la izquierda, contenido a la derecha */
}

.news-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px 0 0 10px; /* opcional, bordes redondeados solo en la imagen */
}

.news-swiper .card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-swiper .swiper-button-next,
.news-swiper .swiper-button-prev {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.75);
}

.news-swiper .swiper-button-next:after,
.news-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
  color: #384457;
}

.news-swiper .swiper-pagination-bullet {
  opacity: 0.5;
}

.news-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Estilo básico para noticias en swiper */
.news-swiper .swiper-slide .row {
  display: flex;
  width: 100%;
  height: 100%;
}

.news-swiper .swiper-slide .col-5 {
  flex: 0 0 40%; /* ocupa 40% del ancho */
}

.news-swiper .swiper-slide .col-7 {
  flex: 1;       /* ocupa el resto */
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px 0 0 10px; /* opcional */
}


/* Estilos para centrar el calendario y dar margen */
#calendar {
  max-width: 900px;       /* ancho máximo */
  margin: 20px auto;      /* margen superior/inferior + centrado horizontal */
  padding: 10px;          /* un poco de espacio interno */
  background: #fff;       /* fondo opcional para destacar */
  border-radius: 8px;     /* bordes redondeados */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* sombra ligera */
}


/* Contenedor del formulario */
.form-validar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;               /* separación entre campos */
    justify-content: flex-start;
    max-width: 900px;        /* ancho máximo del formulario */
    margin: 0 auto;           /* centrado horizontal */
    padding: 20px 0;
}

/* Labels */
.form-validar .form-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Inputs */
.form-validar .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-validar .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.5);
}

/* Botones */
.form-validar .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    transition: background 0.3s, color 0.3s;
}

/* Botón cancelar */
.form-validar .btn-cancelar {
    background-color: #dc3545;
    color: #fff;
}

.form-validar .btn-cancelar:hover {
    background-color: #c82333;
}

/* Botón validar */
.form-validar .btn-validar {
    background-color: #007bff;
    color: #fff;
}

.form-validar .btn-validar:hover {
    background-color: #0069d9;
}



/**/

/* === Tabla de Pagos === */
.table {
  width: 100%;
  border-collapse: separate;      /* permite bordes redondeados */
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  font-variant-numeric: tabular-nums; /* dígitos alineados */
}

.table thead th {
  background: #f3f5f8;
  color: #384457;
  font-weight: 700;
  text-align: center;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  position: sticky;  /* cabezal “pegado” al hacer scroll */
  top: 0;
  z-index: 1;
}

/* Bordes redondeados en las esquinas del thead/tbody */
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child  { border-top-right-radius: 10px; }
.table tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.table tbody tr:last-child td:last-child  { border-bottom-right-radius: 10px; }

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;         /* equivalente a .align-middle */
}

/* Emulación de .table-bordered */
.table-bordered th,
.table-bordered td {
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}
.table-bordered tr:first-child th { border-top: 1px solid #e5e7eb; }
.table-bordered tr:last-child  td { border-bottom: 1px solid #e5e7eb; }

/* Emulación de .table-striped */
.table-striped tbody tr:nth-child(odd)  { background: #fafbfc; }
.table-striped tbody tr:hover           { background: #eef5ff; }

/* Alineación: centra todo por defecto */
#pagosTable th, 
#pagosTable td { 
  text-align: center; 
}

/* Si “IdPagos” y “Número de Casa” se te iban a la izquierda, los centramos explícitamente */
#pagosTable td:nth-child(1),
#pagosTable td:nth-child(2),
#pagosTable th:nth-child(1),
#pagosTable th:nth-child(2) {
  text-align: center;
}

/* Monto alineado a la derecha (más natural para cantidades) */
#pagosTable td:nth-child(6),
#pagosTable th:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

/* La fecha sin saltos de línea */
#pagosTable td:nth-child(5),
#pagosTable th:nth-child(5) {
  white-space: nowrap;
}

/* Evitar desbordes en pantallas pequeñas */
.card-body {
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
  #pagosTable { font-size: 14px; }
  #pagosTable th, #pagosTable td { padding: 10px; }
}

/* Navbar con logo */
.navbar {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ===== Página de Login Admin ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* ocupa casi toda la pantalla */
    background: #f5f7f9;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-card .login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.login-card label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.login-card .form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-card .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.5);
}

.login-card .btn-validar {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-card .btn-validar:hover {
    background-color: #0069d9;
}

/* ===== Página de Registro ===== */
.login-success {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.login-card form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.login-card form input.form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-card form input.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.5);
}

.login-card form .btn-validar {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-card form .btn-validar:hover {
    background-color: #0069d9;
}

/* ===== Formulario Crear Cuenta Monetaria ===== */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 15px;
}

.form-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.form-card form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-card form input.form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-card form input.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.5);
}

.form-card form .btn-validar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-card form .btn-validar:hover {
    background-color: #0069d9;
}

.form-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.95rem;
}

/* ====== Estilos para Depósito Monetario ====== */
.form-container2 {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.form-card2 {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.form-card2 h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-control2 {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.btn-validar2 {
    width: 100%;
    padding: 10px;
    background: #0077cc;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-validar2:hover {
    background: #005fa3;
}

.form-message2 {
    background: #e6f7e6;
    border: 1px solid #28a745;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* ==== Gestión de Cajeros (Admin) ==== */
.gestion-usuarios3 {
    display: flex;
    gap: 20px;
    margin: 20px;
}

.form-card3 {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-control3 {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.btn3 {
    background: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.btn3:hover {
    background: #0056b3;
}

.form-message3 {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    background: #d4edda;
    color: #155724;
}

.tabla-card3 {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tabla-usuarios3 {
    width: 100%;
    border-collapse: collapse;
}

.tabla-usuarios3 th, .tabla-usuarios3 td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.btn-bloquear3 {
    color: #fff;
    background: #dc3545;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}
.btn-bloquear3:hover {
    background: #a71d2a;
}

.btn-desbloquear3 {
    color: #fff;
    background: #28a745;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}
.btn-desbloquear3:hover {
    background: #1e7e34;
}


/* ===== Navbar ===== 
.navbar {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .navbar a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Contenedor del usuario en el navbar */
.navbar-user {
    position: relative;
    margin-left: auto;
    font-size: 16px;
    font-weight: bold;
}

/* Dropdown */
.navbar-user .dropdown {
    position: relative;
    display: inline-block;
}

.navbar-user .dropdown-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.navbar-user .dropdown-toggle:hover {
    color: #ffdd57; /* resaltado al pasar el mouse */
}

/* Menú desplegable */
.navbar-user .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1000;
}

.navbar-user .dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.navbar-user .dropdown-menu a:hover {
    background: #f2f2f2;
}

/* Mostrar el menú al pasar */
.navbar-user .dropdown:hover .dropdown-menu {
    display: block;
}

/* Contenedor principal de la sección de cuenta */
.cuenta-container {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #f4f6f8; /* fondo suave para diferenciar del sidebar */
    min-height: calc(100vh - 70px); /* altura completa menos header */
}

/* Tarjeta de estado de cuenta */
.estado-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
    width: 100%;
    max-width: 1200px;
}

/* Título de la tarjeta */
.estado-card h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333333;
    font-weight: 600;
    text-align: center;
}

/* Estilos generales de la tabla */
#estadoCuenta {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cabecera de la tabla */
#estadoCuenta thead th {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
}

/* Filas de la tabla */
#estadoCuenta tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #555555;
}

/* Filas alternadas para mejor legibilidad */
#estadoCuenta tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover sobre filas */
#estadoCuenta tbody tr:hover {
    background-color: #e6f2ff;
    transition: background-color 0.3s ease;
}

/* DataTables elementos de control */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #007bff;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 5px 12px;
    margin: 2px;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #0056b3 !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Responsivo para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .estado-card {
        padding: 15px 20px;
    }
    #estadoCuenta thead th, 
    #estadoCuenta tbody td {
        padding: 8px 10px;
    }
    .estado-card h2 {
        font-size: 1.5rem;
    }
}


/* Contenedor general */
.gestion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    /* 🔹 Centrado */
    max-width: 1000px;
    margin: 40px auto; /* centra horizontal */
}

/* Card de formularios */
.gestion-container .form-card3 {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.gestion-container .form-card3 h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.gestion-container .form-control3 {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.gestion-container .form-control3:focus {
    outline: none;
    border-color: #007bff;
}

/* Botón */
.gestion-container .btn3 {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.gestion-container .btn3:hover {
    background: #0056b3;
}

/* Mensajes */
.gestion-container .form-message3 {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #fff;
    background: #28a745; /* éxito */
}

.gestion-container .form-message3.error {
    background: #dc3545; /* error */
}

/* Card de tabla */
.gestion-container .tabla-card3 {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.gestion-container .tabla-card3 h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Tabla */
.gestion-container .tabla-usuarios3 {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.gestion-container .tabla-usuarios3 th,
.gestion-container .tabla-usuarios3 td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.gestion-container .tabla-usuarios3 th {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

.gestion-container .tabla-usuarios3 tr:nth-child(even) {
    background: #f2f2f2;
}

/* Botones de acciones */
.gestion-container .btn-bloquear3,
.gestion-container .btn-desbloquear3,
.gestion-container .btn-editar3 {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
    color: #fff;
}

.gestion-container .btn-bloquear3 {
    background: #dc3545;
}

.gestion-container .btn-bloquear3:hover {
    background: #a71d2a;
}

.gestion-container .btn-desbloquear3 {
    background: #28a745;
}

.gestion-container .btn-desbloquear3:hover {
    background: #1e7e34;
}

.gestion-container .btn-editar3 {
    background: #ffc107;
    color: #000;
}

.gestion-container .btn-editar3:hover {
    background: #e0a800;
}


/* Estilos básicos para el modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}
.modal-buttons {
    margin-top: 15px;
}
.btn-confirmar {
    background: #28a745; color: white;
    padding: 8px 15px; border: none; border-radius: 5px;
    cursor: pointer;
}
.btn-cancelar {
    background: #dc3545; color: white;
    padding: 8px 15px; border: none; border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.btn-agregar3 {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2868a7;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-agregar3:hover {
    background-color: #262188;
}
