/* CLEM Suite Plans — visual parity with Legacy, refined for the 2026 landing. */
#plans.landing-plans {
    --active-plan-accent: #16a34a;
    --active-plan-accent-strong: #15803d;
    position: relative;
    overflow-x: clip;
    border-block: 1px solid #e5ebf4;
    background:
        radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.065), transparent 24rem),
        radial-gradient(circle at 92% 13%, rgba(16, 185, 129, 0.055), transparent 25rem),
        linear-gradient(180deg, #fbfdff 0%, #f8fbff 56%, #ffffff 100%);
    color: #1f2937;
    font-family: "Segoe UI", Arial, sans-serif;
}

#plans .plans-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 90rem);
}

#plans .plans-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#plans .pricing-intro {
    display: grid;
    max-width: 68rem;
    margin: 0 auto 1.5rem;
    gap: 0.48rem;
    justify-items: center;
    text-align: center;
}

#plans .pricing-heading-row {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

#plans .pricing-heading {
    width: auto;
    max-width: 100%;
    margin: 0;
    color: #071a3b;
    font-family: "Poppins", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(2.35rem, 3.75vw, 3.6rem);
    font-weight: 780;
    line-height: 1.03;
    letter-spacing: -0.05em;
    text-align: center;
}



#plans .pricing-eyebrow {
    margin: 0;
    background: linear-gradient(90deg, #155ee8 0%, #168fcf 52%, #159447 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    line-height: 1.25;
    text-transform: uppercase;
}

#plans .pricing-heading-accent {
    background: linear-gradient(96deg, #176fe9 0%, #159dd2 52%, #20b981 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#plans .pricing-lead {
    max-width: 54rem;
    margin: 0;
    color: #68758a;
    font-size: 1rem;
    line-height: 1.55;
}

#plans .pricing-intervals-wrap {
    display: grid;
    margin-bottom: 1.85rem;
    gap: 0.78rem;
    justify-items: center;
}

#plans .pricing-intervals-buttons {
    display: grid;
    width: min(100%, 45rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0.28rem;
    border: 1px solid rgba(137, 158, 188, 0.24);
    border-radius: 1.08rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.075), inset 0 1px 0 #fff;
    backdrop-filter: blur(10px);
}

#plans .pricing-intervals-buttons button {
    position: relative;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.78rem 0.82rem;
    border: 0;
    border-radius: 0.82rem;
    background: transparent;
    box-shadow: none;
    color: #111827;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 180ms ease;
}

#plans .pricing-intervals-buttons button:hover:not(.active) {
    transform: translateY(-1px);
    background: #f5f8fc;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.1);
}

#plans .pricing-intervals-buttons button.active {
    z-index: 2;
    transform: translateY(-1px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--active-plan-accent-strong), var(--active-plan-accent));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0.55rem 1.35rem color-mix(in srgb, var(--active-plan-accent), transparent 62%),
        0 0 0 0.16rem color-mix(in srgb, var(--active-plan-accent), transparent 86%);
    color: #fff;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.16);
}

#plans .discount-label {
    position: absolute;
    z-index: 4;
    top: -0.72rem;
    right: 0.18rem;
    padding: 0.28rem 0.56rem 0.3rem;
    transform: rotate(4deg);
    transform-origin: 50% 50%;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ef2b2f 0%, #dc2026 100%);
    box-shadow:
        0 0.32rem 0.7rem rgba(220, 32, 38, 0.26),
        0 0.1rem 0.22rem rgba(15, 23, 42, 0.12);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.015em;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(127, 29, 29, 0.2);
    white-space: nowrap;
}

#plans .pricing-saving-note {
    display: inline-flex;
    min-height: 2.05rem;
    margin: 0;
    padding: 0.38rem 0.82rem;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    background: linear-gradient(180deg, #f0fdf8 0%, #ecfdf5 100%);
    box-shadow: 0 0.3rem 0.9rem rgba(5, 150, 105, 0.08);
    color: #047857;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}

#plans .pricing-saving-note::before {
    color: #059669;
    content: "✓";
    font-size: 0.95rem;
    font-weight: 900;
}


#plans .pricing-wrapper {
    position: relative;
    min-width: 0;
    padding-inline: 3.3rem;
}

#plans .pricing-carousel {
    display: flex;
    min-width: 0;
    gap: 1.55rem;
    padding: 1rem 0.42rem 1.25rem;
    overflow-x: auto;
    overflow-y: visible;
    align-items: stretch;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

#plans .pricing-carousel::-webkit-scrollbar {
    display: none;
}

#plans .pricing-card {
    --plan-accent: #3b82f6;
    --plan-accent-strong: #2563eb;
    --plan-soft: #eff6ff;
    --plan-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    position: relative;
    display: flex;
    min-width: 20rem;
    max-width: 20.5rem;
    min-height: 35.5rem;
    padding: 1.85rem 1.45rem 1.25rem;
    overflow: visible;
    flex: 0 0 20.5rem;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--plan-accent), #ffffff 52%);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 50% 9%, color-mix(in srgb, var(--plan-accent), transparent 90%), transparent 9rem),
        linear-gradient(180deg, color-mix(in srgb, var(--plan-soft), #ffffff 48%) 0%, #ffffff 42%, #ffffff 100%);
    box-shadow:
        0 0.9rem 2.35rem rgba(15, 23, 42, 0.075),
        0 0 1.25rem color-mix(in srgb, var(--plan-accent), transparent 88%),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    color: #273244;
    cursor: pointer;
    scroll-snap-align: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

#plans .pricing-card.emprendedor {
    --plan-accent: #3b82f6;
    --plan-accent-strong: #1f6fec;
    --plan-soft: #eff6ff;
    --plan-gradient: linear-gradient(135deg, #1f6fec, #3b82f6);
}

#plans .pricing-card.negocio {
    --plan-accent: #22c55e;
    --plan-accent-strong: #159447;
    --plan-soft: #edfff4;
    --plan-gradient: linear-gradient(135deg, #159447, #22c55e);
}

#plans .pricing-card.avanzado {
    --plan-accent: #a855f7;
    --plan-accent-strong: #7c3aed;
    --plan-soft: #f7efff;
    --plan-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
}

#plans .pricing-card.enterprise {
    --plan-accent: #ef4444;
    --plan-accent-strong: #dc2626;
    --plan-soft: #fff0f0;
    --plan-gradient: linear-gradient(135deg, #dc2626, #ef4444);
}


#plans .pricing-card.selected {
    z-index: 3;
    border-width: 2px;
    border-color: var(--plan-accent);
    outline: 0.2rem solid color-mix(in srgb, var(--plan-accent), transparent 66%);
    outline-offset: 0.16rem;
    background:
        radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--plan-accent), transparent 76%), transparent 10rem),
        linear-gradient(180deg, color-mix(in srgb, var(--plan-soft), #ffffff 12%) 0%, #ffffff 48%, #ffffff 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.92),
        0 1.25rem 3.05rem rgba(15, 23, 42, 0.13),
        0 0 2.65rem color-mix(in srgb, var(--plan-accent), transparent 58%),
        0 0 0 0.36rem color-mix(in srgb, var(--plan-accent), transparent 84%);
    transform: translateY(-0.44rem) scale(1.014);
}

#plans .pricing-card[data-recommended="true"] {
    /* Recomendado se identifica por su badge; la selección visual la controla .selected. */
}

#plans .pricing-card:hover {
    transform: translateY(-0.28rem);
    border-color: var(--plan-accent);
    box-shadow:
        0 1.25rem 2.9rem rgba(15, 23, 42, 0.11),
        0 0 1.85rem color-mix(in srgb, var(--plan-accent), transparent 78%);
}

#plans .pricing-card.selected:hover {
    transform: translateY(-0.48rem) scale(1.015);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.94),
        0 1.4rem 3.2rem rgba(15, 23, 42, 0.14),
        0 0 2.9rem color-mix(in srgb, var(--plan-accent), transparent 54%),
        0 0 0 0.38rem color-mix(in srgb, var(--plan-accent), transparent 82%);
}



#plans .badge-recommended {
    position: absolute;
    z-index: 4;
    top: -0.7rem;
    right: auto;
    left: 50%;
    padding: 0.38rem 0.85rem 0.4rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: linear-gradient(135deg, #0e9f4b, #22c55e);
    box-shadow: 0 0.45rem 1rem rgba(22, 163, 74, 0.28), 0 0 1rem rgba(34, 197, 94, 0.14);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

#plans .badge-recommended > span[aria-hidden="true"] {
    display: inline-block;
    margin-right: 0.18rem;
    color: #facc15;
    font-size: 0.86rem;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(113, 63, 18, 0.24), 0 0 0.45rem rgba(250, 204, 21, 0.58);
    transform: translateY(-0.02rem);
}


#plans .plan-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin: 0.35rem auto 0.72rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--plan-gradient);
    box-shadow:
        0 0.65rem 1.25rem color-mix(in srgb, var(--plan-accent-strong), transparent 64%),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

#plans .plan-icon svg,
#plans .modal-plan-icon svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#plans .pricing-card:hover .plan-icon {
    transform: translateY(-0.08rem) scale(1.045);
    box-shadow:
        0 0.78rem 1.45rem color-mix(in srgb, var(--plan-accent-strong), transparent 58%),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#plans .pricing-card.selected .plan-icon {
    transform: translateY(-0.08rem) scale(1.07);
    box-shadow:
        0 0.82rem 1.65rem color-mix(in srgb, var(--plan-accent-strong), transparent 50%),
        0 0 1.45rem color-mix(in srgb, var(--plan-accent), transparent 62%),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}


#plans .plan-title {
    margin: 0;
    color: #0a1731;
    font-family: "Poppins", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-align: center;
}

#plans .plan-subtitle {
    min-height: 2.65rem;
    margin: 0.48rem 0 0;
    color: #4f6078;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

#plans .plan-price-block {
    display: grid;
    min-height: 6rem;
    margin-top: 0.58rem;
    align-content: center;
    justify-items: center;
}

#plans .price {
    margin: 0;
    color: var(--plan-accent-strong);
    font-family: "Poppins", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 2.7vw, 2.65rem);
    font-weight: 780;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0.4rem 1.3rem color-mix(in srgb, var(--plan-accent), transparent 80%);
    transition: transform 180ms ease, opacity 180ms ease, text-shadow 180ms ease;
}

#plans .price-igv {
    min-height: 1.15rem;
    margin-top: 0.3rem;
    color: #56657a;
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 500;
    text-align: center;
}

#plans .price-igv--quote {
    font-style: normal;
}

#plans .price-before {
    display: none;
    margin-bottom: 0.2rem;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 650;
    opacity: 0;
    text-align: center;
    text-decoration: line-through;
    transition: opacity 180ms ease;
}

#plans .price-before.show {
    display: block;
    opacity: 1;
}

#plans .pricing-card.has-discount .price {
    transform: scale(1.035);
    text-shadow: 0 0.45rem 1.45rem color-mix(in srgb, var(--plan-accent), transparent 72%);
}

#plans .ideal-para {
    margin: 0.25rem 0 0.52rem;
    color: #2f3e55;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.48;
}

#plans .ideal-para strong {
    color: #1f2d44;
    font-weight: 800;
}

#plans .caracteristicas {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.38rem;
    color: #33435a;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.48;
    list-style: none;
}

#plans .caracteristicas li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.25rem;
    align-items: start;
}

#plans .feature-check {
    display: grid;
    width: 0.98rem;
    height: 0.98rem;
    margin-top: 0.05rem;
    place-items: center;
    border: 1px solid var(--plan-accent);
    border-radius: 50%;
    color: var(--plan-accent-strong);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
}

#plans .plan-card-actions {
    display: grid;
    margin-top: auto;
    padding-top: 0.7rem;
    gap: 0.42rem;
}

#plans .ver-mas {
    width: fit-content;
    min-height: 2.4rem;
    padding: 0.35rem 0;
    border: 0;
    background: transparent;
    color: var(--plan-accent-strong);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

#plans .ver-mas:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

#plans .select-plan {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 3.3rem;
    padding: 0.76rem 3rem 0.76rem 1rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.78rem;
    background: var(--plan-gradient);
    box-shadow:
        0 0.5rem 1.15rem color-mix(in srgb, var(--plan-accent-strong), transparent 70%),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#plans .select-plan::after {
    position: absolute;
    right: 1.05rem;
    content: "→";
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 180ms ease;
}

#plans .select-plan:hover::after {
    transform: translateX(0.18rem);
}


#plans .select-plan:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0.75rem 1.55rem color-mix(in srgb, var(--plan-accent-strong), transparent 58%),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    filter: saturate(1.06) brightness(1.01);
}

#plans .pricing-card[data-recommended="true"] .select-plan {
    box-shadow:
        0 0.62rem 1.35rem rgba(22, 163, 74, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#plans .nav-arrow {
    position: absolute;
    z-index: 12;
    top: 50%;
    display: grid;
    width: 3rem;
    height: 3rem;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #d9e1eb;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.15);
    color: #182235;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

#plans .nav-arrow svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#plans .nav-arrow.left { left: 0; }
#plans .nav-arrow.right { right: 0; }

#plans .nav-arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.2);
}

#plans .nav-arrow:disabled {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#plans .pricing-card:focus-visible,
#plans .pricing-intervals-buttons button:focus-visible,
#plans .nav-arrow:focus-visible,
#plans .ver-mas:focus-visible,
#plans .select-plan:focus-visible,
#plans .dynamic-modal :focus-visible {
    outline: 3px solid var(--plan-accent, #2563eb);
    outline-offset: 3px;
}

#plans .plans-fallback {
    max-width: 42rem;
    margin: 2rem auto 0;
    padding: 2.2rem 1.6rem;
    border: 1px solid #dfe5ee;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 0.9rem 2.2rem rgba(15, 23, 42, 0.08);
    color: #4b5563;
    text-align: center;
}

#plans .plans-fallback h3 { color: #1f2937; }
#plans .plans-fallback p { margin: 0.75rem 0 1.25rem; color: #6b7280; }
#plans .plans-fallback a {
    display: inline-flex;
    min-height: 2.9rem;
    padding: 0.7rem 1.15rem;
    align-items: center;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #159447, #22c55e);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

/* Modal: Legacy structure and proportions, with the active plan colour. */
#plans .dynamic-modal[hidden] { display: none; }

#plans .dynamic-modal {
    --plan-accent: #3b82f6;
    --plan-accent-strong: #2563eb;
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 24, 0.68);
    backdrop-filter: blur(5px);
    animation: plan-fade-in 180ms ease;
}

#plans .dynamic-modal.show { display: flex; }

#plans .modal-box {
    display: flex;
    width: min(95vw, 32.5rem);
    max-height: 90vh;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.32);
    animation: plan-pop-in 240ms ease forwards;
}

#plans .modal-header {
    display: flex;
    padding: 1.15rem 1.25rem;
    flex: 0 0 auto;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--plan-accent-strong), var(--plan-accent));
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.12);
    color: #fff;
}

#plans .modal-title-group {
    display: flex;
    min-width: 0;
    gap: 0.7rem;
    align-items: center;
}

#plans .modal-title-group > span:last-child { display: grid; min-width: 0; gap: 0.12rem; }
#plans .modal-title-group strong {
    font-family: "Poppins", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    line-height: 1.2;
}
#plans .modal-title-group small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.77rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

#plans .modal-plan-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

#plans .modal-plan-icon svg { width: 1.75rem; height: 1.75rem; }

#plans .modal-close {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 1.7rem;
    line-height: 1;
    opacity: 0.92;
    cursor: pointer;
    transition: background 160ms ease, opacity 160ms ease;
}

#plans .modal-close:hover { background: rgba(255, 255, 255, 0.16); opacity: 1; }

#plans .modal-body {
    padding: 1.35rem 1.35rem 1.15rem;
    overflow-y: auto;
    flex: 1 1 auto;
    color: #374151;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

#plans .modal-body::-webkit-scrollbar { width: 8px; }
#plans .modal-body::-webkit-scrollbar-thumb { border-radius: 8px; background: #cbd5e1; }

#plans .modal-lead {
    margin: 0 0 0.8rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

#plans .modal-features {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

#plans .modal-features li {
    display: grid;
    grid-template-columns: 1.18rem minmax(0, 1fr);
    gap: 0.52rem;
    padding: 0.72rem 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e7edf5;
    border-left: 0.18rem solid transparent;
    border-radius: 0.42rem;
    color: #27364b;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -0.005em;
    contain: paint;
}

#plans .modal-features .feature-check {
    position: relative;
    display: block;
    width: 1.08rem;
    height: 1.08rem;
    min-width: 1.08rem;
    min-height: 1.08rem;
    margin: 0;
    box-sizing: border-box;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border: 1.5px solid var(--plan-accent);
    border-radius: 50%;
    background: #ffffff;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

#plans .modal-features .feature-check::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.56rem;
    height: 0.56rem;
    content: "";
    background: var(--plan-accent-strong);
    clip-path: polygon(8% 51%, 22% 38%, 42% 58%, 79% 20%, 92% 33%, 42% 84%);
    transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
    #plans .modal-features li:hover {
        border-left-color: var(--plan-accent);
        background-color: color-mix(in srgb, var(--plan-accent) 8%, #ffffff);
    }
}

#plans .loading-content,
#plans .modal-error {
    display: grid;
    min-height: 11rem;
    place-content: center;
    justify-items: center;
    text-align: center;
}

#plans .modal-spinner {
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.8rem;
    border: 3px solid #e5e7eb;
    border-top-color: var(--plan-accent-strong);
    border-radius: 50%;
    animation: plan-spin 0.8s linear infinite;
}

#plans .modal-footer {
    display: flex;
    padding: 0.95rem 1.35rem 1.15rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    border-top: 1px solid #e9eef4;
    background: #fbfcfe;
}

#plans .modal-whatsapp {
    display: inline-flex;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--plan-accent-strong), var(--plan-accent));
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

#plans .modal-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.1rem color-mix(in srgb, var(--plan-accent-strong), transparent 65%);
}

#plans .dynamic-modal [hidden] { display: none !important; }
body.plans-modal-open { overflow: hidden; }

@keyframes plan-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes plan-pop-in { from { transform: scale(0.96) translateY(0.5rem); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes plan-spin { to { transform: rotate(360deg); } }

@media (min-width: 90rem) {
    #plans .pricing-carousel { overflow-x: hidden; }
    #plans .pricing-card {
        min-width: 0;
        max-width: none;
        flex: 1 1 calc((100% - 4.5rem) / 4);
    }
}

@media (max-width: 64rem) {
    #plans .plans-container { width: min(calc(100% - 1.5rem), 90rem); }
    #plans .pricing-wrapper { padding-inline: 3rem; }
    #plans .pricing-card { min-width: 19rem; max-width: 19rem; flex-basis: 19rem; }
}

@media (max-width: 47.99rem) {
    #plans .plans-container { width: min(calc(100% - 1.1rem), 90rem); }

    #plans .pricing-intro { margin-bottom: 1.45rem; }
    #plans .pricing-heading-row { width: 100%; }
    #plans .pricing-eyebrow { max-width: 30rem; font-size: 0.66rem; }
    #plans .pricing-heading {
        max-width: 15ch;
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.02;
    }
    #plans .pricing-lead { max-width: 31rem; font-size: 0.9rem; }

    #plans .pricing-intervals-buttons {
        width: min(100%, 24rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.35rem;
    }
    #plans .pricing-intervals-buttons button {
        min-width: 0;
        min-height: 3.1rem;
        padding-inline: 0.65rem;
    }
    #plans .discount-label {
        top: -0.48rem;
        right: 0.18rem;
        transform: rotate(3deg);
    }
    #plans .pricing-saving-note {
        width: min(100%, 24rem);
        border-radius: 0.8rem;
        font-size: 0.8rem;
    }

    #plans .pricing-wrapper { padding-inline: 0; padding-bottom: 0; }
    #plans .pricing-carousel {
        gap: 0.85rem;
        padding: 0.65rem 0.15rem 0.85rem;
        scroll-snap-type: x mandatory;
    }
    #plans .pricing-card {
        min-width: calc(100vw - 2.2rem);
        max-width: calc(100vw - 2.2rem);
        min-height: 35rem;
        flex-basis: calc(100vw - 2.2rem);
        scroll-snap-align: center;
    }
    #plans .pricing-card.selected {
        transform: translateY(-0.28rem);
        outline-width: 0.14rem;
        outline-offset: 0.1rem;
    }
    #plans .pricing-card.selected:hover {
        transform: translateY(-0.28rem);
    }
    #plans .nav-arrow {
        top: 50%;
        bottom: auto;
        width: 2.85rem;
        height: 2.85rem;
        transform: translateY(-50%);
    }
    #plans .nav-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
    #plans .nav-arrow.left { right: auto; left: 0.3rem; }
    #plans .nav-arrow.right { right: 0.3rem; left: auto; }
    #plans .nav-arrow:disabled {
        visibility: visible;
        opacity: 0.32;
        pointer-events: none;
    }

    #plans .modal-box { width: 100%; max-height: 94vh; }
    #plans .modal-header { padding: 0.9rem 0.8rem 0.9rem 1rem; }
    #plans .modal-title-group small { max-width: 13.5rem; }
    #plans .modal-body { padding: 1.1rem 1rem 0.9rem; }
    #plans .modal-footer { padding: 0.8rem 1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    #plans *,
    #plans *::before,
    #plans *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #plans .pricing-card:hover,
    #plans .pricing-card:hover .plan-icon,
    #plans .select-plan:hover,
    #plans .nav-arrow:hover:not(:disabled),
    #plans .modal-whatsapp:hover {
        transform: none;
    }
}
