body {
    font-family: 'Public Sans', sans-serif;
    background-color: transparent; 
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 500px;
}

.search-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

h2 { color: #032C48; margin-bottom: 10px; font-weight: 600; }
p { color: #666; font-size: 14px; margin-bottom: 25px; }

.input-group {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: 'Public Sans', sans-serif;
}

input:focus { border-color: #00A6B8; box-shadow: 0 0 0 3px rgba(0,166,184,0.1); }

button {
    background-color: #032C48;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-family: 'Public Sans', sans-serif;
}

button:hover { background-color: #00A6B8; }

/* Animación y diseño del Spinner */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 166, 184, 0.1);
    border-left-color: #00A6B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    color: #032C48;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* Tarjeta de resultados */
.card {
    margin-top: 20px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.foto-perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    margin-bottom: 15px;
}

.status-active { color: #28a745; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.status-inactive { color: #dc3545; font-weight: 600; font-size: 14px; text-transform: uppercase; }

/* Botón Secundario (Nueva Consulta) */
.btn-secundario {
    background-color: transparent;
    color: #00A6B8;
    border: 2px solid #00A6B8;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 20px;
    font-size: 14px;
    width: 100%; /* Ocupa todo el ancho para verse más uniforme */
}

.btn-secundario:hover {
    background-color: #00A6B8;
    color: white;
}

/* Esta es la regla maestra que arregló el error visual */
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}