.planes-page .planes-audience {
    line-height: 1.45;
}

.planes-included {
    overflow-x: hidden;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.85rem 1rem;
    background: var(--surface, #fff);
}

.planes-included-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planes-included-summary::-webkit-details-marker {
    display: none;
}

.planes-included-summary::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-muted, #6c757d);
    border-bottom: 2px solid var(--text-muted, #6c757d);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.planes-included[open] .planes-included-summary::before {
    transform: rotate(45deg);
}

.planes-included-summary:focus-visible {
    outline: 2px solid #88B9D7 !important;
    outline-offset: 3px !important;
}

.planes-included-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-muted, #6c757d);
}

.planes-included-item i {
    color: var(--accent-color, #88B9D7);
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.planes-included-item span {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
    .planes-included-item {
        font-size: 0.875rem;
    }

    .planes-included-item i {
        font-size: 0.875rem;
    }
}

.planes-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    overflow-wrap: break-word;
}

.planes-card:hover {
    transform: translateY(-2px);
}

.planes-card-featured {
    border: 2px solid var(--accent-color, #88B9D7);
}

.planes-featured-ribbon {
    background: var(--primary-color, #34678a);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0;
}

.planes-badge {
    background-color: var(--accent-color, #88B9D7);
    color: #0b2436;
    font-weight: 600;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
}

.planes-promo-note {
    color: var(--text-secondary, #6c757d);
    font-weight: 600;
    line-height: 1.35;
}

.planes-price {
    line-height: 1.3;
}

.planes-price-amount {
    font-family: var(--font-brand, 'Saira', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color, #34678a);
}

.planes-price-strike {
    color: var(--text-muted, #6c757d);
    text-decoration: line-through;
    font-size: 0.95rem;
    white-space: nowrap;
}

.planes-features li {
    padding: 0.25rem 0;
}

.planes-cta-note {
    line-height: 1.4;
}

.planes-card-cta,
.planes-card-cta:focus,
.planes-card-cta:focus-visible {
    outline: none;
    box-shadow: none !important;
}

.planes-card-cta:focus-visible {
    outline: 2px solid #88B9D7 !important;
    outline-offset: 3px !important;
}

.planes-features-fold {
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.55rem 0.75rem;
}

.planes-features-fold > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text, #212529);
}

.planes-features-fold > summary:focus-visible {
    outline: 2px solid #88B9D7 !important;
    outline-offset: 3px !important;
}

.planes-referrals {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-sm, 0.5rem);
    background: var(--surface, #fff);
}

.planes-compare-wrap {
    overflow: visible;
    max-width: 100%;
}

.planes-compare-table {
    --bs-table-bg: transparent;
    color: var(--text, #212529);
    border-color: var(--border, rgba(0, 0, 0, 0.12));
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.planes-compare-table th,
.planes-compare-table td {
    vertical-align: top;
    padding: 0.75rem 0.85rem;
    border-color: var(--border, rgba(0, 0, 0, 0.12));
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.planes-compare-table thead th {
    font-weight: 700;
    background: var(--surface-2, rgba(0, 0, 0, 0.03));
}

.planes-faq-list {
    max-width: 42rem;
    margin: 0 auto;
    display: grid;
    gap: 0.65rem;
}

.planes-faq-item {
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.75rem 1rem;
    background: var(--surface, #fff);
}

.planes-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text, #212529);
}

.planes-faq-item summary:focus-visible {
    outline: 2px solid #88B9D7 !important;
    outline-offset: 3px !important;
}

.planes-faq-item p {
    margin-top: 0.65rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.55;
}

.planes-faq-item a {
    color: var(--accent-soft, #3FB6BB);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.planes-faq-item a:focus,
.planes-faq-item a:focus-visible {
    outline: none;
    box-shadow: none !important;
}

.planes-faq-item a:focus-visible {
    outline: 2px solid #88B9D7 !important;
    outline-offset: 3px !important;
}

body.dark-mode .planes-card,
body.dark-mode .planes-included,
body.dark-mode .planes-referrals,
body.dark-mode .planes-faq-item {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .planes-price-amount {
    color: var(--accent-color, #88B9D7);
}

body.dark-mode .planes-badge {
    color: #0b2436;
}

body.dark-mode .planes-compare-table thead th {
    background: rgba(255, 255, 255, 0.04);
}

.planes-details-body {
    overflow-wrap: break-word;
}

.planes-details-body :first-child {
    margin-top: 0;
}

.planes-details-body :last-child {
    margin-bottom: 0;
}

.planes-details-body h1,
.planes-details-body h2,
.planes-details-body h3,
.planes-details-body h4,
.planes-details-body h5,
.planes-details-body h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.planes-details-body ul,
.planes-details-body ol {
    padding-left: 1.25rem;
}

.planes-details-body table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
}

.planes-details-body pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.planes-details-body img {
    max-width: 100%;
    height: auto;
}

.planes-page .modal .modal-dialog {
    margin-top: 6.5rem;
}

.planes-page .modal .modal-dialog.modal-dialog-scrollable {
    height: calc(100% - 8.25rem);
}

@media (max-width: 767.98px) {
    .planes-page {
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }

    .planes-page > .text-center.mb-4 {
        margin-bottom: 1rem !important;
    }

    .planes-cards-row {
        --bs-gutter-y: 0.85rem;
        margin-bottom: 1.25rem !important;
    }

    .planes-card .card-body {
        padding: 0.9rem 0.95rem;
    }

    .planes-card-body {
        gap: 0;
    }

    /* En mobile: CTA arriba del fold de features / + Detalles */
    .planes-card-actions {
        order: 2;
        margin-top: 0.35rem !important;
    }

    .planes-card-extras {
        order: 3;
        margin-top: 0.65rem;
    }

    .planes-audience {
        font-size: 0.85rem;
        margin-bottom: 0.4rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .planes-price-amount {
        font-size: 1.45rem;
    }

    .planes-promo-note {
        margin-bottom: 0.4rem !important;
        font-size: 0.8rem;
    }

    .planes-card-cta {
        min-height: 44px;
        width: 100%;
    }

    .planes-details-btn {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }

    .planes-page,
    .planes-cards-row {
        overflow-x: hidden;
    }

    .planes-page .modal .modal-dialog {
        margin-top: 4.5rem;
        margin-right: 0.75rem;
        margin-bottom: 0.75rem;
        margin-left: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .planes-page .modal .modal-dialog.modal-dialog-scrollable {
        height: calc(100% - 5.25rem);
    }

    .planes-details-body {
        font-size: 0.95rem;
    }

    .planes-details-body table,
    .planes-details-body th,
    .planes-details-body td {
        font-size: 0.85rem;
    }

    /* Comparativa apilada: sin scroll horizontal ni contenedor con overflow */
    .planes-compare-wrap {
        overflow: visible;
    }

    .planes-compare-table {
        font-size: 0.9rem;
        table-layout: auto;
        border: 0;
    }

    .planes-compare-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .planes-compare-table tbody,
    .planes-compare-table tr,
    .planes-compare-table th,
    .planes-compare-table td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .planes-compare-table tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem 0.85rem;
        border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
        border-radius: var(--radius-sm, 0.5rem);
        background: var(--surface, #fff);
    }

    .planes-compare-table tr:last-child {
        margin-bottom: 0;
    }

    .planes-compare-table th[scope="row"] {
        border: 0;
        padding: 0 0 0.55rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text, #212529);
    }

    .planes-compare-table td {
        border: 0;
        padding: 0.35rem 0;
        color: var(--text-muted, #6c757d);
        line-height: 1.45;
    }

    .planes-compare-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--text, #212529);
    }

    body.dark-mode .planes-compare-table tr {
        border-color: rgba(255, 255, 255, 0.08);
    }
}
