/* ============================================================
   COMPONENTE - FEATURES SHOWCASE
   Sección interactiva con pestañas y carrusel de imágenes
   ============================================================ */

.features-showcase {
    background-color: #000000;
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

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

.features-showcase__container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 5vw, 3rem);
    overflow: visible;
}

/* ============================================================
   MENÚ DE PESTAÑAS
   ============================================================ */

.features-showcase__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: 0 1rem;
    max-width: 100%;
}

.features-showcase__tab {
    font-family: var(--font-family-primary);
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.features-showcase__tab:hover {
    color: #FFFFFF;
}

.features-showcase__tab:focus {
    outline: none;
}

.features-showcase__tab.is-active {
    background: #60607c99;
    color: #FFFFFF;
    border: 1px solid rgba(129, 45, 242, 0.5);
    box-shadow: 0 0 15px rgba(129, 45, 242, 0.25);
}

.features-showcase__tab:not(.is-active) {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

/* ============================================================
   ÁREA DE CONTENIDO (FLECHAS + IMÁGENES)
   ============================================================ */

.features-showcase__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* ============================================================
   FLECHAS DE NAVEGACIÓN - Alineadas al centro de las imágenes
   ============================================================ */

.features-showcase__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.features-showcase__arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.features-showcase__arrow--prev {
    left: 20px;
}

.features-showcase__arrow--next {
    right: 20px;
}


.features-showcase__arrow-icon {
    width: 80px;
    height: 140px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2.5;
    fill: none;
}

.features-showcase__arrow:hover .features-showcase__arrow-icon {
    stroke: rgba(255, 255, 255, 0.95);
}

/* Ocultar flechas por defecto (se muestran en 1250px+) */
.features-showcase__arrow {
    display: none;
}

/* ============================================================
   CONTENEDOR DE IMÁGENES (MOCKUPS)
   ============================================================ */

.features-showcase__images {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: clamp(400px, 60vw, 650px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 0 auto;
}

/* Contenedor de cada slide */
.features-showcase__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: visible;
}

.features-showcase__slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Composición de mockups */
.features-showcase__mockups {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Imagen de Desktop/Tablet - Centrada hacia la derecha */
.features-showcase__desktop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-37%, -50%);
    width: clamp(1200px, 180vw, 2400px);
    height: auto;
    border-radius: clamp(8px, 1.5vw, 16px);
    border: 6px solid rgba(180, 180, 190, 0.5);
    box-shadow:
        0 0 15px rgba(200, 200, 210, 0.3),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Imagen única (sin móvil) - Centrada y sin borde */
.features-showcase__mockups:only-child .features-showcase__desktop:only-child,
.features-showcase__desktop:only-child {
    transform: translate(-50%, -50%);
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Imagen de Móvil - Superpuesta a la izquierda */
.features-showcase__mobile {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-190%, -50%);
    width: clamp(420px, 65vw, 900px);
    height: auto;
    border-radius: clamp(12px, 2vw, 24px);
    border: 6px solid rgba(180, 180, 190, 0.5);
    box-shadow:
        0 0 15px rgba(200, 200, 210, 0.3),
        0 30px 60px -15px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* ============================================================
   RESPONSIVE - MÓVIL PEQUEÑO (hasta 480px)
   ============================================================ */

@media (max-width: 480px) {
    .features-showcase {
        padding: 2rem 0;
        position: relative;
    }

    .features-showcase .container,
    .features-showcase__container,
    .container.features-showcase__container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Ocultar tabs múltiples en móvil */
    .features-showcase__tabs {
        display: none !important;
    }

    /* Mostrar solo el tab único centrado */
    .features-showcase__single-tab {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .features-showcase__single-tab .features-showcase__tab {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
        pointer-events: none;
        text-align: center;
    }

    /* Mostrar dots en móvil */
    .features-showcase__dots {
        display: flex !important;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .features-showcase__dot {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        max-width: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }

    /* Ocultar flechas en móvil */
    .features-showcase__arrow {
        display: none !important;
    }

    .features-showcase__content {
        width: 100% !important;
        padding: 0 0.5rem !important;
    }

    .features-showcase__images {
        height: 280px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .features-showcase__mockups {
        width: 100% !important;
    }

    .features-showcase__desktop {
        width: 82% !important;
        max-width: none !important;
        left: auto !important;
        right: 1% !important;
        transform: translateY(-50%) !important;
    }

    .features-showcase__mobile {
        width: 32% !important;
        max-width: none !important;
        left: 1% !important;
        transform: translateY(-50%) !important;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL (481px - 767px)
   ============================================================ */

@media (min-width: 481px) and (max-width: 767px) {
    .features-showcase {
        position: relative;
    }

    .features-showcase .container,
    .features-showcase__container,
    .container.features-showcase__container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Ocultar tabs múltiples */
    .features-showcase__tabs {
        display: none !important;
    }

    /* Mostrar solo el tab único centrado */
    .features-showcase__single-tab {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .features-showcase__single-tab .features-showcase__tab {
        font-size: 1rem;
        padding: 0.6rem 1.75rem;
        pointer-events: none;
        text-align: center;
    }

    /* Mostrar dots en móvil */
    .features-showcase__dots {
        display: flex !important;
        margin-top: 1rem;
        gap: 0.6rem;
    }

    .features-showcase__dot {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        max-width: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
    }

    /* Ocultar flechas en móvil */
    .features-showcase__arrow {
        display: none !important;
    }

    .features-showcase__content {
        width: 100% !important;
        padding: 0 0.75rem !important;
    }

    .features-showcase__images {
        height: 320px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .features-showcase__mockups {
        width: 100% !important;
    }

    .features-showcase__desktop {
        width: 80% !important;
        max-width: none !important;
        left: auto !important;
        right: 2% !important;
        transform: translateY(-50%) !important;
    }

    .features-showcase__mobile {
        width: 30% !important;
        max-width: none !important;
        left: 2% !important;
        transform: translateY(-50%) !important;
    }
}

/* ============================================================
   RESPONSIVE - TABLET Y DESKTOP (768px+) - Tabs múltiples visibles
   ============================================================ */

@media (min-width: 768px) {
    /* Mostrar tabs múltiples en tablet/desktop */
    .features-showcase__tabs,
    .features-showcase--carousel .features-showcase__tabs {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ocultar tab único en tablet/desktop */
    .features-showcase__single-tab {
        display: none !important;
    }

    /* Ocultar dots en tablet/desktop */
    .features-showcase__dots {
        display: none !important;
    }
}

/* Mostrar flechas solo en desktop grande (1250px+) */
@media (min-width: 1250px) {
    .features-showcase__arrow {
        display: flex !important;
    }
}

/* ============================================================
   RESPONSIVE - TABLET PEQUEÑO (768px - 899px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 899px) {
    .features-showcase__tabs {
        gap: 0.5rem;
    }

    .features-showcase__tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .features-showcase__images {
        height: 450px;
        max-width: 100%;
    }

    .features-showcase__desktop {
        width: 520px;
        transform: translate(-35%, -50%);
    }

    .features-showcase__mobile {
        width: 175px;
        transform: translate(-175%, -50%);
    }
}

/* ============================================================
   RESPONSIVE - TABLET (900px - 1023px)
   ============================================================ */

@media (min-width: 900px) and (max-width: 1023px) {
    .features-showcase__tabs {
        gap: 0.75rem;
    }

    .features-showcase__tab {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    .features-showcase__images {
        height: 550px;
        max-width: 100%;
    }

    .features-showcase__desktop {
        width: 650px;
        transform: translate(-35%, -50%);
    }

    .features-showcase__mobile {
        width: 220px;
        transform: translate(-175%, -50%);
    }
}

/* ============================================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
    .features-showcase {
        padding: 5rem 0;
    }

    .features-showcase__arrow--prev {
        left: 25px;
    }

    .features-showcase__arrow--next {
        right: 25px;
    }

    .features-showcase__tabs {
        gap: 1rem;
    }

    .features-showcase__tab {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .features-showcase__arrow-icon {
        width: 5rem;
        height: 8rem;
    }

    .features-showcase__images {
        height: 600px;
        max-width: 100%;
    }

    .features-showcase__desktop {
        width: 700px;
        transform: translate(-45%, -50%);
    }

    .features-showcase__mobile {
        width: 175px;
        transform: translate(-220%, -30%);
    }
}

/* ============================================================
   RESPONSIVE - DESKTOP GRANDE (1440px+)
   ============================================================ */

@media (min-width: 1440px) {
    .features-showcase {
        padding: 6rem 0;
    }

    .features-showcase__arrow--prev {
        left: 30px;
    }

    .features-showcase__arrow--next {
        right: 30px;
    }

    .features-showcase__arrow-icon {
        width: 6rem;
        height: 10rem;
    }

    .features-showcase__images {
        height: 650px;
        max-width: 100%;
    }

    .features-showcase__desktop {
        width: 780px;
        transform: translate(-45%, -50%);
    }

    .features-showcase__mobile {
        width: 195px;
        transform: translate(-210%, -30%);
    }
}

/* ============================================================
   RESPONSIVE - ULTRA WIDE (1920px+)
   ============================================================ */

@media (min-width: 1920px) {
    .features-showcase__arrow--prev {
        left: 40px;
    }

    .features-showcase__arrow--next {
        right: 40px;
    }

    .features-showcase__arrow-icon {
        width: 7rem;
        height: 12rem;
    }

    .features-showcase__images {
        height: 700px;
        max-width: 100%;
    }

    .features-showcase__desktop {
        width: 860px;
        transform: translate(-45%, -50%);
    }

    .features-showcase__mobile {
        width: 215px;
        transform: translate(-200%, -30%);
    }
}

/* ============================================================
   MODO CARRUSEL - Solo para móviles (hasta 767px)
   En desktop se muestran los tabs múltiples normales
   ============================================================ */

/* Por defecto: ocultar single-tab, mostrar tabs múltiples */
.features-showcase__single-tab {
    display: none;
}

.features-showcase--carousel .features-showcase__tabs {
    display: flex;
}

.features-showcase__single-tab .features-showcase__tab {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: 0.75rem 2rem;
    pointer-events: none;
}

/* Dots de navegación */
.features-showcase__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.features-showcase__dot {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    background: rgba(129, 45, 242, 0.4) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.features-showcase__dot:hover {
    background: rgba(129, 45, 242, 0.7) !important;
}

.features-showcase__dot.is-active {
    background: #812DF2 !important;
    box-shadow: 0 0 5px rgba(129, 45, 242, 0.5);
}

/* Imágenes más grandes aprovechando espacio lateral */
.features-showcase--carousel .features-showcase__container {
    max-width: 100%;
    padding: 0 2rem;
}

.features-showcase--carousel .features-showcase__content {
    width: 100%;
}

.features-showcase--carousel .features-showcase__images {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive para modo carrusel */
@media (min-width: 1024px) {
    .features-showcase--carousel .features-showcase__images {
        max-width: 1100px;
        height: 550px;
    }

    .features-showcase--carousel .features-showcase__desktop {
        width: 700px;
    }

    .features-showcase--carousel .features-showcase__mobile {
        width: 175px;
    }
}

@media (min-width: 1440px) {
    .features-showcase--carousel .features-showcase__images {
        max-width: 1300px;
        height: 620px;
    }

    .features-showcase--carousel .features-showcase__desktop {
        width: 780px;
    }

    .features-showcase--carousel .features-showcase__mobile {
        width: 195px;
    }
}

@media (min-width: 1920px) {
    .features-showcase--carousel .features-showcase__images {
        max-width: 1500px;
        height: 700px;
    }

    .features-showcase--carousel .features-showcase__desktop {
        width: 860px;
    }

    .features-showcase--carousel .features-showcase__mobile {
        width: 215px;
    }
}
