/* ============================================================
   ALPH — Checkout (Stripe)
   ============================================================ */

:root {
    --alph-primary: #168a89;
    --alph-primary-dark: #0d6467;
    --alph-secondary: #22b8b6;
    --alph-accent: #e91e8c;
    --alph-light: #d0f0ef;
    --alph-border: #a7e0de;
    --alph-text: #1e293b;
    --alph-muted: #64748b;
}

button.btn-primary,
button.btn-package-cta,
.congress-cta-button,
.btn-package-basic,
.btn-package-premium,
.btn-access-pass,
.btn-workshop-cta {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.alph-checkout-modal .modal-content {
    background: #ffffff;
    border: 2px solid var(--alph-primary);
    border-radius: 18px;
    color: var(--alph-text);
    overflow: hidden;
}

.alph-checkout-modal .modal-header {
    background: linear-gradient(135deg, var(--alph-primary) 0%, var(--alph-primary-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    align-items: flex-start;
}

.alph-checkout-modal .modal-title {
    color: #ffffff;
    font-weight: 700;
}

.alph-checkout-modal .product-desc {
    color: #d0f0ef;
    font-size: .95rem;
}

.alph-checkout-field label {
    color: var(--alph-primary);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.alph-checkout-field .form-control,
.alph-checkout-field .form-select {
    background: #ffffff;
    border: 1px solid var(--alph-border);
    color: var(--alph-text);
    border-radius: 10px;
    padding: .75rem 1rem;
}

.alph-checkout-field .form-control:focus,
.alph-checkout-field .form-select:focus {
    border-color: var(--alph-secondary);
    box-shadow: 0 0 0 3px rgba(34, 184, 182, .2);
    background: #ffffff;
    color: var(--alph-text);
}

.alph-checkout-modal .checkout-hint {
    display: block;
    margin-top: .35rem;
    color: var(--alph-accent);
    font-size: .78rem;
}

.alph-checkout-summary {
    background: var(--alph-light);
    border: 1px solid var(--alph-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.alph-checkout-summary .row-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem;
    color: var(--alph-muted);
    font-size: .9rem;
}

.alph-checkout-summary .total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--alph-border);
    margin-top: .5rem;
    padding-top: .6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--alph-primary);
}

.alph-checkout-error {
    display: none;
    margin-top: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .9rem;
}

.alph-checkout-error.show { display: block; }

.alph-checkout-modal .btn-checkout-pay {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--alph-primary) 0%, var(--alph-secondary) 100%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.alph-checkout-modal .btn-checkout-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 138, 137, .35);
}

.alph-checkout-modal .btn-checkout-pay:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.alph-checkout-modal .secure-note {
    color: var(--alph-muted);
    font-size: .8rem;
    text-align: center;
    margin-top: .75rem;
}

/* Asistentes */
.attendees-title {
    color: var(--alph-primary);
    font-weight: 700;
    margin-bottom: .25rem;
}

.attendees-hint {
    color: var(--alph-muted);
    font-size: .82rem;
    margin-bottom: .75rem;
}

.attendee-block {
    background: #f8fafc;
    border: 1px solid var(--alph-border);
    border-radius: 12px;
    padding: .9rem;
    margin-bottom: .85rem;
}

.attendee-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}

.attendee-title {
    color: var(--alph-text);
    font-weight: 600;
    font-size: .9rem;
}

.attendee-badge {
    font-size: .68rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.attendee-badge.required {
    background: rgba(22, 138, 137, .12);
    color: var(--alph-primary);
    border: 1px solid rgba(22, 138, 137, .35);
}

.attendee-badge.optional {
    background: rgba(100, 116, 139, .12);
    color: var(--alph-muted);
    border: 1px solid rgba(100, 116, 139, .3);
}

.attendee-label {
    display: block;
    color: var(--alph-muted);
    font-size: .78rem;
    margin-bottom: .2rem;
}

.alph-checkout-modal .attendee-input {
    background: #ffffff;
    border: 1px solid var(--alph-border);
    color: var(--alph-text);
    border-radius: 8px;
    padding: .5rem .75rem;
}

.alph-checkout-modal .attendee-input:focus {
    border-color: var(--alph-secondary);
    box-shadow: 0 0 0 3px rgba(34, 184, 182, .2);
    background: #ffffff;
    color: var(--alph-text);
}

/* Botones de las páginas de resultado (éxito / cancelación) */
.btn-alph-primary,
.btn-alph-secondary,
.btn-alph-whatsapp {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: .8rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-alph-primary {
    background: linear-gradient(135deg, var(--alph-primary) 0%, var(--alph-secondary) 100%);
    color: #ffffff;
}

.btn-alph-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 138, 137, .35);
    color: #ffffff;
}

.btn-alph-secondary {
    background: #ffffff;
    color: var(--alph-primary);
    border: 2px solid var(--alph-primary);
}

.btn-alph-secondary:hover {
    background: var(--alph-light);
    color: var(--alph-primary);
}

.btn-alph-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-alph-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
    color: #ffffff;
}

/* Fase finalizada en la tabla de fases del carnet */
.phases-table .completed-badge {
    background: rgba(100, 116, 139, .12);
    color: #64748b;
    border: 1px solid #cbd5e1;
}

/* CTA de paquetes */
.package-cta {
    background: linear-gradient(135deg, var(--alph-primary) 0%, var(--alph-secondary) 100%);
    border: none;
    font-weight: 700;
    padding: .75rem 1rem;
    border-radius: 10px;
}

.package-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 138, 137, .3);
}
