/* css/pages/cards-styles.css */
/* ===== ESTILOS ESPECÍFICOS PARA CARDS.HTML ===== */

/* Sección especial para scroll cards */
.section.is--scroll-cards {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 50px;
    position: relative;
}

/* Contenedor principal SIMPLIFICADO */
.stacked-cards-container {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    height: 500px; /* ALTURA FIJA para el efecto stacked */
}

.stacked-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Tarjetas individuales - VERSIÓN SIMPLE */
.stacked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(139, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}

/* SOLO LA TARJETA ACTIVA SE MUESTRA */
.stacked-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
    z-index: 10;
}

/* Todas las tarjetas inactivas están OCULTAS */
.stacked-card:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
}

/* Contenido izquierdo de la tarjeta */
.scroll_cards__card__left {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Etiquetas de colores */
.tag-silver {
    background: linear-gradient(90deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-yellow {
    background: linear-gradient(90deg, #FFD700 0%, #FFFF00 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-orange {
    background: linear-gradient(90deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-red {
    background: linear-gradient(90deg, #FF0000 0%, #DC143C 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-purple {
    background: linear-gradient(90deg, #800080 0%, #9932CC 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-green {
    background: linear-gradient(90deg, #008000 0%, #32CD32 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

/* Títulos */
.h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

.h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Texto */
.text--xl {
    font-size: 1.3rem;
    line-height: 1.6;
}

.text--white-op-70 {
    color: rgba(255, 255, 255, 0.8);
}

.text--white {
    color: white;
}

.text--28 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Margenes */
.m-32 {
    margin-bottom: 32px;
}

/* Secciones de contenido */
.scroll-card__heading {
    margin-bottom: 40px;
}

.scroll-card__tag-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.scroll-card__mid {
    margin-bottom: 40px;
}

.scroll-card__bot {
    margin-top: 30px;
}

/* Separadores */
.curve-seperator {
    width: 80%;
    margin: 20px 0;
    opacity: 0.3;
}

/* Botón personalizado */
.button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.button-text-wrap {
    position: relative;
    margin-right: 10px;
    height: 20px;
    overflow: hidden;
}

.button-text {
    transition: transform 0.3s ease;
}

.button-text.hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(20px);
}

.button:hover .button-text.idle {
    transform: translateY(-20px);
}

.button:hover .button-text.hover {
    transform: translateY(0);
}

.button-icon-wrap {
    position: relative;
    width: 20px;
    height: 20px;
}

.button__icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    width: 20px;
    height: 20px;
}

.button__icon.hover {
    opacity: 0;
}

.button:hover .button__icon.idle {
    opacity: 0;
}

.button:hover .button__icon.hover {
    opacity: 1;
}

/* Imagen de la tarjeta */
.scroll-card-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.scroll-card-img img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Clases para mostrar/ocultar elementos */
.desktop {
    display: flex;
}

.mobile {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .stacked-cards-container {
        height: auto;
        min-height: auto;
    }
    
    .stacked-card {
        position: relative;
        height: auto;
        min-height: auto;
        margin-bottom: 40px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        pointer-events: all;
    }
    
    .stacked-card.active {
        transform: none;
    }
    
    .stacked-card:not(.active) {
        display: none; /* En móvil, usar display: none */
    }
    
    .scroll-card-img {
        order: -1;
        padding: 20px 40px;
    }
    
    .desktop {
        display: none;
    }
    
    .mobile {
        display: flex;
    }
    
    .scroll_cards__card__left {
        padding: 30px;
    }
    
    .h3 {
        font-size: 1.8rem;
    }
    
    .h4 {
        font-size: 2rem;
    }
    
    .progress-indicator {
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }
    
    .progress-dot::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .scroll_cards__card__left {
        padding: 20px;
    }
    
    .scroll-card-img {
        padding: 20px;
    }
    
    .scroll-card__tag-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .scroll-card-img img {
        max-height: 200px;
    }
    
    .progress-indicator {
        display: none;
    }
    
    .scroll-instructions {
        font-size: 14px;
        padding: 10px 20px;
        bottom: 20px;
    }
}