/* =====================================================================
   PRO / PLANES Y PRECIOS (planes.html) — Inicio v2 look, Brand guide v2.1
   Every rule is scoped to body.pro-v2 → no other page changes.
     Navy #043259 · Deep Teal #036A6F · Teal #60A699 (borders only)
     Mint #B0D9CD · Blue Grey #4D6F8C · Error Text #B83A3D
     Pro text #A34E0C · Pro Light #F0C06E
   Radii 5 / 6 / 10 · no circles · Nunito Sans 400/600/700
   ===================================================================== */

html.i18n-wait body {
    visibility: hidden;
}

body.pro-v2 {
    font-family: "Nunito Sans", system-ui, sans-serif;
    color: #043259;
    background: #F5F9F9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.pro-v2 main *,
body.pro-v2 .provider-header * {
    box-sizing: border-box;
}
body.pro-v2 [hidden] {
    display: none !important;
}
body.pro-v2 a:focus-visible,
body.pro-v2 button:focus-visible {
    outline: 2px solid #036A6F;
    outline-offset: 2px;
}

button.beta-config-btn { border: 0; cursor: pointer; font: inherit; }
button.beta-config-btn:disabled { opacity: .7; cursor: wait; }

/* =====================================================================
   SHELL — fixed sidebar on the left, header to its right (≥ 960px)
   Same as Inicio.
   ===================================================================== */
@media (min-width: 960px) {
    body.pro-v2 .provider-header,
    body.pro-v2 main,
    body.pro-v2 footer {
        margin-left: 248px;
    }
    body.pro-v2 .provider-header .logo-container {
        display: none;
    }
}

/* Account button with name + chevron */
body.pro-v2 .provider-header .user-account-header {
    width: auto;
    height: auto;
    min-height: 44px;
    gap: 10px;
    padding: 4px 10px 4px 4px;
}
body.pro-v2 .account-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #043259;
}
body.pro-v2 .account-name:empty {
    display: none;
}

/* Sidebar */
body.pro-v2 .page-layout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.pro-v2 .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 25;
    width: 248px;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #FFFFFF;
    border-right: 1px solid rgba(176, 217, 205, 0.6);
    overflow-y: auto;
}
body.pro-v2 .sidebar-logo {
    display: flex;
    padding: 4px 12px;
    margin-bottom: 24px;
}
body.pro-v2 .sidebar-logo img {
    height: 40px;
    width: auto;
    display: block;
}
body.pro-v2 .sidebar-label {
    margin: 0;
    padding: 0 12px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4D6F8C;
}
body.pro-v2 .side-action-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.pro-v2 .action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 5px;
    background: transparent;
    color: #043259;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
body.pro-v2 .action-card:hover {
    background: rgba(176, 217, 205, 0.15);
}
body.pro-v2 .action-card[aria-current="page"] {
    background: rgba(176, 217, 205, 0.35);
    font-weight: 700;
}
body.pro-v2 .action-card br {
    display: none;
}
body.pro-v2 .action-card img {
    order: -1;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
body.pro-v2 .action-card .action-label {
    font-size: 14px;
    font-weight: inherit;
    color: #043259;
}

/* Main — clinical-paper grid behind the top of the page */
body.pro-v2 main {
    flex: 1 0 auto;
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-right: 0;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(245, 249, 249, 0) 35%, #F5F9F9 100%) top / 100% 360px no-repeat,
        linear-gradient(180deg, rgba(176, 217, 205, 0.38) 0%, rgba(245, 249, 249, 0) 100%) top / 100% 360px no-repeat,
        repeating-linear-gradient(0deg, rgba(3, 106, 111, 0.07) 0 1px, transparent 1px 32px) top / 100% 360px no-repeat,
        repeating-linear-gradient(90deg, rgba(3, 106, 111, 0.07) 0 1px, transparent 1px 32px) top / 100% 360px no-repeat,
        #F5F9F9;
}
body.pro-v2 .main-dashboard {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px clamp(16px, 3vw, 40px) 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


body.pro-v2 footer.provider-footer {
    align-self: stretch;
}

/* ES / EN switch */
body.pro-v2 .lang-switch {
    display: flex;
    gap: 2px;
    padding: 2px;
    margin-right: 4px;
    border-radius: 5px;
    background: rgba(176, 217, 205, 0.3);
}
body.pro-v2 .lang-switch button {
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #4D6F8C;
    font: 700 12px "Nunito Sans", system-ui, sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
}
body.pro-v2 .lang-switch button[aria-pressed="true"] {
    background: #FFFFFF;
    color: #043259;
    box-shadow: 0 1px 4px rgba(4, 50, 89, 0.12);
}


/* Popups */
body.pro-v2 .overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 50, 89, 0.55);
}
body.pro-v2 .popup {
    display: none;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    border-radius: 10px;
    border: none;
    border-top: 3px solid #036A6F;
    background: #FFFFFF;
    box-shadow: 0 10px 40px rgba(4, 50, 89, 0.24);
    color: #043259;
    text-align: center;
}
body.pro-v2 .popup-error,
body.pro-v2 .popup-confirm {
    border-top-color: #B83A3D;
}
body.pro-v2 .popup-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.5;
}
body.pro-v2 .npi-number {
    font-size: 20px;
    font-weight: 700;
    color: #043259;
}
body.pro-v2 .popup-message > button {
    margin-top: 10px;
}
body.pro-v2 .popup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}


/* =====================================================================
   PAGE — title, current plan, cards, comparison table
   ===================================================================== */
body.pro-v2 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
body.pro-v2 .pro-page-head h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #043259;
}
body.pro-v2 .pro-page-head p {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #4D6F8C;
}
body.pro-v2 .pro-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 5px;
    background: #F0C06E;
    color: #A34E0C;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Current plan banner (JS sets display:flex) */
body.pro-v2 .current-plan-banner {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #F0C06E;
    background: rgba(240, 192, 110, 0.18);
    color: #043259;
    font-size: 15px;
    font-weight: 600;
}

/* Cards */
body.pro-v2 .pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    padding-top: 12px;
}
body.pro-v2 .pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: 10px;
    border: 1px solid rgba(176, 217, 205, 0.8);
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(4, 50, 89, 0.08);
}
body.pro-v2 .highlight-card {
    border: 2px solid #F0C06E;
    box-shadow: 0 10px 30px rgba(163, 78, 12, 0.12);
}
body.pro-v2 .pricing-card.is-current {
    border-color: #036A6F;
}
body.pro-v2 .popular-badge,
body.pro-v2 .soon-tag {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
body.pro-v2 .popular-badge {
    background: #F0C06E;
    color: #A34E0C;
}
body.pro-v2 .soon-tag {
    background: #4D6F8C;
    color: #FFFFFF;
}
body.pro-v2 .pricing-card.is-soon .card-title,
body.pro-v2 .pricing-card.is-soon .card-price,
body.pro-v2 .pricing-card.is-soon .card-desc,
body.pro-v2 .pricing-card.is-soon .card-features {
    opacity: 0.6;
}
body.pro-v2 .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #043259;
}
body.pro-v2 .card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 4px;
}
body.pro-v2 .price-amount,
body.pro-v2 .price-label {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #043259;
}
body.pro-v2 .highlight-card .price-amount {
    color: #A34E0C;
}
body.pro-v2 .price-period {
    font-size: 15px;
    font-weight: 600;
    color: #4D6F8C;
}
body.pro-v2 .card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4D6F8C;
}
body.pro-v2 .card-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 24px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(176, 217, 205, 0.6);
    list-style: none;
}
body.pro-v2 .card-features li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.45;
    color: #043259;
}
body.pro-v2 .card-features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #036A6F;
    border-bottom: 2px solid #036A6F;
    transform: rotate(-45deg);
}
body.pro-v2 .card-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    font: 700 16px "Nunito Sans", system-ui, sans-serif;
    cursor: pointer;
    transition: background .15s ease;
}
body.pro-v2 .upgrade-btn {
    background: #043259;
    color: #FFFFFF;
}
body.pro-v2 .upgrade-btn:hover:not(:disabled) {
    background: #036A6F;
}
body.pro-v2 .upgrade-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
body.pro-v2 .current-plan {
    background: rgba(176, 217, 205, 0.35);
    color: #036A6F;
    cursor: default;
}
body.pro-v2 .card-footnote {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #A34E0C;
}
body.pro-v2 .cancel-link a {
    color: #4D6F8C;
    font-weight: 600;
    text-decoration: underline;
}
body.pro-v2 .cancel-link a:hover {
    color: #B83A3D;
}

/* Beta block (built by suscripciones.js) */
body.pro-v2 .beta-info-block {
    max-width: 640px;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid rgba(176, 217, 205, 0.6);
    border-top: 3px solid #036A6F;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(4, 50, 89, 0.08);
}
body.pro-v2 .beta-info-block h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #043259;
}
body.pro-v2 .beta-info-block p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #043259;
}
body.pro-v2 .beta-deadline-warning {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid #A34E0C;
    background: rgba(240, 192, 110, 0.18);
    font-size: 14px;
    line-height: 1.5;
    color: #043259;
}
body.pro-v2 .beta-config-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 5px;
    background: #043259;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
body.pro-v2 .beta-config-btn:hover {
    background: #036A6F;
}

/* Comparison table */
body.pro-v2 .comparison-table-container h2 {
    margin: 16px 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #043259;
}
body.pro-v2 .comparison-table {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(176, 217, 205, 0.8);
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(4, 50, 89, 0.08);
}
body.pro-v2 .comparison-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
body.pro-v2 .comparison-table th {
    padding: 16px 12px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(176, 217, 205, 0.8);
    font-size: 14px;
    font-weight: 700;
    color: #043259;
    text-align: center;
    vertical-align: bottom;
}
body.pro-v2 .comparison-table th.feature-column {
    width: 46%;
}
body.pro-v2 .comparison-table th.highlight {
    background: rgba(240, 192, 110, 0.15);
}
body.pro-v2 .comparison-table th .price {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #4D6F8C;
}
body.pro-v2 .comparison-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(176, 217, 205, 0.4);
    font-size: 14px;
    color: #043259;
    text-align: center;
}
body.pro-v2 .comparison-table td:nth-child(3) {
    background: rgba(240, 192, 110, 0.07);
}
body.pro-v2 .comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
}
body.pro-v2 .comparison-table .section-header td {
    padding: 14px 12px 8px;
    background: #F5F9F9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4D6F8C;
    text-align: left;
}
body.pro-v2 .comparison-table .check {
    color: #036A6F;
    font-size: 16px;
    font-weight: 700;
}
body.pro-v2 .comparison-table .cross {
    color: #B0BFC9;
    font-weight: 700;
}
body.pro-v2 .comparison-table .number {
    font-weight: 700;
}
body.pro-v2 .comparison-table tbody tr:last-child td {
    border-bottom: none;
}
body.pro-v2 .soon-inline {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 5px;
    background: #4D6F8C;
    color: #FFFFFF;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.04em;
}
body.pro-v2 .preguntas-frequentes-text {
    margin: 0;
    text-align: center;
    font-size: 14px;
}
body.pro-v2 .preguntas-frequentes-text a {
    color: #036A6F;
    font-weight: 700;
}

/* Popups: cancel ones open with .show (suscripciones.js), errors with style.display */
body.pro-v2 .overlay.show {
    display: flex;
}
body.pro-v2 .overlay.show .popup.show {
    display: block;
}
body.pro-v2 .popup-small {
    margin: 0;
    font-size: 14px;
    color: #4D6F8C;
}
body.pro-v2 .popup-btn-primary,
body.pro-v2 .popup-btn-error {
    min-height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    color: #FFFFFF;
    font: 700 14px "Nunito Sans", system-ui, sans-serif;
    cursor: pointer;
}
body.pro-v2 .popup-btn-primary {
    background: #043259;
}
body.pro-v2 .popup-btn-primary:hover {
    background: #036A6F;
}
body.pro-v2 .popup-btn-error {
    background: #B83A3D;
}
body.pro-v2 .popup-btn-error:hover {
    background: #9C2F32;
}
body.pro-v2 .popup-btn-error:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Page responsive */
@media (max-width: 1100px) {
    body.pro-v2 .pricing-cards-container {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        gap: 28px;
    }
}
@media (max-width: 600px) {
    body.pro-v2 .pro-page-head h1 {
        font-size: 24px;
    }
    body.pro-v2 .comparison-table th,
    body.pro-v2 .comparison-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    body.pro-v2 .comparison-table th.feature-column {
        width: 40%;
    }
    body.pro-v2 .comparison-table th .price {
        font-size: 11px;
    }
    body.pro-v2 .beta-info-block {
        padding: 20px;
    }
}

/* Responsive shell */
@media (max-width: 959px) {
    body.pro-v2 .header-page-title {
        display: none;
    }
    body.pro-v2 .account-name,
    body.pro-v2 .account-chevron {
        display: none;
    }
    body.pro-v2 .provider-header .user-account-header {
        padding: 4px;
    }
    body.pro-v2 main {
        margin-left: 0;
    }
    body.pro-v2 .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 12px 16px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(176, 217, 205, 0.6);
        overflow: visible;
    }
    body.pro-v2 .sidebar-logo,
    body.pro-v2 .sidebar-label {
        display: none;
    }
    body.pro-v2 .side-action-container {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.pro-v2 .action-card {
        flex: none;
        gap: 8px;
        padding: 0 16px;
        border: 1px solid rgba(176, 217, 205, 0.8);
        border-radius: 6px;
        background: #FFFFFF;
        white-space: nowrap;
    }
    body.pro-v2 .action-card[aria-current="page"] {
        background: #043259;
        border-color: #043259;
    }
    body.pro-v2 .action-card[aria-current="page"] .action-label {
        color: #FFFFFF;
    }
    body.pro-v2 .action-card img {
        width: 18px;
        height: 18px;
    }
    body.pro-v2 .main-dashboard {
        padding-top: 24px;
    }
}
@media (max-width: 420px) {
    body.pro-v2 .provider-header .help-btn {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pro-v2 *,
    body.pro-v2 *::before {
        transition: none !important;
        animation: none !important;
    }
}