/* =====================================================================
   La Puerta Secreta — Identidad del Sistema Administrativo
   Morado nocturno + dorado del logotipo
   ===================================================================== */
:root {
  --lps-gold: #f2c14e;
  --lps-gold-dark: #e0a42a;
  --lps-gold-soft: #fff6db;
  --lps-night: #170a2b;
  --lps-night-2: #2a1248;
  --lps-purple: #5a189a;
  --lps-purple-dark: #3c096c;
  --lps-ink: #2d2438;
}

body { font-family: 'Source Sans Pro', -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--lps-ink); }
.content-wrapper { background: #f6f4f9; }

/* ---------- Menú lateral ---------- */
.main-sidebar, .main-sidebar .brand-link { background: var(--lps-night) !important; }
.main-sidebar .brand-link { border-bottom: 1px solid rgba(252, 197, 55, .15) !important; padding: .9rem .5rem; height: auto; }
.brand-logo-full { max-width: 150px; width: 70%; height: auto; transition: opacity .2s; }
.brand-logo-mini { display: none; width: 34px; height: 34px; }
.sidebar-collapse:not(.sidebar-focused) .main-sidebar:not(:hover) .brand-logo-full { display: none; }
.sidebar-collapse:not(.sidebar-focused) .main-sidebar:not(:hover) .brand-logo-mini { display: inline-block; }

.nav-sidebar .nav-header { color: rgba(252, 197, 55, .55) !important; font-size: .72rem; letter-spacing: .08em; padding-top: 1rem !important; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link { color: #d9d2e6; border-radius: .5rem; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover { background: var(--lps-night-2); color: #fff; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--lps-gold) !important; color: var(--lps-night) !important; font-weight: 600;
  box-shadow: 0 4px 14px rgba(252, 197, 55, .25);
}
.nav-pronto { opacity: .55; cursor: not-allowed; }
.badge-pronto { background: rgba(252, 197, 55, .18); color: var(--lps-gold); font-weight: 500; }

/* ---------- Barra superior ---------- */
.avatar-iniciales {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lps-purple); color: var(--lps-gold); font-weight: 700; font-size: .8rem;
}

/* ---------- Colores de marca en componentes ---------- */
.btn-primary { background: var(--lps-purple); border-color: var(--lps-purple); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--lps-purple-dark); border-color: var(--lps-purple-dark);
}
.btn-gold { background: var(--lps-gold); border-color: var(--lps-gold); color: var(--lps-night); font-weight: 600; }
.btn-gold:hover, .btn-gold:focus { background: var(--lps-gold-dark); border-color: var(--lps-gold-dark); color: var(--lps-night); }
.card-primary.card-outline { border-top-color: var(--lps-purple); }
.card-gold.card-outline { border-top: 3px solid var(--lps-gold); }
.text-purple { color: var(--lps-purple) !important; }
.text-gold { color: var(--lps-gold-dark) !important; }
.badge-socio { background: var(--lps-gold); color: var(--lps-night); }
.page-item.active .page-link { background: var(--lps-purple); border-color: var(--lps-purple); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--lps-purple); border-color: var(--lps-purple); }
a { color: var(--lps-purple); }
a:hover { color: var(--lps-purple-dark); }
.form-control:focus { border-color: #a585c4; box-shadow: 0 0 0 .2rem rgba(91, 44, 131, .15); }

.card { border-radius: .6rem; }
.table td, .table th { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6c6280; border-bottom-width: 1px; }
.acciones .btn { padding: .2rem .5rem; }
.thumb-evento { width: 44px; height: 60px; object-fit: cover; border-radius: .3rem; background: #eee; }
.thumb-vacio { width: 44px; height: 60px; border-radius: .3rem; background: #ece8f2; display: inline-flex; align-items: center; justify-content: center; color: #b3a9c4; }

/* ---------- Tarjetas de indicadores ---------- */
.kpi { background: #fff; border-radius: .7rem; padding: 1rem 1.2rem; box-shadow: 0 1px 3px rgba(30, 20, 48, .08); height: 100%; }
.kpi .kpi-label { font-size: .8rem; color: #7a7088; text-transform: uppercase; letter-spacing: .04em; }
.kpi .kpi-value { font-size: 1.7rem; font-weight: 700; color: var(--lps-night); line-height: 1.2; margin-top: .2rem; }
.kpi .kpi-icon { width: 42px; height: 42px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.kpi-icon.i-gold { background: var(--lps-gold-soft); color: var(--lps-gold-dark); }
.kpi-icon.i-purple { background: #efe6f7; color: var(--lps-purple); }
.kpi-icon.i-green { background: #e3f6ea; color: #1e8a4c; }
.kpi-icon.i-blue { background: #e4eefb; color: #2f6db5; }

.progress-ocupacion { height: 8px; border-radius: 4px; background: #ece8f2; }
.progress-ocupacion .progress-bar { background: var(--lps-purple); }

/* ---------- Mapa de asientos (editor de sala y función) ---------- */
.seatmap-wrap { overflow-x: auto; padding: .5rem 0 1rem; }
.seatmap { display: inline-block; min-width: 100%; text-align: center; }
.seatmap .escenario {
  margin: 0 auto 1.4rem; max-width: 520px; padding: .45rem; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, var(--lps-night-2), var(--lps-night)); color: var(--lps-gold);
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
}
.seatmap .grid { display: inline-grid; gap: 5px; align-items: center; }
.seat, .seat-gap, .row-label, .col-label {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: .7rem; user-select: none;
}
.row-label { font-weight: 700; color: #7a7088; }
.row-label.socios { color: var(--lps-gold-dark); }
.col-label { height: 20px; color: #b3a9c4; font-size: .65rem; border-radius: 4px; }
.col-label.clickable { cursor: pointer; }
.col-label.clickable:hover { background: #ece8f2; color: var(--lps-purple); }
.seat {
  border-radius: 7px 7px 4px 4px; border: 1px solid transparent; font-weight: 600; cursor: default;
  transition: transform .08s, box-shadow .08s;
}
.seat.clickable { cursor: pointer; }
.seat.clickable:hover { transform: translateY(-2px); box-shadow: 0 3px 6px rgba(30, 20, 48, .2); }
.seat-gap { border: 1px dashed transparent; border-radius: 6px; }
.seat-gap.clickable { cursor: pointer; border-color: #e3dcea; }
.seat-gap.clickable:hover { border-color: var(--lps-purple); background: #f3eef8; }

.s-disponible { background: #fff; border-color: #c9bfd6; color: var(--lps-ink); }
.s-inactivo { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); color: #999; border-color: #ccc; }
.s-reservado { background: #ffe8b0; border-color: #f0c24b; color: #7a5a00; }
.s-vendido { background: var(--lps-purple); color: #fff; }
.s-bloqueado { background: #5f5a66; color: #fff; }
.s-inhabilitado { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); color: #aaa; }
.s-socios { border-color: var(--lps-gold); box-shadow: inset 0 -3px 0 var(--lps-gold); }
.s-sel { outline: 3px solid #e74c3c; outline-offset: 1px; }

.leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; }
.leyenda span { display: inline-flex; align-items: center; gap: .4rem; }
.leyenda .seat { width: 18px; height: 18px; font-size: 0; }

/* ---------- Login ---------- */
.login-lps { background: radial-gradient(circle at 50% 0%, #3c1466 0%, var(--lps-night) 60%); min-height: 100vh; }
.login-lps .login-logo img { max-width: 230px; width: 70%; }
.login-lps .card { border: 0; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.login-lps .login-card-body { border-radius: 1rem; padding: 1.8rem; }
.login-lps .tagline { color: rgba(252, 197, 55, .8); font-size: .9rem; letter-spacing: .05em; }

@media (max-width: 575.98px) {
  .content-header h1 { font-size: 1.4rem; }
  .seat, .seat-gap, .row-label, .col-label { width: 24px; height: 24px; font-size: .6rem; }
  .col-label { height: 16px; }
}
.row-label { width: auto !important; min-width: 30px; padding: 0 6px; white-space: nowrap; }

/* Textos de la web (editor con vista previa) */
.secciones-web .nav-link { color: #495057; background: #fff; margin: 0 .35rem .35rem 0; border: 1px solid #e9e9ef; position: relative; }
.secciones-web .nav-link.active { background: var(--lps-purple); color: #fff; border-color: var(--lps-purple); }
.secciones-web .punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffc107; margin-left: .3rem; }
.editor-web .card { height: calc(100vh - 235px); min-height: 520px; display: flex; flex-direction: column; }
.editor-card .card-body { overflow-y: auto; flex: 1 1 auto; }
.editor-titulo { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.campo-web { padding: .55rem .65rem; margin: 0 -.65rem .6rem; border-radius: 6px; border-left: 3px solid transparent; transition: background .2s; }
.campo-web.enfocado { background: #f6f0fc; border-left-color: var(--lps-purple); }
.campo-web.cambiado { border-left-color: #ffc107; }
.campo-web.cambiado:not(.enfocado) { background: #fffbea; }
.campo-cab { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.campo-cab label { font-weight: 600; font-size: .85rem; margin-right: auto; }
.campo-ojo { color: #adb5bd; font-size: .8rem; }
.campo-ojo .fa-eye { color: #28a745; }
.campo-ayuda { font-size: .75rem; color: #8a8f98; margin-top: .2rem; }
.btn-restaurar { color: #8a8f98; }
.vista-card .card-header { flex: 0 0 auto; }
.vista-marco { position: relative; flex: 1 1 auto; overflow: hidden; background: #2a1d3f; border-radius: 0 0 .25rem .25rem; }
.vista-marco iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #170a2b; }
.vista-cargando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; color: #d8d0e6; z-index: 2; background: #2a1d3f; }
@media (max-width: 1199px) { .editor-web .card { height: auto; min-height: 0; } .vista-marco { height: 70vh; } .editor-card .card-body { max-height: 60vh; } }
.barra-guardar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  background: #fff; border-top: 1px solid #dee2e6; padding: .75rem 1rem; margin: 0 -7.5px; box-shadow: 0 -4px 12px rgba(0,0,0,.06); }

/* Roles y permisos */
.permiso-fila { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid #f1f1f4; }
.permiso-fila:last-child { border-bottom: 0; }
.permiso-fila.oculto { opacity: .55; }
.permiso-mod { display: flex; align-items: flex-start; gap: .75rem; min-width: 220px; flex: 1; }
.permiso-mod > i { width: 20px; text-align: center; margin-top: 3px; }
.nivel-btn { background: #f4f4f7; color: #6c757d; border: 1px solid #e3e3ea; min-width: 78px; }
.nivel-btn input { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }
.nivel-btn.active.n0 { background: #6c757d; color: #fff; border-color: #6c757d; }
.nivel-btn.active.n1 { background: #17a2b8; color: #fff; border-color: #17a2b8; }
.nivel-btn.active.n2 { background: var(--lps-purple); color: #fff; border-color: var(--lps-purple); }
.nivel-btn.active.n3 { background: var(--lps-gold); color: var(--lps-night); border-color: var(--lps-gold); font-weight: 600; }
.nivel-btn.disabled { cursor: not-allowed; }
.nivel-chip { display: inline-block; min-width: 70px; text-align: center; border-radius: 3px; padding: 0 .4rem; margin-right: .3rem; color: #fff; font-size: .75rem; }
.nivel-chip.n0 { background: #6c757d; } .nivel-chip.n1 { background: #17a2b8; } .nivel-chip.n2 { background: var(--lps-purple); }
.nivel-chip.n3 { background: var(--lps-gold); color: var(--lps-night); }
.list-group-item.rol-item.active { background: var(--lps-purple); border-color: var(--lps-purple); }
.list-group-item.rol-item.active .text-muted, .list-group-item.rol-item.active .text-purple { color: rgba(255,255,255,.8) !important; }

/* Editor del menú */
.menu-editor .menu-fila { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #e9e9ef; border-radius: 6px; padding: .4rem .6rem; margin-bottom: .4rem; }
.menu-editor .menu-fila.oculto { background: #f7f7f9; opacity: .6; }
.menu-editor .menu-fila.arrastrando { opacity: .4; border-style: dashed; }
.menu-asa { cursor: grab; color: #adb5bd; padding: 0 .2rem; }
.menu-icono { width: 30px; height: 30px; border-radius: 6px; background: var(--lps-night, #1b0f2e); color: var(--lps-gold); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.menu-editor .m-nombre { flex: 2 1 150px; } .menu-editor .m-icono { flex: 1 1 110px; font-family: monospace; } .menu-editor .m-grupo { flex: 1 1 110px; }
.menu-flechas { white-space: nowrap; }
.menu-preview { background: #1b0f2e; border-radius: 8px; padding: .5rem; }
.menu-preview .nav-header { color: var(--lps-gold); font-size: .75rem; padding: .7rem .8rem .3rem; letter-spacing: .05em; }
.menu-preview .nav-link { color: #d8d0e6; padding: .45rem .8rem; }
.menu-preview .nav-link p { display: inline; margin: 0; }
.menu-preview .nav-icon { width: 1.6rem; }
@media (max-width: 767px) { .menu-editor .menu-fila { flex-wrap: wrap; } }

/* Menú lateral: el logo es más alto que la barra estándar de AdminLTE, así que el área del menú
   ocupa exactamente el espacio que queda y se puede desplazar hasta la última opción */
.layout-fixed .main-sidebar { display: flex; flex-direction: column; height: 100vh; }
.layout-fixed .main-sidebar .brand-link { flex: 0 0 auto; }
.layout-fixed .wrapper .main-sidebar .sidebar { flex: 1 1 auto; min-height: 0; height: auto !important; overflow-y: auto; padding-bottom: 1.5rem; }

/* Menú más compacto: las 13 opciones entran en una laptop (768 px) */
.main-sidebar .brand-link { padding: .55rem .5rem !important; }
.brand-logo-full { max-width: 118px; }
.nav-sidebar .nav-header { padding: .7rem 1rem .25rem !important; font-size: .68rem; }
.nav-sidebar > .nav-item > .nav-link { padding: .42rem .9rem; margin-bottom: 1px; }
.nav-sidebar > .nav-item > .nav-link p { font-size: .93rem; }
.sidebar nav.mt-3 { margin-top: .6rem !important; }
@media (max-height: 700px) {
  .nav-sidebar > .nav-item > .nav-link { padding: .32rem .9rem; }
  .nav-sidebar .nav-header { padding: .5rem 1rem .15rem !important; }
}

/* Botones morados siempre con letra blanca (en tarjetas los enlaces heredaban el morado) */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus, .btn-primary, .btn-primary:hover { color: #fff !important; }
/* Montos en una sola línea */
.table td.text-nowrap, .table .monto { white-space: nowrap; }

/* Ayuda: botón, panel lateral y manual */
.btn-ayuda { font-size: .8rem; padding: .2rem .65rem; border-radius: 999px; background: var(--lps-gold-soft); color: #7a5600; border: 1px solid rgba(224,164,42,.45); font-weight: 600; line-height: 1.4; }
.btn-ayuda:hover { background: var(--lps-gold); color: var(--lps-night); }
.menu-ayuda { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid rgba(252,197,55,.15); }
.ayuda-fondo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(23,10,43,.35); z-index: 1060; opacity: 0; visibility: hidden; transition: opacity .2s; }
.ayuda-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 94vw; background: #fff; z-index: 1061; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(23,10,43,.18); transform: translateX(105%); transition: transform .25s ease; }
.ayuda-abierta .ayuda-panel { transform: none; }
.ayuda-abierta .ayuda-fondo { opacity: 1; visibility: visible; }
.ayuda-cab { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.25rem; background: var(--lps-night); color: #fff; }
.ayuda-cab h5 { margin: .15rem 0 0; font-weight: 700; }
.ayuda-cab .close { color: #fff; opacity: .8; text-shadow: none; font-size: 1.8rem; }
.ayuda-tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lps-gold); }
.ayuda-cuerpo { flex: 1 1 auto; overflow-y: auto; padding: 1.1rem 1.25rem; }
.ayuda-pie { padding: .8rem 1.25rem; border-top: 1px solid #eee; font-size: .9rem; }
.ayuda-para { display: flex; gap: .7rem; background: #f6f0fc; border-radius: 8px; padding: .8rem .9rem; margin-bottom: 1.1rem; font-size: .92rem; }
.ayuda-para > i { color: var(--lps-purple); font-size: 1.2rem; margin-top: .15rem; }
.ayuda-proceso { margin-bottom: 1.1rem; }
.ayuda-proceso h6 { font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.ayuda-num { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--lps-purple); color: #fff; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.ayuda-proceso ol { padding-left: 2.2rem; margin: 0; font-size: .9rem; }
.ayuda-proceso li { margin-bottom: .3rem; }
.ayuda-ojo { background: var(--lps-gold-soft); border-left: 3px solid var(--lps-gold); border-radius: 6px; padding: .75rem .9rem; font-size: .88rem; }
.ayuda-ojo ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.manual-flujo { border: 1px solid #eee; border-radius: 10px; padding: 1rem 1.1rem; height: 100%; background: #fff; }
.manual-flujo h6 { font-weight: 700; }
.manual-flujo h6 i { color: var(--lps-purple); width: 22px; }
.manual-flujo ol { padding-left: 1.2rem; margin: 0; font-size: .9rem; }
.manual-indice .nav-link { color: #495057; padding: .35rem .75rem; border-radius: 6px; }
.manual-indice .nav-link:hover { background: #f6f0fc; }
.manual-modulo { scroll-margin-top: 70px; }
.manual-modulo .card-header .badge { font-weight: 500; }
@media (min-width: 992px) { .manual-indice { position: sticky; top: 70px; } }

/* ===== Galería de fotos y videos del evento ===== */
.gal-agregar { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.gal-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 150px; margin: 0;
  border: 2px dashed #b9a3dc; border-radius: 12px; background: #faf7fe; cursor: pointer; padding: 18px; transition: background .15s, border-color .15s; }
.gal-drop i { font-size: 2rem; color: #7b3fc4; }
.gal-drop b { color: #3c1d63; }
.gal-drop span { font-size: .8rem; color: #8a7aa6; }
.gal-drop:hover, .gal-drop.sobre { background: #f1e8fc; border-color: #7b3fc4; }
.gal-video { border: 1px solid #e6def2; border-radius: 12px; padding: 14px; background: #fff; }
.gal-video-tit { font-weight: 600; color: #3c1d63; margin-bottom: 8px; }
.gal-progreso { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: #f1e8fc; color: #5a189a; font-size: .9rem; }
.gal-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gal-item { border: 1px solid #e6def2; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.gal-item.oculto { opacity: .55; }
.gal-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: #1a0d26; overflow: hidden; }
.gal-thumb img, .gal-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-red { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, #5a189a, #2a0b4f); }
.gal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; }
.gal-tipo { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: .72rem; }
.gal-oculto { position: absolute; right: 6px; top: 6px; background: #c0392b; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: .72rem; }
.gal-tit { border: 0; border-top: 1px solid #efe9f7; border-radius: 0; font-size: .82rem; }
.gal-acciones { display: flex; justify-content: space-between; padding: 6px; gap: 4px; border-top: 1px solid #efe9f7; }
.gal-acciones .btn { flex: 1; padding: .15rem .3rem; font-size: .78rem; }
.gal-vacia { grid-column: 1 / -1; text-align: center; color: #9a8db3; padding: 30px 0; }
.gal-vacia i { font-size: 2.4rem; margin-bottom: 8px; }
@media (max-width: 767px) { .gal-agregar { grid-template-columns: 1fr; } .gal-grilla { grid-template-columns: repeat(2, 1fr); } }

/* ===== Historias de Instagram ===== */
.hist-vista { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; background: #160a24; border-radius: 12px; padding: 16px; }
.hist-c { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; flex: 0 0 78px; }
.hist-c small { color: #e9dcff; text-align: center; line-height: 1.2; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-c.oculto { opacity: .45; }
.hist-aro { width: 68px; height: 68px; border-radius: 50%; padding: 3px; display: grid; place-items: center;
  background: conic-gradient(#f2c14e, #e1306c, #9d4edd, #f2c14e); }
.hist-aro img, .hist-aro > i { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #160a24; object-fit: cover; background: #2a1150; }
.hist-aro > i { display: grid; place-items: center; color: #fff; font-size: 1.5rem; }
.hist-aro.mas { background: #4a2d6b; }
.hist-fila { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #efe9f7; }
.hist-fila .hist-c { background: #160a24; border-radius: 10px; padding: 8px 0 6px; }
.hist-datos { flex: 1; min-width: 0; }
@media (max-width: 575px) { .hist-fila { flex-wrap: wrap; } .hist-acc { width: 100%; } .hist-acc .btn { flex: 1; } }

/* ===== Avances «Muy pronto» ===== */
.av-previa { margin: -6px 0 14px; border-radius: 10px; overflow: hidden; background: #160a24; text-align: center; }
.av-previa img { max-width: 100%; max-height: 260px; }
.av-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.av-item { display: flex; flex-direction: column; gap: 8px; }
.av-item.oculto .av-img img { opacity: .4; filter: grayscale(.6); }
.av-img { position: relative; border-radius: 10px; overflow: hidden; background: #160a24; aspect-ratio: 1; }
.av-img img { width: 100%; height: 100%; object-fit: cover; }
.av-img .badge { position: absolute; top: 8px; left: 8px; }
.av-item .btn-group .btn { flex: 1; }

/* Textos e imágenes de la web: campo de imagen */
.campo-img { display: flex; gap: .75rem; align-items: center; margin-top: .35rem; }
.campo-img-ver { flex: 0 0 96px; height: 72px; border-radius: 6px; overflow: hidden; display: block; border: 1px solid #e3d7f2;
  background: repeating-conic-gradient(#efe9f6 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.campo-img-ver img { width: 100%; height: 100%; object-fit: contain; }

/* Funciones: filas exclusivas para socios */
.filas-socios { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .3rem; }
.fila-chip { margin: 0; cursor: pointer; }
.fila-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fila-chip span { display: inline-block; padding: .3rem .7rem; border-radius: 20px; border: 1px solid #d9cdea; font-size: .85rem; color: #5b4a73; background: #fff; transition: all .15s; }
.fila-chip input:checked + span { background: #f2c14e; border-color: #e0a92a; color: #2a1240; font-weight: 700; }
.fila-chip input:checked + span::before { content: '\f521'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 5px; font-size: .75rem; }
.fila-chip input:focus-visible + span { outline: 2px solid #7b2cbf; outline-offset: 2px; }

.carta-grupo { transition: box-shadow .3s, background .3s; border-radius: 8px; }
.carta-grupo.carta-foco { box-shadow: 0 0 0 3px #f2c14e; background: #fffbea; padding: 8px; }

/* Editor de la carta */
.carta-cab { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: .5rem; }
.carta-platos { max-height: 340px; overflow-y: auto; border: 1px solid #e6dcf3; border-radius: 8px; padding: 6px; background: #fbf9fe; }
.carta-plato { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; background: #fff; border: 1px solid #eee6f7; }
.carta-plato + .carta-plato { margin-top: 6px; }
.cp-num { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
  background: #f2c14e; color: #2a1240; }
.cp-campos { flex: 1; display: grid; gap: 4px; }
.cp-nombre { font-weight: 600; }
.cp-desc { color: #6c6380; }
.cp-acc .btn { padding: 0 .4rem; line-height: 1.2; font-size: .7rem; }
.carta-plato:first-child .cp-subir, .carta-plato:last-child .cp-bajar { visibility: hidden; }
.carta-pie-admin { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
