/* ══════════════════════════════════════════════════
   Universal Studios Japan – Archive
   ══════════════════════════════════════════════════ */

:root {
    --usj-primary:  #00C2E8;
    --usj-primary-h: #47D7F3;
    --usj-dark:     #111827;
    --usj-muted:    #6b7280;
    --usj-border:   #e5e7eb;
    --usj-bg:       #f9fafb;
    --usj-white:    #ffffff;
    --usj-radius:   20px;
    --usj-red:      #FF4F5E;
    --usj-red-bg:   #fff5f5;
    --usj-red-muted:#c0392b;
}

/* ══════════════════════════════════════════════════
   Wrapper
   ══════════════════════════════════════════════════ */
.usj-wrap {
    background: var(--usj-bg);
    min-height: 70vh;
    margin-top: 160px;
    padding-bottom: 80px;
}

/* ══════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════ */
.usj-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 320px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../img/banner_categoria.jpg');
    text-align: center;
    padding: 0 24px;
}

.usj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.usj-hero-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    margin: 0;
}

.usj-hero-desc {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    margin: 10px 0 0;
    max-width: 600px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   Inner container
   ══════════════════════════════════════════════════ */
.usj-content-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ══════════════════════════════════════════════════
   Tabs de subcategorías
   ══════════════════════════════════════════════════ */
/* ── Tabs: stepper style ── */
.usj-tabs-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 32px 0 24px;
    border-bottom: 2px solid var(--usj-border);
    margin-bottom: 28px;
}

.usj-tab-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 180px;
    background: none;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

/* Línea conectora entre pasos */
.usj-tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--usj-border);
    width: 100%;
}

.usj-tab-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--usj-border);
    background: var(--usj-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    position: relative;
    z-index: 1;
    color: var(--usj-muted);
}

.usj-tab-btn.usj-tab-active .usj-tab-circle {
    color: #fff;
}

.usj-tab-btn:not(.usj-tab-active):hover .usj-tab-circle {
    color: var(--usj-primary);
}

.usj-tab-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--usj-muted);
    text-align: center;
    line-height: 1.3;
    transition: color 0.18s;
    white-space: nowrap;
}

/* Activo */
.usj-tab-btn.usj-tab-active .usj-tab-circle {
    background: var(--usj-primary);
    border-color: var(--usj-primary);
}

.usj-tab-btn.usj-tab-active .usj-tab-label {
    color: var(--usj-primary);
}

/* Hover en inactivos */
.usj-tab-btn:not(.usj-tab-active):hover .usj-tab-circle {
    border-color: var(--usj-primary);
}

.usj-tab-btn:not(.usj-tab-active):hover .usj-tab-label {
    color: var(--usj-dark);
    text-decoration: underline;
}

.usj-modal-tab:hover, .usj-card-btn-details:hover, .usj-qty-btn:hover {
    border-color: var(--usj-primary);
    background-color: var(--usj-primary);
    color: #fff !important;
}

button:focus {
    outline: none;
}

/* ══════════════════════════════════════════════════
   Notice / Aviso
   ══════════════════════════════════════════════════ */
.usj-notice {
    background: var(--usj-red-bg);
    border: 2px solid var(--usj-red);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.usj-notice-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--usj-dark);
    margin: 0 0 10px;
}

.usj-notice-main {
    color: var(--usj-red);
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
}

.usj-notice p,
.usj-notice ul {
    font-size: 13px;
    color: var(--usj-dark);
    margin: 4px 0;
    line-height: 1.6;
}

.usj-notice ul {
    padding-left: 18px;
}

.usj-notice li {
    color: black;
    margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════
   Grid de productos
   ══════════════════════════════════════════════════ */
.usj-section {
    /* visible/hidden manejado por JS via style="display:none" */
}

.usj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ══════════════════════════════════════════════════
   Cards
   ══════════════════════════════════════════════════ */
.usj-card {
    display: flex;
    flex-direction: column;
    background: var(--usj-white);
    border-radius: var(--usj-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.22s, transform 0.22s;
}

.usj-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.usj-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--usj-border);
    flex-shrink: 0;
}

.usj-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.usj-card:hover .usj-card-img-wrap img {
    transform: scale(1.04);
}

.usj-card-no-img {
    width: 100%;
    height: 100%;
    background: var(--usj-border);
}

.usj-card-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--usj-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    z-index: 2;
}

.usj-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.usj-card-subcat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--usj-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.usj-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--usj-dark);
    margin: 0;
    line-height: 1.35;
}

.usj-card-desc {
    font-size: 13px;
    color: var(--usj-muted);
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

.usj-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--usj-primary);
    margin: 4px 0 0;
}

.usj-card-price .woocommerce-Price-amount {
    color: inherit;
}

.usj-card-from {
    color: var(--usj-primary);
    font-weight: 600;
}

.usj-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.usj-card-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    flex: 1;
    text-align: center;
}

.usj-card-btn-details {
    background: transparent;
    border: 2px solid var(--usj-border);
    color: var(--usj-dark);
}

.usj-card-btn-details:hover {
    border-color: var(--usj-primary);
    color: var(--usj-white);
}

.usj-card-btn-select {
    background: var(--usj-primary);
    color: #fff;
}

.usj-card-btn-select:hover {
    background: var(--usj-primary-h);
}

/* ══════════════════════════════════════════════════
   Modal – overlay
   ══════════════════════════════════════════════════ */
.usj-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.usj-modal.usj-modal-open {
    display: flex;
}

.usj-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

/* ══════════════════════════════════════════════════
   Modal – caja
   ══════════════════════════════════════════════════ */
.usj-modal-box {
    position: relative;
    background: var(--usj-white);
    border-radius: 18px;
    max-width: 620px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.usj-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--usj-dark);
    transition: background 0.15s;
    padding: 0;
}

.usj-modal-close:hover {
    background: var(--usj-primary);
    color: var(--usj-white);
}

/* ── Imagen ── */
.usj-modal-img-wrap {
    flex-shrink: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: var(--usj-border);
}

.usj-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Cuerpo scrollable ── */
.usj-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 24px;
    scroll-behavior: smooth;
}

.usj-modal-subcat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--usj-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
}

.usj-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--usj-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

/* ── Precio (modo detalles) ── */
.usj-modal-details-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 6px 0 0;
}

.usj-modal-details-from {
    font-size: 13px;
    color: var(--usj-muted);
}

.usj-modal-details-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--usj-primary);
}

/* ── Descripciones (modo detalles) ── */
.usj-modal-desc {
    font-size: 15px;
    font-weight: 600;
    color: var(--usj-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.usj-modal-desc p { margin: 0 0 6px; }

.usj-modal-full-desc {
    font-size: 14px;
    color: var(--usj-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.usj-modal-full-desc p  { margin: 0 0 10px; }
.usj-modal-full-desc ul,
.usj-modal-full-desc ol { margin: 0 0 10px; padding-left: 18px; }
.usj-modal-full-desc li { margin-bottom: 4px; }
.usj-modal-full-desc h2,
.usj-modal-full-desc h3,
.usj-modal-full-desc h4 { font-size: 15px; font-weight: 700; color: var(--usj-dark); margin: 12px 0 6px; }

/* ── Footer modo detalles (botón Seleccionar) ── */
.usj-modal-details-footer {
    padding-top: 20px;
    border-top: 1px solid var(--usj-border);
    margin-top: 8px;
}

.usj-modal-divider {
    height: 1px;
    background: var(--usj-border);
    margin: 20px 0;
}

/* ── Secciones del modal ── */
.usj-modal-section {
    margin-bottom: 20px;
}

.usj-modal-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--usj-dark);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Tabs dentro del modal ── */
.usj-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usj-modal-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 100px;
    border: 2px solid var(--usj-border);
    background: var(--usj-white);
    color: var(--usj-dark);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.usj-modal-tab:hover {
    border-color: var(--usj-primary);
    color: var(--usj-primary);
}

.usj-modal-tab.usj-modal-tab-active {
    background: var(--usj-primary);
    border-color: var(--usj-primary);
    color: #fff;
}

/* ── Filas de pasajeros ── */
.usj-pass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--usj-border);
}

.usj-pass-row:last-child {
    border-bottom: none;
}

.usj-pass-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usj-pass-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--usj-dark);
}

.usj-pass-price {
    font-size: 13px;
    color: var(--usj-primary);
    font-weight: 500;
}

/* ── Controles de cantidad ── */
.usj-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usj-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--usj-border);
    background: var(--usj-white);
    color: var(--usj-dark);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    padding: 0;
}

.usj-qty-btn:hover {
    border-color: var(--usj-primary);
    background: var(--usj-primary);
    color: #fff;
}

.usj-qty-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--usj-dark);
    min-width: 24px;
    text-align: center;
}

/* ── Selector de fecha ── */
.usj-modal-date-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--usj-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--usj-dark);
    background: var(--usj-white);
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.usj-modal-date-input:focus {
    border-color: var(--usj-primary);
}

/* ── Aviso Express Pass ── */
.usj-modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.usj-modal-warning svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.usj-modal-warning p {
    font-size: 13px;
    color: var(--usj-dark);
    margin: 0;
    line-height: 1.55;
}

.usj-warning-link {
    color: var(--usj-primary);
    font-weight: 600;
    margin-left: 4px;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Footer del modal ── */
.usj-modal-footer {
    padding-top: 16px;
    border-top: 1px solid var(--usj-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usj-modal-total-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usj-modal-total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--usj-muted);
}

.usj-modal-total-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--usj-dark);
}

.usj-modal-buy-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 100px;
    border: none;
    background: var(--usj-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s;
    width: 100%;
}

.usj-modal-buy-btn:hover:not(:disabled) {
    background: var(--usj-primary-h);
}

.usj-modal-buy-btn:disabled {
    background: var(--usj-border);
    color: var(--usj-muted);
    cursor: not-allowed;
}

.usj-modal-hint {
    font-size: 12px;
    color: var(--usj-muted);
    text-align: center;
    margin: 0;
}


.usj-tab-btn:hover, .usj-tab-btn:focus, .usj-tab-btn:focus{
    background-color: transparent !important;
}

/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .usj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .usj-wrap {
        margin-top: 100px;
    }
    .usj-content-inner {
        padding: 0 24px;
    }
}

@media (max-width: 640px) {
    .usj-hero-title {
        font-size: 32px;
    }
    .usj-content-inner {
        padding: 0 16px;
    }
    .usj-grid {
        grid-template-columns: 1fr;
    }
    .usj-tabs-nav {
        padding: 24px 0 18px;
    }
    .usj-tab-btn {
        max-width: none;
    }
    .usj-tab-circle {
        width: 44px;
        height: 44px;
    }
    .usj-tab-btn:not(:last-child)::after {
        top: 22px;
        left: calc(50% + 22px);
        right: calc(-50% + 22px);
    }
    .usj-tab-label {
        font-size: 11px;
    }
    .usj-modal-box {
        width: 96%;
        max-height: 95vh;
        border-radius: 14px;
    }
    .usj-modal-body {
        padding: 16px;
    }
    .usj-modal-title {
        font-size: 18px;
    }
    .usj-card-actions {
        flex-direction: column;
    }
}

@media(max-width:400px){
    .usj-tab-btn:not(:last-child)::after{
        display: none;
    }
    .usj-tabs-nav{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}
