/* ════════════════════════════════════════════════════════════════════════
   MEGAJUEGOS.CSS — Hoja de estilos única del proyecto
   Incluir con <link rel="stylesheet" href="/css/megajuegos.css"> en el
   <head> de cada vista. Bootstrap y otras libs de terceros se cargan
   aparte vía Webpack (import en admin.js / public.js).

   Índice:
     1. Reset global
     2. Variables de marca
     3. Base — páginas públicas
     4. Componentes compartidos (público): navbar, botones, footer, offcanvas
     5. Home
     6. Detalle de producto
     7. Admin (panel SPA)
     8. Privacidad          (scope: body.pagina-privacidad / .privacidad-doc)
     9. Instalador          (scope: body.pagina-install    / .install-card)
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Reset global ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

/* ── 2. Variables de marca ───────────────────────────────────────────── */
:root {
    --mj-pink:    #E8185A;
    --mj-pink-dk: #C01049;
    --mj-yellow:  #FFD93D;
    --mj-violet:  #7B35CC;
    --mj-dark:    #1A1A2E;
    --mj-wa:      #25D366;
}

/* ── 3. Base — páginas públicas (home, detalle) ──────────────────────── */
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f4f5f7;
    color: var(--mj-dark);
}

/* ════════════════════════════════════════════════════════════════════════
   4. COMPONENTES COMPARTIDOS (público) — usados en home.php y
      detalle_producto.php vía partials/offcanvas_carrito.php
   ════════════════════════════════════════════════════════════════════════ */

/* ── Navbar ─────────────────────────────────── */
.mj-nav {
    position: sticky; top: 0; z-index: 900;
    background: var(--mj-pink);
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem 1.25rem;
    box-shadow: 0 2px 12px rgba(232,24,90,.35);
}
.mj-brand {
    font-size: 1.25rem; font-weight: 900;
    color: var(--mj-yellow); text-transform: uppercase;
    letter-spacing: -.5px; text-decoration: none; line-height: 1.1;
}
.mj-brand span { display: block; }

.mj-nav-right { display: flex; align-items: center; gap: .5rem; }
.btn-nav-id {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.18); color: white;
    border: 1px solid rgba(255,255,255,.35); border-radius: 50px;
    padding: .35rem .9rem; font-weight: 600; font-size: .82rem;
    cursor: pointer; transition: background .15s;
}
.btn-nav-id:hover { background: rgba(255,255,255,.28); }
.btn-nav-out {
    background: none; border: none; color: rgba(255,255,255,.75);
    font-size: .78rem; cursor: pointer; padding: .3rem .5rem;
    border-radius: 20px; transition: color .15s;
}
.btn-nav-out:hover { color: white; }
.btn-nav-salir {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,100,80,.18); color: white;
    border: 1px solid rgba(255,150,130,.4); border-radius: 50px;
    padding: .35rem .9rem; font-weight: 600; font-size: .82rem;
    cursor: pointer; transition: background .15s;
}
.btn-nav-salir:hover { background: rgba(255,100,80,.32); }

/* ── Botón carrito amarillo (navbar) ─────────── */
.btn-carrito {
    display: flex; align-items: center; gap: .4rem;
    background: var(--mj-yellow); color: var(--mj-dark);
    border: none; border-radius: 50px;
    padding: .4rem 1rem; font-weight: 700; font-size: .9rem;
    cursor: pointer; position: relative; transition: background .15s;
}
.btn-carrito:hover { background: #e6c200; }
.carrito-badge {
    position: absolute; top: -.35rem; right: -.35rem;
    background: var(--mj-dark); color: white;
    border-radius: 50px; font-size: .7rem; font-weight: 700;
    min-width: 1.3rem; height: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    padding: 0 .3rem;
}

/* ── Botones rosados — base compartida ───────── */
/* btn-agregar: cards del catálogo
   btn-agregar-detalle: página de detalle
   btn-continuar: pasos del wizard */
.btn-agregar,
.btn-agregar-detalle,
.btn-continuar {
    background: var(--mj-pink); color: white; border: none;
    border-radius: 50px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; font-family: inherit;
    transition: background .15s, transform .1s;
}
.btn-agregar:hover,
.btn-agregar-detalle:hover,
.btn-continuar:hover:not(:disabled) { background: var(--mj-pink-dk); }
/* Scale solo en botones de producto (no en wizard) */
.btn-agregar:hover,
.btn-agregar-detalle:hover { transform: scale(1.02); }
.btn-continuar:disabled { opacity: .5; cursor: not-allowed; }
/* Tamaños individuales */
.btn-agregar         { font-size: .875rem; padding: .5rem 1rem; width: 100%; }
.btn-agregar-detalle { font-size: 1rem; padding: .85rem 1.5rem; width: 100%; margin-bottom: .75rem; }
.btn-continuar        { font-size: .95rem; padding: .8rem; width: 100%; margin-bottom: .4rem; }

/* ── Footer ──────────────────────────────────── */
.mj-footer {
    background: var(--mj-dark); color: rgba(255,255,255,.65);
    text-align: center; padding: 1.75rem 1rem; font-size: .82rem;
}
.mj-footer a { color: var(--mj-yellow); text-decoration: none; }
.mj-footer a:hover { text-decoration: underline; }

/* ── Texto de sugerencia / ayuda (modales y formularios) ─────── */
.mj-hint {
    font-size: .78rem; color: #6b7280; line-height: 1.4; margin: 0;
}

/* ── Botón WA flotante ────────────────────────────────────────── */
#btn-wa-flotante {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
    display: none; align-items: center; gap: .5rem;
    background: var(--mj-wa); color: white; border: none;
    border-radius: 50px; padding: .75rem 1.4rem;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
#btn-wa-flotante:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,.6); }
/* Iconos WA sobre fondos de color → forzar blanco */
#btn-wa-flotante img,
.btn-wa-confirm img { filter: brightness(0) invert(1); }

/* ── Backdrop ─────────────────────────────────────────────────── */
.mj-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 990;
}

/* ── Offcanvas ────────────────────────────────────────────────── */
.mj-offcanvas {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(400px, 100vw); z-index: 991;
    background: white; display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.mj-offcanvas.open { transform: translateX(0); }

/* ── Header ───────────────────────────────────────────────────── */
.mj-offcanvas-hdr {
    background: var(--mj-pink); color: white;
    padding: .9rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.mj-hdr-left { display: flex; align-items: center; gap: .5rem; }
.mj-offcanvas-hdr h5 { margin: 0; font-weight: 800; font-size: 1rem; }
.btn-cerrar, .btn-atras {
    background: rgba(255,255,255,.2); border: none; color: white;
    border-radius: 50%; width: 2rem; height: 2rem;
    font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.btn-cerrar:hover, .btn-atras:hover { background: rgba(255,255,255,.35); }
.btn-atras { display: none; font-size: .9rem; }

/* ── Stepper ──────────────────────────────────────────────────── */
.mj-stepper {
    display: flex; align-items: center; justify-content: center;
    gap: .35rem; padding: .6rem 1.25rem;
    background: #fdf2f5; border-bottom: 1px solid #fce7ee;
    flex-shrink: 0;
}
.mj-step-dot {
    width: .55rem; height: .55rem; border-radius: 50%;
    background: #f0d0da; transition: background .2s, transform .2s;
}
.mj-step-dot.activo { background: var(--mj-pink); transform: scale(1.3); }
.mj-step-dot.completo { background: var(--mj-pink); opacity: .45; }
.mj-step-sep { width: 1.5rem; height: 2px; background: #f0d0da; }

/* ── Cuerpo dinámico ──────────────────────────────────────────── */
#carrito-cuerpo {
    flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
}

/* ── Pie (botones de acción) ──────────────────────────────────── */
#carrito-pie {
    padding: .9rem 1.25rem; border-top: 2px solid #f3f4f6; flex-shrink: 0;
}

/* ── Listas de items del carrito ──────────────────────────────── */
.mj-lista-items { list-style: none; margin: 0; padding: 0; }
.mj-item-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem 0; border-bottom: 1px solid #f3f4f6;
    font-size: .875rem; gap: .5rem;
}
.mj-item-row .item-nombre { flex: 1; font-weight: 600; }
.mj-item-row .item-right  { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.mj-item-row .item-precio { color: var(--mj-pink); font-weight: 700; }

/* ── Árbol de paquete (dentro del carrito y del resumen) ─────── */
.mj-item-subitems { list-style: none; margin: .1rem 0 .5rem; padding: 0 0 0 1.1rem; }
.mj-item-subitem {
    font-size: .78rem; color: #6b7280; padding: .2rem 0 .2rem .6rem;
    border-left: 2px solid #f3f4f6; margin-left: .1rem;
}

.btn-quitar {
    background: none; border: none; color: #d1d5db; cursor: pointer;
    font-size: .85rem; padding: .15rem .3rem; border-radius: 4px;
    transition: color .1s, background .1s; line-height: 1;
}
.btn-quitar:hover { color: #ef4444; background: #fee2e2; }

/* ── Controles de cantidad (+/-) ─────────────────────────────── */
.item-qty {
    display: flex; align-items: center; gap: .2rem; flex-shrink: 0;
}
.btn-qty {
    background: #f3f4f6; border: 1px solid #e5e7eb; color: var(--mj-dark);
    border-radius: 50%; width: 1.55rem; height: 1.55rem;
    font-size: .9rem; font-weight: 700; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .1s;
}
.btn-qty:hover:not(:disabled) { background: #e5e7eb; }
.btn-qty:disabled { opacity: .35; cursor: not-allowed; }
.qty-num {
    min-width: 1.4rem; text-align: center;
    font-size: .85rem; font-weight: 700;
}
/* Etiqueta de cantidad en el resumen de confirmar */
.qty-tag {
    display: inline-block;
    background: var(--mj-pink); color: white;
    border-radius: 50px; font-size: .72rem; font-weight: 700;
    padding: .05rem .45rem; margin-left: .25rem; vertical-align: middle;
}

/* ── Total ────────────────────────────────────────────────────── */
.mj-total-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: .75rem; font-size: .9rem;
}
.mj-total-row span:first-child { font-weight: 700; }
.mj-total-row span:last-child  { font-weight: 900; font-size: 1.3rem; color: var(--mj-pink); }

/* ── Botones de acción ────────────────────────────────────────── */
.btn-wa-confirm {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--mj-wa); color: white; border: none;
    border-radius: 50px; width: 100%; padding: .8rem;
    font-weight: 700; font-size: .95rem; font-family: inherit;
    cursor: pointer; transition: background .15s; margin-bottom: .4rem;
    text-decoration: none;
}
.btn-wa-confirm:hover { background: #1da851; }
.btn-secundario {
    display: block; width: 100%; padding: .55rem;
    background: none; border: 1px solid #e5e7eb; border-radius: 50px;
    color: #6b7280; font-size: .85rem; cursor: pointer; text-align: center;
    transition: border-color .15s, color .15s;
}
.btn-secundario:hover { border-color: var(--mj-pink); color: var(--mj-pink); }

/* ── Formularios del wizard ───────────────────────────────────── */
.mj-wizard-desc  { font-size: .9rem; color: #374151; margin: 0 0 .9rem; line-height: 1.5; }
.mj-wizard-hint  { font-size: .78rem; color: #9ca3af; margin: .5rem 0 0; }
.mj-fr-row { margin-bottom: .6rem; }
.mj-fr-row:last-child { margin-bottom: 0; }
.mj-fr-row label {
    display: block; font-size: .68rem; font-weight: 700;
    color: #6b7280; text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: .18rem;
}
.mj-fr-row input,
.mj-fr-row select,
.mj-fr-row textarea {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 7px;
    padding: .42rem .7rem; font-size: .875rem;
    color: #374151; font-family: inherit; background: white;
    transition: border-color .15s, box-shadow .15s;
}
.mj-fr-row input:focus,
.mj-fr-row select:focus,
.mj-fr-row textarea:focus {
    outline: none; border-color: var(--mj-pink);
    box-shadow: 0 0 0 2px rgba(232,24,90,.12);
}
.mj-fr-row textarea { resize: vertical; min-height: 52px; }
.mj-fr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* ── Combobox inline (calle/colonia) ──────────────────────────── */
.mj-combo-wrap { position: relative; }
.mj-combo-wrap .mj-combo-input { padding-right: 2rem; }
.mj-combo-arrow {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: #9ca3af; font-size: .85rem;
    cursor: pointer; padding: .2rem .35rem; line-height: 1;
}
.mj-combo-arrow:hover { color: var(--mj-pink); }
.mj-combo-dropdown {
    position: absolute; z-index: 20; top: calc(100% + 2px); left: 0; right: 0;
    max-height: 180px; overflow-y: auto; margin: 0; padding: .25rem 0;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.1); list-style: none;
}
.mj-combo-dropdown li {
    padding: .4rem .7rem; font-size: .85rem; color: #374151; cursor: pointer;
}
.mj-combo-dropdown li:hover { background: #fdf2f6; color: var(--mj-pink); }

/* ── Ubicaciones ──────────────────────────────────────────────── */
.mj-ubicaciones-lista { margin-bottom: .75rem; }
.mj-loc-card {
    display: flex; align-items: flex-start; gap: .6rem;
    border: 2px solid #e5e7eb; border-radius: 10px;
    padding: .65rem .9rem; margin-bottom: .5rem;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.mj-loc-card input[type=radio] { margin-top: .15rem; flex-shrink: 0; accent-color: var(--mj-pink); }
.mj-loc-card.seleccionada { border-color: var(--mj-pink); background: #fff5f8; }
.mj-loc-info strong { display: block; font-size: .9rem; color: #1f2937; }
.mj-loc-info small  { font-size: .78rem; color: #6b7280; }
.btn-nueva-ubicacion {
    width: 100%; padding: .55rem; border: 1px dashed #e5e7eb;
    border-radius: 8px; background: none; color: var(--mj-pink);
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: border-color .15s, background .15s; margin-bottom: .75rem;
}
.btn-nueva-ubicacion:hover { border-color: var(--mj-pink); background: #fff5f8; }

/* ── Disponibilidad ───────────────────────────────────────────── */
.mj-disp-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem .65rem; border-radius: 8px; margin-bottom: .4rem;
    font-size: .875rem;
}
.mj-disp-item.disponible   { background: #f0fdf4; color: #166534; }
.mj-disp-item.no-disponible { background: #fef2f2; color: #991b1b; }
.btn-quitar-disp {
    background: none; border: 1px solid currentColor; border-radius: 20px;
    padding: .15rem .6rem; font-size: .75rem; cursor: pointer;
    color: inherit; font-weight: 600; flex-shrink: 0;
    transition: background .1s;
}
.btn-quitar-disp:hover { background: rgba(0,0,0,.08); }
.mj-disp-ok   { background: #f0fdf4; color: #166534; border-radius: 8px; padding: .65rem .9rem; font-size: .875rem; }
.mj-disp-aviso { font-size: .82rem; color: #92400e; background: #fffbeb; border-radius: 8px; padding: .6rem .9rem; margin-bottom: .5rem; }

/* ── Disponibilidad de un paquete (desglose por producto) ────────── */
.mj-disp-item-paquete {
    border-radius: 8px; margin-bottom: .4rem; padding: .5rem .65rem;
    background: #f9fafb; font-size: .875rem;
}
.mj-disp-item-hdr {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; color: #1f2937;
}
.mj-disp-item-hdr .btn-quitar-disp { color: #991b1b; }
.mj-disp-subitems { margin: .4rem 0 0 1.4rem; }
.mj-disp-subitem {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; padding: .25rem 0; font-size: .8rem;
}
.mj-disp-subitem.disponible    { color: #166534; }
.mj-disp-subitem.no-disponible { color: #991b1b; }
.btn-sustituir-disp {
    background: none; border: 1px solid currentColor; border-radius: 20px;
    padding: .1rem .55rem; font-size: .72rem; cursor: pointer;
    color: inherit; font-weight: 600; flex-shrink: 0; transition: background .1s;
}
.btn-sustituir-disp:hover { background: rgba(0,0,0,.08); }

/* ── Resumen de confirmación ──────────────────────────────────── */
.mj-resumen-seccion { margin-bottom: .9rem; }
.mj-resumen-seccion h6 {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #6b7280; margin: 0 0 .4rem;
}
.mj-resumen-seccion p { margin: 0 0 .2rem; font-size: .875rem; color: #374151; }
.mj-resumen-item {
    display: flex; justify-content: space-between;
    font-size: .875rem; padding: .25rem 0; border-bottom: 1px dashed #f3f4f6;
}
.mj-resumen-item span:last-child { font-weight: 700; color: var(--mj-pink); }
.mj-resumen-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .75rem 0 0; margin-top: .25rem;
    font-size: .9rem; font-weight: 700;
}
.mj-resumen-total strong { font-size: 1.3rem; color: var(--mj-pink); }

/* ── Pantalla de éxito ────────────────────────────────────────── */
.mj-exito {
    text-align: center; padding: 1.5rem 1rem;
}
.mj-exito .mj-exito-ico { font-size: 3rem; margin-bottom: .5rem; }
.mj-exito h4 { font-weight: 900; margin: 0 0 .5rem; color: var(--mj-dark); }
.mj-folio {
    font-size: 1.1rem; background: #f0fdf4; border-radius: 8px;
    padding: .5rem 1rem; display: inline-block; margin: .25rem 0 .75rem;
    color: #166534;
}
.mj-exito p { font-size: .9rem; color: #6b7280; margin: 0; }

/* ── Estados de carga / error ─────────────────────────────────── */
.mj-loading    { text-align: center; padding: 2.5rem 1rem; color: #9ca3af; font-size: .9rem; }
.mj-loading-sm { font-size: .82rem; color: #9ca3af; margin: .5rem 0; }
.mj-error      { background: #fef2f2; color: #991b1b; border-radius: 8px; padding: .65rem .9rem; font-size: .875rem; }
.mj-empty-state { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
.mj-empty-state .ico { font-size: 2.5rem; margin-bottom: .5rem; }
.mj-badge-mant {
    display: inline-block; font-size: .68rem; font-weight: 700;
    background: #fef3c7; color: #92400e;
    border-radius: 4px; padding: .1rem .4rem;
    vertical-align: middle; margin-left: .4rem; text-transform: uppercase;
}

/* ── Sub-sección del wizard (ej. "Lugar del evento:") ──────────── */
.mj-wizard-sub {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #6b7280; margin: .9rem 0 .35rem;
}

/* ── Cards de reservas en "Mis eventos" ─────────────────────────── */
.mj-reserva-card {
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: .8rem 1rem; margin-bottom: .65rem;
    background: white;
}
.mj-reserva-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .35rem;
}
.mj-reserva-hdr strong { font-size: .9rem; }
.mj-reserva-fecha, .mj-reserva-total {
    font-size: .82rem; color: #6b7280; margin: .15rem 0;
}
.btn-recordatorio {
    display: inline-block; margin-top: .5rem;
    background: none; border: 1px solid var(--mj-wa); color: var(--mj-wa);
    border-radius: 20px; padding: .25rem .75rem;
    font-size: .78rem; font-weight: 600; cursor: pointer;
    transition: background .1s;
}
.btn-recordatorio:hover { background: #f0fdf4; }

/* ── Badges de estado ────────────────────────────────────────────── */
.mj-badge-estado {
    font-size: .68rem; font-weight: 700; border-radius: 20px;
    padding: .15rem .55rem; text-transform: uppercase; flex-shrink: 0;
}
.mj-badge-warning  { background: #fef3c7; color: #92400e; }
.mj-badge-success  { background: #d1fae5; color: #065f46; }
.mj-badge-danger   { background: #fee2e2; color: #991b1b; }
.mj-badge-secondary { background: #f3f4f6; color: #6b7280; }

/* ── Selector de paquete "por cantidad" — popup "Elige tus MEGA Juegos" ── */
.mj-selector-catalogo {
    max-height: 260px; overflow-y: auto; margin: .5rem 0 .75rem;
    border: 1px solid #f3f4f6; border-radius: 10px;
}
.mj-selector-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .65rem; border-bottom: 1px solid #f3f4f6;
}
.mj-selector-item:last-child { border-bottom: none; }
.mj-selector-item-img {
    width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
    background: #eee; flex-shrink: 0;
}
.mj-selector-item-info { flex: 1; min-width: 0; text-align: left; }
.mj-selector-item-info strong { display: block; font-size: .85rem; color: #1f2937; }
.mj-selector-item-info span { font-size: .78rem; color: var(--mj-pink); font-weight: 700; }
/* Precio fijo del paquete: el precio individual va tachado, no en rosa */
.mj-selector-item-info .mj-precio-antes { color: #9ca3af; font-weight: 400; margin-left: 0; }
.mj-selector-item-info .mj-precio-incluido { display: block; margin-top: .1rem; }
.mj-selector-excluido {
    display: block; color: #991b1b !important; font-size: .7rem !important;
    font-weight: 600 !important; margin-top: .1rem;
}
.mj-selector-btn-add {
    background: var(--mj-pink); color: white; border: none;
    border-radius: 50px; padding: .3rem .7rem; font-size: .75rem; font-weight: 700;
    cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.mj-selector-btn-add:hover:not(:disabled) { background: var(--mj-pink-dk); }
.mj-selector-btn-add:disabled { opacity: .4; cursor: not-allowed; }
.mj-selector-contador {
    font-size: .8rem; font-weight: 700; color: #6b7280; margin: 0 0 .25rem; text-align: left;
}
.mj-selector-grupo { list-style: none; margin: 0; padding: 0; text-align: left; }
.mj-selector-grupo-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .4rem .1rem; border-bottom: 1px dashed #f3f4f6; font-size: .85rem;
}
.mj-selector-grupo-item:last-child { border-bottom: none; }
.mj-selector-grupo-vacio { font-size: .82rem; color: #9ca3af; padding: .4rem .1rem; text-align: left; }

/* ════════════════════════════════════════════════════════════════════════
   5. HOME (home.php)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────── */
.mj-hero {
    background: var(--mj-pink);
    color: white;
    padding: 3rem 1.25rem 3.5rem;
    text-align: center;
}
.mj-hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--mj-yellow);
    line-height: 1; letter-spacing: -1px;
    margin: 0 0 .75rem;
}
.mj-hero-sub {
    font-size: clamp(.95rem, 2.5vw, 1.2rem);
    opacity: .93; margin: 0 0 1.5rem;
    max-width: 520px; margin-left: auto; margin-right: auto;
}
.mj-hero-phone {
    display: inline-flex; align-items: center; gap: .6rem;
    background: white; color: var(--mj-dark);
    border-radius: 50px; padding: .55rem 1.4rem;
    font-weight: 700; font-size: 1.1rem;
    text-decoration: none;
    transition: transform .15s;
}
.mj-hero-phone:hover { transform: scale(1.04); color: var(--mj-dark); }
.mj-hero-phone img { flex-shrink: 0; }

/* ── Sección catálogo ─────────────────────────────── */
.mj-section {
    max-width: 1280px; margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.mj-section-hdr {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.75rem;
}
.mj-section-title {
    font-size: 1.5rem; font-weight: 900;
    text-transform: uppercase; margin: 0;
}
.mj-section-hdr::after {
    content: ''; flex: 1; height: 3px;
    background: linear-gradient(90deg, var(--mj-pink) 0%, transparent 100%);
    border-radius: 2px;
}

/* ── Grid de productos ────────────────────────────── */
#catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ── Tarjeta ──────────────────────────────────────── */
.mj-card {
    background: white; border-radius: 14px; overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,.09);
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
    border-top: 5px solid var(--mj-pink);
}
.mj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232,24,90,.18);
}
.mj-card:nth-child(3n+2) { border-top-color: var(--mj-violet); }
.mj-card:nth-child(3n)   { border-top-color: var(--mj-yellow); }

.mj-card-img {
    width: 100%; height: 190px; object-fit: cover;
    background: #eee;
}
.mj-card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.mj-card-img-link { display: block; }
.mj-card-mant { opacity: .82; }
.mj-no-disp {
    background: #f3f4f6; border-radius: 50px;
    padding: .5rem 1rem; font-size: .8rem;
    color: #9ca3af; text-align: center;
}
.mj-card-nombre {
    font-weight: 800; font-size: .98rem;
    text-transform: uppercase; letter-spacing: .3px;
    margin: 0 0 .3rem;
}
.mj-card-nombre-link {
    color: var(--mj-dark); text-decoration: none;
}
.mj-card-nombre-link:hover { color: var(--mj-pink); }
.mj-card-desc {
    font-size: .82rem; color: #6b7280; margin: 0 0 .75rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow: hidden;
}
.mj-card-precio {
    font-size: 1.5rem; font-weight: 900; color: var(--mj-pink);
    margin-bottom: .75rem; line-height: 1;
}
.mj-card-precio small {
    font-size: .72rem; font-weight: 400; color: #9ca3af;
}

/* ── Estado vacío / error ─────────────────────────── */
.mj-empty {
    grid-column: 1/-1; text-align: center; padding: 4rem 1rem;
    color: #9ca3af;
}
.mj-empty .ico { font-size: 3.5rem; margin-bottom: .75rem; }

/* ── Spinner inicial ─────────────────────────────── */
.mj-spinner {
    grid-column: 1/-1;
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; padding: 4rem 1rem; color: var(--mj-pink);
    font-weight: 600;
}
.spin {
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    border: 3px solid rgba(232,24,90,.2);
    border-top-color: var(--mj-pink);
    animation: giro .75s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }

/* ── Paquetes especiales ──────────────────────────── */
#paquetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.mj-card-img-rel { position: relative; }
.mj-card-paquete-badge {
    position: absolute; top: .5rem; left: .5rem; z-index: 1;
}
.mj-badge-descuento {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, var(--mj-yellow), #ff9500);
    color: var(--mj-dark); font-weight: 900; font-size: .72rem;
    padding: .2rem .6rem; border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    text-transform: uppercase; letter-spacing: .04em;
}
.mj-badge-precio-fijo {
    display: inline-flex; align-items: center;
    background: var(--mj-violet);
    color: white; font-weight: 700; font-size: .72rem;
    padding: .2rem .6rem; border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.mj-paquete-incluye {
    font-size: .78rem; color: #6b7280; margin: 0 0 .3rem;
    line-height: 1.4; flex: 1;
}
.mj-paquete-lista {
    font-size: .74rem; color: #9ca3af; margin: 0 0 .5rem;
    line-height: 1.4;
}
.mj-precio-antes {
    font-size: .8rem; color: #9ca3af;
    text-decoration: line-through;
    margin-left: .35rem; font-weight: 400;
}
.mj-precio-incluido {
    font-size: .72rem; color: #166534; font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
   6. DETALLE DE PRODUCTO (detalle_producto.php)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb / volver ──────────────────────── */
.mj-breadcrumb {
    max-width: 1100px; margin: 0 auto;
    padding: 1rem 1.25rem .25rem;
}
.mj-breadcrumb a {
    color: var(--mj-pink); text-decoration: none;
    font-size: .875rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .35rem;
}
.mj-breadcrumb a:hover { text-decoration: underline; }

/* ── Layout detalle ───────────────────────────── */
.mj-detalle {
    max-width: 1100px; margin: 1rem auto 3rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 720px) {
    .mj-detalle { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Galería ──────────────────────────────────── */
.mj-galeria-main-wrap {
    background: white; border-radius: 14px; overflow: hidden;
    border: 1px solid #e5e7eb;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
}
.mj-galeria-main {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity .15s;
}
.mj-thumbs {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.mj-thumb {
    width: 68px; height: 68px;
    object-fit: cover; border-radius: 8px;
    border: 2px solid #e5e7eb; cursor: pointer;
    transition: border-color .15s, opacity .15s;
    opacity: .7;
}
.mj-thumb:hover { opacity: 1; }
.mj-thumb.activa { border-color: var(--mj-pink); opacity: 1; }

/* ── Info del producto ────────────────────────── */
.mj-detalle-nombre {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900; text-transform: uppercase;
    letter-spacing: -.5px; margin: 0 0 .4rem;
    line-height: 1.1;
}
.mj-detalle-precio {
    font-size: 2.2rem; font-weight: 900;
    color: var(--mj-pink); line-height: 1;
    margin: .75rem 0 .25rem;
}
.mj-detalle-precio small {
    font-size: .75rem; font-weight: 400;
    color: #9ca3af; display: block; margin-top: .15rem;
}
.mj-detalle-divider {
    height: 3px; border: none; margin: 1rem 0;
    background: linear-gradient(90deg, var(--mj-pink) 0%, transparent 60%);
    border-radius: 2px;
}
.mj-detalle-desc {
    color: #374151; line-height: 1.65;
    margin: 0 0 1.5rem; font-size: .95rem;
}
.mj-detalle-stock {
    font-size: .82rem; color: #6b7280;
    margin-bottom: 1.25rem;
}
.mj-no-disponible {
    background: #f3f4f6; border-radius: 10px;
    padding: .9rem 1.2rem; color: #6b7280;
    font-size: .9rem; text-align: center;
    margin-bottom: .75rem;
}
.mj-link-volver {
    display: inline-flex; align-items: center; gap: .35rem;
    color: #6b7280; text-decoration: none;
    font-size: .875rem; transition: color .15s;
}
.mj-link-volver:hover { color: var(--mj-pink); }

/* ════════════════════════════════════════════════════════════════════════
   7. ADMIN — Panel SPA (admin_spa.php)
   ════════════════════════════════════════════════════════════════════════ */

body.pagina-admin { height: 100%; display: flex; background: #f1f5f9; }

/* ── Sidebar ───────────────────────────── */
#sidebar {
    width: 240px;
    min-height: 100vh;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    flex-shrink: 0;
}
#sidebar .brand { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
#sidebar .user-badge { color: #94a3b8; font-size: .75rem; }
#sidebar .mj-cuenta-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #94a3b8;
    padding: 0 0 .35rem;
    margin-bottom: .3rem;
    cursor: pointer;
}
#sidebar .mj-cuenta-chevron { color: #64748b; font-size: 1.1rem; line-height: 1; }
#sidebar .mj-cuenta-menu { display: none; }
#sidebar .mj-cuenta-menu.mostrar { display: block; }
#sidebar .mj-mi-cuenta {
    display: block;
    color: #64748b;
    font-size: .72rem;
    text-decoration: none;
    margin-top: .2rem;
}
#sidebar .mj-mi-cuenta:hover { color: #cbd5e1; text-decoration: underline; }
#sidebar .mj-mi-cuenta-danger { color: #f87171; }
#sidebar .mj-mi-cuenta-danger:hover { color: #fca5a5; }

#sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 6px;
    padding: .45rem .75rem;
    font-size: .875rem;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active { color: #fff; background: #334155; }

#sidebar .section-label {
    color: #64748b;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .5rem .75rem .25rem;
}

/* ── App content ───────────────────────── */
#app-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
#app-content.centered {
    align-items: center;
    justify-content: center;
}

/* Nav bloqueada hasta completar la configuración inicial */
#sidebar.nav-bloqueada [data-view]:not([data-view="configuracion"]) {
    opacity: .3;
    pointer-events: none;
}
#sidebar.nav-bloqueada #btn-logout {
    opacity: .3;
    pointer-events: none;
}
.aviso-config {
    font-size: .72rem;
    color: #f59e0b;
    padding: .4rem .75rem .25rem;
    line-height: 1.4;
}

/* ── Mobile topbar ─────────────────────── */
#mobile-topbar {
    display: none;
    position: sticky; top: 0; z-index: 300;
    background: #1e293b;
    padding: .7rem 1rem;
    align-items: center; gap: .75rem;
    flex-shrink: 0;
    border-bottom: 1px solid #334155;
}
.topbar-brand { color: #fff; font-weight: 700; font-size: 1rem; flex: 1; }
.btn-hamburger {
    background: none; border: none; color: #fff;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    padding: .1rem .4rem; border-radius: 6px; flex-shrink: 0;
}
.btn-hamburger:hover { background: rgba(255,255,255,.12); }

/* ── Sidebar backdrop (mobile) ─────────── */
#sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    z-index: 250; background: rgba(0,0,0,.45);
}
#sidebar-backdrop.open { display: block; }

/* ── Responsive ────────────────────────── */
@media (max-width: 767px) {
    body.pagina-admin { height: auto; flex-direction: column; min-height: 100svh; }

    #mobile-topbar { display: flex; }

    #sidebar {
        position: fixed;
        top: 0; left: 0; height: 100%; width: 260px;
        min-height: unset; z-index: 280;
        transform: translateX(-100%);
        transition: transform .25s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
    }
    #sidebar.open { transform: translateX(0); }

    #app-content {
        padding: 1rem .85rem;
        flex: 1;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: calc(100svh - 52px);
    }
    #app-content.centered {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/* ── Toggle de contraseña (login admin, instalador) ─────────────── */
[data-password-toggle] { position: relative; }
[data-password-toggle] input { padding-right: 2.5rem; }
.btn-ojo {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    width: auto !important; padding: .25rem; background: none !important;
    border: none; color: #9ca3af; cursor: pointer; line-height: 1;
}
.btn-ojo:hover { color: #374151 !important; }

/* ── Formulario producto: layout + galería de imágenes ───────────── */
.mj-prod-layout { display: flex; gap: 2rem; align-items: flex-start; width: 100%; }
.mj-prod-form { flex: 0 0 500px; max-width: 500px; min-width: 0; }
.mj-prod-units { flex: 1; min-width: 0; }
@media (max-width: 767px) {
    .mj-prod-layout { flex-direction: column; }
    .mj-prod-form { flex: none; max-width: 100%; width: 100%; }
}
.mj-img-card { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.mj-img-card img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
    border: 3px solid #e2e8f0; display: block; transition: .15s;
}
.mj-img-card.es-principal img { border-color: #2563eb; }
.mj-img-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.46); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    opacity: 0; transition: .15s;
}
.mj-img-card:hover .mj-img-overlay { opacity: 1; }
.mj-img-btn {
    background: rgba(255,255,255,.92); border: none; border-radius: 5px;
    width: 28px; height: 28px; cursor: pointer; font-size: 14px; line-height: 1;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mj-img-btn:disabled { opacity: .4; cursor: default; }
.mj-img-btn.eliminar { color: #ef4444; }

/* ── Selector de imagen de portada (paquetes) ─────────────────────── */
.img-portada-opt { cursor: pointer; position: relative; }
.img-portada-opt img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 3px solid #e2e8f0; }
.img-portada-opt.selected img { border-color: #2563eb !important; }

/* ── Editor de plantillas de WhatsApp (variables + emoji) ─────────── */
.mj-plantilla-toolbar { display: flex; gap: .4rem; margin-bottom: .3rem; flex-wrap: wrap; }
.mj-plantilla-input.is-invalid { border-color: #dc3545; }
.mj-plantilla-error {
    font-size: .78rem; color: #dc3545; margin-top: .25rem;
}
.mj-plantilla-vars {
    font-size: .74rem; color: #6b7280; margin: .3rem 0 .75rem; line-height: 1.5;
}
.mj-plantilla-vars code {
    background: #f1f5f9; border-radius: 4px; padding: 1px 5px; color: #374151;
}
.mj-emoji-picker {
    position: absolute; z-index: 1060; width: 280px; max-height: 260px;
    overflow-y: auto; background: white; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.15); padding: .5rem;
}
.mj-emoji-picker h6 {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; color: #9ca3af;
    margin: .5rem 0 .3rem; letter-spacing: .05em;
}
.mj-emoji-picker h6:first-child { margin-top: 0; }
.mj-emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mj-emoji-grid button {
    border: none; background: none; font-size: 1.15rem; line-height: 1;
    padding: .28rem 0; border-radius: 6px; cursor: pointer;
}
.mj-emoji-grid button:hover { background: #f1f5f9; }

.mj-plantilla-footer { display: flex; justify-content: flex-end; margin-top: .4rem; }

.mj-btn-calendario {
    padding: .1rem .35rem; line-height: 1; font-size: .85rem; border-color: #dbe1e8;
}
.mj-prueba-btn {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--mj-wa); cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: background .15s, transform .1s;
    margin-left: .5rem;
}
.mj-prueba-btn:first-child { margin-left: 0; }
.mj-prueba-btn:hover { background: #1da851; transform: scale(1.06); }
.mj-prueba-btn img { filter: brightness(0) invert(1); }
.mj-prueba-btn-correo { background: #2563eb; font-size: 1.05rem; }
.mj-prueba-btn-correo:hover { background: #1d4ed8; }

/* ── Calendario de reservas (Dashboard) ──────────────────────────────── */
.mj-cal { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
.mj-cal-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .6rem;
}
.mj-cal-tabs { display: flex; gap: .25rem; background: #f1f5f9; border-radius: 8px; padding: .2rem; }
.mj-cal-tab {
    border: none; background: none; padding: .35rem .9rem; border-radius: 6px;
    font-size: .82rem; font-weight: 600; color: #6b7280; cursor: pointer;
}
.mj-cal-tab.active { background: white; color: var(--mj-dark); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mj-cal-nav { display: flex; align-items: center; gap: .5rem; }
.mj-cal-btn {
    border: 1px solid #e5e7eb; background: white; border-radius: 7px;
    width: 30px; height: 30px; font-size: 1rem; line-height: 1; cursor: pointer; color: #374151;
}
.mj-cal-btn:hover { border-color: var(--mj-pink); color: var(--mj-pink); }
.mj-cal-btn-hoy { width: auto; padding: 0 .7rem; font-size: .78rem; font-weight: 600; }
.mj-cal-titulo { font-size: .92rem; text-transform: capitalize; margin-left: .3rem; }

/* Widget del Dashboard: el calendario toma su propia tarjeta, separada del título */
.mj-dash-widget {
    background: white; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 1.1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Vista mensual */
.mj-cal-mes-dow, .mj-cal-mes-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mj-cal-dia-grid { grid-template-columns: repeat(6, 1fr); }
.mj-cal-mes-dow div {
    text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    color: #9ca3af; padding: .3rem 0;
}
.mj-cal-mes-dia {
    min-height: 92px; border: 1px solid #f1f5f9; padding: .3rem; position: relative;
    display: flex; flex-direction: column; gap: .2rem;
}
.mj-cal-mes-dia.fuera { background: #fafafa; }
.mj-cal-mes-dia.fuera .mj-cal-num { color: #cbd5e1; }
.mj-cal-mes-dia.hoy { background: #fff0f5; }
.mj-cal-num { font-size: .78rem; font-weight: 700; color: #374151; }
.mj-cal-mes-dia.hoy .mj-cal-num {
    background: var(--mj-pink); color: white; border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
}
/* Hora actual (vista Día): no le queda la "bolita" del día (el texto de la
   hora es más largo) — en vez de eso, el texto de la hora toma el color,
   igual que la columna de "hoy" en la vista Semana. */
.mj-cal-mes-dia.hora-actual { background: #fff0f5; }
.mj-cal-mes-dia.hora-actual .mj-cal-num { color: var(--mj-pink); }
/* Días bloqueados (calendario_eventos, "día no laborable") — tono violeta muy
   tenue para no competir con el rosa de "hoy" ni el rojo de cancelado. */
.mj-cal-mes-dia.bloqueado { background: #f5f3ff; cursor: pointer; }
.mj-cal-mes-dia.bloqueado .mj-cal-num { color: #5b21b6; }
.mj-cal-bloqueo-nota {
    font-size: .64rem; font-weight: 700; color: #5b21b6; line-height: 1.2;
    overflow-wrap: break-word;
}
.mj-cal-eventos { display: flex; flex-direction: column; gap: 2px; max-height: 68px; overflow-y: auto; }

.mj-cal-evento {
    display: block; font-size: .68rem; font-weight: 600; text-decoration: none;
    background: #eef2ff; color: #4338ca; border-radius: 4px; padding: 1px 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mj-cal-evento:hover { filter: brightness(.95); }
.mj-cal-evento-pendiente  { background: #fef3c7; color: #92400e; }
.mj-cal-evento-confirmado { background: #dcfce7; color: #166534; }
.mj-cal-evento-cancelado  { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.mj-cal-evento-borrador   { background: #f1f5f9; color: #475569; }

/* Vista semanal/diaria (cuadrícula por hora) */
.mj-cal-horas-header {
    display: grid; border-bottom: 2px solid #e5e7eb; padding-bottom: .35rem;
}
.mj-cal-dia-header {
    text-align: center; font-size: .78rem; font-weight: 700; color: #374151; text-transform: capitalize;
}
.mj-cal-dia-header.hoy { color: var(--mj-pink); }
.mj-cal-dia-header.bloqueado { background: #f5f3ff; color: #5b21b6; border-radius: 6px 6px 0 0; }
.mj-cal-horas-scroll { max-height: 480px; overflow-y: auto; }
.mj-cal-hora-fila { display: grid; border-bottom: 1px solid #f1f5f9; min-height: 40px; }
.mj-cal-hora-fila:nth-child(even) { background: #f8fafc; }
.mj-cal-hora-label {
    font-size: .68rem; color: #9ca3af; padding: .2rem .3rem; text-align: right;
    border-right: 1px solid #f1f5f9;
}
.mj-cal-hora-celda { padding: 2px 3px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #f9fafb; }
.mj-cal-bloqueo-banner {
    background: #f5f3ff; color: #5b21b6; font-weight: 700; font-size: .8rem;
    padding: .5rem .75rem; border-radius: 8px; margin-bottom: .5rem;
}

/* ════════════════════════════════════════════════════════════════════════
   8. PRIVACIDAD (privacidad.php)
   Todo escopado bajo body.pagina-privacidad / .privacidad-doc para no
   afectar el resto del sitio con selectores de etiqueta (h1, p, ul…).
   ════════════════════════════════════════════════════════════════════════ */

body.pagina-privacidad {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8fafc; color: #1a1a2e;
    margin: 0; padding: 2rem 1rem 4rem;
    line-height: 1.7;
}
.privacidad-doc {
    max-width: 780px; margin: 0 auto;
    background: white; border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.privacidad-doc-header {
    border-bottom: 3px solid #E8185A;
    padding-bottom: 1rem; margin-bottom: 2rem;
}
.privacidad-doc h1 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 900; margin: 0 0 .25rem;
    color: #1a1a2e;
}
.privacidad-subtitulo {
    font-size: .9rem; color: #6b7280; margin: 0;
}
.privacidad-doc h2 {
    font-size: 1.05rem; font-weight: 700;
    color: #E8185A; margin: 2rem 0 .5rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid #fce7ee;
}
.privacidad-doc p { margin: 0 0 .75rem; font-size: .95rem; color: #374151; }
.privacidad-doc ul { margin: 0 0 .75rem; padding-left: 1.4rem; }
.privacidad-doc ul li { font-size: .95rem; color: #374151; margin-bottom: .35rem; }
.privacidad-doc strong { color: #1a1a2e; }
.privacidad-highlight {
    background: #fdf2f5; border-left: 4px solid #E8185A;
    border-radius: 0 8px 8px 0; padding: .75rem 1rem;
    margin: .75rem 0; font-size: .9rem; color: #374151;
}
.privacidad-actualizacion {
    margin-top: 2.5rem; font-size: .82rem; color: #9ca3af;
    text-align: right;
}
.privacidad-btn-volver {
    display: inline-flex; align-items: center; gap: .4rem;
    color: #E8185A; text-decoration: none; font-weight: 600;
    font-size: .875rem; margin-bottom: 1.5rem;
}
.privacidad-btn-volver:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════
   9. INSTALADOR (install_controller.php → renderFormulario)
   Todo escopado bajo body.pagina-install / .install-card.
   ════════════════════════════════════════════════════════════════════════ */

body.pagina-install {
    font-family: system-ui, sans-serif; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0;
}
.install-card {
    background: #fff; border-radius: 12px; padding: 2rem;
    width: 100%; max-width: 420px; box-shadow: 0 4px 24px #0001;
}
.install-card h1 { font-size: 1.3rem; margin: 0 0 .25rem; }
.install-card p.sub { color: #64748b; font-size: .875rem; margin: 0 0 1.5rem; }
.install-card label {
    display: block; font-size: .8rem; font-weight: 600;
    color: #374151; margin-bottom: .25rem;
}
.install-card input {
    width: 100%; padding: .55rem .75rem; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: .95rem; margin-bottom: 1rem;
}
.install-card input:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb22;
}
.install-card button {
    width: 100%; padding: .65rem; background: #2563eb; color: #fff;
    border: none; border-radius: 6px; font-size: 1rem;
    cursor: pointer; font-weight: 600;
}
.install-card button:hover { background: #1d4ed8; }
.install-card .error {
    background: #fee2e2; border: 1px solid #f87171;
    color: #7f1d1d; border-radius: 6px;
    padding: .65rem 1rem; font-size: .85rem; margin-bottom: 1rem;
}
.install-card .hint {
    color: #64748b; font-size: .8rem; margin: 0 0 1rem;
    padding: .5rem .75rem; background: #f8fafc;
    border-left: 3px solid #94a3b8; border-radius: 0 4px 4px 0;
}
.install-card .iti { width: 100%; margin-bottom: 1rem; }
.install-card .iti input { margin-bottom: 0; }
.install-card [data-password-toggle] { margin-bottom: 1rem; }
