/* EXC Product Cards Styles */

:root {
    --exc-primary: #003B89;
    --exc-white: #ffffff;
    --exc-gray-light: #f5f5f5;
    --exc-gray-text: #333333;
    --exc-gray-muted: #999999;
}

/* Container principal */
.exc-cards-grid {
    display: flex;
    align-items: center;
    gap: 27px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 57px 27px 60px 27px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    scroll-snap-type: x mandatory; 
}

/* hide scrollbar */
.exc-cards-grid::-webkit-scrollbar {
    display: none;
}



/* Card */
.exc-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 440px;
    height: 651px;
    padding: 27px 26px 0 26px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 31px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}


/* Card Cerrada */
.exc-card__closed {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Vista abierta animacion */
.exc-card__open {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--exc-white);
    padding: 30px 26px;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    overflow-y: auto;
}

/* activacion de vista abierta con clase .is-open (click en botón) */
.exc-card.is-open .exc-card__open {
    transform: translateY(0);
}

/* img card cerrada background-image para garantizar cover */
.exc-card__image {
    width: 385px;
    height: 473px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 31px;
}

/* Contenedor pills, title y btn */
.exc-card__footer {
    display: flex;
    width: 388px;
    height: 89px;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.exc-card__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* category product */
.exc-card__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light, #AED2E4);
    color: var(--primary, #003B89);
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: 0.42px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    padding:10px 21px;
}

/* title */
.exc-card__title {
    color: #000A1D
    font-family: Archivo;
    font-size: 30px;
    font-style: normal;
    font-weight: 200;
    line-height: 130%; 
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

/* Botón + */
.exc-card__button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #003B89;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.exc-card__button svg {
    width: 16px;
    height: 17px;
    flex-shrink: 0;
}

/* Toggle de ver mas / menos */
.exc-card__toggle {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--exc-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    align-self: flex-start;
    margin-top: 10px; 
}

.exc-card__toggle:hover {
    opacity: 0.7;
}

/* Por defecto mostrar VER MÁS, ocultar VER MENOS */
.exc-card__toggle-more {
    display: inline;
}

.exc-card__toggle-less {
    display: none;
}

/* Cuando la card está abierta: mostrar VER MENOS, ocultar VER MaS */
.exc-card.is-open .exc-card__toggle-more {
    display: none;
}

.exc-card.is-open .exc-card__toggle-less {
    display: inline;
}


/* vista abierta stylos.  */
.exc-card__open .exc-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 24px;
}

.exc-card__open .exc-card__header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Contenedor del contenido (descripción, lista, tipos)*/
.exc-card__content {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

/* description */
.exc-card__description {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--exc-gray-text);
    margin: 0 0 20px 0;
}

/* list */
.exc-card__features {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 24px 0;
}

.exc-card__features li {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: var(--exc-gray-text);
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Tipos de consumidor */
.exc-card__consumer-types {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding-top: 16px;

}

.exc-card__consumer-label {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000A1D;
    cursor: pointer;
    transition: color 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.exc-card__consumer-label:hover {
    color: #000A1D
}

.exc-card__consumer-label.is-active {
    color: #000A1D;
    border-bottom-color: #000A1D;
}

/* Contenedor presentaciones */
.exc-card__sizes-wrapper {
    min-height: 18px;
}

/* Tamaños/Presentaciones */
.exc-card__sizes {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: var(--exc-gray-text);
    margin: 0;
    display: none;
}

.exc-card__sizes.is-active {
    display: block;
}

/* Prevenir arrastre de imágenes */
.exc-card__image img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}




@media (max-width: 767px) {
    /*  SIN scroll-snap para permitir auto-scroll */
    .exc-cards-grid {
        gap: 16px;
        padding: 30px 16px 40px 16px;
        scroll-snap-type: none; 
    }
    
    /* reduccion proporcionada */
    .exc-card {
        width: 300px;
        min-width: 300px;
        height: 480px;
        padding: 16px;
        gap: 16px;
    }
    
    /* img proporcionada */
    .exc-card__image {
        width: 100% !important;
        height: 320px !important;
        margin-bottom: 16px !important;
    }
    
    /* footer */
    .exc-card__footer {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px;
    }
    
    .exc-card__info {
        flex: 1;
        gap: 8px;
    }
    
    .exc-card__category {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .exc-card__title {
        font-size: 20px;
        line-height: 120%;
    }
    
    /* btn */
    .exc-card__button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .exc-card__button svg {
        width: 14px;
        height: 15px;
    }
    
    /* Vista abierta en mobile */
    .exc-card__open {
        padding: 20px 16px;
    }
    
    .exc-card__open .exc-card__header {
        margin-bottom: 16px;
    }
    
    .exc-card__description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .exc-card__features li {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .exc-cards-grid {
        padding: 24px 12px 32px 12px;
    }
    
    .exc-card {
        width: 280px;
        min-width: 280px;
        height: 450px;
        padding: 14px;
    }
    
    .exc-card__image {
        height: 280px !important;
    }
    
    .exc-card__title {
        font-size: 18px;
    }
    
    .exc-card__button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}

