body {
    font-family: arial, sans-serif;
    background: linear-gradient(to right, #0099cc, #66ccff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.whatsapp-burbuja {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-burbuja:hover {
  transform: scale(1.1);
}

.whatsapp-burbuja img {
  width: 32px;
  height: 32px;
}

.login-container {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
    width: 300px;
    text-align: center;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    box-sizing: border-box;
}

button {
    margin: 10px 5px;
    padding: 10px 15px;
    background-color: #0099cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: calc(50% - 10px);
    box-sizing: border-box;
}

button:hover {
    background-color: #0077aa;
}

.hidden {
    display: none !important;
}

.mensaje {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
}

.mensaje.error {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.mensaje.success {
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

/* Estilos para la sección de recordar credenciales */
.recordar-container {
    text-align: left;
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.recordar-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.recordar-container label {
    font-size: 14px;
    cursor: pointer;
    color: #555;
    user-select: none;
}

/* Estilos para credenciales guardadas */
.cred-guardadas {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.cred-guardadas p {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 14px;
}

.cred-guardadas button {
    margin: 5px;
    width: calc(50% - 10px);
    padding: 8px 12px;
    font-size: 13px;
}

.btn-eliminar {
    background-color: #f44336 !important;
}

.btn-eliminar:hover {
    background-color: #d32f2f !important;
}

.btn-secundario {
    background-color: #757575 !important;
}

.btn-secundario:hover {
    background-color: #616161 !important;
}

/* Estilos para botones principales */
.botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.botones button {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    margin: 5px;
}

/* =============================== MODALES =============================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal.confirmacion .modal-content {
    max-width: 400px;
}

.modal-header {
    padding: 20px;
    background: #0099cc;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffeb3b;
}

.modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Lista de credenciales */
.lista-credenciales {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
}

.credencial-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.credencial-item:hover {
    background-color: #f8f9fa;
    border-color: #0099cc;
    transform: translateX(5px);
}

.credencial-item.seleccionada {
    background-color: #e8f5e9;
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.credencial-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.credencial-correo {
    font-weight: 600;
    color: #333;
    word-break: break-all;
    font-size: 15px;
}

.credencial-rol {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: #0099cc;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credencial-detalles {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credencial-fecha {
    flex: 1;
}

.credencial-contador {
    background: #e0e0e0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* Estados vacíos */
.sin-credenciales {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sin-credenciales i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

.sin-credenciales h4 {
    margin: 0 0 10px 0;
    color: #555;
}

/* Advertencia en modal de confirmación */
.advertencia {
    background-color: #fff3e0;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 4px solid #ff9800;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advertencia i {
    color: #ff9800;
    font-size: 18px;
}

/* Botones específicos para modales */
.modal-footer button {
    min-width: 120px;
    margin: 0;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        margin: 5px 0;
    }
    
    .credencial-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .credencial-rol {
        align-self: flex-start;
    }
}

/* Responsive */
@media (max-width: 400px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
    
    .botones button {
        flex: 1 1 100%;
    }
    
    .cred-guardadas button {
        width: 100%;
        margin: 5px 0;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        margin: 5px 0;
    }
}