:root {
    --orange:        #FF6B00;
    --orange-hover:  #e55c00;
    --orange-soft:   rgba(255, 107, 0, 0.09);
    --orange-border: rgba(255, 107, 0, 0.22);
    --blue:          #003399;
    --blue-hover:    #002880;
    --blue-soft:     rgba(0, 51, 153, 0.08);
    --blue-border:   rgba(0, 51, 153, 0.18);
    --text-dark:     #0d1b2e;
    --text-mid:      #4a5568;
    --text-muted:    #a0aec0;
    --sep-color:     #e8edf2;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient color blobs — very subtle depth */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.07) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -220px;
    left: -200px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(0, 51, 153, 0.06) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

/* ── Banner ──────────────────────────────────────── */
.banner-aviso {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(135deg, #FF6B00 0%, #e05800 100%);
    color: #fff;
    text-align: center;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.015em;
}

/* ── Page shell ──────────────────────────────────── */
.page {
    position: relative;
    z-index: 10;
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 168px; /* bottom = altura del footer fijo */
}

/* ── Accent bar ──────────────────────────────────── */
.accent-bar {
    width: 100%;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--orange) 0%, #ff9640 45%, var(--blue) 100%);
    transform-origin: left center;
    animation: bar-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bar-in {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}


/* ── Profile ─────────────────────────────────────── */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 36px;
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

/* Avatar — ring achieved via layered box-shadow */
.avatar-wrap {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 6px var(--orange),
        0 18px 50px rgba(0, 0, 0, 0.11),
        0 6px 20px rgba(255, 107, 0, 0.18);
    margin-bottom: 26px;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
}

.avatar-wrap:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 7px var(--orange),
        0 22px 56px rgba(0, 0, 0, 0.14),
        0 8px 24px rgba(255, 107, 0, 0.28);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
    display: block;
    transition: transform 0.45s ease;
}

.avatar-wrap:hover .avatar {
    transform: scale(1.06);
}

/* Name block */
.name-block {
    text-align: center;
}

.name {
    color: var(--text-dark);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.role {
    color: var(--orange);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.company-pip {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.55;
}

/* ── Separator ───────────────────────────────────── */
.sep {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    max-width: 290px;
    margin: 30px 0;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.sep-line {
    flex: 1;
    height: 1px;
    background: var(--sep-color);
}

.sep-diamond {
    width: 7px;
    height: 7px;
    background: var(--orange);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.65;
}

/* ── Contact buttons ─────────────────────────────── */
.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.87rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition:
        transform   0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.3s ease,
        background  0.25s ease,
        color       0.2s ease,
        border-color 0.2s ease;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-btn:nth-child(1) { animation-delay: 0.46s; }
.contact-btn:nth-child(2) { animation-delay: 0.56s; }

.contact-btn--orange {
    background: var(--orange-soft);
    color: var(--orange);
    border: 1.5px solid var(--orange-border);
}

.contact-btn--orange:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(255, 107, 0, 0.3);
}

.contact-btn--blue {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1.5px solid var(--blue-border);
}

.contact-btn--blue:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 51, 153, 0.26);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.contact-btn--orange .btn-icon { background: rgba(255, 107, 0, 0.12); }
.contact-btn--orange:hover .btn-icon { background: rgba(255, 255, 255, 0.22); }

.contact-btn--blue .btn-icon { background: rgba(0, 51, 153, 0.1); }
.contact-btn--blue:hover .btn-icon { background: rgba(255, 255, 255, 0.22); }

.btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #f0f4f9;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.66s both;
}

/* Línea espejo de la barra superior */
.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, #ff9640 45%, var(--blue) 100%);
}

.footer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 30px;
    gap: 8px;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    max-height: 70px;
    max-width: 230px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.04);
    opacity: 0.85;
}

.footer-url {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Keyframes ───────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0);     }
}

/* ── Bio / Descripción ───────────────────────────── */
.bio {
    width: 100%;
    margin-top: 26px;
    padding: 0 6px;
    text-align: center;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.bio p {
    color: var(--text-mid);
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* ── Social links ────────────────────────────────── */
.social-links {
    display: flex;
    gap: 11px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition:
        transform  0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        background 0.25s ease,
        color      0.2s ease,
        border-color 0.2s ease;
}

.social-link--email {
    background: var(--orange-soft);
    color: var(--orange);
    border: 1.5px solid var(--orange-border);
}
.social-link--email:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.3);
}

.social-link--phone {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1.5px solid var(--blue-border);
}
.social-link--phone:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 51, 153, 0.28);
}

.social-link--instagram {
    background: rgba(225, 48, 108, 0.07);
    color: #e1306c;
    border: 1.5px solid rgba(225, 48, 108, 0.18);
}
.social-link--instagram:hover {
    background: #e1306c;
    color: #fff;
    border-color: #e1306c;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(225, 48, 108, 0.3);
}

.social-link--linkedin {
    background: rgba(0, 119, 181, 0.07);
    color: #0077b5;
    border: 1.5px solid rgba(0, 119, 181, 0.18);
}
.social-link--linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 119, 181, 0.28);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    .page {
        padding: 36px 18px 36px;
    }

    .site-header {
        padding: 26px 0 30px;
    }

    .footer-logo {
        max-height: 58px;
    }

    .page {
        padding-bottom: 152px;
    }

    .avatar-wrap {
        width: 132px;
        height: 132px;
        margin-bottom: 22px;
    }

    .name {
        font-size: 1.45rem;
    }

    .contact-btn {
        padding: 13px 18px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.83rem;
    }

    .btn-text {
        font-size: 0.81rem;
    }
}

@media (max-width: 360px) {
    .name {
        font-size: 1.25rem;
    }

    .contact-btn {
        padding: 11px 14px;
        gap: 10px;
    }

    .btn-text {
        font-size: 0.74rem;
    }
}
