/* =========================================
   RESET
========================================= */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    background: #53423a;
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    background: #53423a;

    font-family: "Belanosima", sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   PAGE
========================================= */

.page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


/* =========================================
   CARD
========================================= */

.card {
    position: relative;

    width: min(100%, 460px);
    height: min(880px, calc(100dvh - 60px));

    overflow: hidden;

    isolation: isolate;
}


/* =========================================
   BACKGROUND
========================================= */

.background {
    position: absolute;
    inset: 0;

    z-index: -2;

    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    animation:
        imageReveal
        1.5s
        cubic-bezier(.16, 1, .3, 1)
        both;
}


/* =========================================
   GRADIENT
========================================= */

.gradient {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.00) 25%,
            rgba(0, 0, 0, 0.04) 48%,
            rgba(0, 0, 0, 0.28) 70%,
            rgba(0, 0, 0, 0.68) 100%
        );
}


/* =========================================
   CONTENT
========================================= */

.content {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;


}


/* =========================================
   PROFILE
========================================= */

.profile {
    position: absolute;
    top: 0;
    left: 0;
}

.profile h1 {
    writing-mode: vertical-rl;
    margin: 0;
    font-family: "Julius Sans One", sans-serif;

    /* Limitamos el tamaño real del título para evitar cualquier desborde. */
    font-size: 70px;
    line-height: 0.7;

    font-weight: 500;

    letter-spacing: 0.01em;

    color: rgba(230, 210, 189, 0.7);
    text-align: right;

    white-space: nowrap;

    text-shadow:
        0 3px 22px rgba(0, 0, 0, 0.32);

    animation:
        titleReveal
        0.9s
        0.1s
        cubic-bezier(.16, 1, .3, 1)
        both;
}


/* =========================================
   LINKS
========================================= */

.links {
    width: 50%;
    margin-left: auto;
    margin-right: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


/* =========================================
   BUTTONS
========================================= */

.social-link {
    position: relative;

    width: 100%;

    /* Botones más pequeños y discretos. */
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: left;

    padding: 0 20px;

    background: rgba(230, 210, 189, 0.85);

    color: #403d39;

    font-family: "Julius Sans One", sans-serif;

    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border-radius: 2px 0 0 2px;
    overflow: hidden;

    opacity: 0;

    transform: translateX(-18px);

    clip-path: inset(0 100% 0 0);
    gap: 12px;

    animation:
        linkReveal
        0.7s
        var(--delay)
        cubic-bezier(.16, 1, .3, 1)
        forwards;

    transition:
        transform 0.3s cubic-bezier(.16, 1, .3, 1),
        background-color 0.3s ease;
}
.icon {
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.icon svg {
    width: 18px;
    height: 18px;

    display: block;

    fill: currentColor;
}
.intro {
    margin-bottom: 12px;

    font-family: "Julius Sans One", sans-serif;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;

    color: rgba(230, 210, 189, 1);

    text-align: center;
}
.footer {
    width: 100%;
    margin-top: 50px;
        margin-bottom: 30px;

    font-family: "Julius Sans One", sans-serif;

    font-size: 11px;

    letter-spacing: 0.08em;

    color: rgba(230, 210, 189, 1);

    text-align: center;
}
/* =========================================
   HOVER
========================================= */

@media (hover: hover) {

.social-link:hover {
    transform: translateX(5px);
    background-color: #e1c2a8;
}

}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes imageReveal {

    from {
        opacity: 0;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes titleReveal {

    from {
        opacity: 0;
        transform: translateY(16px);
        letter-spacing: 0.06em;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.01em;
    }
}


@keyframes linkReveal {

    from {
        opacity: 0;
        transform: translateX(-18px);
        clip-path: inset(0 100% 0 0);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .page {
        padding: 0;
    }

    .card {
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

 

    .profile {
        width: 100%;
        margin-bottom: 18px;
    }

    .profile h1 {
        font-size: clamp(42px, 20vw, 90px);
    }

    .links {
        width: 50%;

        gap: 7px;
    }

    .social-link {
        min-height: 50px;

        font-size: 17px;
    }
}


/* =========================================
   VERY SHORT MOBILE
========================================= */

@media (max-width: 600px) and (max-height: 700px) {


    .profile {
        margin-bottom: 14px;
    }

    .profile h1 {
        font-size: 42px;
    }

    .links {
        gap: 5px;
    }

    .social-link {
        min-height: 46px;

        font-size: 16px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}