/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --brand-red: #e40044;
    --item-hover-border: #c4d5df;
    --brand-dark: #1e1e1e;
    --brand-bg: #FFFFFF;
    --brand-light-blue: #B5D8EB;
    --brand-dark-blue: #19184A;
    --brand-hero-bg: #f3f3f3;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --max-width: 1140px;
}

/* =========================================
   2. RESET Y ESTILOS GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'sans-serif';
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. CLASES DE UTILIDAD (UTILITIES)
   ========================================= */
.hide-on-open {
    display: block;
    padding-right: 10px;
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform: translateX(20px);
}

.show-on-open {
    display: none !important;
}

.md-block {
    display: none;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-contain {
    object-fit: contain;
}

@media (min-width: 768px) {
    .md-block {
        display: block;
    }
    .md-text-left {
        text-align: left;
    }
}

/* =========================================
   4. LAYOUT PRINCIPAL
   ========================================= */
.wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

.main-content {
    transition: padding 0.3s;
    padding-bottom: 8rem;
    width: 100%;
}

/* =========================================
   5. COMPONENTES: SIDEBAR
   ========================================= */
.sidebar {
    display: none;
}

/* --- Sidebar Desktop (Min 768px) --- */
@media (min-width: 768px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        background: #f4f5f7;
        border-radius: 16px;
        padding: 12px 0;
        width: 72px;
        z-index: 40;
        border: 1px solid var(--gray-200);
        transition: width 0.6s ease;
        overflow: hidden;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }

    .sidebar:hover {
        width: 320px;
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 6px 8px;
        margin: 0 8px;
        border-radius: 12px;
        width: 304px;
        transition: background 0.2s;
        text-decoration: none;
        color: var(--brand-dark) !important;
    }

    .sidebar-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-red);
        border: 1px solid var(--gray-100);
        font-size: 18px;
    }

    .sidebar-text {
        font-weight: 500 !important;
        font-size: 15px;
        opacity: 0;
        color: inherit;
        transition: opacity 0.3s ease;
        white-space: nowrap;
    }

    .sidebar:hover .sidebar-text {
        opacity: 1;
        color: var(--brand-dark) !important;
    }

    .sidebar-item:hover .sidebar-text {
        font-weight: 700 !important;
    }

    .sidebar-toggle {
        display: none;
    }
}

/* --- Sidebar Mobile (Max 767px) --- */
@media (max-width: 767px) {

    .accordion-item.is-open {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .accordion-item.is-open .accordion-header {
        padding: 0 22px;
    }

    .accordion-item.is-open .cards-grid,
    .accordion-item.is-open .carousel-dots,
    .accordion-item.is-open .text-center {
        margin-left: 24px;
        padding-right: 22px;
    }


    .accordion-item.is-open .tags-container,
    .accordion-item.is-open .portal-card {
        margin-left: 22px;
        margin-right: 22px;
        width: auto;
    }

    .logos-section {
        width: 100%;
        background-color: var(--brand-hero-bg);
        padding: 30px 22px;
    }

    .text-center{
        margin-top: 1.5rem;
    }
    .main-content{
        padding-bottom: 5rem;
    }
    .sidebar {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        position: fixed;
        bottom: 90px;
        left: 20px;
        background-color: #f4f5f7;
        border-radius: 16px;
        padding: 12px;
        width: calc(100vw - 40px);
        max-width: 300px;
        z-index: 999;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transform-origin: bottom left;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px;
        text-decoration: none;
        border-radius: 12px;
        transition: background 0.2s ease;
    }

    .sidebar-item:active {
        background-color: #e5e7eb;
    }

    .sidebar-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        background: #ffffff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-red);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .sidebar-icon svg {
        width: 16px;
        height: 16px;
        stroke-width: 2px;
    }

    .sidebar-text {
        color: var(--brand-dark);
        font-weight: 600;
        font-size: 13px;
    }

    .sidebar-toggle {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background-color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        color: var(--brand-dark);
        transition: transform 0.3s ease;
        border: 1px solid var(--gray-100);
    }

    .sidebar-toggle svg {
        width: 24px;
        height: 24px;
    }

    .sidebar-toggle.open {
        transform: rotate(45deg);
    }
}

/* =========================================
   6. COMPONENTES: BOTONES
   ========================================= */
.main-content .btn {
    padding: 16px 28px !important;
    font-size: 16px;
    border-radius: 1em;
}

.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* =========================================
   7. SECCIÓN: HERO
   ========================================= */
.hero {
    background: var(--brand-hero-bg);
    border-radius: 0 !important;
    margin-bottom: 2rem;
    width: 100%;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1rem 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-family: 'Manrope', sans serif;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;

    letter-spacing: -0.025em;
    display: block;
    min-height: 80px;
}

.hero-title-line {
    display: block;
    margin-bottom: 4px;
}

.hero-title .inline-span {
    display: inline;
}

.hero-title .text-brand-red {
    color: var(--brand-red);
    font-weight: 700;
}

.hero-title .font-extrabold {
    font-weight: 800;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--brand-dark);
    font-weight: 500;
    margin-top: 12px;
}

.hero-image-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .hero {
        border-bottom-right-radius: 4rem;
        margin-bottom: 3rem;
    }
    .hero-container {
        flex-direction: row;
        padding: 8rem 2rem 5rem 120px;
        gap: 2.5rem;
    }
    .hero-text {
        width: 50%;
    }
    .hero-title {
        font-size: 40px;
        min-height: 110px;
        margin-bottom: -2rem;
    }
    .hero-subtitle {
        font-size: 20px;
        margin-top: 16px;
    }
    .hero-image-wrapper {
        display: flex;
        width: 50%;
        justify-content: center;
        position: relative;
    }
    .hero-image-wrapper img {
        width: 100%;
        max-width: 32rem;
        object-fit: contain;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }
}

/* =========================================
   8. SECCIÓN: ACORDEONES
   ========================================= */
.accordions-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    border: 0;
}

.accordion-item {
    background: white;
    border-radius: 1.5rem !important;
    padding: 0.8rem 0.8rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.accordions-wrapper.has-open .accordion-item:not(.is-open) {
    filter: blur(1.5px);
    opacity: 0.35;
    transform: scale(0.99);
}

.accordion-item.is-open {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border-color: rgba(230, 0, 76, 0.2);
    border-width: 2px;
    padding: 1.5rem;
}

.accordion-item.is-open .hide-on-open {
    display: none !important;
}

.accordion-item.is-open .show-on-open {
    display: block !important;
}

.accordion-item.is-open .show-on-open.flex-container {
    display: flex !important;
}

.accordion-item.is-open .toggle-btn {
    transform: rotate(45deg);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-header-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-left: -10px;
    flex: 1;
    min-width: 70%;
    align-items: center;
    justify-content: flex-start;
}

/* --- Estados del Acordeón (Mobile Open) --- */
.accordion-item.is-open .accordion-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: 1rem;
}

.accordion-item.is-open .accordion-text-wrapper {
    order: 1;
    width: 100%;
    align-items: center;
}

.accordion-item.is-open .accordion-badge {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    opacity: 1;
}

.accordion-item.is-open .open-icon-box {
    order: 2;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1rem 0 0 0;
    display: flex !important;
}

.accordion-item.is-open .open-icon-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-left:10px;
}

.accordion-item.is-open .toggle-btn {
    position: absolute;
    top: 0.25rem;
    right: 1.25rem;
    padding: 0;
    margin: 0;
    z-index: 20;
}

/* --- Elementos internos del Acordeón --- */
.closed-icon-box {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.closed-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.open-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.accordion-text-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accordion-badge {
    display: none;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 1em;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: max-content;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.closed-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: translateX(0);
}

.closed-subtitle {
    color: var(--brand-dark);
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: translateX(0);
}

.open-title {
    color: var(--brand-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.open-subtitle {
    color: var(--brand-dark);
    font-weight: 500;
    max-width: 42rem;
    font-size: 14px;
    line-height: 1.6;
}

.toggle-btn {
    color: var(--brand-red);
    font-size: 30px;
    font-weight: 300;
    transition: transform 0.3s;
    padding: 0 10px 0 16px;
    align-self: center;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
}

.accordion-body {
    padding: 0;
    display: none;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    overflow: hidden;
}

.accordion-item.is-open .accordion-body {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1rem;
}

.accordion-inner {
    overflow: hidden;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: default;
}

/* --- Media Queries Acordeones (Desktop & Mobile adjust) --- */
@media (max-width: 767px) {

    .open-title {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .cta-section .cta-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .cta-section .cta-subtitle {
        font-size: 14px;
        text-align: center;
        margin-bottom: 0;
    }
    .cta-image-col {
        width: 100% !important;
        display: flex;
        justify-content: center;
        order: 1 !important;
    }

    .cta-text-col {
        width: 100%;
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        order: 2; /* Texto segundo en mobile */
    }

    .open-icon-box img{
        max-width: 97%;
    }

    .accordion-body {
        padding:0;
    }
    .accordion-item {
        border: 1px solid #e1e2e7 !important;
        padding: 1.2rem 0.8rem 1.2rem 0.8rem;
        margin-left: 12px;
        margin-right: 12px;
    }

    .accordion-item.is-open {

        padding:0 10px 0 10px;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (min-width: 768px) {
    .accordions-wrapper {
        padding: 0 2rem 0 120px;
    }
    .accordion-item {
        border: 1px solid #e1e2e7 !important;
        padding: 1.75rem 2rem;
    }
    .accordions-wrapper.has-open .accordion-item:not(.is-open):hover {
        filter: blur(0px);
        opacity: 0.7;
        pointer-events: auto;
    }
    .accordions-wrapper:not(.has-open) .accordion-item:hover {
        background: #f9f9f9;
        border: 3px solid var(--item-hover-border) !important;
        transform: scale(1.02);
        z-index: 10;
    }
    .accordions-wrapper:not(.has-open) .accordion-item:hover .closed-icon-box img,
    .accordions-wrapper.has-open .accordion-item:not(.is-open):hover .closed-icon-box img {
        transform: translateX(30px) scale(1.40);
    }
    .accordions-wrapper:not(.has-open) .accordion-item:hover .closed-title,
    .accordions-wrapper:not(.has-open) .accordion-item:hover .closed-subtitle,
    .accordions-wrapper.has-open .accordion-item:not(.is-open):hover .closed-title,
    .accordions-wrapper.has-open .accordion-item:not(.is-open):hover .closed-subtitle {
        /*transition: transform 0.4s ease;*/
        transform: translateX(75px);
    }
    .accordion-item.is-open {
        padding: 2rem;
    }
    .accordion-item.is-open .accordion-header-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2rem;
        padding-top: 0;
    }
    .accordion-item.is-open .accordion-text-wrapper {
        order: 2;
        width: auto;
        align-items: flex-start;
    }
    .accordion-item.is-open .accordion-badge {
        margin-left: 0;
        margin-right: 0;
    }
    .accordion-item.is-open .open-icon-box {
        order: 1;
        width: 220px;
        max-width: 220px;
        margin: 0;
        justify-content: flex-start;
    }
    .accordion-item.is-open .open-icon-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
    }
    .accordion-item.is-open .toggle-btn {
        position: static;
        padding: 0 0 0 16px;
        margin-top: -200px;
    }
    .closed-icon-box {
        width: 180px;
        height: 180px;
    }
    .accordion-badge {
        font-size: 12px;
    }
    .closed-title {
        font-size: 1.5rem;
    }
    .closed-subtitle {
        font-size: 15px;
    }
    .open-title {
        font-size: 32px;
    }
    .open-subtitle {
        font-size: 16px;
    }
    .toggle-btn {
        font-size: 36px;
    }
    .accordion-inner {
        padding-top: 2.5rem;
    }
}

/* =========================================
   9. COMPONENTES INTERNOS (Cards & Features)
   ========================================= */
.cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.cards-grid .feature-card:nth-child(3) {
    grid-column: 1 / 3;
}

.cards-grid::-webkit-scrollbar {
    display: none;
}

.feature-card {
    background: var(--brand-light-blue);
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}

.feature-card.alt {
    background: var(--brand-hero-bg);
    border: 1px solid var(--gray-100);
}

.feature-card.dark {
    background: var(--brand-dark-blue);
}

.feature-icon {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.feature-card.alt .feature-icon {
    border: 1px solid var(--gray-200);
}

.feature-card.dark .feature-icon {
    border: 1px solid var(--gray-200);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.feature-card.dark .feature-title {
    color: white;
}

.feature-desc {
    color: var(--brand-dark);
    font-size: 0.875rem;
    line-height: 1.625;
}

.feature-card.dark .feature-desc {
    color: var(--gray-200);
}

@media (min-width: 768px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
        gap: 1.5rem;
        width: 100%;
    }
    .feature-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 1.5rem;
        box-sizing: border-box;
    }

}

/* --- Carousel Dots (Mobile Only) --- */
.carousel-dots {
    display: none;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--brand-red);
    transform: scale(1.2);
}

@media (max-width: 767px) {

    .accordion-item.is-open .accordion-text-wrapper {
        margin-top: 2rem;
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }
    .cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
    }
    .feature-card {
        flex: 0 0 calc(100% - 2rem);
        scroll-snap-align: start;
    }
}

/* =========================================
   10. SECCIÓN: LOGOS
   ========================================= */
.logos-section {
    text-align: center;
    padding-top: 2.5rem;
}

.logos-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto;
}

.logo-img {
    height: 24px;
    object-fit: contain;
}

.logo-img-lg {
    height: 48px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logos-grid {
        gap: 1.5rem;
    }
    .logo-img {
        height: 32px;
    }
    .logo-img-lg {
        height: 64px;
    }
}

/* =========================================
   11. COMPONENTES INTERNOS (Tags & Portal)
   ========================================= */
.tags-container {
    border: 1px solid var(--brand-light-blue);
    border-radius: 1.5rem;
    padding: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: white;
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {

    .hero-container {
        text-align: center;
    }

    .hero-title {
        font-size: 1.5rem;
        padding-bottom:0;
    }

    .hero-subtitle {
        font-size: 16px;
        font-weight: 100;
        margin-top:0;
    }

    .hide-on-open {
        transform: translateX(13px);
    }

    .hide-on-open p {
        margin-bottom: 0;
    }

    .toggle-btn {
        padding: 0 0 0 12px;
    }



    .tags-container {
        border: 0;
        padding: 0.2rem;
    }

    #desktop-checkout-img {
        display: none;
    }

}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-dark);
}

.tag-item svg {
    color: #E40044;
    flex-shrink: 0;
}

.tag-icon {
    color: var(--brand-red);
}

.portal-card {
    background: var(--brand-light-blue);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    gap: 2rem;
    width: 100%;
}

.portal-content {
    position: relative;
    z-index: 10;
    width: 100%;
    order: 2;
}

.portal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--brand-dark);
}

.portal-subtitle {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.portal-list {
    margin-left: -30px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 14px;
    color: var(--brand-dark);
}

.portal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.portal-list li::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.portal-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 10px;
    width: 2px;
    height: calc(100% + 1.25rem);
    background-color: white;
    z-index: 1;
}

.portal-footer {
    font-weight: 700;
    margin-top: 1.5rem;
    color: var(--brand-dark);
    font-size: 14px;
}

.portal-image-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
    order: 1;
}

.portal-image {
    width: 85%;
    max-width: 280px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .tag-item {
        font-size: 14px;
    }
    .portal-card {
        flex-direction: row;
        align-items: center;
        padding: 2.5rem;
        gap: 0;
    }
    .portal-content {
        width: 60%;
        order: 1;
    }
    .portal-subtitle {
        font-size: 16px;
    }
    .portal-footer {
        font-size: 16px;
    }
    .portal-image-wrapper {
        width: 40%;
        justify-content: flex-end;
        order: 2;
    }

    #mobile-checkout-img {
        display:none;
    }
}

/* =========================================
   12. SECCIÓN: CTA FINAL (BOTTOM BANNER)
   ========================================= */
.cta-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-section {
    background: var(--brand-light-blue);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {

    .cta-section {
        gap: 0;
    }
}

.cta-image-col {
    width: 60%;
    display: flex;
    justify-content: center;
    order: 2;
}

.cta-image-box {
    background: white;
    width: 100%;
    max-width: 28rem;
    height: 18rem;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cta-text-col {
    width: 100%;
    position: relative;
    z-index: 10;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-title {
    text-align: left;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    text-align: left;
    font-size: 16px;
    color: var(--brand-dark);
}

@media (min-width: 768px) {
    .cta-wrapper {
        padding-left: 100px;
        padding-right: 2rem;
    }
    .cta-section {
        flex-direction: row;
        padding: 4rem;
    }
    .cta-image-col {
        width: 50%;
        order: 1;
    }
    .cta-text-col {
        width: 50%;
        order: 2;
    }
    .cta-title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .cta-wrapper {
        padding-left: 120px;
    }
}

.container-pm {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 15px;
    width: 100% !important;
    padding: 20px 0;
    margin: 0;
}

.payment-icon {
   flex: 0 0 calc(9.09% - 15px);
    max-width: 70px;
    height: auto;
    object-fit: contain;
}

.bcra-note {
    font-size: 12px;
    color: #000000 !important;
    font-weight: 700;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .container-pm {
        justify-content: space-around !important;
    }
    .payment-icon {
        flex: 0 0 calc(20% - 10px);
    }

    #debitos .closed-subtitle{
        color: transparent;
        position: relative;
    }

    #debitos .closed-subtitle::after{
        content: "Asegurá cobros recurrentes.";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--brand-dark);
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
    }

    .bcra-note {
        display: none;
    }
}

/* Desktop: Si el primer .payment-icon está entre los últimos 3 elementos (es decir, hay 3 o menos) */
.container-pm .payment-icon:nth-last-child(-n+3):first-child,
.container-pm .payment-icon:nth-last-child(-n+3):first-child ~ .payment-icon {
    max-width: 110px;
    flex: 0 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
    .container-pm .payment-icon:nth-last-child(-n+3):first-child,
    .container-pm .payment-icon:nth-last-child(-n+3):first-child ~ .payment-icon {
        max-width: 95px;
        flex: 0 0 auto;
    }
}