/* ===================================================================
   Gimnasio App — Club Pages (shared styles)
   White opaque cards on blue gradient background
   =================================================================== */

.club-page {
    padding: 16px 16px 100px;
}

/* =====================================================================
   FEED SYSTEM — Unified cards for Noticias, Comunicados, Eventos
   ===================================================================== */

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Feed Card --- */
.feed-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.feed-card:active {
    transform: scale(0.98);
}

/* Hero image */
.feed-card-hero {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.feed-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.feed-card-content {
    padding: 12px 14px 14px;
}

.feed-card-compact .feed-card-content {
    padding: 14px;
}

/* Badge */
.feed-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    color: #4682B4;
    background: #e8f0f8;
}

.feed-card-badge.comunicado {
    color: #7c3aed;
    background: #f0e8ff;
}

.feed-card-badge.evento {
    color: #d97706;
    background: #fef3e0;
}

/* Title */
.feed-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt */
.feed-card-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.feed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.feed-card-date {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-card-action {
    font-size: 11px;
    font-weight: 600;
    color: #4682B4;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* =====================================================================
   EVENTO CARD — Date block left + content right
   ===================================================================== */

.evento-card {
    display: flex;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.evento-card:active {
    transform: scale(0.98);
}

.evento-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 16px 0;
    background: #4682B4;
    flex-shrink: 0;
}

.evento-date-day {
    font-size: 30px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.evento-date-month {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    margin-top: 2px;
}

.evento-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.evento-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-card-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
}

.evento-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* =====================================================================
   FEED DETAIL — Noticias, Comunicados, Eventos detail view
   ===================================================================== */

.feed-detail-hero {
    margin: -16px -16px 16px;
    max-height: 220px;
    overflow: hidden;
}

.feed-detail-hero img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feed-detail-card {
    background: white;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.feed-detail-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a2332;
    margin: 6px 0 10px;
    line-height: 1.3;
}

.feed-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.feed-detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-detail-body {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

.feed-detail-body p {
    margin: 0 0 12px;
}

.feed-detail-body p:last-child {
    margin-bottom: 0;
}

/* HTML body (comunicados email) */
.feed-detail-html {
    overflow-x: hidden;
    word-break: break-word;
}

.feed-detail-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.feed-detail-html a {
    color: #4682B4;
    text-decoration: underline;
}

.feed-detail-html table {
    width: 100% !important;
    max-width: 100% !important;
}

.feed-detail-html td,
.feed-detail-html th {
    max-width: 100% !important;
    word-break: break-word;
}

.feed-no-content {
    color: #9ca3af;
    font-style: italic;
}

/* =====================================================================
   INFO CARDS — Cuotas, MisDatos, Golf Status, Reservas
   ===================================================================== */

.club-info-card {
    background: white;
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.club-info-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 12px;
}

.club-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.club-info-row:last-child {
    border-bottom: none;
}

.club-info-label {
    font-size: 13px;
    color: #6b7280;
}

.club-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
}

/* --- Big Number (Cuotas) --- */
.club-big-number {
    text-align: center;
    padding: 24px 0;
}

.club-big-number .amount {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.club-big-number .amount.deuda { color: #ef4444; }
.club-big-number .amount.ok { color: #10b981; }

.club-big-number .label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* =====================================================================
   Golf Course Status — Clean Minimal Design
   Light cards, clean typography, subtle accents
   Prefix: gc- (golf course)
   ===================================================================== */

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes gc-ring-draw {
    from { stroke-dashoffset: 263.89; }
}

@keyframes gc-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD BASE ───────────────────────────────────────────────────────── */
.gc-card {
    background: white;
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: gc-fade-in 0.35s ease both;
}

.gc-card:active {
    transform: scale(0.98);
}

/* ── HOYOS CARD — ring left + info right ─────────────────────────────── */
.gc-hoyos-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hoyos card — fondo steelblue */
.gc-card.gc-hoyos-card {
    background: #4682B4;
    box-shadow: 0 4px 20px rgba(70, 130, 180, 0.45);
}

.gc-hoyos-card .gc-ring-bg {
    stroke: rgba(255, 255, 255, 0.18);
}

.gc-hoyos-card .gc-ring-open {
    stroke: rgba(255, 255, 255, 0.95);
}

.gc-hoyos-card .gc-ring-partial {
    stroke: #fbbf24;
}

.gc-hoyos-card .gc-ring-num {
    color: white;
}

.gc-hoyos-card .gc-ring-den {
    color: rgba(255, 255, 255, 0.65);
}

.gc-hoyos-card .gc-hoyos-title {
    color: white;
}

.gc-hoyos-card .gc-badge-ok {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gc-hoyos-card .gc-badge-warn {
    background: rgba(251, 191, 36, 0.28);
    color: white;
}

/* Ring */
.gc-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.gc-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gc-ring-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 6;
}

.gc-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    animation: gc-ring-draw 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.gc-ring-open  { stroke: #10b981; }
.gc-ring-partial { stroke: #f59e0b; }

/* Text centered inside ring */
.gc-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gc-ring-num {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
}

.gc-ring-den {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

/* Info to the right of the ring */
.gc-hoyos-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-hoyos-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.2;
}

/* Status badge */
.gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    width: fit-content;
}

.gc-badge i { font-size: 13px; }

.gc-badge-ok {
    color: #059669;
    background: #ecfdf5;
}

.gc-badge-warn {
    color: #d97706;
    background: #fffbeb;
}

/* ── SECTION TITLE ───────────────────────────────────────────────────── */
.gc-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 14px;
}

.gc-section-title i {
    font-size: 15px;
    color: #4682B4;
}

/* ── SPEED ROWS ──────────────────────────────────────────────────────── */
.gc-speeds {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.gc-speed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gc-speed:last-child {
    border-bottom: none;
}

.gc-speed-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gc-dot-fast { background: #10b981; }
.gc-dot-med  { background: #f59e0b; }
.gc-dot-slow { background: #ef4444; }

.gc-speed-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.gc-speed-val {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* ── STIMPMETER SCALE ────────────────────────────────────────────────── */
.gc-scale {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.gc-scale-header {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.gc-scale-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-scale-end {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.gc-end-slow { color: #ef4444; }
.gc-end-fast { color: #10b981; }

.gc-scale-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444, #fb923c, #fbbf24, #a3e635, #10b981);
}

.gc-scale-nums {
    display: flex;
    justify-content: space-between;
    padding: 5px 32px 0;
    font-size: 9px;
    font-weight: 500;
    color: #cbd5e1;
}

/* ── NOTE ────────────────────────────────────────────────────────────── */
.gc-note {
    background: white;
    border-left: 3px solid #4682B4;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: gc-fade-in 0.35s ease both;
    animation-delay: 0.1s;
}

.gc-note-icon {
    font-size: 18px;
    color: #4682B4;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-note-body {
    flex: 1;
    min-width: 0;
}

.gc-note-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4682B4;
    margin-bottom: 3px;
}

.gc-note-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.gc-footer {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    padding: 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gc-footer i {
    font-size: 12px;
}

/* --- Reserva Card --- */
.reserva-club-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.reserva-club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reserva-club-fecha {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
}

.reserva-club-estado {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.reserva-club-estado.confirmada { background: #dcfce7; color: #16a34a; }
.reserva-club-estado.pendiente { background: #fef9c3; color: #ca8a04; }
.reserva-club-estado.cancelada { background: #fee2e2; color: #dc2626; }

.reserva-club-detalles {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
}

.reserva-club-detalles span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reserva-club-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.btn-cancelar-reserva {
    background: none;
    border: 1px solid #fca5a5;
    color: #ef4444;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancelar-reserva:active { background: #fef2f2; }

.btn-confirmar-reserva {
    background: none;
    border: 1px solid #86efac;
    color: #16a34a;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.btn-confirmar-reserva:active { background: #f0fdf4; }

.reserva-club-pending-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #eab308;
}

.reserva-club-countdown {
    margin-left: auto;
    background: rgba(234, 179, 8, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* --- Empty / No-Socio --- */
.club-no-socio {
    text-align: center;
    padding: 60px 20px;
}

.club-no-socio i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
    display: block;
}

.club-no-socio p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* MIS DATOS — styles moved to inline <style> in MisDatos.razor (glassmorphism) */

/* =====================================================================
   RESERVA WIZARD — Mobile reservation flow (glassmorphism)
   Prefix: rw- (reserva wizard)
   ===================================================================== */

/* --- New Reservation Button --- */
.rw-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #4682B4;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
    margin-bottom: 16px;
}

.rw-new-btn:active {
    transform: scale(0.98);
    background: #f0f7ff;
}

.rw-new-btn i {
    font-size: 18px;
}

/* --- Tabs (Próximas / Historial) --- */
.rw-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rw-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.rw-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- Stepper --- */
.rw-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 8px;
    margin-bottom: 20px;
}

.rw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rw-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s;
}

.rw-step-circle.active {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.rw-step-circle.done {
    border-color: #6ee7b7;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.15);
}

.rw-step-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rw-step-label.active {
    color: white;
}

.rw-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
    margin-bottom: 18px;
}

.rw-step-line.done {
    background: #6ee7b7;
}

/* --- Glass Card --- */
.rw-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 14px;
    color: white;
}

.rw-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rw-section-label i {
    font-size: 14px;
}

/* --- Party Selector (Personas) --- */
.rw-party-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rw-party-pill {
    width: 44px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rw-party-pill.active {
    background: white;
    color: #4682B4;
    border-color: white;
    font-weight: 700;
}

.rw-party-custom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-party-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.rw-party-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.rw-party-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
}

.rw-party-count {
    font-size: 22px;
    font-weight: 700;
    color: white;
    min-width: 30px;
    text-align: center;
}

/* --- Date Scroll --- */
.rw-dates-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.rw-dates-scroll::-webkit-scrollbar { display: none; }

.rw-date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 8px 6px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.rw-date-chip:active {
    transform: scale(0.95);
}

.rw-date-chip.selected {
    background: white;
    border-color: white;
}

.rw-date-chip.today:not(.selected) {
    border-color: rgba(255, 255, 255, 0.4);
}

.rw-date-dow {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.rw-date-chip.selected .rw-date-dow { color: #6b7280; }

.rw-date-num {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.rw-date-chip.selected .rw-date-num { color: #4682B4; }

.rw-date-month {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.rw-date-chip.selected .rw-date-month { color: #9ca3af; }

.rw-date-today-badge {
    font-size: 8px;
    font-weight: 700;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rw-date-chip.selected .rw-date-today-badge { color: #10b981; }

/* --- Turno Group --- */
.rw-turno {
    margin-bottom: 14px;
}

.rw-turno-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rw-turno-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.rw-turno-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* --- Horario Slots --- */
.rw-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rw-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.rw-slot-time {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.rw-slot-avail {
    font-size: 10px;
    font-weight: 500;
}

.rw-slot-avail.ok { color: #6ee7b7; }
.rw-slot-avail.low { color: #fcd34d; }
.rw-slot-avail.full { color: #fca5a5; }

.rw-slot.available {
    border-color: rgba(110, 231, 183, 0.3);
}

.rw-slot.almost {
    border-color: rgba(252, 211, 77, 0.3);
}

.rw-slot.full {
    opacity: 0.35;
    cursor: default;
}

.rw-slot.selected {
    background: white;
    border-color: white;
}

.rw-slot.selected .rw-slot-time { color: #4682B4; }
.rw-slot.selected .rw-slot-avail { color: #6b7280; }

/* --- Summary Bar --- */
.rw-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.rw-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rw-summary-badge i { font-size: 13px; }

/* --- Auto Assign Button --- */
.rw-auto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(110, 231, 183, 0.15);
    border: 1.5px dashed rgba(110, 231, 183, 0.4);
    border-radius: 14px;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 14px;
}

.rw-auto-btn:active {
    background: rgba(110, 231, 183, 0.25);
}

/* --- Zone Tabs --- */
.rw-zone-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.rw-zone-tabs::-webkit-scrollbar { display: none; }

.rw-zone-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.rw-zone-tab.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.rw-zone-tab:disabled {
    opacity: 0.3;
    cursor: default;
}

.rw-zone-count {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.rw-zone-tab.active .rw-zone-count { color: rgba(255, 255, 255, 0.8); }

/* --- Mesa Grid --- */
.rw-mesa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.rw-mesa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.rw-mesa-card:active:not(:disabled) {
    transform: scale(0.97);
}

.rw-mesa-number {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.rw-mesa-cap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.rw-mesa-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mesa states */
.rw-mesa-card.disponible { border-color: rgba(110, 231, 183, 0.3); }
.rw-mesa-card.disponible .rw-mesa-status { color: #6ee7b7; background: rgba(110, 231, 183, 0.15); }

.rw-mesa-card.ocupada { opacity: 0.45; cursor: default; }
.rw-mesa-card.ocupada .rw-mesa-status { color: #fca5a5; background: rgba(252, 165, 165, 0.15); }

.rw-mesa-card.inactiva { opacity: 0.3; cursor: default; }
.rw-mesa-card.inactiva .rw-mesa-status { color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }

.rw-mesa-card.selected {
    background: white;
    border-color: white;
}

.rw-mesa-card.selected .rw-mesa-number { color: #4682B4; }
.rw-mesa-card.selected .rw-mesa-cap { color: #6b7280; }
.rw-mesa-card.selected .rw-mesa-status { color: #4682B4; background: #e8f0f8; }

/* --- Selected Strip --- */
.rw-selected-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(110, 231, 183, 0.15);
    border: 1.5px solid rgba(110, 231, 183, 0.3);
    border-radius: 12px;
    margin-bottom: 14px;
}

.rw-selected-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6ee7b7;
}

.rw-selected-change {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Occasion Chips --- */
.rw-occasion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rw-occasion-chip {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rw-occasion-chip.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* --- Note Textarea --- */
.rw-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.rw-textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.rw-textarea:focus { border-color: rgba(255, 255, 255, 0.4); }

.rw-char-count {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* --- Confirm Card --- */
.rw-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rw-confirm-row:last-child { border-bottom: none; }

.rw-confirm-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.rw-confirm-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* --- Buttons --- */
.rw-btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: white;
    color: #4682B4;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.rw-btn-continue:disabled {
    opacity: 0.4;
    cursor: default;
}

.rw-btn-continue:active:not(:disabled) {
    transform: scale(0.98);
}

.rw-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rw-btn-back:active { background: rgba(255, 255, 255, 0.2); }

.rw-nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.rw-nav-buttons .rw-btn-continue {
    flex: 1;
    margin-top: 0;
}

/* --- Alert --- */
.rw-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    background: rgba(252, 165, 165, 0.15);
    border: 1px solid rgba(252, 165, 165, 0.3);
    color: #fca5a5;
}

/* --- Spinner small --- */
.rw-spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(70, 130, 180, 0.2);
    border-top-color: #4682B4;
    border-radius: 50%;
    animation: rw-spin 0.6s linear infinite;
}

@keyframes rw-spin {
    to { transform: rotate(360deg); }
}
