:root {
    --color-secondary: #5BC500;
    --color-text-light: #86888C;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F5F5F5;
    --gap-base: 16px;
    --radius-card: 8px;
}

.plans-titles {
    max-width: 900px;
    margin: 0 auto;
}

.plans-titles__content {
    text-align: center;
    font-family: var(--f1) !important;
}

.plans-titles__label {
    display: inline-block;
    font-size: 1.1rem;
    border-radius: 21px;
    padding: 8px 16px;
    background: var(--white);
    margin-bottom: 8px;
    font-weight: 100;
}

.favorites-adder__back {
    color: var(--blue);
    font-size: 1.13rem;
    margin-left: 1rem;
}

.favorites-adder__back i {
    font-size: 70%;
    margin-right: 8px;
}

.plans-titles__text {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.plans-container {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-base);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 3rem 20px;
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* auto | thin | none */
    scrollbar-color: #f5f5f5 #f5f5f5; /* thumb | track */
}

.plans-container--less-pad {
    padding: 1.5rem 20px;
}

.plans-container::-webkit-scrollbar {
    height: 2px;
}

.plans-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.plans-container::-webkit-scrollbar-thumb {
    background: #f5f5f5;
    border-radius: 4px;
}

.plans-container::-webkit-scrollbar-thumb:hover {
    background: #f5f5f5;
}

/* Media Query para Desktop */
@media (min-width: 768px) {
    .plans-container {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
        min-height: 620px;
    }
}


/* CSS card  */
.card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 85vw;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .card {
        min-width: 320px;
        width: 320px;
    }
}

/* Top Banner Benefit */
.card__top-badge {
    position: absolute;
    top: -8px;
    transform: translateY(-100%);
    background-color: #E6F4FB;
    color: var(--blue);
    font-size: 0.8rem;
    padding: 4px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px 10px 10px 0;
}

/* Header Blue Bar */
.card__header {
    background-color: var(--blue2);
    color: white;
    text-align: center;
    padding: 4px;
    font-size: 0.85rem;
    border-radius: 10px 10px 0 0;
}

.card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title */
.card__title {
    color: var(--blue2);
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: center;
    line-height: normal;
}

.card__title--hogar {
    margin-bottom: 0;
}

/* Price Section */
.card__price-box {
    text-align: center;
    margin-bottom: 20px;
}

.card__price {
    font-size: 1.5rem;
    line-height: normal;
    color: var(--darkBlue);
}

.card__price--total {
    font-size: 1.2rem;
}


.card__price-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
    line-height: normal;
}

.card__price-note--hogar {
    margin-bottom: 8px;
}


/* Actions/Buttons */
.card__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.button--primary {
    background-color: var(--orange);
    color: var(--darkBlue);
    border: none;
}

.button--primary:hover {
    background-color: rgb(from var(--orange) r g b / 0.7);
}

.button--outline {
    background-color: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
}

.button--wapp {
    background-color: transparent;
    color: var(--green);
    text-decoration: underline;
}

.button--outline:hover {
    background-color: #fff4e6;
}

.button--link {
    color: var(--blue);
    text-decoration: underline;
    background: none;
    border: none;
    font-size: 0.9rem;
}

/* Extras Section */
.card__extras {
    width: 100%;
    margin-top: 10px;
}

.card__extras-title {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--black);
    align-self: flex-start;
}

.extra-item {
    background-color: var(--color-bg-gray);
    border-radius: 6px;
    min-height: 78px;
    padding: 4px 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.extra-item__content {
    flex: 1;
}

.extra-item__cont-icon {
    flex: .2;
    display: flex;
    justify-content: center;
    padding: 8px 4px;
    color: #20808D;
    border-radius: 10px;
}

.extra-item__title {
    font-size: 0.95rem;
    line-height: normal;
    color: var(--blak);
    font-weight: 500;
}

.extra-item__title span {
    display: block;
    font-size: 95%;
    color: var(--color-text-light);
}

.extra-item__note {
    font-size: 0.75rem;
    line-height: normal;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Condition 4: Icons to Emojis styling */
.extra-item__icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.extra-item__img {
    display: block;
    margin-bottom: 8px;
}

.extra-item__right-icon {
    display: block;
    margin: 0 0 8px;
    line-height: 23px;
    font-size: 2.6rem;
}

.extra-item__icon::before {
    line-height: 23px;
}

/* callback */
.card__callback .callback-sencillo {
    min-height: auto;
    margin: 0;
}

.card__callback .curtain span {
    font-family: var(--f4) !important;
}


.card__callback.stly-pospago .curtain {
    border: 0 !important;
    text-decoration: underline;
    background-color: var(--white) !important;
    color: var(--blue2) !important;
}

.card__callback.stly-hogar-f .curtain,
.card__callback.stly-hogar .curtain,
.card__callback.stly-total .curtain {
    border: 1px solid var(--orange) !important;
    background-color: var(--white) !important;
    color: var(--orange) !important;
}


/* Switch Toggle Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.switch__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch__input:checked+.switch__slider {
    background-color: var(--blue);
}

.switch__input:checked+.switch__slider:before {
    transform: translateX(20px);
}