:root {
            --brand-wine-dark: #3b0918;
            --brand-wine-main: #691c32;
            --brand-wine-accent: #b02a50;
            --brand-wine-light: #fdf2f4;
            --brand-bg-cream: #fbf9f5;
            --brand-card-light: #f5f0eb;
            --text-dark: #0f172a;
            --text-muted: #64748b;

            /* QB Layout Palette */
            --qb-dark-overlay: rgba(16, 42, 30, 0.88);
            --qb-green-bg: #102A1E;
        }
  body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: var(--text-dark);
            background-color: #ffffff;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

          /* --- SECCIÓN QB CORP HERO LAYOUT --- */
        .qb-hero-wrapper {
            position: relative;
            width: 100%;
            min-height: calc(100vh - 110px);
            display: flex;
            background-color: #f7f7f7;
            background-image: url('../images/patron-filigrana.jpeg');
        }

        .qb-left-panel {
            position: relative;
            width: 55%;
            min-height: 100%;
            background: url('/stic/banners-planteles/planteles-fotos/alvaroobregon.webp') center center / cover no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 80px 70px 80px 80px;
            color: #ffffff;
        }

        .qb-left-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg, 
                rgba(35, 5, 14, 0.75) 0%, 
                rgba(105, 28, 50, 0.65) 50%, 
                rgba(15, 23, 42, 0.6) 100%
            );
            z-index: 1;
        }

        .qb-left-content {
            position: relative;
            z-index: 2;
            max-width: 620px;
        }

        .qb-main-heading {
            font-size: 3.2rem;
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: -1px;
            margin-bottom: 24px;
            color: #ffffff;
        }

        .qb-sub-description {
            font-size: 0.95rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.88);
            margin-bottom: 40px;
            max-width: 540px;
        }

        .qb-contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px 40px;
        }

        .qb-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 0.9rem;
        }

        .qb-contact-item i {
            font-size: 1.1rem;
            margin-top: 3px;
            color: #ffffff;
        }

        .qb-contact-item a {
            color: #ffffff;
            text-decoration: underline;
            font-weight: 600;
        }

        .qb-contact-item div {
            line-height: 1.4;
            color: #ffffff;
        }

        /* Panel Derecho con Formulario Flotante */
        .qb-right-panel {
            position: relative;
            width: 45%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 60px 0 60px 0;
        }

        .qb-form-card {
            position: absolute;
            left: -140px;
            width: calc(100% + 60px);
            max-width: 620px;
            background-color: #ffffff;
            border-radius: 6px;
            padding: 40px 45px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.12);
            z-index: 10;
        }

        .qb-form-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #1a252c;
            margin-bottom: 25px;
        }

        .qb-field-group {
            position: relative;
            margin-bottom: 20px;
        }

        .qb-field-group label {
            position: absolute;
            top: -9px;
            left: 12px;
            background-color: #ffffff;
            padding: 0 6px;
            font-size: 0.72rem;
            font-weight: 700;
            color: #4a5568;
            z-index: 2;
        }

        .qb-input, .qb-select {
            width: 100%;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 11px 14px;
            font-size: 0.88rem;
            color: #1e293b;
            background-color: #ffffff;
            outline: none;
            transition: border-color 0.2s;
        }

        .qb-select {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%3c64748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
            padding-right: 40px;
        }

        /* --- Selector de Plantel/Área con logo --- */
        .plantel-dropdown {
            width: 100%;
        }

        .qb-select-plantel {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 8px 14px;
            font-size: 0.88rem;
            color: #1e293b;
            background-color: #ffffff;
            text-align: left;
        }

        .qb-select-plantel:hover {
            border-color: #94a3b8;
        }

        .plantel-seleccion-texto {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .plantel-dropdown-menu {
            width: 100%;
            max-height: 340px;
            overflow: hidden;
        }

        /* Ojo: el display solo va condicionado a .show (lo pone Bootstrap al abrir).
           Si se pone sin condicion aqui, le gana al display:none de Bootstrap al
           cerrar (misma especificidad, esta hoja carga despues) y el menu nunca se oculta. */
        .plantel-dropdown-menu.show {
            display: flex;
            flex-direction: column;
        }

        .plantel-lista {
            overflow-y: auto;
            max-height: 280px;
        }

        .plantel-item {
            font-size: 0.85rem;
        }

        .plantel-item span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .plantel-logo {
            width: 30px;
            height: 30px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .plantel-logo-placeholder {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            flex-shrink: 0;
        }

        .qb-input:focus, .qb-select:focus {
            border-color: var(--brand-wine-main);
            box-shadow: 0 0 0 1px var(--brand-wine-main);
        }

        .qb-submit-btn {
            background-color: transparent;
            color: var(--brand-wine-dark);
            border: 2px solid var(--brand-wine-dark);
            border-radius: 50px;
            padding: 10px 40px;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 5px;
        }

        .qb-submit-btn:hover {
            background-color: var(--brand-wine-dark);
            color: #ffffff;
            border-color: var(--brand-wine-dark);
        }

        .table-selector-box {
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 14px 16px;
            background-color: #f8fafc;
        }

        /* --- ESTILOS MODAL MINIMALISTA UI (ESTILO DRIBBBLE) --- */
        .modal-minimal .modal-content {
            border: none;
            border-radius: 16px;
            background-color: #f8fafc;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
            overflow: hidden;
        }

        /* Encabezado ultra limpio estilo App */
        .modal-minimal .modal-header {
            border-bottom: 1px solid #f1f5f9;
            background-color: #ffffff;
            padding: 18px 28px;
        }

        .modal-minimal .modal-brand-badge {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background-color: var(--brand-wine-light);
            color: var(--brand-wine-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .modal-minimal .modal-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #0f172a;
            letter-spacing: -0.2px;
        }

        .modal-minimal .header-divider {
            color: #cbd5e1;
            font-size: 0.85rem;
            font-weight: 300;
        }

        .modal-minimal .header-subtitle {
            font-size: 0.88rem;
            color: #64748b;
            font-weight: 500;
        }

        /* Botón de Cierre Pequeño y Circular */
        .modal-minimal .btn-close-minimal {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0;
            outline: none;
        }

        .modal-minimal .btn-close-minimal:hover {
            background-color: #f1f5f9;
            color: #0f172a;
            border-color: #cbd5e1;
        }

        .modal-minimal .section-tag {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1.2px;
            color: var(--brand-wine-accent);
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        /* Tarjeta Minimalista */
        .card-minimal {
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 20px;
            min-height: 170px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            position: relative;
        }

        .card-minimal:hover {
            box-shadow: 0 10px 25px rgba(0,0,0,0.04);
            border-color: #cbd5e1;
        }

        .card-minimal .card-subtext {
            font-size: 0.72rem;
            color: #94a3b8;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .card-minimal .card-title-text {
            font-size: 1.05rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .card-minimal .card-desc {
            font-size: 0.82rem;
            color: #64748b;
            font-weight: 400;
            line-height: 1.45;
        }

        .card-minimal .card-fecha {
            font-size: 0.75rem;
            color: var(--brand-wine-accent);
            font-weight: 600;
            margin-bottom: 6px;
        }

        .card-minimal .card-ubicacion {
            font-size: 0.72rem;
            color: #64748b;
            margin-bottom: 8px;
            line-height: 1.35;
        }

        .card-minimal .card-cupos {
            font-size: 0.78rem;
            color: #64748b;
            line-height: 1.5;
        }

        /* Radio Buttons */
        .card-minimal .form-check-input {
            width: 1.1em;
            height: 1.1em;
            cursor: pointer;
            border-color: #cbd5e1;
        }

        .card-minimal .form-check-input:checked {
            background-color: var(--brand-wine-accent);
            border-color: var(--brand-wine-accent);
        }

        /* Estado Seleccionado */
        .card-minimal:has(input:checked) {
            background-color: var(--brand-wine-light) !important;
            border-color: rgba(176, 42, 80, 0.3) !important;
            border-bottom: 3px solid var(--brand-wine-accent) !important;
        }

        .card-minimal:has(input:checked) .card-title-text {
            color: var(--brand-wine-dark);
        }

        .card-minimal:has(input:checked) .card-desc {
            color: var(--brand-wine-main);
        }

        /* Responsive Breakpoints */
        /* --- Alertas de error --- */
        .qb-alert-error {
            background-color: #fdf2f4;
            border: 1px solid rgba(176, 42, 80, 0.35);
            color: var(--brand-wine-dark);
            border-radius: 6px;
            padding: 12px 16px;
            font-size: 0.85rem;
            margin-bottom: 20px;
        }

        .qb-recuperar-aviso {
            font-size: 0.82rem;
            color: #64748b;
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 10px 14px;
            margin-bottom: 20px;
        }

        .qb-recuperar-aviso a {
            color: var(--brand-wine-accent);
            font-weight: 600;
        }

        /* --- Mesas sin cupo presencial --- */
        .card-minimal-disabled {
            opacity: 0.55;
            cursor: not-allowed;
            background-color: #f8fafc;
        }

        .card-minimal-disabled:hover {
            box-shadow: none;
            border-color: #e2e8f0;
        }

        /* --- Selector de modalidad (presencial / virtual) --- */
        .modalidad-picker {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px 20px;
        }

        .modalidad-option {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
        }

        .modalidad-option input {
            cursor: pointer;
        }

        .modalidad-aviso {
            margin: 12px 0 0 0;
            font-size: 0.8rem;
            color: var(--brand-wine-main);
            background-color: var(--brand-wine-light);
            border-radius: 6px;
            padding: 10px 14px;
        }

        /* --- Vista /virtual/:token --- */
        .virtual-card {
            max-width: 560px;
            width: 100%;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.12);
            padding: 45px;
            text-align: center;
            margin: 60px auto;
        }

        .virtual-badge {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--brand-wine-accent);
            background-color: var(--brand-wine-light);
            border-radius: 20px;
            padding: 6px 14px;
            margin-bottom: 16px;
        }

        .virtual-titulo {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .virtual-subtitulo {
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .virtual-estado {
            border-radius: 8px;
            padding: 16px 18px;
            font-size: 0.9rem;
            text-align: left;
        }

        .virtual-estado-pendiente {
            background-color: #fff8e6;
            border: 1px solid #f5deab;
            color: #7a5b00;
        }

        .virtual-estado-listo {
            background-color: #eafaf1;
            border: 1px solid #bfe8cf;
            color: #14532d;
        }

        .virtual-estado-concluido {
            background-color: #f1f5f9;
            border: 1px solid #dde3ea;
            color: #475569;
        }

        .virtual-nota {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* --- Contador regresivo (sesión virtual aún no inicia) --- */
        .virtual-contador {
            display: flex;
            justify-content: center;
            gap: 14px;
            margin: 20px 0 4px 0;
        }

        .virtual-contador-item {
            background-color: var(--brand-wine-light);
            border-radius: 8px;
            padding: 10px 14px;
            min-width: 64px;
            text-align: center;
        }

        .virtual-contador-item span {
            display: block;
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--brand-wine-dark);
            line-height: 1.1;
        }

        .virtual-contador-item small {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--brand-wine-main);
        }

        @media (max-width: 991px) {
            .qb-hero-wrapper {
                flex-direction: column;
            }
            .qb-left-panel, .qb-right-panel {
                width: 100%;
                padding: 40px 20px;
            }
            .qb-form-card {
                position: relative;
                left: 0;
                width: 100%;
                max-width: 100%;
                padding: 30px 20px;
            }
            .qb-main-heading {
                font-size: 2.2rem;
            }
        }

/* --- Campo de contraseña con ojito (mostrar/ocultar) --- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.pw-toggle:hover { color: #691c32; }
