/* ============================================================
   Joyería Grano de Oro · Linktree-style page
   Paleta oficial:
   - Negro clásico  #000000
   - Oro real       #F7CF0B
   - Topacio dorado #DF8B05
   - Blanco puro    #FFFFFF
   ============================================================ */

:root {
    --negro: #000000;
    --negro-soft: #0a0907;
    --negro-elev: #161310;
    --oro: #F7CF0B;
    --oro-suave: #f5d643;
    --topacio: #DF8B05;
    --topacio-oscuro: #a86606;
    --blanco: #FFFFFF;
    --hueso: #f6efe1;
    --gris-tenue: rgba(247, 207, 11, 0.18);
    --gris-borde: rgba(247, 207, 11, 0.32);

    --font-base: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-acento: "Cormorant Garamond", "Poppins", serif;

    --radio-pill: 999px;
    --radio-card: 18px;

    --sombra-oro: 0 14px 38px -16px rgba(247, 207, 11, 0.5);
    --sombra-card: 0 22px 60px -28px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(247, 207, 11, 0.06) inset;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--negro);
    color: var(--blanco);
    font-family: var(--font-base);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

/* ---------- background dressing ---------- */

.bg-glow {
    position: fixed;
    inset: -10vh -10vw auto -10vw;
    height: 80vh;
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(247, 207, 11, 0.22) 0%, rgba(247, 207, 11, 0.06) 35%, transparent 70%),
        radial-gradient(40% 50% at 80% 30%, rgba(223, 139, 5, 0.14) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-noise {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(247, 207, 11, 0.06) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 1px;
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* ---------- layout ---------- */

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 36px 22px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 720px) {
    .page {
        padding-top: 56px;
        padding-bottom: 64px;
    }
}

/* ---------- hero ---------- */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(8px);
    animation: rise 700ms 80ms cubic-bezier(.2,.7,.2,1) forwards;
}

.hero__wordmark {
    /* (removed) Wordmark image — reservado por compatibilidad */
    display: none;
}

.brand {
    /* (removed) Texto de marca — reservado por compatibilidad */
    display: none;
}

/* avatar circle */
.avatar {
    position: relative;
    width: 132px;
    height: 132px;
    margin-top: 4px;
}

.avatar__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 140deg,
        var(--oro) 0deg,
        var(--topacio) 80deg,
        var(--oro-suave) 160deg,
        var(--topacio-oscuro) 240deg,
        var(--oro) 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: spin 14s linear infinite;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 14px 40px -10px rgba(247, 207, 11, 0.45);
}

.avatar__img {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 50%;
    background: var(--negro);
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(247, 207, 11, 0.25);
}

.brand {
    margin: 6px 0 0;
    font-family: var(--font-acento);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: 0.5px;
    color: var(--oro);
    line-height: 1;
    display: none; /* desactivado: el logo circular cumple la función */
}

.tagline {
    margin: 0;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.tagline--title {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--oro);
    font-weight: 600;
}

.bio {
    margin: 6px 0 0;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.6;
    text-wrap: pretty;
}

.bio strong {
    color: var(--oro);
    font-weight: 600;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(247, 207, 11, 0.05);
    border: 1px solid var(--gris-tenue);
    border-radius: var(--radio-pill);
    backdrop-filter: blur(6px);
}

.badge svg {
    width: 12px;
    height: 12px;
    color: var(--oro);
}

/* ---------- decorative rule ---------- */

.rule {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--oro);
    opacity: 0;
    transform: translateY(8px);
    animation: rise 700ms 180ms cubic-bezier(.2,.7,.2,1) forwards;
}

.rule__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gris-borde), transparent);
}

.rule__diamond {
    width: 11px;
    height: 11px;
    transform: rotate(180deg);
    filter: drop-shadow(0 0 6px rgba(247, 207, 11, 0.6));
}

/* ---------- link buttons ---------- */

.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link {
    --bg: rgba(255, 255, 255, 0.02);
    --border: var(--gris-borde);
    --fg: var(--blanco);
    --sub: rgba(255, 255, 255, 0.55);
    --icon: var(--oro);

    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radio-card);
    color: var(--fg);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 320ms cubic-bezier(.2,.7,.2,1),
        border-color 320ms ease,
        color 320ms ease,
        box-shadow 320ms ease;
    box-shadow: var(--sombra-card);
    opacity: 0;
    transform: translateY(10px);
    animation: rise 600ms cubic-bezier(.2,.7,.2,1) forwards;
}

.link:nth-of-type(1) { animation-delay: 260ms; }
.link:nth-of-type(2) { animation-delay: 320ms; }
.link:nth-of-type(3) { animation-delay: 380ms; }
.link:nth-of-type(4) { animation-delay: 440ms; }

/* gold gradient that slides in on hover */
.link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--oro) 0%, var(--oro-suave) 45%, var(--topacio) 100%);
    opacity: 0;
    transition: opacity 320ms ease;
    z-index: -2;
}

/* shine sweep */
.link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 20%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.0) 80%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: left 700ms cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
    z-index: -1;
}

.link:hover,
.link:focus-visible {
    color: var(--negro);
    border-color: var(--oro);
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px -16px rgba(247, 207, 11, 0.6),
        0 2px 0 rgba(0, 0, 0, 0.4);
    outline: none;
}

.link:hover::before,
.link:focus-visible::before {
    opacity: 1;
}

.link:hover::after,
.link:focus-visible::after {
    left: 130%;
}

.link:active {
    transform: translateY(0);
    transition-duration: 80ms;
}

/* primary (WhatsApp) — slightly more emphasis */
.link--primary {
    --border: rgba(247, 207, 11, 0.55);
    background:
        linear-gradient(180deg, rgba(247, 207, 11, 0.08) 0%, rgba(247, 207, 11, 0.02) 100%);
}

.link--primary .link__icon {
    background: linear-gradient(135deg, var(--oro) 0%, var(--topacio) 100%);
    color: var(--negro);
    border-color: transparent;
}

/* icon plate */
.link__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(247, 207, 11, 0.08);
    border: 1px solid var(--gris-tenue);
    color: var(--icon);
    transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
}

.link__icon svg {
    width: 22px;
    height: 22px;
}

.link:hover .link__icon,
.link:focus-visible .link__icon {
    background: var(--negro);
    color: var(--oro);
    border-color: var(--negro);
}

.link__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    min-width: 0;
}

.link__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.2;
    color: inherit;
}

.link__sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--sub);
    letter-spacing: 0.2px;
    transition: color 320ms ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link:hover .link__sub,
.link:focus-visible .link__sub {
    color: rgba(0, 0, 0, 0.65);
}

.link__chevron {
    flex: 0 0 auto;
    color: rgba(247, 207, 11, 0.6);
    transition: transform 320ms cubic-bezier(.2,.7,.2,1), color 320ms ease;
}

.link__chevron svg {
    width: 18px;
    height: 18px;
}

.link:hover .link__chevron,
.link:focus-visible .link__chevron {
    color: var(--negro);
    transform: translateX(3px);
}

/* ---------- footer ---------- */

.footer {
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11.5px;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: rise 600ms 540ms cubic-bezier(.2,.7,.2,1) forwards;
}

.footer__rule {
    width: 56px;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, var(--gris-borde), transparent);
}

.footer__legal {
    margin: 0;
    line-height: 1.7;
}

.footer__tag {
    display: inline-block;
    margin-top: 2px;
    color: var(--oro);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 9.5px;
    font-weight: 500;
}

/* ---------- animations ---------- */

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero, .rule, .links .link, .footer {
        opacity: 1;
        transform: none;
    }
}
