* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #ff6a00;
    --orange-dark: #d95500;
    --dark: #181818;
    --white: #ffffff;
    --green: #20b45b;
    --red: #db3a34;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f3f5;
    color: #1b1b1b;
    min-height: 100vh;
}


/* HEADER */

.main-header {
    background: var(--dark);
    color: white;
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 16px;

    border-bottom: 5px solid var(--orange);
}

.header-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.main-header h1 {
    font-size: 26px;
    text-transform: uppercase;
}

.main-header p {
    color: #cccccc;
    margin-top: 4px;
}


/* GENERAL */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}


/* HERO */

.hero {
    text-align: center;
    margin-bottom: 45px;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.hero p {
    color: #666;
    margin-bottom: 25px;
}


/* BUSCADOR */

.search-box {
    max-width: 650px;
    margin: auto;
}

.search-box input {
    width: 100%;
    padding: 17px 20px;

    font-size: 17px;

    border-radius: 10px;
    border: 2px solid #d5d5d5;

    outline: none;
    transition: 0.2s;
}

.search-box input:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 4px rgba(255, 106, 0, 0.13);
}


/* SECTION TITLE */

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.section-title span {
    color: #777;
}


/* GRID */

.members-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 20px;
}


/* TARJETA */

.member-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.member-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.13);
}

.member-photo {
    width: 100%;
    height: 280px;

    object-fit: cover;
    object-position: center;
}

.member-info {
    padding: 20px;
}

.member-id {
    color: var(--orange);
    font-weight: bold;
    font-size: 14px;
}

.member-name {
    font-size: 21px;
    margin-top: 7px;
    margin-bottom: 4px;
}

.member-role {
    color: #666;
    margin-bottom: 15px;
}


/* ESTADO */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.status.activo {
    background: #ddf7e8;
    color: #148941;
}

.status.inactivo {
    background: #ffe1df;
    color: #a62420;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: currentColor;
}


/* BOTÓN */

.view-button {
    display: block;
    margin-top: 17px;

    text-decoration: none;
    text-align: center;

    color: white;
    background: var(--orange);

    padding: 12px;
    border-radius: 8px;

    font-weight: bold;
    transition: 0.2s;
}

.view-button:hover {
    background: var(--orange-dark);
}


/* PERFIL */

.profile-container {
    max-width: 700px;
    margin: 35px auto;
    padding: 20px;
}

.profile-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.13);
}

.profile-header {
    background: var(--dark);
    color: white;
    text-align: center;

    padding: 25px;

    border-bottom: 6px solid var(--orange);
}

.profile-header img {
    width: 85px;
    height: 85px;

    object-fit: contain;
    margin-bottom: 10px;
}

.profile-header h1 {
    font-size: 23px;
}

.profile-header p {
    margin-top: 5px;
    color: #cccccc;
}

.profile-photo {
    display: block;

    width: 180px;
    height: 180px;

    border-radius: 50%;
    object-fit: cover;
    object-position: center;

    margin: 30px auto 15px auto;

    border: 6px solid #f0f0f0;
}

.profile-content {
    padding: 10px 30px 35px;
    text-align: center;
}

.profile-name {
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-code {
    font-size: 18px;
    font-weight: bold;

    color: var(--orange);
    margin-bottom: 10px;
}

.profile-role {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.profile-status {
    margin-bottom: 30px;
}


/* DATOS */

.profile-data {
    text-align: left;
    border-top: 1px solid #ddd;
    margin-top: 25px;
}

.data-row {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.data-label {
    color: #777;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.data-value {
    font-weight: 600;
}


/* ESPECIALIDADES */

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 8px;
}

.specialty {
    background: #f0f0f0;

    border-radius: 20px;

    padding: 7px 11px;
    font-size: 13px;
}


/* VERIFICACIÓN */

.verification {
    margin-top: 30px;
    padding: 20px;

    border-radius: 10px;

    background: #eaf8ef;
    color: #146b35;
}

.verification strong {
    display: block;
    margin-bottom: 5px;
}

.verification.inactive {
    background: #ffe5e3;
    color: #9c2722;
}


/* QR */

.qr-section {
    text-align: center;
    margin-top: 30px;
}

.qr-section strong {
    display: block;
    margin-bottom: 5px;
}

.qr-description {
    color: #777;
    font-size: 13px;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#qrcode img,
#qrcode canvas {
    border: 10px solid white;
}


/* VOLVER */

.back-button {
    display: inline-block;
    margin-bottom: 15px;

    color: #555;
    text-decoration: none;

    font-weight: bold;
}

.back-button:hover {
    color: var(--orange);
}


/* SIN RESULTADOS */

.no-results {
    text-align: center;
    padding: 50px;
    color: #777;

    grid-column: 1 / -1;
}


/* FOOTER */

footer {
    text-align: center;
    padding: 25px;

    color: #777;
    font-size: 14px;
}


/* MOBILE */

@media(max-width: 600px) {

    .main-header {
        padding: 15px;
    }

    .header-logo img {
        width: 55px;
        height: 55px;
    }

    .main-header h1 {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .profile-content {
        padding: 10px 20px 30px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

}
