/* =========================================
   VARIABLES
========================================= */

:root {
    --background: #06111d;
    --background-deep: #030a12;

    --surface: rgba(12, 29, 45, 0.78);
    --surface-strong: rgba(14, 35, 54, 0.94);
    --surface-hover: rgba(19, 47, 71, 0.96);

    --primary: #36bffa;
    --primary-light: #8edcff;
    --primary-dark: #1476d4;

    --secondary: #695cff;

    --text: #f4f8fb;
    --text-soft: #c1d0dc;
    --text-muted: #8399aa;

    --border: rgba(123, 200, 244, 0.18);
    --border-strong: rgba(83, 196, 255, 0.55);

    --success: #34d399;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);

    --glow:
        0 0 35px rgba(54, 191, 250, 0.22);

    --radius-small: 15px;
    --radius-medium: 22px;
    --radius-large: 30px;

    --page-width: 720px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(35, 151, 220, 0.26),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--background) 0%,
            var(--background-deep) 100%
        );

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}


/* =========================================
   FONDO
========================================= */

.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;

    overflow: hidden;
    pointer-events: none;
}

.background-orb {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.17;
}

.orb-one {
    top: -130px;
    left: -180px;

    background: #32bafa;

    animation: float-orb 12s ease-in-out infinite;
}

.orb-two {
    right: -200px;
    bottom: 5%;

    background: #6458ff;

    animation: float-orb 15s ease-in-out infinite reverse;
}

.background-grid {
    position: absolute;
    inset: 0;

    opacity: 0.07;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 80%
        );
}


/* =========================================
   CONTENEDOR
========================================= */

.page-container {
    width: min(
        calc(100% - 32px),
        var(--page-width)
    );

    margin-inline: auto;
    padding: 24px 0 48px;
}


/* =========================================
   BARRA SUPERIOR
========================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.mini-logo,
.share-button {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 59, 83, 0.9),
            rgba(8, 23, 36, 0.9)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mini-logo {
    color: var(--primary-light);
    font-size: 0.87rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.share-button {
    cursor: pointer;
    font-size: 1rem;
}

.mini-logo:hover,
.share-button:hover {
    border-color: var(--border-strong);

    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 25px rgba(54, 191, 250, 0.16);
}


/* =========================================
   PERFIL
========================================= */

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 12px 12px 38px;

    text-align: center;
}

.avatar-container {
    position: relative;

    width: 154px;
    height: 154px;

    margin-bottom: 23px;
}

.avatar-ring {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 4px;
    border-radius: 50%;

    background:
        conic-gradient(
            from 215deg,
            var(--primary-dark),
            var(--primary-light),
            var(--secondary),
            var(--primary-dark)
        );

    box-shadow:
        0 0 0 7px rgba(54, 191, 250, 0.07),
        0 0 48px rgba(54, 191, 250, 0.28);
}

.avatar-ring::after {
    content: "";

    position: absolute;
    inset: 4px;

    border-radius: 50%;
    border: 3px solid var(--background-deep);

    pointer-events: none;
}

.avatar-ring picture {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-image {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 29%;

    background: var(--surface-strong);
}

.availability-dot {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 2;

    width: 22px;
    height: 22px;

    border: 4px solid var(--background);
    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(52, 211, 153, 0.1),
        0 0 24px rgba(52, 211, 153, 0.72);
}

.profile-information {
    max-width: 590px;
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.name-container h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.verified-badge {
    display: inline-grid;
    place-items: center;

    color: var(--primary);
    font-size: 1.45rem;

    filter:
        drop-shadow(
            0 0 9px rgba(54, 191, 250, 0.48)
        );
}

.professional-role {
    margin-top: 12px;

    color: var(--primary-light);
    font-size: 0.93rem;
    font-weight: 650;
    letter-spacing: 0.025em;
}

.profile-description {
    max-width: 570px;
    margin: 17px auto 0;

    color: var(--text-soft);
    font-size: clamp(0.96rem, 3vw, 1.06rem);
    line-height: 1.75;
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin-top: 20px;
}

.specialties span {
    padding: 7px 12px;

    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 600;

    background: rgba(13, 34, 51, 0.72);
}


/* =========================================
   REDES SOCIALES
========================================= */

.social-networks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 25px;
}

.social-button {
    position: relative;

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 17px;

    font-size: 1.25rem;

    background:
        linear-gradient(
            145deg,
            rgba(22, 48, 69, 0.85),
            rgba(8, 23, 35, 0.9)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.17);

    overflow: hidden;

    transition:
        color 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.social-button::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 80%,
            rgba(54, 191, 250, 0.28),
            transparent 70%
        );

    transition: opacity 180ms ease;
}

.social-button i {
    position: relative;
    z-index: 1;
}

.social-button:hover {
    color: #ffffff;
    border-color: var(--border-strong);

    transform:
        translateY(-4px)
        scale(1.03);

    box-shadow:
        0 0 28px rgba(54, 191, 250, 0.2);
}

.social-button:hover::before {
    opacity: 1;
}

.linkedin:hover {
    color: #65baff;
}

.tiktok:hover {
    text-shadow:
        -2px -1px 0 rgba(0, 242, 234, 0.75),
        2px 1px 0 rgba(255, 0, 80, 0.65);
}

.whatsapp:hover {
    color: #55e89d;
}

.email:hover {
    color: #a7dfff;
}


/* =========================================
   ENCABEZADO DE SECCIÓN
========================================= */

.links-section {
    display: grid;
    gap: 15px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 5px 3px;
}

.section-heading > span:first-child {
    flex-shrink: 0;

    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.heading-line {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--border),
            transparent
        );
}


/* =========================================
   TARJETAS
========================================= */

.link-card {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 17px;

    min-height: 122px;
    padding: 19px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(17, 39, 58, 0.92),
            rgba(8, 23, 36, 0.93)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 16px 42px rgba(0, 0, 0, 0.2);

    overflow: hidden;

    transition:
        transform 210ms ease,
        border-color 210ms ease,
        background 210ms ease,
        box-shadow 210ms ease;
}

.link-card::after {
    content: "";

    position: absolute;
    top: 0;
    left: -130%;

    width: 65%;
    height: 100%;

    transform: skewX(-22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.07),
            transparent
        );

    transition: left 650ms ease;
}

.link-card:hover {
    border-color: rgba(83, 196, 255, 0.5);

    transform: translateY(-4px);

    background:
        linear-gradient(
            145deg,
            var(--surface-hover),
            rgba(8, 25, 39, 0.97)
        );

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.28),
        0 0 32px rgba(54, 191, 250, 0.1);
}

.link-card:hover::after {
    left: 150%;
}

.featured-card {
    min-height: 144px;

    border-color: rgba(102, 208, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(31, 143, 213, 0.95),
            rgba(25, 111, 190, 0.87) 45%,
            rgba(50, 81, 174, 0.92)
        );

    box-shadow:
        0 24px 65px rgba(0, 110, 196, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.featured-card:hover {
    border-color: rgba(180, 234, 255, 0.9);

    background:
        linear-gradient(
            135deg,
            rgba(38, 156, 225, 1),
            rgba(24, 118, 200, 0.96) 45%,
            rgba(63, 91, 194, 0.98)
        );

    box-shadow:
        0 28px 80px rgba(0, 119, 216, 0.32);
}

.card-glow {
    position: absolute;
    top: -80px;
    right: -50px;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.28),
            transparent 70%
        );

    pointer-events: none;
}

.link-icon {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;

    color: var(--primary-light);
    border: 1px solid rgba(110, 206, 255, 0.15);
    border-radius: 19px;

    font-size: 1.45rem;

    background:
        linear-gradient(
            145deg,
            rgba(33, 84, 116, 0.82),
            rgba(10, 36, 54, 0.9)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 24px rgba(54, 191, 250, 0.12);
}

.featured-icon {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);

    background: rgba(255, 255, 255, 0.13);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 30px rgba(255, 255, 255, 0.13);
}

.link-content {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.link-category {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--primary-light);

    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.featured-card .link-category {
    color: rgba(255, 255, 255, 0.8);
}

.link-content h2 {
    color: var(--text);

    font-size: clamp(1.08rem, 4vw, 1.3rem);
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -0.022em;
}

.link-content p {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 0.85rem;
    line-height: 1.47;
}

.featured-card .link-content p {
    color: rgba(255, 255, 255, 0.78);
}

.link-action {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;

    min-width: 29px;
}

.link-action > i {
    margin-block: auto;

    color: var(--text-muted);
    font-size: 1.25rem;

    transition:
        transform 180ms ease,
        color 180ms ease;
}

.featured-card .link-action > i {
    color: #ffffff;
}

.link-card:hover .link-action > i {
    color: var(--primary-light);

    transform:
        translate(3px, -3px);
}

.featured-card:hover .link-action > i {
    color: #ffffff;
}

.new-badge {
    padding: 7px 10px;

    color: #0b4a71;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.93);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}


/* =========================================
   CTA FINAL
========================================= */

.final-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;

    margin-top: 32px;
    padding: 21px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            135deg,
            rgba(14, 37, 56, 0.92),
            rgba(10, 25, 40, 0.88)
        );

    box-shadow: var(--shadow);
}

.cta-icon {
    display: grid;
    place-items: center;

    width: 47px;
    height: 47px;

    color: var(--primary-light);
    border-radius: 15px;

    background: rgba(54, 191, 250, 0.12);

    box-shadow:
        0 0 22px rgba(54, 191, 250, 0.16);
}

.final-cta h2 {
    font-size: 1rem;
    font-weight: 750;
}

.final-cta p {
    margin-top: 4px;

    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.final-cta > a {
    padding: 11px 14px;

    color: #06111d;
    border-radius: 12px;

    background: var(--primary-light);

    font-size: 0.77rem;
    font-weight: 800;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.final-cta > a:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 24px rgba(142, 220, 255, 0.3);
}


/* =========================================
   PIE DE PÁGINA
========================================= */

.page-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    padding: 35px 15px 8px;

    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
}

.page-footer a {
    color: var(--primary-light);
    font-weight: 700;
}


/* =========================================
   TOAST
========================================= */

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 17px;

    color: var(--text);
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 14px;

    background: rgba(8, 29, 34, 0.94);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 18px)
        scale(0.96);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.toast i {
    color: var(--success);
}

.toast.visible {
    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);
}


/* =========================================
   ACCESIBILIDAD
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(142, 220, 255, 0.72);
    outline-offset: 4px;
}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes float-orb {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(35px, 30px, 0);
    }
}


/* =========================================
   TABLET Y CELULAR
========================================= */

@media (max-width: 600px) {
    .page-container {
        width: min(
            calc(100% - 22px),
            var(--page-width)
        );

        padding-top: 14px;
    }

    .profile-section {
        padding-inline: 5px;
    }

    .avatar-container {
        width: 140px;
        height: 140px;
    }

    .link-card {
        grid-template-columns: auto 1fr auto;
        gap: 13px;

        min-height: 115px;
        padding: 15px;
    }

    .featured-card {
        min-height: 136px;
    }

    .link-icon {
        width: 54px;
        height: 54px;

        border-radius: 17px;
        font-size: 1.3rem;
    }

    .new-badge {
        display: none;
    }

    .final-cta {
        grid-template-columns: auto 1fr;
    }

    .final-cta > a {
        grid-column: 1 / -1;

        text-align: center;
    }
}

@media (max-width: 390px) {
    .link-content p {
        display: -webkit-box;
        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .link-card {
        padding: 14px 13px;
    }

    .link-icon {
        width: 50px;
        height: 50px;
    }
}


/* Desactiva animaciones cuando el usuario lo solicita */

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