:root {
    --bg: #060407;
    --bg-2: #221932;
    --card: rgba(34, 25, 50, 0.72);
    --card-strong: rgba(34, 25, 50, 0.92);
    --primary: #722548;
    --primary-2: #541533;
    --accent: #9882B9;
    --muted: #775E88;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.74);
    --line: rgba(152, 130, 185, 0.16);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(114, 37, 72, 0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(152, 130, 185, 0.13), transparent 26%),
        linear-gradient(180deg, #0b0710 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    opacity: 0;
        transition: opacity 0.8s ease;
}
/* ENTRADA SUAVE GENERAL */
body.loaded {
    opacity: 1;
}

.about-page {
    position: relative;
}

.about-page::before,
.about-page::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.about-page::before {
    top: -120px;
    left: -120px;
    background: var(--primary);
}

.about-page::after {
    right: -140px;
    bottom: -140px;
    background: var(--accent);
}

.site-header,
main {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(20px, 4vw, 60px);
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(152, 130, 185, 0.4);
}

.brand-text {
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-soft);
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(114, 37, 72, 0.26);
    border-color: rgba(152, 130, 185, 0.18);
    transform: translateY(-1px);
}

.about-hero,
.skills-section {
    padding: 22px clamp(20px, 4vw, 60px) 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.profile-card {
    perspective: 1400px;
    min-height: 560px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.2, 1);
    border-radius: var(--radius-xl);
}

.card-inner.flipped {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(152, 130, 185, 0.12);
}

.card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    background:
        linear-gradient(145deg, rgba(34, 25, 50, 0.96), rgba(84, 21, 51, 0.74)),
        radial-gradient(circle at top right, rgba(152, 130, 185, 0.18), transparent 32%);
}

.card-front::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: calc(var(--radius-xl) - 10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.card-front-content,
.card-back-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: clamp(26px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back-content {
    justify-content: flex-start;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 14px;
}

.card-front h1 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.03;
    max-width: 10ch;
    margin-bottom: 16px;
}

.lead {
    max-width: 48ch;
    color: var(--text-soft);
    font-size: 1.03rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.primary-btn,
.ghost-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
    align-self: flex-start;
    padding: 14px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(114, 37, 72, 0.28);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(114, 37, 72, 0.38);
}

.card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background:
        linear-gradient(145deg, rgba(6, 4, 7, 0.92), rgba(34, 25, 50, 0.96)),
        radial-gradient(circle at bottom left, rgba(114, 37, 72, 0.16), transparent 34%);
}

.card-inner:not(.flipped) .card-back,
.card-inner.flipped .card-front {
    pointer-events: none;
}

.back-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ghost-btn {
    padding: 11px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(152, 130, 185, 0.14);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.bio-text {
    flex: 1;
    min-height: 0;
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 0.98rem;
    overflow: auto;
    padding-right: 6px;
}

.bio-text p+p {
    margin-top: 16px;
}

.profile-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portrait-frame {
    position: relative;
    max-height: 560px;
    border-radius: var(--radius-xl);
    padding: 16px;
    background:
        linear-gradient(160deg, rgba(34, 25, 50, 0.9), rgba(84, 21, 51, 0.5)),
        rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
    border: 1px solid rgba(152, 130, 185, 0.12);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-xl) - 10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portrait {
    width: 100%;
    height: 85%;
    min-height: 528px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 10px);
    display: block;
    filter: saturate(1.02) contrast(1.03);
}

.aside-note {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    padding: 14px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(152, 130, 185, 0.10);
}

.aside-note .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(152, 130, 185, 0.45);
    flex: 0 0 auto;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    padding-right: 8px;
}

.arrow-down {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 1.4s infinite;
}

.skills-section {
    padding-top: 8px;
    padding-bottom: 70px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 6px;
}

.skills-grid {
    display: grid;
    gap: 18px;
    max-width: 920px;
}

.skill-item {
    padding: 18px 18px 20px;
    border-radius: var(--radius-lg);
    background: rgba(34, 25, 50, 0.62);
    border: 1px solid rgba(152, 130, 185, 0.10);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

.skill-top span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(152, 130, 185, 0.08);
}

.skill-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(152, 130, 185, 0.22);
    transition: width 1.3s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.85;
    }

    50% {
        transform: translateY(8px) rotate(45deg);
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .profile-card,
    .portrait-frame {
        min-height: auto;
    }

    .card-inner {
        min-height: 520px;
    }

    .portrait {
        min-height: 420px;
    }

    .scroll-hint {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
    }

    .about-hero,
    .skills-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card-front h1 {
        max-width: none;
    }

    .profile-card {
        min-height: var(--flip-card-height, 560px);
        transition: min-height 0.28s ease;
    }

    .card-inner {
        min-height: var(--flip-card-height, 560px);
        transition:
            transform 0.9s cubic-bezier(0.2, 0.85, 0.2, 1),
            min-height 0.28s ease;
    }

    .card-face {
        height: 100%;
        overflow: hidden;
    }

    .card-front-content,
    .card-back-content {
        height: 100%;
        min-height: 100%;
        padding: 24px 18px;
    }

    .card-back-content {
        justify-content: flex-start;
    }

    .bio-text {
        overflow: visible;
        max-height: none;
        height: auto;
        padding-right: 0;
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .back-top {
        margin-bottom: 18px;
    }

    .portrait {
        min-height: 360px;
    }
}

/* =========================
   SERVICES
========================= */
.services-process {
    padding: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(34, 25, 50, 0.7);
    border: 1px solid rgba(152, 130, 185, 0.15);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(152, 130, 185, 0.15), transparent);
    opacity: 0;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
}


/* =========================
   PROCESS
========================= */
.process {
    margin-top: 80px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, #722548, #9882B9);
}

.step {
    text-align: center;
    width: 22%;
    position: relative;
}

.circle {
    width: 40px;
    height: 40px;
    background: #722548;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(152, 130, 185, 0.5);
    transition: 0.3s;
}

.step:hover .circle {
    background: #9882B9;
    transform: scale(1.1);
}

.step h4 {
    margin-bottom: 5px;
}

.step p {
    font-size: 0.9rem;
    color: #ccc;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .timeline {
        flex-direction: column;
        gap: 30px;
    }

    .timeline::before {
        display: none;
    }

    .step {
        width: 100%;
    }
}

.footer {
    position: relative;
    margin-top: 80px;
    padding: 60px 60px 24px;
    background:
        linear-gradient(180deg, rgba(6, 4, 7, 0.96), rgba(34, 25, 50, 0.98));
    border-top: 1px solid rgba(152, 130, 185, 0.16);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.22;
}

.footer-glow-1 {
    width: 260px;
    height: 260px;
    background: #722548;
    top: -80px;
    left: -80px;
}

.footer-glow-2 {
    width: 300px;
    height: 300px;
    background: #9882B9;
    right: -120px;
    bottom: -120px;
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand h3 {
    font-size: 1.3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    max-width: 36ch;
}

.footer h4 {
    color: #9882B9;
    margin-bottom: 14px;
}

.footer-links a,
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.footer-links a:hover,
.contact-link:hover {
    color: #ffffff;
    transform: translateX(6px);
    filter: drop-shadow(0 0 10px rgba(152, 130, 185, 0.35));
}

.icon-wrap,
.whatsapp-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(152, 130, 185, 0.14);
    box-shadow: 0 0 0 rgba(152, 130, 185, 0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    flex: 0 0 auto;
}

.icon-wrap svg,
.whatsapp-icon svg {
    width: 18px;
    height: 18px;
    fill: #9882B9;
    transition: transform 0.25s ease, fill 0.25s ease;
}

.contact-link:hover .icon-wrap,
.whatsapp-float:hover .whatsapp-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 18px rgba(152, 130, 185, 0.28);
    background: rgba(114, 37, 72, 0.22);
}

.contact-link:hover svg,
.whatsapp-float:hover svg {
    fill: #ffffff;
    transform: rotate(-6deg) scale(1.04);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 16px;
    text-align: center;
    border-top: 1px solid rgba(152, 130, 185, 0.10);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    background: linear-gradient(135deg, #722548, #9882B9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(152, 130, 185, 0.25);
    animation: pulse 1.9s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
}

.whatsapp-float:hover .whatsapp-icon {
    background: rgba(255, 255, 255, 0.10);
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.12);
        opacity: 0;
    }

    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .footer {
        padding: 50px 20px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand p {
        max-width: none;
    }
}

