
/* ═══════════ PROFILE PAGE — .sp-profile-* namespace ═══════════ */

/* ─── BASE ─── */
.sp-profile {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    min-height: 100vh;
    color: var(--text);
    padding-bottom: 120px;
}

/* ─── HERO ─── */
.sp-profile__hero {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 80% 20%, var(--surface) 0%, transparent 60%);
    padding: 20px 0 var(--section-pad-y);
    border-bottom: 1px solid rgba(214, 207, 199, 0.2);
}

.sp-profile__nav {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.sp-profile__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.sp-profile__back-link:hover { color: var(--primary); }
.sp-profile__back-link svg {
    width: 14px; height: 14px;
    transition: transform 0.3s ease;
}
.sp-profile__back-link:hover svg { transform: translateX(-4px); }

.sp-profile__hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 266px 1fr;
    gap: 60px;
    align-items: center;
}

/* Badge */
.sp-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    padding: 6px 14px;
    box-shadow: none;
}

/* Pulse */
.sp-profile__pulse {
    width: 8px; height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(61, 79, 60, 0.4);
    animation: sp-profile-pulse 2s infinite;
}
@keyframes sp-profile-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(61, 79, 60, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(61, 79, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(61, 79, 60, 0); }
}

/* Portrait */
.sp-profile__portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(43, 36, 32, 0.06);
    border: 1px solid rgba(214, 207, 199, 0.12);
}
.sp-profile__portrait img {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    align-self: stretch;
}
.sp-profile__portrait-fallback {
    font-family: var(--font-heading);
    font-size: 120px;
    color: rgba(43, 36, 32, 0.1);
}

/* Hero content */
.sp-profile__hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}
.sp-profile__content {
    display: flex;
    flex-direction: column;
}
.sp-profile__name {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary);
    margin: 0;
}
.sp-profile__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.sp-profile__whatsapp {
    align-self: flex-start;
}
.sp-profile__whatsapp-icon { width: 20px; height: 20px; }

/* Share */
.sp-profile__share {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sp-profile__share-icon { width: 18px; height: 18px; }
.sp-profile__share-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(16px);
    background: var(--primary-strong);
    color: var(--surface);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10005;
}
.sp-profile__share-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.sp-profile__meta-divider {
    width: 4px; height: 4px;
    background: rgba(214, 207, 199, 0.4);
    border-radius: 50%;
}

/* ─── CHIPS ─── */
.sp-profile__chips {
    background: var(--surface);
    padding: 24px 0;
    border-top: 1px solid rgba(214, 207, 199, 0.12);
    border-bottom: 1px solid rgba(214, 207, 199, 0.12);
}
.sp-profile__chips-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sp-profile__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid rgba(214, 207, 199, 0.2);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--primary-strong);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(43, 36, 32, 0.02);
}
.sp-profile__chip--success {
    background-color: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.1);
    color: var(--success-text);
}
.sp-profile__chip-icon {
    width: 16px; height: 16px;
    color: var(--primary);
}

/* ─── GRID + MAIN ─── */
.sp-profile__grid {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}
.sp-profile__main {
    background: var(--surface);
    border: 1px solid rgba(214, 207, 199, 0.1);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(43, 36, 32, 0.02);
}
.sp-profile__section { margin-bottom: 48px; }
.sp-profile__section:last-child { margin-bottom: 0; }
.sp-profile__heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-strong);
    margin: 0 0 24px;
    padding-bottom: 14px;
    position: relative;
}
.sp-profile__heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 2px;
    background-color: var(--accent);
}
.sp-profile__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 6px;
}
.sp-profile__bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--primary-strong);
}
.sp-profile__bio p { margin-bottom: 28px; }
.sp-profile__bio p:last-child { margin-bottom: 0; }

/* Tags */
.sp-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sp-profile__tag {
    background: transparent;
    border: 1px solid rgba(214, 207, 199, 0.2);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--primary-strong);
    font-weight: 400;
    transition: all 0.2s ease;
}
.sp-profile__tag:hover {
    background: var(--primary-strong);
    color: var(--surface);
    border-color: var(--primary-strong);
    box-shadow: 0 4px 12px rgba(43, 36, 32, 0.1);
}
.sp-profile__tag--approach {
    background: rgba(61, 79, 60, 0.04);
    border-color: rgba(61, 79, 60, 0.15);
    color: var(--primary);
    font-weight: 500;
}
.sp-profile__tag--approach:hover {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

/* ─── SIDEBAR ─── */
.sp-profile__sidebar-card {
    position: sticky;
    top: 123px;
    background: var(--surface);
    border: 1px solid rgba(214, 207, 199, 0.1);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(43, 36, 32, 0.02);
}
.sp-profile__sidebar-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-strong);
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(214, 207, 199, 0.1);
    padding-bottom: 16px;
}
.sp-profile__sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.sp-profile__sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sp-profile__sidebar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}
.sp-profile__sidebar-value {
    font-size: 16px;
    color: var(--primary-strong);
    font-weight: 500;
}
.sp-profile__sidebar-btn { width: 100%; }

/* ─── FOOTER CTA ─── */
.sp-profile__footer {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}
.sp-profile__footer-box {
    background: var(--primary);
    border-radius: 16px;
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}
.sp-profile__footer-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 600;
    color: var(--surface);
    margin: 0 0 16px;
    line-height: 1.1;
}
.sp-profile__footer-subtitle {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(248, 243, 238, 0.7);
    margin: 0;
    max-width: 480px;
}
.sp-profile__footer-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 240px;
}
.sp-profile__footer-actions .btn {
    text-align: center;
    width: 100%;
}
.sp-profile__footer-actions .btn.btn-primary {
    background: var(--surface);
    color: var(--primary-strong) !important;
    border-color: var(--surface);
}
.sp-profile__footer-actions .btn.btn-primary:hover {
    background: var(--bg-alt);
    border-color: var(--bg-alt);
    color: var(--primary-strong) !important;
}
.sp-profile__footer-actions .btn.btn-secondary {
    background: transparent;
    color: var(--surface) !important;
    border-color: var(--surface);
}
.sp-profile__footer-actions .btn.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--surface);
    color: var(--primary-strong) !important;
}

/* ═══════════ TABLET (≤900px) ═══════════ */
@media (max-width: 900px) {
    .sp-profile__hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .sp-profile__badge { justify-content: center; }
    .sp-profile__portrait {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .sp-profile__whatsapp { justify-self: center; }
    .sp-profile__meta { justify-content: center; }
    .sp-profile__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sp-profile__sidebar-card {
        position: static;
        padding: 30px;
    }
    .sp-profile__main { padding: 30px; }
}

/* ═══════════ MOBILE (≤768px) ═══════════ */
@media (max-width: 768px) {
    .sp-profile {
        background: transparent;
        padding-bottom: 60px;
    }

    /* Hero */
    .sp-profile__hero {
        padding: 16px 0 24px;
        border-bottom: none;
        background: transparent;
        background-image: none;
    }
    .sp-profile__nav { display: none; }
    .sp-profile__hero-grid {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 12px 8px;
        text-align: left;
        padding: 0 var(--m-margin);
        align-items: center;
    }

    /* Badge full-width above */
    .sp-profile__badge {
        grid-column: 1 / -1;
        grid-row: 1;
        display: inline-flex;
        gap: 6px;
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 0;
        box-shadow: none;
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }
    .sp-profile__badge .sp-profile__pulse {
        width: 6px; height: 6px;
    }

    /* Photo left */
    .sp-profile__portrait {
        grid-column: 1;
        grid-row: 2;
        width: 130px;
        flex-shrink: 0;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 24px rgba(43, 36, 32, 0.04);
        border: 1px solid rgba(214, 207, 199, 0.12);
        margin: 0;
        background: transparent;
        aspect-ratio: 3 / 4;
        align-self: center;
    }
    .sp-profile__portrait img {
        display: block;
        width: 100%;
        flex: 1;
        min-height: 0;
        object-fit: cover;
        align-self: stretch;
    }
    .sp-profile__portrait-fallback { font-size: 40px; }

    /* Name + meta right */
    .sp-profile__hero-right { display: contents; }
    .sp-profile__content {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: 0;
        flex: 1;
        min-width: 0;
        align-self: center;
    }
    .sp-profile__name {
        font-size: 27px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    .sp-profile__meta {
        gap: 4px;
        margin-bottom: 0;
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .sp-profile__meta .sp-profile__chip {
        font-size: 11px;
        padding: 3px 8px;
        white-space: nowrap;
    }

    /* WhatsApp CTA full-width below */
    .sp-profile__whatsapp {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sp-profile__whatsapp-icon { width: 16px; height: 16px; }

    /* Share full-width below WhatsApp */
    .sp-profile__share {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        justify-content: center;
    }
    .sp-profile__share-icon { width: 16px; height: 16px; }

    /* Chips */
    .sp-profile__chips {
        padding: 16px 0;
        background: transparent;
        border-top: none;
        border-bottom: none;
    }
    .sp-profile__chips-row {
        padding: 0 var(--m-margin);
        gap: 8px;
    }
    .sp-profile__chip {
        padding: 6px 14px;
        font-size: 11px;
        gap: 6px;
        box-shadow: 0 2px 8px rgba(43, 36, 32, 0.02);
    }
    .sp-profile__chip--success {
        background: rgba(34, 197, 94, 0.05);
        border-color: rgba(34, 197, 94, 0.08);
    }
    .sp-profile__chip-icon { width: 12px; height: 12px; }

    /* Grid → flex column, sidebar on top */
    .sp-profile__grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding: 0 var(--m-margin);
    }
    .sp-profile__sidebar { order: -1; }

    /* Sidebar card */
    .sp-profile__sidebar-card {
        padding: 20px var(--m-margin);
        border-radius: var(--m-radius-md);
        box-shadow: 0 4px 16px rgba(43, 36, 32, 0.02);
        border: 1px solid rgba(214, 207, 199, 0.12);
    }
    .sp-profile__sidebar-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    .sp-profile__sidebar-list { gap: 16px; margin-bottom: 24px; }
    .sp-profile__sidebar-label { font-size: 11px; }
    .sp-profile__sidebar-value { font-size: 14px; }
    .sp-profile__sidebar-btn { display: none; }

    /* Main card */
    .sp-profile__main {
        padding: 24px var(--m-margin);
        border-radius: var(--m-radius-md);
        border: 1px solid rgba(214, 207, 199, 0.12);
    }
    .sp-profile__section { margin-bottom: 32px; }
    .sp-profile__heading {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    .sp-profile__heading::after { width: 40px; }
    .sp-profile__bio { font-size: 15px; line-height: 1.8; }
    .sp-profile__bio p { margin-bottom: 18px; }
    .sp-profile__eyebrow { font-size: 10px; margin-bottom: 4px; }
    .sp-profile__tag { padding: 6px 16px; font-size: 12px; }

    /* Footer CTA */
    .sp-profile__footer {
        margin-top: 40px;
        padding: 0 var(--m-margin);
    }
    .sp-profile__footer-box {
        padding: 48px var(--m-margin);
        border-radius: 16px;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sp-profile__footer-title { font-size: 24px; margin-bottom: 12px; }
    .sp-profile__footer-subtitle { font-size: 14px; }
    .sp-profile__footer-actions { gap: 10px; min-width: 0; }
    .sp-profile__footer-actions .btn { padding: 14px 24px; font-size: 12px; }
}
.sp-profile__sidebar-value--wrap { word-break: break-all; }
