/* =========================================================
   GA Inscripciones — Frontend styles
   ========================================================= */

#ga-inscripcion {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    color: #ced7e3;
}

/* ── BLOQUES ───────────────────────────────────────────── */
.ga-block {
    border: 1px solid rgba(245, 196, 0, .2);
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
    background: rgba(6, 14, 26, .6);
}

.ga-block-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: #F5C400;
    margin-bottom: 1.2rem;
}

/* ── GRILLAS DE CAMPOS ─────────────────────────────────── */
.ga-fg2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: .85rem;
}

.ga-fg1 {
    margin-bottom: .85rem;
}

.ga-fld {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ga-fld label {
    font-size: 1.14rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #F5C400;
}

.ga-fld input,
.ga-fld select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(245, 196, 0, .22);
    color: #F0EDE6;
    padding: 13px 14px;
    font-family: inherit;
    font-size: max(1.18rem, 18px);
    line-height: 1.25;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}

.ga-fld input::placeholder {
    font-size: inherit;
}

.ga-fld input:focus,
.ga-fld select:focus {
    border-color: #F5C400;
}

.ga-dormis-msg {
    margin-top: .55rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(245, 196, 0, .28);
    background: rgba(245, 196, 0, .07);
    color: #f8d36a;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: .6px;
}

.ga-email-check-msg {
    margin-top: .55rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(106, 125, 150, .28);
    background: rgba(6, 14, 26, .45);
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: .6px;
}

.ga-email-check-msg.ga-email-error {
    border-color: rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .08);
    color: #f87171;
}

.ga-email-check-msg.ga-email-ok {
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .08);
    color: #22c55e;
}

.ga-email-check-msg.ga-email-info {
    border-color: rgba(245, 196, 0, .28);
    background: rgba(245, 196, 0, .07);
    color: #f8d36a;
}

.ga-fld select option {
    background: #060E1A;
    color: #F0EDE6;
}

/* ── BOTONES ───────────────────────────────────────────── */
.ga-btn-primary {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.14rem;
    letter-spacing: 3px;
    padding: 15px 34px;
    background: #F5C400;
    color: #060E1A;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.ga-btn-primary:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-2px);
}

.ga-btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

#ga-btn-paso3.ga-btn-primary:not(:disabled) {
    background: #16a34a;
    color: #ffffff;
}

#ga-btn-paso3.ga-btn-primary:hover:not(:disabled) {
    background: #15803d;
    opacity: 1;
}

#ga-btn-paso3.ga-btn-primary:disabled {
    background: #334155;
    color: #94a3b8;
    opacity: 1;
}

.ga-btn-secondary {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.12rem;
    letter-spacing: 2px;
    padding: 13px 26px;
    background: transparent;
    color: #F5C400;
    border: 1px solid rgba(245, 196, 0, .4);
    cursor: pointer;
    transition: background .2s;
}

.ga-btn-secondary:hover:not(:disabled) {
    background: rgba(245, 196, 0, .1);
}

.ga-btn-secondary:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ga-btn-back,
.ga-btn-add-player {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.14rem;
    letter-spacing: 2px;
    padding: 14px 26px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}

.ga-btn-back {
    background: rgba(15, 23, 42, .72);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .42);
}

.ga-btn-back:hover {
    background: rgba(30, 41, 59, .9);
    border-color: rgba(203, 213, 225, .7);
    transform: translateY(-1px);
}

.ga-btn-add-player {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, .18), 0 10px 22px rgba(37, 99, 235, .22);
    opacity: 1;
}

.ga-btn-add-player:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, .36), 0 12px 26px rgba(37, 99, 235, .3);
    transform: translateY(-1px);
}

.ga-btn-add-player:disabled {
    background: #334155;
    border-color: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.ga-step-footer,
.ga-form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.ga-player-actions,
.ga-continue-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    margin-bottom: 1rem;
}

.ga-continue-row {
    margin-top: .9rem;
    margin-bottom: 0;
}

/* ── TARJETAS DE JUGADOR ───────────────────────────────── */
#ga-jugadores-body {
    margin-bottom: .85rem;
}

.ga-players-empty {
    text-align: center;
    padding: 1.2rem 1.4rem;
    color: #cbd5e1;
    background: rgba(148, 163, 184, .08);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(245, 196, 0, .12);
    margin-bottom: .85rem;
}

.ga-players-empty strong {
    color: #F5C400;
}

.ga-player-card {
    border: 1px solid rgba(245, 196, 0, .18);
    background: rgba(6, 14, 26, .45);
    margin-bottom: .7rem;
    padding: .75rem 1rem 1rem;
}

.ga-player-card-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
    flex-wrap: wrap;
}

.ga-player-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: rgba(245, 196, 0, .65);
    flex-shrink: 0;
}

.ga-player-category {
    flex: 1;
}

.ga-player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem .85rem;
}

.ga-pc-label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .92rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(245, 196, 0, .7);
}

.ga-pc-label input {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(245, 196, 0, .18);
    color: #F0EDE6;
    padding: 10px 11px;
    font-family: inherit;
    font-size: max(1rem, 16px);
    line-height: 1.25;
    width: 100%;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.ga-pc-label input::placeholder {
    font-size: inherit;
    color: rgba(240, 237, 230, .35);
}

.ga-pc-label input:focus {
    border-color: #F5C400;
}

.ga-birth-selects {
    display: grid;
    grid-template-columns: 58px 1fr 68px;
    gap: .3rem;
    width: 100%;
    margin-top: .15rem;
}

.ga-player-card .ga-birth-selects select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(245, 196, 0, .18);
    color: #F0EDE6;
    padding: 10px 4px;
    font-family: inherit;
    font-size: max(.95rem, 15px);
    line-height: 1.25;
    width: 100%;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.ga-player-card .ga-birth-selects select:focus {
    border-color: #F5C400;
}

.ga-player-card .ga-birth-selects option {
    background: #060E1A;
    color: #F0EDE6;
}

/* ── CATEGORÍA Y ERRORES POR JUGADOR ───────────────────── */
.ga-player-cat-area {
    margin-top: .6rem;
    min-height: 1.5rem;
}

.ga-player-errors {
    margin-top: .35rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.ga-player-error-item {
    font-size: .92rem;
    color: #f87171;
    letter-spacing: .4px;
    line-height: 1.4;
}

.ga-player-error-item::before {
    content: '▸ ';
    color: #ef4444;
}

.ga-btn-del {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #ef4444;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background .2s;
    flex-shrink: 0;
}

.ga-btn-del:hover {
    background: rgba(239, 68, 68, .3);
}

/* ── BADGES DE CATEGORÍA ───────────────────────────────── */
.ga-badge {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.ga-badge-ok {
    background: rgba(34, 197, 94, .15);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.ga-badge-cupo {
    background: rgba(245, 158, 11, .15);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.ga-badge-invalido {
    background: rgba(239, 68, 68, .15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* ── CUPO COUNTER ──────────────────────────────────────── */
#ga-cupo-counter {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a7d96;
    margin-bottom: .6rem;
}

.ga-players-rules {
    margin: 1rem 0 .75rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(245, 196, 0, .25);
    background: rgba(245, 196, 0, .06);
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.55;
    letter-spacing: .7px;
}

.ga-players-rules strong {
    color: #F5C400;
}

#ga-players-note {
    display: block;
    padding: .7rem .9rem;
    border: 1px solid rgba(106, 125, 150, .28);
    background: rgba(6, 14, 26, .45);
    font-size: 1.05rem;
    color: #6a7d96;
    letter-spacing: 1px;
    line-height: 1.45;
}

#ga-players-note.ga-note-warn {
    border-color: rgba(245, 196, 0, .35);
    background: rgba(245, 196, 0, .07);
    color: #f8d36a;
}

#ga-players-note.ga-note-ok {
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .08);
    color: #22c55e;
}

/* ── RESUMEN PASO 3 ────────────────────────────────────── */
.ga-resumen-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4rem;
}

.ga-resumen-table th,
.ga-resumen-table td {
    padding: .55rem .8rem;
    border-bottom: 1px solid rgba(245, 196, 0, .1);
    font-size: 1.08rem;
    text-align: left;
}

.ga-resumen-table th {
    color: #F5C400;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 140px;
}

.ga-resumen-table td {
    color: #F0EDE6;
}

.ga-resumen-jugadores {
    padding-left: 1.3rem;
    margin: 0 0 1.6rem;
}

.ga-resumen-jugadores li {
    padding: .35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    font-size: 1rem;
    color: #ced7e3;
}

.ga-cat-inline {
    font-size: .9rem;
    color: #6a7d96;
}

/* ── TOTAL ─────────────────────────────────────────────── */
.ga-total-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(245, 196, 0, .3);
    background: rgba(245, 196, 0, .05);
    margin-bottom: 1.6rem;
}

.ga-total-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: #F5C400;
    text-transform: uppercase;
}

.ga-total-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: #F0EDE6;
    line-height: 1;
}

.ga-total-note {
    font-size: 1.06rem;
    color: #6a7d96;
    letter-spacing: 1px;
    flex-basis: 100%;
}

.ga-total-free .ga-total-label {
    color: #6a7d96;
}

/* ── CHECKBOXES LEGALES ────────────────────────────────── */
.ga-legales {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1.4rem;
}

.ga-legales label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: 1.08rem;
    color: #ced7e3;
    cursor: pointer;
    line-height: 1.4;
}

.ga-legales input[type="checkbox"] {
    margin-top: .15rem;
    flex-shrink: 0;
    accent-color: #F5C400;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ga-legales a {
    color: #F5C400;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.ga-legales a:hover,
.ga-legales a:focus {
    color: #ffe27a;
}

/* ── ÉXITO ─────────────────────────────────────────────── */
.ga-success-box {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .06);
}

.ga-success-ico {
    font-size: 2.8rem;
    color: #22c55e;
    margin-bottom: .6rem;
}

.ga-success-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 3px;
    color: #22c55e;
    margin-bottom: .4rem;
}

.ga-success-sub {
    color: #6a7d96;
    font-size: 1.15rem;
    line-height: 1.45;
}

.ga-reserva-status {
    margin: 1.5rem auto 0;
    max-width: 620px;
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(245, 196, 0, .55);
    background: linear-gradient(180deg, rgba(245, 196, 0, .14), rgba(6, 14, 26, .55));
    text-align: center;
}

.ga-reserva-label {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f8d36a;
    margin-bottom: .3rem;
}

.ga-reserva-plazo {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.4rem;
    line-height: 1;
    color: #F5C400;
    letter-spacing: 2px;
}

.ga-reserva-sub {
    display: block;
    font-size: 1.18rem;
    color: #F0EDE6;
    letter-spacing: .5px;
    margin-top: .3rem;
}

.ga-reserva-warn {
    margin: 1rem 0 0;
    font-size: 1.12rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.ga-transfer-box {
    margin: 1rem auto 0;
    max-width: 620px;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(245, 196, 0, .28);
    background: rgba(6, 14, 26, .55);
    color: #ced7e3;
    font-size: 1.15rem;
    text-align: left;
    line-height: 1.6;
}

.ga-transfer-box strong {
    color: #F5C400;
}

.ga-transfer-box hr {
    border: 0;
    border-top: 1px solid rgba(245, 196, 0, .18);
    margin: .8rem 0;
}

.ga-transfer-box p {
    margin: .75rem 0 0;
    font-size: 1.14rem;
    line-height: 1.65;
}

.ga-payment-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ga-payment-links > strong {
    color: #F5C400;
    font-size: 1.08rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ga-payment-link-row {
    display: flex;
    justify-content: space-between;
    gap: .85rem;
    align-items: center;
    padding: .65rem .75rem;
    border: 1px solid rgba(0, 158, 227, .25);
    background: rgba(0, 158, 227, .08);
}

.ga-payment-link-row a {
    color: #38bdf8;
    font-weight: 700;
    white-space: nowrap;
}

.ga-payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
    font-size: 1.05rem;
}

.ga-payment-table th,
.ga-payment-table td {
    padding: .65rem .7rem;
    border-bottom: 1px solid rgba(245, 196, 0, .12);
    text-align: left;
    color: #ced7e3;
    line-height: 1.35;
}

.ga-payment-table th {
    color: #F5C400;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .98rem;
}

/* ── ERROR ─────────────────────────────────────────────── */
#ga-error {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .06);
    color: #f87171;
    font-size: 1.08rem;
    margin-top: 1rem;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
    .ga-block {
        padding: 1.2rem 1rem;
    }

    #ga-inscripcion {
        font-size: 18px;
    }

    .ga-fg2 {
        grid-template-columns: 1fr;
    }

    .ga-player-grid {
        grid-template-columns: 1fr;
    }

    .ga-birth-selects {
        grid-template-columns: 1fr 1.5fr 1fr;
    }

    .ga-step-footer,
    .ga-form-footer,
    .ga-player-actions,
    .ga-continue-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ga-btn-primary,
    .ga-btn-secondary,
    .ga-btn-back,
    .ga-btn-add-player {
        width: 100%;
        text-align: center;
    }

    .ga-total-wrap {
        flex-direction: column;
        gap: .4rem;
    }

    .ga-reserva-plazo {
        font-size: 2.5rem;
    }

    .ga-payment-table {
        display: block;
        overflow-x: auto;
        font-size: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .ga-payment-table th,
    .ga-payment-table td {
        padding: .55rem .5rem;
        white-space: nowrap;
    }
}

/* ── OVERLAY MERCADO PAGO ───────────────────────────────── */
#ga-mp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(6, 14, 26, .92);
}

.ga-mp-overlay-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2.4rem 3rem;
    border: 1px solid rgba(245, 196, 0, .25);
    background: rgba(6, 14, 26, .98);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 360px;
    width: 90%;
}

@keyframes ga-spin {
    to { transform: rotate(360deg); }
}

.ga-mp-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(245, 196, 0, .2);
    border-top-color: #F5C400;
    border-radius: 50%;
    animation: ga-spin .85s linear infinite;
}

.ga-mp-msg {
    font-size: 1.05rem;
    color: #ced7e3;
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0;
}

.ga-mp-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: #F5C400;
    margin: 0;
}
