/* Propuesta visual de la búsqueda pública. Quitar este archivo y su enlace
   en buscar_socio.php para volver a la apariencia anterior. */
body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, #c9f0fa 0, transparent 32rem),
                linear-gradient(150deg, #e8f7fb 0%, #f5f9fc 55%, #e8f3f9 100%);
    color: #12364c;
}

.search-wrap {
    max-width: 740px;
    padding: 28px 16px 48px;
}

.search-brand {
    position: relative;
    overflow: hidden;
    gap: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(120deg, #075a88, #0b91c1 65%, #22aeca);
    box-shadow: 0 12px 28px rgba(11, 101, 142, .19);
}

.search-brand::after {
    content: '';
    position: absolute;
    right: -32px;
    top: -65px;
    width: 180px;
    height: 180px;
    border: 28px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.search-brand img {
    position: relative;
    z-index: 1;
    box-sizing: content-box;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(2, 50, 76, .14);
}

.search-brand strong { position: relative; z-index: 1; color: #fff; font-size: 1.05rem; }
.search-brand small { position: relative; z-index: 1; color: #e1f6ff; font-size: .73rem; margin-top: 4px; }

.search-card {
    border: 1px solid #d6eaf2;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(24, 91, 123, .09);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin-bottom: 13px;
}

.search-form .form-control {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #c4dfe9;
    border-radius: 12px;
    background: #f8fcfe;
    color: #12364c;
}

.search-form .form-control:focus {
    background: #fff;
    border-color: #0989b7;
    outline: 3px solid rgba(11, 145, 193, .14);
}

.search-form .button { min-height: 42px; padding: 10px 16px; border-radius: 11px; font-size: .76rem; }
.search-form .button-primary { background: #087fae; box-shadow: 0 4px 10px rgba(8, 127, 174, .16); }
.search-form .button-primary:hover { background: #076c96; }
.search-form #btn-escanear-qr { background: #e4f6fb; color: #075f81; box-shadow: none; }
.search-form #btn-escanear-qr:hover { background: #d2eff8; }
.search-form .button-outline { border-color: #c0dce7; color: #386779; background: #fff; }
.search-form .button-outline:hover { background: #f2f9fc; }
.hint { color: #58798a; font-size: .74rem; line-height: 1.6; }

.count { margin: 20px 2px 12px; color: #527484; font-weight: 700; }
.results { gap: 14px; }
.socio-card {
    gap: 16px;
    padding: 19px;
    border: 1px solid #d8eaf1;
    border-radius: 18px;
    box-shadow: 0 9px 25px rgba(24, 91, 123, .07);
}
.socio-avatar { flex-basis: 56px; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, #0da5cf, #0879ab); }
.socio-head h1 { color: #0b3650; font-size: 1.02rem; }
.socio-nro, .socio-cat { color: #628293; }
.socio-cat { margin-bottom: 11px; }
.badge { margin-bottom: 10px; padding: 7px 12px; font-size: .73rem; }
.socio-row { padding: 10px 0; border-color: #edf3f6; line-height: 1.45; }
.socio-row strong { text-align: right; overflow-wrap: anywhere; }
.socio-row.estado-destacado { align-items: flex-start; margin-top: 8px; padding: 10px 12px; border: 1px solid; border-radius: 10px; }
.socio-row.estado-destacado > span { min-width: 0; }
.socio-row.estado-destacado > strong { min-width: 0; }
.socio-row.estado-destacado i { margin-right: 3px; }
.socio-row.estado-positivo { background: #e9f8f0; border-color: #bce8d0; }
.socio-row.estado-positivo > span, .socio-row.estado-positivo > strong { color: #126b47; }
.socio-row.estado-negativo { background: #fff0f1; border-color: #f2c6cc; }
.socio-row.estado-negativo > span, .socio-row.estado-negativo > strong { color: #a22e40; }
.obs { margin-top: 8px; padding: 11px 13px; border-radius: 10px; background: #f4f9fb; line-height: 1.5; overflow-wrap: anywhere; }
.foot { margin-top: 26px; line-height: 1.6; }

@media (max-width: 520px) {
    .search-wrap { padding: 16px 12px 36px; }
    .search-brand { padding: 16px; border-radius: 16px; }
    .search-brand img { width: 36px; height: 36px; padding: 7px; border-radius: 13px; }
    .search-brand strong { font-size: .96rem; }
    .search-card { padding: 16px; border-radius: 16px; }
    .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-form .form-control, .search-form .button-outline { grid-column: 1 / -1; }
    .search-form .button { min-width: 0; padding: 10px 8px; }
    .socio-card { padding: 16px; }
    .socio-body { width: 100%; }
}
