/* Fénix Executive Landing
   Identidad: #631C80 / #6B656B / blanco
   Mobile-first, sin dependencias externas.
*/

:root {
    --fenix: #631c80;
    --fenix-dark: #421054;
    --ink: #272229;
    --muted: #6b656b;
    --line: rgba(99, 28, 128, .14);
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #ffffff;
    --bg: #fbf9fc;
    --shadow: 0 16px 44px rgba(63, 35, 72, .09);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Poppins", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.profile {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    background:
        radial-gradient(circle at 88% 8%, rgba(99, 28, 128, .065), transparent 25rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.portrait {
    position: relative;
    min-height: clamp(320px, 47svh, 520px);
    overflow: hidden;
    background: #ece8ee;
}

.portrait > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 30%;
    display: block;
}

.portrait__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 58%, rgba(23, 13, 27, .20) 100%),
        linear-gradient(90deg, rgba(99, 28, 128, .04), transparent 34%);
}

.content {
    position: relative;
    z-index: 2;
    margin-top: -22px;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 108% -8%, rgba(99, 28, 128, .07), transparent 20rem),
        var(--surface-solid);
}

.content__inner {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 28px 22px max(28px, env(safe-area-inset-bottom));
}

.brand {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 52px;
}

.brand__link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: min(58vw, 235px);
    min-width: 188px;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.identity {
    margin-top: 18px;
}

.identity__eyebrow {
    margin: 0 0 8px;
    color: var(--fenix);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.3rem, 10vw, 4rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 650;
    color: var(--ink);
}

.identity__company {
    max-width: 32rem;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: clamp(.92rem, 3.7vw, 1.05rem);
    line-height: 1.55;
}

.actions {
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.action {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 15px 12px 13px;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.action__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(99, 28, 128, .075);
    color: var(--fenix);
}

.action__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.action strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .96rem;
    line-height: 1.2;
    font-weight: 650;
    color: var(--ink);
}

.action small {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.2;
}

.action__arrow {
    color: var(--fenix);
    font-size: 1.05rem;
    transition: transform .18s ease;
}

.action:hover,
.action:focus-visible {
    outline: none;
    border-color: rgba(99, 28, 128, .34);
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.action:hover .action__arrow,
.action:focus-visible .action__arrow {
    transform: translate(2px, -2px);
}

.action:active {
    transform: translateY(0) scale(.99);
}

.footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    color: var(--muted);
}

.footer span {
    width: 32px;
    height: 1px;
    flex: 0 0 auto;
    background: rgba(99, 28, 128, .35);
}

.footer p {
    margin: 0;
    font-size: .70rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (min-width: 740px) {
    .content__inner {
        padding-left: 36px;
        padding-right: 36px;
    }

    .actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .action {
        min-height: 150px;
        grid-template-columns: 1fr 22px;
        grid-template-rows: auto 1fr;
        align-items: start;
        padding: 18px;
    }

    .action__icon {
        grid-column: 1;
        grid-row: 1;
    }

    .action__copy {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: end;
    }

    .action__arrow {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .action strong {
        white-space: normal;
    }
}

@media (min-width: 980px) {
    body {
        overflow: hidden;
    }

    .profile {
        height: 100vh;
        height: 100svh;
        grid-template-columns: minmax(430px, 48vw) 1fr;
        overflow: hidden;
    }

    .portrait {
        min-height: 100%;
    }

    .portrait > img {
        object-position: 50% center;
    }

    .portrait__veil {
        background:
            linear-gradient(90deg, transparent 72%, rgba(255,255,255,.08) 100%),
            linear-gradient(180deg, transparent 70%, rgba(25,13,30,.18) 100%);
    }

    .content {
        margin-top: 0;
        border-radius: 0;
        display: flex;
        align-items: center;
        overflow-y: auto;
    }

    .content::before,
    .content::after {
        content: "";
        position: fixed;
        pointer-events: none;
        border: 1px solid rgba(99, 28, 128, .045);
        border-radius: 999px;
        transform: rotate(-18deg);
    }

    .content::before {
        width: 42vw;
        height: 9vw;
        right: -9vw;
        top: 11vh;
    }

    .content::after {
        width: 34vw;
        height: 7vw;
        right: -7vw;
        bottom: 10vh;
    }

    .content__inner {
        width: min(78%, 720px);
        padding: 48px 0;
    }

    .brand {
        justify-content: flex-start;
    }

    .brand__link {
        width: min(260px, 36vw);
    }

    .identity {
        margin-top: clamp(30px, 5vh, 64px);
    }

    h1 {
        font-size: clamp(3.4rem, 5.25vw, 5.7rem);
    }

    .identity__company {
        font-size: 1rem;
    }

    .actions {
        margin-top: clamp(30px, 5vh, 52px);
    }

    .footer {
        margin-top: clamp(25px, 4vh, 42px);
    }
}

@media (min-width: 1400px) {
    .profile {
        grid-template-columns: minmax(580px, 50vw) 1fr;
    }

    .content__inner {
        width: min(72%, 760px);
    }
}

@media (max-height: 760px) and (min-width: 980px) {
    .content__inner {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .identity {
        margin-top: 22px;
    }

    h1 {
        font-size: clamp(3rem, 4.6vw, 4.8rem);
    }

    .actions {
        margin-top: 24px;
    }

    .action {
        min-height: 126px;
    }

    .footer {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
