/* ==========================================================================
   Related Projects Carousel — Descubre más activos rentables
   Scoped under .ntono-related-projects to avoid conflicts
   ========================================================================== */

.ntono-related-projects {
    padding: 6rem 0;
    background: #161A1D;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent in top-right corner */
.ntono-related-projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to left, rgba(250, 169, 22, 0.04), transparent);
    pointer-events: none;
}

.ntono-rp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── Header Row ────────────────────────────────────────── */
.ntono-rp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.ntono-rp-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.ntono-rp-desc {
    color: #9ca3af;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.ntono-rp-nav {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.ntono-rp-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ntono-rp-arrow:hover {
    background: #ffffff;
    color: #0B090A;
    border-color: #ffffff;
}

.ntono-rp-arrow .material-icons {
    font-size: 1.25rem;
}

/* ── Carousel Track ────────────────────────────────────── */
.ntono-rp-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ntono-rp-track::-webkit-scrollbar {
    display: none;
}

/* ── Slide Item ────────────────────────────────────────── */
.ntono-rp-slide {
    flex: 0 0 auto;
    width: calc(33.333% - 1rem);
    min-width: 300px;
    scroll-snap-align: center;
}

/* ── Card ──────────────────────────────────────────────── */
.ntono-rp-card {
    display: block;
    position: relative;
    height: 450px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1d21;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ── Card Image ────────────────────────────────────────── */
.ntono-rp-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.ntono-rp-card:hover .ntono-rp-card-img {
    transform: scale(1.1);
    filter: saturate(1.5);
}

.ntono-rp-card-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* ── Gradient Overlay ──────────────────────────────────── */
.ntono-rp-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.ntono-rp-card:hover .ntono-rp-card-gradient {
    opacity: 0.7;
}

/* ── Card Content ──────────────────────────────────────── */
.ntono-rp-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    box-sizing: border-box;
    transform: translateY(0.5rem);
    transition: transform 0.5s ease;
}

.ntono-rp-card:hover .ntono-rp-card-content {
    transform: translateY(0);
}

/* ── Service Badge ─────────────────────────────────────── */
.ntono-rp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    margin-bottom: 1rem;
}

.ntono-rp-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.ntono-rp-badge-text {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ── Card Title ────────────────────────────────────────── */
.ntono-rp-card-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
}

/* ── Hover CTA ─────────────────────────────────────────── */
.ntono-rp-card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 1rem;
}

.ntono-rp-card:hover .ntono-rp-card-cta {
    height: auto;
    opacity: 1;
}

.ntono-rp-cta-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
}

.ntono-rp-cta-icon {
    font-size: 1.125rem;
    color: var(--ntono-accent, #FAA916);
    transition: transform 0.3s ease;
}

.ntono-rp-card:hover .ntono-rp-cta-icon {
    transform: translateX(0.5rem);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ntono-rp-slide {
        width: calc(50% - 0.75rem);
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .ntono-related-projects {
        padding: 4rem 0;
    }

    .ntono-rp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ntono-rp-slide {
        width: 85%;
        min-width: 260px;
    }

    .ntono-rp-card {
        height: 380px;
    }

    .ntono-rp-card-title {
        font-size: 1.5rem;
    }
}