/*<--------------------------------------------------->
<!-- Precios (section component)                    -->
<!----------------------------------------------------->
* Description:
    Pricing section for #precios. Three plan cards in a
    3-column desktop grid that converts to a swipeable
    carousel on mobile (<768px). Each card features native
    <details>/<summary> "Qué incluye" items, measurable results,
    and pricing.
    Desktop column hover and mobile touch support.
* Dependencies:
    - style.css (custom properties, sectionHeader, .content)
    - precios.js (carousel, column hover)
--------------------------------------------------->*/

/*###################################################*/
/*...................................................*/
/* precios shell                                     */
/*...................................................*/
/*###################################################*/

.precios {
    display: flex;
    align-items: center;
    justify-content: center;
}

.precios > .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.precios .sectionHeader {
    width: 100%;
    align-self: flex-start;
}

/*###################################################*/
/*...................................................*/
/* end precios shell                                 */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* intro paragraph                                   */
/*...................................................*/
/*###################################################*/

.preciosIntro {
    max-width: 52rem;
    margin: 1.25rem 0 0;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.7;
    color: hsla(0, 30%, 96%, 0.55);
}

/*###################################################*/
/*...................................................*/
/* end intro paragraph                               */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* card grid / carousel wrapper                      */
/*...................................................*/
/*###################################################*/

.preciosWrapper {
    width: 100%;
    max-width: 72rem;
    margin-top: 3rem;
}

.preciosViewport {
    overflow: hidden;
    touch-action: pan-y;
    width: 100%;
}

.preciosTrack {
    display: flex;
    gap: 0.85rem;
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);

    @media (min-width: 768px) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, auto);
        gap: 0;
        /* //HACK: JS writes inline transforms for the mobile carousel; desktop must always reset the track to a static grid. */
        transform: none !important;
        transition: none !important;
    }
}

/*###################################################*/
/*...................................................*/
/* end card grid / carousel wrapper                  */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* pricing card                                      */
/*...................................................*/
/*###################################################*/

.preciosCard {
    flex: 0 0 min(88%, 24rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 12px;
    background: hsla(0, 0%, 100%, 0.02);
    overflow: hidden;
    transition: background 0.22s ease, border-color 0.22s ease;

    @media (min-width: 768px) {
        display: grid;
        grid-row: span 5;
        grid-template-rows: auto 1fr auto auto auto;
        border-radius: 0;
        border-right-width: 0;

        &:first-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        &:last-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
            border-right-width: 1px;
        }

        &.hovered {
            background: hsla(0, 0%, 100%, 0.045);
        }
    }
}

@supports (grid-template-rows: subgrid) {
    .preciosCard {
        @media (min-width: 768px) {
            /* //LEARN: subgrid lets each card share the parent row heights, so desktop behaves like one aligned pricing table. */
            grid-template-rows: subgrid;
        }
    }
}

/*###################################################*/
/*...................................................*/
/* end pricing card                                  */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* card header (year, title, description)             */
/*...................................................*/
/*###################################################*/

.preciosCardHeader {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.07);

    @media (min-width: 991px) {
        padding: 2rem 1.75rem 1.5rem;
    }
}

.preciosYear {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.preciosDev {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.15;
    color: hsla(0, 0%, 100%, 1);
}

.preciosDevText {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.preciosDevLogo {
    display: block;
    width: clamp(3.7rem, 8vw, 4.65rem);
    height: auto;
}

.preciosDevPlus {
    font-size: 0.86em;
    line-height: 1;
    color: hsla(0, 30%, 96%, 0.5);
}

.preciosCardDesc {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    line-height: 1.55;
    color: hsla(0, 30%, 96%, 0.45);
}

/*###################################################*/
/*...................................................*/
/* end card header                                   */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* includes section (collapsibles + bullets)          */
/*...................................................*/
/*###################################################*/

.preciosIncludes {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.07);
    flex: 1;
    min-height: 15.5rem;

    @media (min-width: 991px) {
        padding: 1.5rem 1.75rem;
        min-height: 16.5rem;
    }
}

.preciosIncLabel {
    margin: 0 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsla(0, 30%, 96%, 0.3);
}

.preciosIncNote {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.82vw, 0.82rem);
    line-height: 1.5;
    color: hsla(0, 30%, 96%, 0.4);
}

/*-------------------------------*/
/* collapsible item              */
/*-------------------------------*/

.preciosCollapsible {
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);

    &:last-of-type {
        border-bottom: none;
    }
}

.preciosCollapsibleTrigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    background: none;
    border: none;
    cursor: pointer;
    list-style: none;
    text-align: left;
    color: hsla(0, 0%, 100%, 0.88);
    font-family: var(--font-display);
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s ease;

    &:hover {
        color: hsla(0, 0%, 100%, 1);
    }

    &:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        border-radius: 4px;
    }

    &::-webkit-details-marker {
        display: none;
    }
}

.preciosChevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: hsla(0, 30%, 96%, 0.35);
    transition: transform 0.3s ease;
}

.preciosCollapsible[open] .preciosChevron {
    transform: rotate(180deg);
}

.preciosCollapsibleBody {
    overflow: hidden;
}

.preciosCollapsibleBody ul {
    margin: 0;
    padding: 0 0 0.75rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    & li {
        font-family: var(--font-body);
        font-size: clamp(0.7rem, 0.8vw, 0.8rem);
        line-height: 1.6;
        color: hsla(0, 30%, 96%, 0.5);
        padding-left: 0.85rem;
        position: relative;

        &::before {
            content: '·';
            position: absolute;
            left: 0;
            color: hsla(0, 30%, 96%, 0.3);
        }
    }
}

/*-------------------------------*/
/* end collapsible item          */
/*-------------------------------*/

/*-------------------------------*/
/* standalone bullets            */
/*-------------------------------*/

.preciosBullets {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    & li {
        font-family: var(--font-body);
        font-size: clamp(0.72rem, 0.82vw, 0.82rem);
        line-height: 1.6;
        color: hsla(0, 30%, 96%, 0.55);
        padding-left: 0.85rem;
        position: relative;

        &::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-size: 0.9em;
        }
    }
}

/*-------------------------------*/
/* end standalone bullets        */
/*-------------------------------*/

/*###################################################*/
/*...................................................*/
/* end includes section                              */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* results section                                   */
/*...................................................*/
/*###################################################*/

.preciosResults {
    margin: 0.75rem 1.5rem;
    padding: 1.25rem 1.25rem;
    border: 1px solid hsla(0, 0%, 100%, 0.07);
    border-radius: 10px;
    background: hsla(0, 0%, 100%, 0.025);
    align-self: stretch;
    min-height: 13.5rem;

    @media (min-width: 991px) {
        margin: 0.75rem 1.75rem;
        padding: 1.35rem 1.35rem;
        min-height: 14rem;
    }
}

.preciosResultsLabel {
    margin: 0 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.preciosResultsList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preciosResultItem {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    line-height: 1.6;
    color: hsla(0, 30%, 96%, 0.55);
    padding-left: 1.1rem;
    position: relative;

    &::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--primary);
    }
}

.preciosResultSublist {
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.85rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;

    & li {
        font-family: var(--font-body);
        font-size: clamp(0.65rem, 0.75vw, 0.75rem);
        line-height: 1.5;
        color: hsla(0, 30%, 96%, 0.4);
        padding-left: 0.75rem;
        position: relative;

        &::before {
            content: '·';
            position: absolute;
            left: 0;
            color: hsla(0, 30%, 96%, 0.25);
        }
    }
}

/*###################################################*/
/*...................................................*/
/* end results section                               */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* price section                                     */
/*...................................................*/
/*###################################################*/

.preciosPrice {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.07);

    @media (min-width: 991px) {
        padding: 1.75rem 1.75rem 2rem;
    }
}

.preciosAmount {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: hsla(0, 0%, 100%, 1);
}

.preciosCurrency {
    font-family: var(--font-body);
    font-size: 0.42em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: hsla(0, 30%, 96%, 0.4);
    vertical-align: middle;
    margin-left: 0.25em;
}

.preciosPeriod {
    margin: 0.3rem 0 0;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsla(0, 30%, 96%, 0.3);
}

.preciosMonthly {
    margin: 0.55rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.preciosMonthlyAmount {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 700;
    color: var(--primary);
}

.preciosMonthlyNote {
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 0.72vw, 0.72rem);
    color: hsla(0, 30%, 96%, 0.35);
}

.preciosIva {
    margin: 0.35rem 0 0;
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 0.68vw, 0.68rem);
    color: hsla(0, 30%, 96%, 0.25);
}

.preciosCardFooter {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.06);
    background: hsla(0, 0%, 100%, 0.018);
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.78vw, 0.78rem);
    line-height: 1.4;
    color: hsla(0, 30%, 96%, 0.45);

    @media (min-width: 991px) {
        padding: 1rem 1.75rem;
    }
}

.preciosCardFooterDot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/*###################################################*/
/*...................................................*/
/* end price section                                 */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* carousel navigation (mobile only)                 */
/*...................................................*/
/*###################################################*/

.preciosCarouselNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;

    @media (min-width: 768px) {
        display: none;
    }
}

.preciosCarouselBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.04);
    color: hsla(0, 30%, 96%, 0.55);
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;

    &:hover {
        background: hsla(0, 0%, 100%, 0.09);
        color: hsla(0, 30%, 96%, 0.9);
        border-color: hsla(0, 0%, 100%, 0.28);
    }

    &:disabled {
        opacity: 0.3;
        cursor: default;
        pointer-events: none;
    }
}

.preciosCarouselDots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preciosDot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: hsla(0, 0%, 100%, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.28s ease, background 0.28s ease;

    &:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }

    &.active {
        width: 22px;
        background: var(--primary);
    }
}

/*###################################################*/
/*...................................................*/
/* end carousel navigation                           */
/*...................................................*/
/*###################################################*/

/*###################################################*/
/*...................................................*/
/* closing argument cards                            */
/*...................................................*/
/*###################################################*/

.preciosCierre {
    width: 100%;
    max-width: 72rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid hsla(0, 0%, 100%, 0.07);
    border-radius: 12px;
    background: hsla(0, 0%, 100%, 0.025);

    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr;
    }
}

.preciosCierreCard {
    padding: 2rem 1.75rem;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.07);
    background: hsla(0, 0%, 100%, 0.035);

    &:nth-child(2) {
        background: hsla(0, 0%, 100%, 0.015);
    }

    &:last-child {
        border-bottom: none;
    }

    @media (min-width: 991px) {
        padding: 2.25rem 2rem;
    }

    @media (min-width: 768px) {
        border-right: 1px solid hsla(0, 0%, 100%, 0.07);
        border-bottom: none;

        &:last-child {
            border-right: none;
        }
    }
}

.preciosCierreTitle {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: hsla(0, 0%, 100%, 1);
}

.preciosCierreText {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 0.88vw, 0.88rem);
    line-height: 1.65;
    color: hsla(0, 30%, 96%, 0.5);
}

/*###################################################*/
/*...................................................*/
/* end closing argument cards                        */
/*...................................................*/
/*###################################################*/

/*<!--------------------------------------------------->
<!-- end Precios                                     -->
--------------------------------------------------->*/
