﻿.sus-page {
    max-width: 1180px;
    margin: 0 auto;
    font-family: "Poppins", Arial, sans-serif;
    color: #f5f0ff;
}

.sus-hero {
    text-align: center;
    padding: 14px 8px 6px;
}

.sus-hero .eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f9b787;
    font-size: 0.76rem;
}

.sus-hero h1 {
    margin: 12px 0 8px;
    font-family: "Space Grotesk", "Poppins", sans-serif;
    font-size: clamp(1.9rem, 4.1vw, 2.8rem);
}

.sus-hero .lead {
    margin: 0 auto;
    max-width: 760px;
    color: #d4c6ee;
    line-height: 1.55;
}

.billing-switch {
    margin: 18px auto 24px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 8, 20, 0.62);
    padding: 6px;
    position: relative;
}

.billing-btn {
    min-width: 120px;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    background: transparent;
    color: #d8ceec;
    font-weight: 600;
    cursor: pointer;
}

.billing-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.save-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.72rem;
    background: linear-gradient(130deg, #22d3ee, #67e8f9);
    color: #052531;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
    background: rgba(18, 12, 34, 0.84);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 80% at 0% 0%, rgba(248, 105, 14, 0.16), rgba(248, 105, 14, 0));
}

.plan-card.pro {
    border-color: rgba(119, 35, 216, 0.45);
    background: linear-gradient(160deg, rgba(41, 24, 70, 0.96), rgba(20, 12, 38, 0.96));
}

.plan-card.deep {
    border-color: rgba(248, 105, 14, 0.35);
    background: linear-gradient(160deg, rgba(53, 28, 44, 0.95), rgba(19, 11, 34, 0.97));
}

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    margin-bottom: 10px;
    color: #ffe6d2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(248, 105, 14, 0.16);
}

.plan-chip.neutral {
    color: #d8ceec;
    background: rgba(255, 255, 255, 0.07);
}

.plan-chip.purple {
    color: #e6d8ff;
    background: rgba(119, 35, 216, 0.24);
}

.plan-title {
    margin: 0;
    font-size: 1.35rem;
    font-family: "Space Grotesk", "Poppins", sans-serif;
}

.plan-desc {
    margin: 8px 0 0;
    color: #d8ceec;
    min-height: 56px;
    line-height: 1.45;
}

.plan-price {
    margin-top: 14px;
}

.plan-price .value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .sub {
    margin-top: 6px;
    color: #9fdff1;
    font-size: 0.85rem;
}

.plan-features {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    flex: 1;
}

.plan-features li {
    position: relative;
    padding-left: 24px;
    color: #efe8ff;
    line-height: 1.36;
    font-size: 0.93rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #4f2b0b;
    background: linear-gradient(130deg, #ffc999, #f8690e);
}

.plan-btn {
    margin-top: 14px;
    min-height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.plan-btn.primary {
    border: none;
    background: linear-gradient(120deg, #7f33e8, #f8690e);
}

.plan-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.checkout-panel {
    margin-top: 18px;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(90% 100% at 100% 0%, rgba(119, 35, 216, 0.2), rgba(119, 35, 216, 0)),
        rgba(16, 11, 30, 0.86);
}

.checkout-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.checkout-head .eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #cdbbe9;
    font-size: 0.74rem;
}

.checkout-head h2 {
    margin: 6px 0 0;
    font-size: 1.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    text-transform: capitalize;
    width: fit-content;
}

.pill[data-state="activa"] { background: rgba(16,185,129,0.18); color: #53f0b8; }
.pill[data-state="pendiente"] { background: rgba(251,191,36,0.18); color: #ffd066; }
.pill[data-state="cancelada"] { background: rgba(248,113,113,0.2); color: #ff9ea1; }

.checkout-meta {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.checkout-meta p {
    margin: 0;
    color: #d8caef;
}

.checkout-selected {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 12px;
}

.selected-label {
    margin: 0;
    color: #cbbfe3;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#selected-plan-name {
    margin: 4px 0 0;
    font-weight: 700;
    color: #fff;
}

#selected-plan-price {
    margin: 4px 0 0;
    color: #9fdff1;
    font-size: 0.92rem;
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.primary,
.ghost {
    min-height: 44px;
    border-radius: 12px;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    color: #fff;
    background: linear-gradient(120deg, #7f33e8, #f8690e);
}

.ghost {
    color: #efe8ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.message {
    min-height: 22px;
    margin-top: 10px;
    color: #c7bde0;
    font-size: 0.92rem;
}

.message.success { color: #7bf3be; }
.message.warn { color: #ffd88a; }
.message.error { color: #ffaaaa; }

@media (max-width: 1080px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .checkout-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
    }

    .primary,
    .ghost {
        width: 100%;
    }
}


