/* ==========================================================================
   Nocturx · Enlaces 
   Marf Disegno VI - MMXXVI
   ========================================================================== */

@font-face {
    font-family: 'Arquitecta';
    src: url('/assets/fonts/ArquitectaBold.woff2') format('woff2'),
         url('/assets/fonts/ArquitectaBold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: block;
}
@font-face {
    font-family: 'Arquitecta';
    src: url('/assets/fonts/Arquitecta.woff2') format('woff2'),
         url('/assets/fonts/Arquitecta.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: block;
}

:root {
    --nx-bg:        #00000a;
    --nx-fg:        #ffffff;
    --nx-orange:    #ff621d;
    --nx-purple:    #9200b5;
    --nx-panel:     rgba(51, 51, 51, .82);
    --nx-panel-bd:  rgba(255, 255, 255, .10);
    --nx-radius:    8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Arquitecta', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--nx-fg);
    background-color: var(--nx-bg);
    min-height: 100vh;
}

/* Foto de fondo fija con overlay oscuro (igual que la original) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;   /* fallback */
    height: 100lvh;  /* altura estable: no salta al ocultarse la barra del móvil */
    z-index: -1;
    background: url('/enlaces/img/fondo.jpg') center center / cover no-repeat;
    opacity: .5;
}

::-webkit-scrollbar { width: 4px; background: var(--nx-bg); }
::-webkit-scrollbar-thumb { background: var(--nx-orange); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--nx-purple); }

/* ---- Panel central translúcido ---- */
.nx-enlaces {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px 40px 40px;
    background: var(--nx-panel);
    border: 1px solid var(--nx-panel-bd);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ---- Perfil ---- */
.nx-perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.nx-titulo {
    font-size: 25px;
    font-weight: 700;
    margin: -16px 0 0;
    letter-spacing: -0.1px;
}

.nx-bio {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* ---- Flecha animada (CSS, reemplaza el Lottie) ---- */
.nx-flecha {
    display: block;
    width: 54px;
    height: 70px;
    margin: 2px auto 0;
    color: var(--nx-orange);
    will-change: transform;
    animation: nx-bounce 1.6s ease-in-out infinite;
}
.nx-flecha svg { display: block; width: 100%; height: 100%; }
@keyframes nx-bounce {
    0%, 100% { transform: translateY(0);   opacity: .9; }
    50%      { transform: translateY(8px); opacity: .5; }
}

/* ---- Animación grow ---- */
.nx-grow { transition: transform .25s ease; }
.nx-grow:hover, .nx-grow:focus-visible { transform: scale(1.08); }

/* ---- Botón / enlace social (sólido naranja -> morado) ---- */
.nx-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 22px;
    border-radius: var(--nx-radius);
    background: var(--nx-orange);
    color: #fff;
    text-decoration: none;
    font-size: 14px!important;
    font-weight: 700;
    transition: background .25s ease, transform .25s ease;
}
.nx-btn:hover, .nx-btn:focus-visible { background: var(--nx-purple); transform: scale(1.03); }
.nx-btn svg { width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; }

/* ---- CTA destacado (Ir al Sitio Oficial) ---- */
.nx-cta {
    position: relative;
    width: 100%;
    min-height: 225px;
    border-radius: var(--nx-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
}
.nx-cta .nx-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}
.nx-cta:hover .nx-cta-bg { transform: scale(1.1); }
.nx-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 10, .8), rgba(0, 0, 10, .05) 70%);
}
.nx-cta .nx-cta-btn {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    padding: 13px 34px;
    border-radius: var(--nx-radius);
    background: var(--nx-purple);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: background .25s ease, transform .25s ease;
}
.nx-cta:hover .nx-cta-btn { background: var(--nx-orange); transform: scale(1.05); }

/* ---- Tarjetas slide (Noctiglam, Nox di Notte, etc.) ---- */
.nx-slide {
    position: relative;
    width: 100%;
    min-height: 250px;
    border-radius: var(--nx-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background-color: #833ca3;
}
.nx-slide .nx-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 7s ease;
}
.nx-slide:hover .nx-slide-bg { transform: scale(1.1); }
.nx-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}
.nx-slide-content { position: relative; z-index: 1; text-align: center; padding: 0 20px; }
.nx-slide-title { display: block; font-size: 25px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.nx-slide-desc { display: block; font-size: 15px; margin: 0 0 22px; }
.nx-slide-btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: var(--nx-radius);
    background: var(--nx-purple);
    font-weight: 700;
    font-size: 13px;
    transition: background .25s ease, transform .25s ease;
}
.nx-slide:hover .nx-slide-btn { background: var(--nx-orange); transform: scale(1.04); }

/* ---- Sello MARF ---- */
.nx-sello { display: block; width: auto; max-width: 220px; height: auto; margin-top: 40px; }

@media (max-width: 600px) {
    .nx-enlaces { margin: 0; border-radius: 0; padding: 26px 22px 36px; min-height: 100vh; }
    .nx-perfil { width: 130px; height: 130px; }
    .nx-slide-title { font-size: 22px; }
}
