/* ── Variables ─────────────────────────────────────── */
:root {
    --accent-red: #c44536;
    --gradient-red: linear-gradient(135deg, #c44536, #d95f4e);
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-card-border: rgba(255, 255, 255, 0.07);
    --text-secondary: #a0a0a0;
    --text-muted: #5a5a5a;
}

/* ── Base ──────────────────────────────────────────── */
body {
    font-family: 'Raleway', sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    padding: 110px 20px 80px;
}

/* ── Background decorations ────────────────────────── */
.page-bg-glow {
    position: fixed;
    top: 0; right: 0;
    width: 65vw; height: 65vh;
    background: radial-gradient(ellipse at 75% 15%, rgba(196, 69, 54, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.page-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
}

/* ── Container ─────────────────────────────────────── */
.precios-container {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Active subscription banner ────────────────────── */
.active-sub-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    padding: 0.9rem 1.3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.active-sub-banner i {
    color: #22c55e;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.active-sub-text {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
}
.active-sub-btn {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.active-sub-btn:hover { background: rgba(34,197,94,0.2); color: #22c55e; }

/* ── Trial gratuito banner ────────────────────────── */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(196, 69, 54, 0.07);
    border: 1px solid rgba(196, 69, 54, 0.25);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.trial-banner-icon {
    font-size: 1.6rem;
    color: #d95f4e;
    flex-shrink: 0;
    line-height: 1;
}
.trial-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.trial-banner-text strong {
    color: #e2e2e2;
    font-size: 1rem;
    font-weight: 700;
}
.trial-banner-text span {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.btn-trial {
    background: linear-gradient(135deg, #c44536, #d95f4e);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.55rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.btn-trial:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-trial:active { transform: translateY(0); }
.btn-trial:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Header ────────────────────────────────────────── */
.precios-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.precios-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.precios-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* ── Plan grid ─────────────────────────────────────── */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .planes-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ── Plan card ─────────────────────────────────────── */
.plan-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.plan-card:hover {
    border-color: rgba(196, 69, 54, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.plan-card.plan-selected {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(196,69,54,0.2), 0 12px 40px rgba(0,0,0,0.4);
}
.plan-featured {
    border-color: rgba(196, 69, 54, 0.45);
    background: linear-gradient(160deg, #161010 0%, #111111 100%);
}

/* ── Plan badge ────────────────────────────────────── */
.plan-badge {
    display: inline-block;
    background: var(--gradient-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.plan-badge-invisible {
    background: transparent;
    color: transparent;
    pointer-events: none;
}
.plan-badge-gold {
    background: linear-gradient(135deg, #b8860b, #daa520);
}

/* ── Plan name & price ─────────────────────────────── */
.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 0.3rem;
}
.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.1rem;
}
.plan-saving {
    font-size: 0.77rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 1.25rem;
    min-height: 1.1rem;
}
.plan-saving-spacer {
    min-height: 1.1rem;
    margin-bottom: 1.25rem;
}

/* ── Feature list ──────────────────────────────────── */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.plan-features li i {
    color: var(--accent-red);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── Select plan button ────────────────────────────── */
.btn-select-plan {
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid rgba(196, 69, 54, 0.45);
    border-radius: 50px;
    color: var(--accent-red);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
    margin-top: auto;
}
.btn-select-plan:hover {
    background: rgba(196, 69, 54, 0.1);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}
.btn-select-featured {
    background: var(--gradient-red);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(196, 69, 54, 0.35);
}
.btn-select-featured:hover {
    background: linear-gradient(135deg, #d95f4e, #e8705f);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(196, 69, 54, 0.5);
}

/* ── Payment card ──────────────────────────────────── */
.payment-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    max-width: 560px;
    margin: 0 auto;
}
.payment-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payment-card-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-back:hover { border-color: rgba(255,255,255,0.25); color: #fff; }

/* ── Plan summary ──────────────────────────────────── */
.payment-plan-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(196, 69, 54, 0.07);
    border: 1px solid rgba(196, 69, 54, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.payment-plan-summary i { color: var(--accent-red); }

/* ── CardForm fields ───────────────────────────────── */
.form-group-mp {
    margin-bottom: 1rem;
}
.mp-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.mp-input-container {
    width: 100%;
    display: block;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    height: 44px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.mp-input-container:focus-within {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(196,69,54,0.15);
}
.mp-text-input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.mp-text-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(196,69,54,0.15);
}
.mp-text-input::placeholder { color: rgba(255,255,255,0.25); }
.mp-text-input option { background: #1a1a1a; color: #fff; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── Messages ──────────────────────────────────────── */
.payment-msg {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.87rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.payment-msg-error {
    background: rgba(196, 69, 54, 0.1);
    border: 1px solid rgba(196, 69, 54, 0.3);
    color: #f87171;
}
.payment-msg-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* ── Pay button ────────────────────────────────────── */
.btn-pay {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--gradient-red);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(196, 69, 54, 0.35);
    transition: all 0.25s;
    margin-top: 0.25rem;
}
.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 69, 54, 0.5);
}
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Secure note ───────────────────────────────────── */
.payment-secure-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.85rem;
    margin-bottom: 0;
}

/* ── Success state ─────────────────────────────────── */
.payment-success {
    text-align: center;
    padding: 2rem 1rem;
}
.success-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
    font-size: 1.6rem;
    color: #fff;
}
.payment-success h4 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.payment-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}
