/* ===== CONFIGURACIÓN BASE ===== */
.pagina5 {
    padding: 60px 0;
    background: #f8f9fc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
}

.pagina5 .container {
    max-width: 1320px;
}

/* ===== HEADER CARD ===== */
.header-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    min-height: 380px;
}

.header-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.10);
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 1rem;
    color: #4a5a6e;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.header-btn {
    display: inline-block;
    background: #2c7a7b;
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.20);
    border: none;
    cursor: pointer;
}

.header-btn:hover {
    background: #1a5c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 122, 123, 0.30);
    color: #ffffff;
    text-decoration: none;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px 20px 20px 20px;
    height: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.10);
}

/* ===== IMAGEN DE PERFIL ===== */
.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px auto;
    border: 4px solid #e8f4f8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-card:hover .profile-image {
    border-color: #2c7a7b;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.05);
}

/* ===== INFORMACIÓN ===== */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.profile-role {
    font-size: 0.85rem;
    color: #4a5a6e;
    margin: 0 0 16px 0;
    font-weight: 400;
}

/* ===== BOTÓN ===== */
.profile-btn {
    display: inline-block;
    background: #2c7a7b;
    color: #ffffff;
    padding: 9px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.15);
    margin-bottom: 16px;
    border: none;
    cursor: pointer;
    align-self: center;
}

.profile-btn:hover {
    background: #1a5c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 122, 123, 0.25);
    color: #ffffff;
    text-decoration: none;
}

/* ===== REDES SOCIALES ===== */
.profile-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f4f8;
    color: #4a5a6e;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #2c7a7b;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.25);
    text-decoration: none;
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .header-card {
        min-height: auto;
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .profile-card {
        min-height: auto;
        padding: 20px 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .pagina5 {
        padding: 40px 0;
    }

    .header-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .header-btn {
        padding: 10px 30px;
        font-size: 0.8rem;
    }

    .profile-card {
        margin-bottom: 20px;
        padding: 20px 15px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-role {
        font-size: 0.8rem;
    }

    .profile-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .pagina5 {
        padding: 30px 0;
    }

    .header-card {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .header-btn {
        padding: 8px 25px;
        font-size: 0.75rem;
    }

    .profile-card {
        padding: 18px 12px;
        border-radius: 20px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        border-width: 3px;
        margin-bottom: 14px;
    }

    .profile-name {
        font-size: 0.95rem;
    }

    .profile-role {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .profile-btn {
        padding: 7px 18px;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .header-title {
        font-size: 1.2rem;
    }

    .header-subtitle {
        font-size: 0.8rem;
    }

    .header-btn {
        padding: 7px 20px;
        font-size: 0.7rem;
    }

    .profile-image {
        width: 70px;
        height: 70px;
    }

    .profile-name {
        font-size: 0.85rem;
    }

    .profile-role {
        font-size: 0.7rem;
    }

    .profile-btn {
        padding: 6px 15px;
        font-size: 0.65rem;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

    .social-link svg {
        width: 12px;
        height: 12px;
    }
}