/* ── Imagen estática (Cloudinary u otras) ──────────────────────────────────── */

.tabsdatapane__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ── Título y descripción ──────────────────────────────────────────────────── */

.nexods-tabsdatapane__title {
    color: var(--color-txt-accent, #BF9917);
    font-family: Poppins;
    font-size: 31px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
}

.nexods-tabsdatapane__description {
    margin-top: 35px;
    margin-bottom: 77px;
}

.nexods-tabsdatapane__description p {
    text-wrap: balance;
    font-family: "Open Sans";
}

@media (max-width: 768px) {
    .nexods-tabsdatapane__title {
        font-size: 38px;
    }
}

/* ── Contenedor principal ──────────────────────────────────────────────────── */

.section-panel {
    width: 100%;
    margin: 0 auto;
}

/* ── Wrapper de pestañas + flechas ────────────────────────────────────────── */

.tabsdatapane__tabs-wrapper {
    position: relative;
    margin-top: 36px;
}

/* ── Flechas de scroll ─────────────────────────────────────────────────────── */

.scroll-arrow {
    position: absolute;
    top: 0;
    z-index: 10;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, backdrop-filter 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.scroll-arrow--left {
    left: 0;
}

.scroll-arrow--right {
    right: 0;
}

.scroll-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.scroll-arrow__icon {
    width: 1rem;
    height: 1rem;
    stroke: var(--color-semantic-primary, #A30052);
    transition: transform 0.2s ease-in-out;
}

.scroll-arrow:hover .scroll-arrow__icon {
    transform: scale(1.1);
}

/* ── Lista de pestañas ─────────────────────────────────────────────────────── */

.section-panel__tabs {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: none;
}

.section-panel__tabs::-webkit-scrollbar {
    display: none;
}

.section-panel__tabs--overflow {
    padding-right: 3rem;
}

/* ── Botón de pestaña ──────────────────────────────────────────────────────── */

.tab-button {
    flex-shrink: 0;
    height: min-content;
    min-height: 36px;
    padding: var(--space-padding-200-16, 16px) var(--space-padding-300-24, 24px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-padding-050-4, 4px);
    border: var(--space-border-width-regular-1, 1px) solid var(--color-semantic-primary, #A30052);
    border-bottom: none;
    background: transparent;
    color: var(--color-bg-interactive, #A83125);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.tab-button:first-child {
    border-radius: var(--space-border-radius-100-8, 8px) 0 0 0;
}

.tab-button:last-child {
    border-radius: 0 var(--space-border-radius-100-8, 8px) 0 0;
}

.tab-button--active {
    background: var(--color-bg-interactive, #A83125);
    color: #fff;
    font-weight: 700;
}

.tab-button:not(.tab-button--active):hover {
    background-color: color-mix(in srgb, var(--color-semantic-primary, #A30052) 10%, transparent);
}

/* ── Contenido de las pestañas ────────────────────────────────────────────── */

.tabs-content {
    margin-top: 0;
    border-top: var(--space-border-width-regular-1, 1px) solid var(--color-bg-brand-secondary-soft-press, #099bb0);
}

.tabs-content--bordered {
    border: 4px solid;
}

/* ── Panel individual ─────────────────────────────────────────────────────── */

.tabsdatapane__panel {
    position: relative;
}

/* ── Loader ────────────────────────────────────────────────────────────────── */

.tabsdatapane__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 10;
}

/* ── Iframe ────────────────────────────────────────────────────────────────── */

.tabsdatapane__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Placeholder de iframe ─────────────────────────────────────────────────── */

.tabsdatapane__placeholder {
    width: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    box-sizing: border-box;
}

.tabsdatapane__placeholder-inner {
    text-align: center;
    color: #6b7280;
}

.tabsdatapane__placeholder-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tabsdatapane__placeholder-subtitle {
    font-size: 0.875rem;
}

.tabsdatapane__placeholder-mode {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ── Variante pills ────────────────────────────────────────────────────────── */

.section-panel__tabs--pills {
    gap: 0.5rem;
    border-bottom: none;
}

.tab-button--pills {
    border-radius: 2rem;
    border: var(--space-border-width-regular-1, 1px) solid var(--color-semantic-primary, #A30052);
}

.tab-button--pills:first-child,
.tab-button--pills:last-child {
    border-radius: 2rem;
}

/* ── Variante cards ────────────────────────────────────────────────────────── */

.tabsdatapane__tabs-wrapper--cards {
    margin-top: 36px;
}

.section-panel__tabs--cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible;
    border-bottom: none;
    padding-bottom: 1.5rem;
}

.tab-button--cards {
    flex: 1 1 calc(25% - 1rem);
    min-width: 160px;
    border-radius: var(--space-border-radius-100-8, 8px);
    border: var(--space-border-width-regular-1, 1px) solid var(--color-semantic-primary, #A30052);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button--cards:first-child,
.tab-button--cards:last-child {
    border-radius: var(--space-border-radius-100-8, 8px);
}

.tab-button--cards:not(.tab-button--active):hover {
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-semantic-primary, #A30052) 20%, transparent);
    background-color: color-mix(in srgb, var(--color-semantic-primary, #A30052) 5%, transparent);
}

.tab-button--cards.tab-button--active {
    box-shadow: 0 2px 12px color-mix(in srgb, var(--color-semantic-primary, #A30052) 30%, transparent);
}

@media (max-width: 768px) {
    .tab-button--cards {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .tab-button--cards {
        flex: 1 1 100%;
    }
}

/* ── Estado vacío (sin iframe configurado) ────────────────────────────────── */

.tabsdatapane__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.tabsdatapane__empty-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.tabsdatapane__empty-text {
    color: var(--color-txt-secondary, #556372);
    text-align: center;

    /* heading/H2 */
    font-family: Poppins;
    font-size: 31px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
    /* 135.484% */
    max-width: 600px;
}

/* ── Loader spinner ────────────────────────────────────────────────────────── */

.tab-loader {
    color: var(--color-bg-accent, #a30052);
    font-size: 45px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    transform: translateZ(0);
    animation: mltShdSpin 1.7s infinite ease, round 1.7s infinite ease;
}

@keyframes mltShdSpin {

    0%,
    5%,
    95% {
        box-shadow:
            0 -0.83em 0 -0.4em,
            0 -0.83em 0 -0.42em,
            0 -0.83em 0 -0.44em,
            0 -0.83em 0 -0.46em,
            0 -0.83em 0 -0.477em;
    }

    10%,
    59% {
        box-shadow:
            0 -0.83em 0 -0.4em,
            -0.087em -0.825em 0 -0.42em,
            -0.173em -0.812em 0 -0.44em,
            -0.256em -0.789em 0 -0.46em,
            -0.297em -0.775em 0 -0.477em;
    }

    20% {
        box-shadow:
            0 -0.83em 0 -0.4em,
            -0.338em -0.758em 0 -0.42em,
            -0.555em -0.617em 0 -0.44em,
            -0.671em -0.488em 0 -0.46em,
            -0.749em -0.34em 0 -0.477em;
    }

    38% {
        box-shadow:
            0 -0.83em 0 -0.4em,
            -0.377em -0.74em 0 -0.42em,
            -0.645em -0.522em 0 -0.44em,
            -0.775em -0.297em 0 -0.46em,
            -0.82em -0.09em 0 -0.477em;
    }

    100% {
        box-shadow:
            0 -0.83em 0 -0.4em,
            0 -0.83em 0 -0.42em,
            0 -0.83em 0 -0.44em,
            0 -0.83em 0 -0.46em,
            0 -0.83em 0 -0.477em;
    }
}

@keyframes round {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .scroll-arrow {
        width: 2.5rem;
    }
}