:root {
    --bg:               rgb(21, 25, 50);
    --bg-deep:          rgb(14, 17, 38);
    --coral:            #FF6B6B;
    --coral-glow:       rgba(255, 107, 107, 0.12);
    --white:            #ffffff;
    --white-60:         rgba(255, 255, 255, 0.60);
    --white-35:         rgba(255, 255, 255, 0.35);
    --white-12:         rgba(255, 255, 255, 0.12);
    --glass-bg:         rgba(255, 255, 255, 0.04);
    --glass-bg-hover:   rgba(255, 255, 255, 0.08);
    --glass-border:     rgba(255, 255, 255, 0.08);
    --glass-border-hov: rgba(255, 255, 255, 0.22);
    --green:            #4ADE80;
    --purple-blob:      #6C63FF;
    --font-display:     'Syne', sans-serif;
    --font-body:        'DM Sans', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ── Ambient Blobs ─────────────────────────────── */
.blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.13;
}

.blob-coral {
    width: 340px;
    height: 340px;
    background: var(--coral);
    top: -100px;
    right: -80px;
    animation: floatA 10s ease-in-out infinite;
}

.blob-purple {
    width: 280px;
    height: 280px;
    background: var(--purple-blob);
    bottom: 15%;
    left: -100px;
    animation: floatB 12s ease-in-out infinite;
}

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(18px, -20px) scale(1.06); }
    70%       { transform: translate(-8px,  12px) scale(0.96); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    35%       { transform: translate(-14px, 18px) scale(1.04); }
    65%       { transform: translate(10px, -10px) scale(0.97); }
}

/* ── Layout ────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 52px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Fade-up Animation ─────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Avatar ────────────────────────────────────── */
.avatar-wrap {
    position: relative;
    margin-bottom: 28px;
}

.avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(140deg, var(--coral) 0%, rgba(255,255,255,0.15) 100%);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Disponible Badge ──────────────────────────── */
.badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(10, 13, 30, 0.92);
    border: 1px solid rgba(74, 222, 128, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 4px 11px 4px 8px;
    white-space: nowrap;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulseDot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.badge-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.03em;
}

/* ── Profile Text ──────────────────────────────── */
.profile-name {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.profile-handle {
    font-size: 14px;
    font-weight: 500;
    color: var(--coral);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}

.profile-bio {
    font-size: 14px;
    font-weight: 400;
    color: var(--white-60);
    text-align: center;
    line-height: 1.65;
    max-width: 270px;
}

.bio-flags {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    letter-spacing: 3px;
}

/* ── Divider ───────────────────────────────────── */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
    margin: 30px 0 22px;
}

/* ── Section Label ─────────────────────────────── */
.section-label {
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--white-35);
    margin-bottom: 12px;
}

/* ── Link Stack ────────────────────────────────── */
.links-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Glass Button ──────────────────────────────── */
.link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    text-decoration: none;
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition:
        transform       0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color    0.22s ease,
        background      0.22s ease,
        box-shadow      0.22s ease;
    position: relative;
    overflow: hidden;
}

.link-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,255,255,0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.link-btn:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hov);
    background: var(--glass-bg-hover);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
}

.link-btn:hover::after { opacity: 1; }
.link-btn:hover .arrow { transform: translateX(4px); }

/* ── Button Icon ───────────────────────────────── */
.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon svg { width: 21px; height: 21px; }

.btn-icon.wa { background: rgba(37, 211, 102, 0.12); }
.btn-icon.li { background: rgba(10, 102, 194, 0.14); }
.btn-icon.gh { background: rgba(255, 255, 255, 0.07); }
.btn-icon.ig { background: rgba(221, 42, 123, 0.12); }

/* ── Button Text ───────────────────────────────── */
.btn-body { flex: 1; }

.btn-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.btn-sub {
    font-size: 12px;
    color: var(--white-35);
    display: block;
    margin-top: 2px;
    font-weight: 400;
}

/* ── Arrow ─────────────────────────────────────── */
.arrow {
    color: var(--white-35);
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Projects Section ──────────────────────────── */
.section-projects {
    width: 100%;
    margin-top: 28px;
}

/* ── Project Card ──────────────────────────────── */
.project-card {
    display: block;
    width: 100%;
    padding: 18px 18px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--coral);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    text-decoration: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition:
        transform       0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color    0.22s ease,
        background      0.22s ease,
        box-shadow      0.22s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,107,107,0.05), transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 107, 0.35);
    border-left-color: var(--coral);
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 0 10px 36px rgba(255, 107, 107, 0.1);
}

.project-card:hover::after         { opacity: 1; }
.project-card:hover .project-arrow { transform: translateX(4px); }

.project-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--coral);
    display: block;
    margin-bottom: 8px;
    opacity: 0.85;
}

.project-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.project-arrow {
    color: var(--white-35);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 3px;
    flex-shrink: 0;
}

.project-desc {
    font-size: 13px;
    color: var(--white-60);
    line-height: 1.55;
    margin-top: 8px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tech-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--white-12);
    border: 1px solid rgba(255,255,255,0.09);
    color: var(--white-60);
}

/* ── Footer ────────────────────────────────────── */
.footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    text-align: center;
}

.footer-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.5;
    margin: 0 auto 12px;
}

.footer-email {
    font-size: 13px;
    color: var(--white-35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover { color: var(--white-60); }

.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.18);
    margin-top: 10px;
    letter-spacing: 0.02em;
}
