/* Nexto Agency — Portfolio Test 100: one-column showcase. */

body.portfolio-test100-body {
    min-height: 100%;
    background: #000 !important;
    color: #fff;
}

.portfolio-test100-layout {
    align-items: stretch;
}

.portfolio-test100-content {
    display: block;
    min-width: 0;
    padding: 0 0 32px;
}

.portfolio-test100-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 2vw, 30px);
    width: 100%;
}

.portfolio-test100-project.nexto-showcase-preview {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: #000;
    box-shadow: none;
}

.portfolio-test100-project > .nexto-showcase-preview__card {
    width: 100%;
}

@media (max-width: 1023px) {
    .portfolio-test100-content {
        padding-bottom: 20px;
    }

    .portfolio-test100-grid {
        gap: 16px;
    }
}

/* ============================================================
   SIDEBAR — paridad con inicio-test100
   Estas reglas viven en page-inicio-test100.css, que esta página no
   encola. Sin ellas las marcas de la barra se renderizan a tamaño
   natural y desbordan.
   ============================================================ */
.nexto-sidebar.nx-glass .nx-brand-tile,
.nexto-sidebar.nx-glass .badge-center-icon,
.nexto-sidebar.nx-glass .nx-cc__avatar {
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #0b0a0d 0%, #000000 72%);
    border-color: rgba(255, 92, 171, 0.58);
    box-shadow:
        0 0 0 1px rgba(255, 142, 61, 0.16),
        0 8px 20px rgba(0, 0, 0, 0.34),
        0 0 16px rgba(137, 83, 255, 0.2);
}

.nexto-sidebar.nx-glass .nx-cc__avatar {
    overflow: visible;
}

.nexto-sidebar.nx-glass .nx-sidebar-brand-mark {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.nexto-sidebar.nx-glass .nx-sidebar-brand-mark--tile { padding: 3px; }
.nexto-sidebar.nx-glass .nx-sidebar-brand-mark--avatar { padding: 3px; border-radius: inherit; }

.nexto-sidebar.nx-glass .nx-sidebar-full-logo {
    width: clamp(150px, 11vw, 168px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

/* La chapa circular giratoria se sacó también en inicio-test100. */
.sidebar-award-badge,
.nexto-sidebar .sidebar-award-badge,
.nexto-sidebar.nx-glass .sidebar-award-badge {
    display: none !important;
}

/* ============================================================
   TARJETAS DE PROYECTO — sacar el velo opaco
   La regla de reposo de page-inicio-test10.css usa !important, así que
   el hover (sin !important) nunca podía ganarle: por eso el filtro no
   se quitaba. Acá se reponen ambos estados con la misma fuerza.
   La animación de entrada (blur 16px -> nítido) queda intacta porque
   solo se toca el estado .nx-inview.
   ============================================================ */
.portfolio-test100-project .nexto-showcase-preview__media,
.nx-js .portfolio-test100-project.nexto-showcase-preview.nx-inview .nexto-showcase-preview__media {
    filter: brightness(0.88) saturate(0.96) contrast(0.99) blur(0) !important;
}

.portfolio-test100-project .nexto-showcase-preview__card:hover .nexto-showcase-preview__media,
.nx-js .portfolio-test100-project.nexto-showcase-preview.nx-inview .nexto-showcase-preview__card:hover .nexto-showcase-preview__media {
    filter: none !important;
}

/* El degradado oscuro del card también se atenúa al pasar el mouse. */
.portfolio-test100-project .nexto-showcase-preview__card::before {
    transition: opacity 0.5s ease;
}

.portfolio-test100-project .nexto-showcase-preview__card:hover::before {
    opacity: 0.32;
}

/* ============================================================
   Pie de la tarjeta — badges compactas y meta legible
   ============================================================ */

/* Las badges tenían 42px de alto mínimo con 9px de padding vertical:
   demasiado aire para una línea de texto. */
.portfolio-test100-project .nexto-showcase-preview__tags span {
    min-height: 0;
    padding: 7px 16px;
    font-size: clamp(12px, 0.92vw, 14px);
    line-height: 1.15;
}

/* CLIENT / YEAR: el valor pasa a ser el que se lee, y la etiqueta
   queda como rótulo secundario. */
.portfolio-test100-project .nexto-showcase-preview__meta {
    width: min(100%, 300px);
}

.portfolio-test100-project .nexto-showcase-preview__meta dt {
    color: rgba(255, 255, 255, 0.56);
    font-size: clamp(10px, 0.72vw, 12px);
    font-weight: 620;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portfolio-test100-project .nexto-showcase-preview__meta dd {
    color: #ffffff;
    font-size: clamp(15px, 1.18vw, 19px);
    font-weight: 560;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ============================================================
   MENÚ MÓVIL — la sidebar real dentro de un panel flotante
   ============================================================ */
@media (max-width: 1023px) {
    .portfolio-test100-layout > .inicio-test10-sidebar {
        display: none !important;
    }

    .portfolio-test100-body .nx-menu-fab {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 9990;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        height: 46px;
        padding: 0 18px 0 15px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(16, 16, 22, 0.86);
        color: #fff;
        font: 620 13px/1 'Geist', sans-serif;
        letter-spacing: -0.02em;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
    }

    .portfolio-test100-body .nx-menu-fab__bars {
        display: grid;
        gap: 3.5px;
        width: 15px;
    }

    .portfolio-test100-body .nx-menu-fab__bars i {
        display: block;
        height: 1.6px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    }

    .portfolio-test100-body.nx-menu-open .nx-menu-fab__bars i:nth-child(1) { transform: translateY(5.1px) rotate(45deg); }
    .portfolio-test100-body.nx-menu-open .nx-menu-fab__bars i:nth-child(2) { opacity: 0; }
    .portfolio-test100-body.nx-menu-open .nx-menu-fab__bars i:nth-child(3) { transform: translateY(-5.1px) rotate(-45deg); }

    .portfolio-test100-body .nx-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 9985;
    }

    .portfolio-test100-body .nx-mobile-menu__scrim {
        position: absolute;
        inset: 0;
        background: rgba(6, 6, 10, 0.62);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .portfolio-test100-body.nx-menu-open .nx-mobile-menu__scrim { opacity: 1; }

    .portfolio-test100-body .nx-mobile-menu__panel {
        position: absolute;
        top: 10px;
        right: 10px;
        bottom: 10px;
        display: flex;
        width: min(calc(100vw - 20px), 420px);
        overflow: hidden;
        border-radius: 26px;
        transform: translateX(calc(100% + 14px));
        transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .portfolio-test100-body.nx-menu-open .nx-mobile-menu__panel { transform: translateX(0); }

    .portfolio-test100-body .nx-sidebar-as-menu.inicio-test10-sidebar {
        --apple-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
        position: relative;
        z-index: 1;
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 20px 18px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden auto !important;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 26px !important;
        background: linear-gradient(180deg, rgba(8, 8, 10, 0.94), rgba(0, 0, 0, 0.97)) !important;
        box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.42) !important;
        isolation: isolate;
        scrollbar-width: none;
    }

    .portfolio-test100-body .nx-sidebar-as-menu::-webkit-scrollbar { display: none; }

    .portfolio-test100-body .nx-sidebar-as-menu::before {
        content: '';
        position: absolute;
        top: -130px;
        left: 50%;
        z-index: 0;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05) 46%, transparent 70%);
        filter: blur(28px);
        transform: translateX(-50%);
        pointer-events: none;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-glass__aurora {
        position: absolute;
        inset: 0;
        z-index: 0;
        display: block !important;
        background: url('../img/sidebar-halftone-brand.webp') center bottom / 100% 108% no-repeat;
        opacity: 1;
        pointer-events: none;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-logo-group,
    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav,
    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-info-block,
    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-footer {
        position: relative;
        z-index: 1;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-header { display: contents !important; }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-logo-group {
        order: 1;
        display: flex !important;
        width: 100%;
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px 8px !important;
        border: 0;
        box-sizing: border-box;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-sidebar-full-logo { width: 154px !important; }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-menu-btn {
        display: grid !important;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        cursor: pointer;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-award-badge { display: none !important; }

    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav {
        order: 3;
        display: block !important;
        width: 100%;
        flex: 0 0 auto;
        padding: 14px 0 10px !important;
        border: 0 !important;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav-label {
        display: block !important;
        padding: 0 10px 7px !important;
        color: rgba(255, 255, 255, 0.36);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav-list {
        gap: 2px;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, 0.055);
        border-radius: 17px;
        background: rgba(0, 0, 0, 0.32);
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.38), inset 0 -0.5px 0 rgba(255, 255, 255, 0.05);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav-link {
        min-height: 40px;
        padding: 0 10px;
        border: 0;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.58);
        font-size: 13.5px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nexto-sidebar__nav-link.is-active {
        color: #1d1d1f;
        font-weight: 600;
        background: linear-gradient(180deg, #fff, #eeeef2);
        border-radius: 12px;
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 255, 255, 0.07);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-info-block {
        order: 4 !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        margin: 4px 0 0 !important;
        padding: 14px !important;
        gap: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 20px !important;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045) 52%, rgba(87, 80, 255, 0.09)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.24) !important;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__id {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__avatar {
        position: relative;
        display: flex;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__ping {
        position: absolute;
        right: -3px;
        bottom: -3px;
        width: 10px;
        height: 10px;
        border: 2px solid #30283f;
        border-radius: 50%;
        background: #39d98a;
        box-shadow: 0 0 10px rgba(57, 217, 138, 0.72);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__meta {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__name { color: #f5f5f7; font-size: 13px; font-weight: 680; }
    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__place { color: rgba(255, 255, 255, 0.48); font-size: 10px; }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        margin-top: 14px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__btn {
        display: flex;
        min-height: 36px;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 999px;
        background: rgba(13, 12, 21, 0.3);
        color: rgba(255, 255, 255, 0.88);
        font-size: 10.5px;
        font-weight: 650;
        text-decoration: none;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__btn:first-child {
        border-color: rgba(255, 255, 255, 0.75);
        background: linear-gradient(180deg, #fff, #e9e9f1);
        color: #252432;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-cc__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-footer {
        order: 5;
        display: flex !important;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: auto !important;
        padding-top: 10px !important;
        box-sizing: border-box;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-glass__status {
        display: inline-flex !important;
        align-items: center;
        align-self: flex-start;
        gap: 8px;
        margin-bottom: 4px;
        padding: 7px 13px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(12, 11, 18, 0.72);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .nx-glass__status-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
    .portfolio-test100-body .nx-sidebar-as-menu .nx-glass__status-text { color: rgba(255, 255, 255, 0.9); font-size: 11.5px; }
    .portfolio-test100-body .nx-sidebar-as-menu .nx-glass__status-text em { color: rgba(255, 255, 255, 0.55); }

    .portfolio-test100-body .nx-sidebar-as-menu .v0-orb-button {
        min-height: 48px;
        border: 0;
        border-radius: 999px;
        background: #111114;
        color: #f5f5f7;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-socials {
        display: flex !important;
        justify-content: center;
        gap: 8px;
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-social-link {
        border: 0;
        background: transparent;
        color: rgba(0, 0, 0, 0.5);
    }

    .portfolio-test100-body .nx-sidebar-as-menu .sidebar-copyright {
        color: rgba(0, 0, 0, 0.38);
        text-align: center;
    }

    body.portfolio-test100-body.nx-menu-open {
        position: fixed;
        left: 0;
        width: 100%;
        overflow: hidden;
    }
}

@media (min-width: 1024px) {
    .portfolio-test100-body .nx-menu-fab,
    .portfolio-test100-body .nx-mobile-menu {
        display: none !important;
    }
}
