/* Global Jiu Jitsu — App pages (reservas, membresía, pagos) */

.gjj-app {
    min-height: 100vh;
    background: #0a0a0a;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.gjj-app::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(216, 86, 86, 0.08) 0%, transparent 45%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.02) 48px,
            rgba(255, 255, 255, 0.02) 49px
        );
    pointer-events: none;
    z-index: 0;
}

.gjj-app::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(216, 86, 86, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.gjj-app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gjj-app-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gjj-app-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.gjj-app-header-link {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gjj-app-header-link:hover {
    color: var(--brand-red);
}

.gjj-app-sede {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-red);
}

.gjj-app-main {
    position: relative;
    z-index: 1;
    padding: 6.5rem 1.25rem 3rem;
    min-height: 100vh;
}

.gjj-app-container {
    max-width: 560px;
    margin: 0 auto;
}

.gjj-app-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gjj-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), transparent);
    border-radius: 0 0 2px 2px;
}

.gjj-app-card-accent {
    position: absolute;
    top: 1rem;
    right: -0.5rem;
    width: 4px;
    height: 48px;
    background: var(--brand-red);
    transform: skewX(-12deg);
}

.gjj-section-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--brand-red);
}

.gjj-app-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 0.5rem;
    color: #fff;
}

.gjj-app-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.gjj-app-title-sm {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.gjj-price {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--brand-red);
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    line-height: 1;
}

.gjj-price-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.gjj-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.gjj-info-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.gjj-info-item dt {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.gjj-info-item dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.gjj-form {
    margin-top: 0.5rem;
}

.gjj-form-grid {
    display: grid;
    gap: 1rem;
}

.gjj-form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
    .gjj-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.gjj-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

.gjj-field input,
.gjj-field select,
.gjj-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
}

.gjj-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.gjj-field input:focus,
.gjj-field select:focus,
.gjj-field textarea:focus {
    outline: none;
    border-color: rgba(216, 86, 86, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.gjj-field select option {
    color: #000;
    background: #fff;
}

.gjj-field-error {
    display: block;
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: 0.35rem;
}

.gjj-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

.gjj-checkbox input {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--brand-red);
}

.gjj-checkbox label {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.gjj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transform: skewX(-10deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gjj-btn span {
    transform: skewX(10deg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gjj-btn-primary {
    background: var(--brand-red);
    color: #fff;
}

.gjj-btn-primary:hover {
    transform: skewX(-10deg) translateY(-2px);
    box-shadow: 0 12px 32px rgba(216, 86, 86, 0.35);
}

.gjj-btn-dark {
    background: #fff;
    color: #0a0a0a;
}

.gjj-btn-dark:hover {
    transform: skewX(-10deg) translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.gjj-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    transform: none;
    font-size: 0.75rem;
    padding: 0.5rem;
    margin-top: 1rem;
}

.gjj-btn-ghost span {
    transform: none;
}

.gjj-btn-ghost:hover {
    color: var(--brand-red);
    transform: none;
}

.gjj-alert {
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.gjj-alert p {
    margin: 0;
}

.gjj-alert p + p {
    margin-top: 0.35rem;
}

.gjj-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.gjj-alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.gjj-alert-error {
    background: rgba(216, 86, 86, 0.12);
    border-color: rgba(216, 86, 86, 0.3);
    color: #fca5a5;
}

.gjj-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gjj-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.gjj-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.gjj-app-back {
    display: block;
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gjj-app-back:hover {
    color: var(--brand-red);
}

.gjj-app-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1rem;
    line-height: 1.5;
}

.gjj-app-footer-note a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gjj-app-footer-note a:hover {
    color: var(--brand-red);
}

.gjj-webpay-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.gjj-webpay-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.gjj-webpay-redirect {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.gjj-webpay-redirect-box {
    max-width: 360px;
}

.gjj-webpay-redirect .gjj-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: gjj-spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.gjj-webpay-redirect p {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.gjj-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.5rem 0;
}

.gjj-highlight-name {
    color: #fff;
    font-weight: 700;
}

.gjj-payment-gateways {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gjj-gateway-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gjj-gateway-card:hover {
    border-color: rgba(216, 86, 86, 0.45);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.gjj-gateway-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 40px;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: #fff;
}

.gjj-gateway-card-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gjj-gateway-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.gjj-gateway-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gjj-gateway-card-note {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.gjj-gateway-card-arrow {
    font-size: 1.1rem;
    color: var(--brand-red);
}

.gjj-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.gjj-payment-logos img {
    height: 28px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 0.25rem 0.45rem;
}

@media (max-width: 640px) {
    .gjj-gateway-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gjj-gateway-card-logo {
        width: 100%;
        max-width: 180px;
    }

    .gjj-gateway-card-arrow {
        display: none;
    }
}
