* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #f4ecff;
}

.shell {
    max-width: 1240px;
}

.head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    color: #ffffff;
}

.sub {
    margin: 8px 0 0;
    color: #cdbfe8;
}

.toolbar {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
}

.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(16, 11, 28, 0.72);
    color: #f4ecff;
    padding: 11px 13px;
    font: inherit;
}

.toolbar input::placeholder {
    color: #a995ca;
}

.estado {
    margin: 16px 0 6px;
    color: #cbbde7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px;
    background:
        radial-gradient(80% 70% at 100% 0%, rgba(248, 105, 14, 0.14), transparent 55%),
        linear-gradient(160deg, rgba(30, 19, 53, 0.9) 0%, rgba(17, 10, 31, 0.92) 100%);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(145deg, #f8690e, #7723d8);
}

.nombre {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.email {
    margin: 2px 0 0;
    font-size: 0.86rem;
    color: #c6b7e2;
    overflow-wrap: anywhere;
}

.chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.chip.plan {
    border-color: rgba(248, 105, 14, 0.45);
    background: rgba(248, 105, 14, 0.15);
}

.chip.privacidad {
    border-color: rgba(119, 35, 216, 0.45);
    background: rgba(119, 35, 216, 0.2);
}

.bio {
    margin: 10px 0;
    color: #e8dcff;
    font-size: 0.92rem;
    line-height: 1.45;
    min-height: 2.6em;
}

.meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.meta div {
    background: rgba(5, 4, 10, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
}

.meta dt {
    margin: 0;
    font-size: 0.7rem;
    color: #af9ece;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta dd {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: #f3ecff;
    overflow-wrap: anywhere;
}

.intereses {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interes-chip {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e6d8ff;
    background: rgba(13, 11, 23, 0.5);
}

@media (max-width: 780px) {
    .toolbar {
        grid-template-columns: 1fr;
    }
}


.avatar-btn {
    width: 56px;
    height: 56px;
    border: 0;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    cursor: zoom-in;
}

.avatar-btn:focus-visible {
    outline: 2px solid #f8690e;
    outline-offset: 2px;
}

.avatar-btn .avatar {
    width: 56px;
    height: 56px;
    display: block;
}

.identity {
    min-width: 0;
}

.cargo-empresa {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: #e7dafb;
    overflow-wrap: anywhere;
}

.enlaces-wrap {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(5, 4, 10, 0.3);
}

.enlaces-wrap h4 {
    margin: 0 0 8px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #af9ece;
}

.enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.enlace-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    border: 1px solid rgba(119, 35, 216, 0.45);
    color: #efe7ff;
    background: rgba(119, 35, 216, 0.18);
    text-decoration: none;
}

.enlace-chip:hover {
    border-color: rgba(248, 105, 14, 0.55);
    background: rgba(248, 105, 14, 0.17);
}

.enlace-chip.empty {
    border-style: dashed;
    opacity: 0.8;
    pointer-events: none;
}

.avatar-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 5, 17, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.avatar-modal.open {
    display: flex;
}

#avatar-modal-img {
    width: min(86vw, 640px);
    height: min(86vw, 640px);
    max-height: 82vh;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
    background: linear-gradient(145deg, #f8690e, #7723d8);
}

.avatar-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(10, 8, 18, 0.7);
    color: #fff;
    padding: 8px 14px;
    font: inherit;
    cursor: pointer;
}


.avatar-btn {
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.avatar-btn.no-photo {
    box-shadow: none;
}

.avatar-btn.has-photo {
    background: linear-gradient(145deg, #f8690e 0%, #7723d8 100%);
    padding: 2px;
    box-shadow: 0 6px 18px rgba(122, 41, 201, 0.38), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.avatar-btn.has-photo .avatar {
    border: 0;
    background: #110a1f;
}

.avatar-btn.has-photo:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 24px rgba(248, 105, 14, 0.26), 0 8px 22px rgba(119, 35, 216, 0.33);
}

.avatar-btn.has-photo::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #1fd38a;
    border: 2px solid #1a102d;
}
