/* =========================================================
   RESUMEN DE TU PERFIL (pages/personalidad15.html)
   Todo está acotado a .resumen-page para no afectar otras páginas.
   Reutiliza los tokens de styles.css (--color-*, --gradient-brand).
   ========================================================= */

.main-card.resumen-page {
    --resumen-border: #ebe7f5;
    --resumen-meter-bg: #ede9fe;
    --resumen-label: #3c07b6;

    width: 100%;
    max-width: 500px;
    max-height: 100%;
    gap: clamp(0.7rem, 2vh, 1.1rem);
    padding: clamp(1rem, 3vh, 1.6rem);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(76, 29, 149, 0.2);
    animation: resumenRise 0.5s ease both;
}

/* ---------- Encabezado ---------- */

.resumen-page .form-header h1 {
    font-size: clamp(1.1rem, 4.2vh, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
}

.resumen-page .header-description {
    margin-top: 0.4rem;
    padding: 0;
    font-size: clamp(0.72rem, 2vh, 0.8rem);
    line-height: 1.5;
    color: var(--color-text-muted);
}

.resumen-page .form-header h2 {
    margin-top: clamp(0.5rem, 1.6vh, 0.9rem);
    font-size: clamp(0.95rem, 3vh, 1.1rem);
    font-weight: 800;
}

/* ---------- Tarjetas ---------- */

.resumen-page .profile-content-body {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.8vh, 0.9rem);
    width: 100%;
}

.resumen-page .profile-summary-box,
.resumen-page .profile-info-box {
    width: 100%;
    padding: clamp(0.85rem, 2.4vh, 1.1rem);
    background: #ffffff;
    border: 1px solid var(--resumen-border);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(91, 59, 181, 0.06);
}

.resumen-page .profile-summary-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #faf7ff, #ffffff);
}

/* ---------- Indicadores ---------- */

.resumen-page .stats {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.8vh, 0.8rem);
}

.resumen-page .stat-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.resumen-page .label-purple {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--resumen-label);
}

.resumen-page .stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.resumen-page .meter {
    height: 6px;
    background: var(--resumen-meter-bg);
    border-radius: 9999px;
    overflow: hidden;
}

.resumen-page .meter i {
    display: block;
    height: 100%;
    width: var(--level);
    background: var(--gradient-brand);
    border-radius: inherit;
    transform-origin: left;
    animation: resumenFill 0.9s ease 0.3s both;
}

/* ---------- Avatar ---------- */

.resumen-page .profile-avatar {
    width: clamp(72px, 14vh, 100px);
    height: clamp(72px, 14vh, 100px);
    flex-shrink: 0;
    padding: 3px;
    background: var(--gradient-brand);
    border-radius: 50%;
}

.resumen-page .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
}

/* ---------- Información ---------- */

.resumen-page .label-info {
    display: inline-block;
    margin-bottom: 0.3rem;
}

.resumen-page .info-description {
    font-size: clamp(0.8rem, 2vh, 0.88rem);
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* ---------- Botón continuar ---------- */

.resumen-page .form-footer {
    width: 100%;
}

.resumen-page .btn-primary.profile-button {
    min-height: 52px;
    padding: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

/* ---------- Animaciones ---------- */

@keyframes resumenRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes resumenFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .main-card.resumen-page,
    .resumen-page .meter i {
        animation: none;
    }
}

/* ---------- Móvil ---------- */

@media (max-width: 520px) {
    .main-card.resumen-page {
        border-radius: 26px;
    }

    .resumen-page .profile-avatar {
        width: 70px;
        height: 70px;
    }
}
