:root{--bg:#120e0b;--card:#211913;--gold:#d6a94e;--gold2:#f1d58a;--red:#a72c21;--cream:#f7f0e3;--muted:#c8bda9;--line:#4d3b29;--ok:#2f8451;--danger:#a5342b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at top,#3a291a 0,#17110d 34%,#0e0b09 100%);color:var(--cream);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.5}a{color:var(--gold2);text-decoration:none}img{max-width:100%;display:block}.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:rgba(14,11,9,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;flex-direction:column;color:#fff;font-weight:900;line-height:1}.brand span{font-size:.95rem}.brand small{color:var(--gold2);font-size:.7rem;margin-top:4px}.nav-toggle{border:1px solid var(--line);background:#281d15;color:#fff;border-radius:9px;padding:8px 12px;font-size:1.2rem}.topbar nav{display:none;position:absolute;top:100%;left:0;right:0;background:#17110f;padding:10px 14px;border-bottom:1px solid var(--line)}.topbar nav.open{display:grid;gap:8px}.topbar nav a{padding:10px;border-radius:8px;background:#241a14}.hero img{width:100%;aspect-ratio:3/1;object-fit:cover}.wrap{width:min(1120px,calc(100% - 24px));margin:auto}.section{padding:34px 0}.eyebrow{color:var(--gold2);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:.78rem}.section h1,.section h2{margin:.25rem 0 1rem;line-height:1.08}.section h1{font-size:clamp(2rem,8vw,4.8rem)}.section h2{font-size:clamp(1.7rem,6vw,3rem)}.lead{font-size:1.08rem;color:var(--muted)}.cta-row{display:grid;gap:10px;margin-top:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;padding:13px 16px;font-weight:850;cursor:pointer;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#261b0e;box-shadow:0 8px 24px #0005}.btn.secondary{background:#2b2018;color:#fff;border:1px solid var(--line)}.btn.danger{background:var(--danger);color:#fff}.btn.small{padding:8px 11px;font-size:.86rem}.panel,.card{background:linear-gradient(145deg,#2a2018,#1b1511);border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 35px #0007}.panel{padding:18px}.schedule{display:grid;gap:14px}.day{padding:18px}.day h3{margin:0 0 12px;color:var(--gold2);font-size:1.35rem}.timeline{display:grid;gap:10px}.timeline p{margin:0;padding-left:14px;border-left:3px solid var(--gold)}.products{display:grid;grid-template-columns:1fr;gap:16px}.product{overflow:hidden}.product img{width:100%;height:230px;object-fit:cover;background:#e4dccf}.product .body{padding:16px}.price{font-size:1.55rem;font-weight:950;color:var(--gold2)}.muted{color:var(--muted)}.form-card{width:min(720px,calc(100% - 24px));margin:28px auto;padding:20px}.field{display:grid;gap:6px;margin-bottom:14px}.field label{font-weight:750}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:#120e0b;color:#fff;font:inherit}.field textarea{min-height:110px;resize:vertical}.help{font-size:.85rem;color:var(--muted)}.flash{max-width:920px;margin:10px auto;padding:12px 16px;border-radius:10px;background:#273f31;border:1px solid #4e8a63}.flash.warning{background:#59451b}.flash.error{background:#59231f}.cart-table{width:100%;border-collapse:collapse}.cart-table th,.cart-table td{padding:10px 6px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.cart-table input,.cart-table select{max-width:110px;padding:8px;background:#110d0a;color:#fff;border:1px solid var(--line);border-radius:8px}.total{font-size:1.45rem;font-weight:900;text-align:right;margin-top:14px}.bank-grid{display:grid;gap:10px}.copy-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#17110d;border-radius:10px;border:1px solid var(--line)}.copy-row strong{overflow-wrap:anywhere}.copy-row button{white-space:nowrap}.order-card{padding:16px;margin-bottom:14px}.status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#56421c;color:#ffe7a1;font-size:.82rem;font-weight:800}.status.paid,.status.completed{background:#285f3b;color:#d7ffe4}.status.cancelled{background:#6e2923;color:#ffdcd7}footer{text-align:center;padding:35px 16px;border-top:1px solid var(--line);background:#0c0908}footer img{height:110px;width:auto;margin:0 auto;object-fit:contain}.admin-link{display:inline-flex;gap:5px;margin-top:20px;font-size:.72rem;color:#8d8375;opacity:.7}.admin-shell{display:grid;min-height:100vh}.admin-sidebar{background:#0d0a08;padding:16px;border-right:1px solid var(--line)}.admin-sidebar nav{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.admin-sidebar a{padding:10px;border-radius:8px;background:#211813}.admin-main{padding:18px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{padding:14px}.metric strong{display:block;font-size:1.25rem;color:var(--gold2)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.data-table{width:100%;border-collapse:collapse;min-width:780px;background:#17110d}.data-table th,.data-table td{padding:10px;border-bottom:1px solid #35291f;text-align:left;font-size:.9rem}.actions{display:flex;gap:6px;flex-wrap:wrap}.grid-2{display:grid;gap:16px}.hidden{display:none}@media(min-width:760px){.nav-toggle{display:none}.topbar nav{display:flex;position:static;background:none;padding:0;border:0;gap:6px}.topbar nav a{background:none}.cta-row{display:flex}.products{grid-template-columns:repeat(2,1fr)}.schedule{grid-template-columns:repeat(3,1fr)}.bank-grid{grid-template-columns:repeat(3,1fr)}.admin-shell{grid-template-columns:230px 1fr}.admin-sidebar{position:sticky;top:0;height:100vh}.admin-sidebar nav{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:1fr 1fr}.product img{height:310px}}@media print{.topbar,footer,.btn,.actions,.admin-sidebar{display:none!important}body{background:#fff;color:#000}.panel,.card{box-shadow:none;border:1px solid #ccc;background:#fff}.admin-shell{display:block}.admin-main{padding:0}.data-table{background:#fff;color:#000}.data-table th,.data-table td{border-color:#ccc}}

/* AVISO PRINCIPAL DE REGISTRO OBLIGATORIO */
.purchase-access{padding:18px 0 8px;background:linear-gradient(180deg,rgba(214,169,78,.16),rgba(14,11,9,0))}.purchase-access-box{display:grid;gap:14px;align-items:center;padding:20px;border:2px solid var(--gold);border-radius:18px;background:linear-gradient(145deg,#352719,#1b1410);box-shadow:0 16px 40px #0008,0 0 0 4px rgba(214,169,78,.08)}.purchase-access-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:var(--gold2);color:#211509;font-size:1.65rem;font-weight:950;box-shadow:0 8px 20px #0006}.purchase-access-copy h2{margin:.2rem 0 .55rem;font-size:clamp(1.55rem,6vw,2.35rem);line-height:1.05}.purchase-access-copy p{margin:0;color:#f0e6d6}.purchase-access-actions{display:grid;gap:10px}.register-main{font-size:1rem;min-height:52px;text-transform:uppercase;letter-spacing:.02em}.warning-box{border-color:#e6b54b}.success-box{border-color:#4b9c68}.success-box .purchase-access-icon{background:#4b9c68;color:#fff}
@media(min-width:760px){.purchase-access-box{grid-template-columns:auto 1fr auto;padding:24px}.purchase-access-actions{min-width:245px}.purchase-access-icon{width:64px;height:64px;font-size:1.9rem}}

/* Panel: paginación y herramientas de mantenimiento */
.pagination{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;margin:18px 0}
.pagination a,.pagination span{min-width:38px;padding:9px 11px;text-align:center;border:1px solid #5c4428;border-radius:9px;text-decoration:none}
.pagination a.active{background:#e7bd58;color:#21150b;font-weight:800}
.search-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.search-row .field{margin:0;flex:1;min-width:220px}
@media(max-width:720px){.search-row>*{width:100%}.pagination{justify-content:flex-start}.data-table{font-size:.92rem}}

.btn.whatsapp{background:#25D366;color:#082b16;border:1px solid #58e58a;box-shadow:0 8px 20px #0005}.btn.whatsapp:hover{filter:brightness(1.06)}


/* Estados visuales de pedidos: mejora de lectura y revisión de comprobantes */
.order-status-box{display:grid;gap:6px;margin-bottom:10px;padding:10px;border:1px solid;border-radius:11px;background:#18120e}
.order-status-box small{line-height:1.35;color:#eadfce}
.order-status-badge{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:.76rem;font-weight:900;letter-spacing:.025em;border:1px solid transparent;white-space:normal}
.order-status-badge.pending_payment,.order-status-box.pending_payment{border-color:#d9a928}.order-status-badge.pending_payment{background:#5b4612;color:#fff1aa}
.order-status-badge.payment_sent,.order-status-box.payment_sent{border-color:#3d9be8}.order-status-badge.payment_sent{background:#123f68;color:#d9efff}
.order-status-badge.paid,.order-status-box.paid{border-color:#38a765}.order-status-badge.paid{background:#14512e;color:#d9ffe7}
.order-status-badge.completed,.order-status-box.completed{border-color:#8c73e6}.order-status-badge.completed{background:#392a73;color:#eee8ff}
.order-status-badge.cancelled,.order-status-box.cancelled{border-color:#db5b50}.order-status-badge.cancelled{background:#6a211c;color:#ffe2df}
.review-alert{display:block;color:#ffb34c;font-size:.78rem;letter-spacing:.035em;line-height:1.3}
.status-form{display:grid;gap:6px}.status-select{border-width:2px!important;font-weight:800}.status-select.pending_payment{border-color:#d9a928!important}.status-select.payment_sent{border-color:#3d9be8!important}.status-select.paid{border-color:#38a765!important}.status-select.completed{border-color:#8c73e6!important}.status-select.cancelled{border-color:#db5b50!important}
.receipt-review-state{display:grid;gap:8px;align-items:start;margin:10px 0 14px;padding:12px;border:1px solid #3d9be8;border-radius:12px;background:#10273a}.receipt-review-state small{color:#d9efff}


/* Crédito profesional Cruzando Caminos */
.developer-credit{width:min(560px,calc(100% - 28px));margin:24px auto 10px;padding:12px 16px;border:1px solid rgba(214,169,78,.38);border-radius:16px;background:rgba(14,11,9,.72);box-shadow:0 10px 28px rgba(0,0,0,.28)}
.developer-credit a{display:flex;align-items:center;justify-content:center;gap:13px;color:var(--cream);text-align:left}
.developer-credit img{width:62px;height:62px;object-fit:contain;border-radius:10px;background:#fff;padding:3px;flex:0 0 auto}
.developer-credit span{display:grid;gap:2px}
.developer-credit strong{font-size:.92rem;line-height:1.25;color:#fff}
.developer-credit small{font-size:.8rem;color:var(--gold2);overflow-wrap:anywhere}
.developer-credit a:hover strong,.developer-credit a:focus-visible strong{color:var(--gold2)}
.developer-credit-admin{margin:32px auto 18px}
.developer-credit-login{margin:22px auto;width:min(520px,calc(100% - 24px))}
@media(max-width:520px){
 .developer-credit{padding:10px 12px}
 .developer-credit img{width:52px;height:52px}
 .developer-credit strong{font-size:.82rem}
 .developer-credit small{font-size:.74rem}
}


/* Estado ENTRADA SIN CARGO */
.order-status-badge.free_entry,.order-status-box.free_entry{border-color:#b68cff}
.order-status-badge.free_entry{background:#4a2d70;color:#f4eaff}
.status-select.free_entry{border-color:#b68cff!important}
.status.free_entry{background:#4a2d70;color:#f4eaff}
.free-entry-note{display:inline-block;margin-top:5px;color:#d8b9ff;font-weight:750;line-height:1.35}


/* AJUSTE FINAL: ENTRADA SIN CARGO en rojo intenso y texto blanco */
.order-status-badge.free_entry,
.order-status-box.free_entry{
  background:#a80000!important;
  color:#ffffff!important;
  border-color:#ff4d4d!important;
  box-shadow:0 0 0 2px rgba(255,77,77,.18),0 8px 22px rgba(168,0,0,.30)!important;
}
.order-status-badge.free_entry{
  background:#d10000!important;
  color:#ffffff!important;
  font-weight:900!important;
}
.status-select.free_entry{
  background:#a80000!important;
  color:#ffffff!important;
  border-color:#ff4d4d!important;
  font-weight:900!important;
}
.status.free_entry{
  background:#d10000!important;
  color:#ffffff!important;
  border:1px solid #ff6b6b!important;
  font-weight:900!important;
}
.free-entry-note{
  background:#a80000!important;
  color:#ffffff!important;
  border:1px solid #ff4d4d!important;
  font-weight:900!important;
}


/* CHECK-IN DEL EVENTO */
.checkin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.checkin-heading h1{margin-bottom:4px}
.checkin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.checkin-card{display:grid;gap:6px;padding:16px;border:1px solid #71532c;border-radius:14px;background:#21170f;color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.checkin-card span{font-size:.82rem;color:#e9d8b0;font-weight:700}
.checkin-card strong{font-size:1.8rem;color:#fff}
.checkin-card.entered{border-color:#2ac76f;background:#12391f}
.checkin-card.pending{border-color:#e9bd56;background:#49350f}
.checkin-card.free{border-color:#ff4d4d;background:#a80000}
.checkin-filters{margin-bottom:14px;flex-wrap:wrap}
.checkin-type{display:inline-block;padding:5px 9px;border-radius:999px;background:#193d61;color:#dff3ff;border:1px solid #2c8bd1;font-weight:900;font-size:.76rem}
.checkin-done{display:grid;gap:3px;padding:8px 10px;margin-bottom:7px;border-radius:9px;background:#0f6f39;color:#fff}
.checkin-done small{color:#e1ffe9}
.checkin-enter-btn{background:#0b9e4b!important;color:#fff!important;border-color:#39d77c!important;font-weight:900!important;min-width:118px}
.checkin-entered-row{background:rgba(16,105,53,.12)}
.checkin-table td{vertical-align:middle}
.empty-state{padding:25px;text-align:center;color:#d8c7a4}
.btn.tiny{padding:6px 9px;font-size:.7rem}
@media(max-width:1000px){
  .checkin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkin-table-wrap{overflow-x:auto}
  .checkin-table{min-width:920px}
}
@media(max-width:680px){
  .checkin-heading{align-items:stretch;flex-direction:column}
  .checkin-summary{grid-template-columns:1fr 1fr}
  .checkin-card{padding:12px}
  .checkin-card strong{font-size:1.45rem}
}


/* CHECK-IN: cabecera fija y desplazamiento exclusivo de la lista */
.checkin-screen{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.checkin-fixed-area{
  flex:0 0 auto;
  position:relative;
  z-index:20;
  padding-bottom:2px;
  background:linear-gradient(180deg,#2b1b10 0%,#1b130e 92%,rgba(27,19,14,.96) 100%);
}
.checkin-list-area{
  display:flex;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
}
.checkin-list-area .checkin-table-wrap{
  flex:1 1 auto;
  min-height:180px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.checkin-table thead{
  position:sticky;
  top:0;
  z-index:12;
}
.checkin-table thead th{
  position:sticky;
  top:0;
  z-index:13;
  background:#17110d;
  box-shadow:0 2px 0 #5a4026,0 5px 12px rgba(0,0,0,.38);
}
.checkin-list-area .pagination{
  flex:0 0 auto;
  margin:8px 0 0;
  padding:7px 0 2px;
  background:#1b130e;
}

/* En computadora, toda la pantalla de CHECK-IN queda inmóvil:
   únicamente se desplaza el listado de personas. */
@media (min-width:900px) and (min-height:650px){
  body.checkin-page{
    overflow:hidden;
  }
  body.checkin-page .admin-shell{
    height:100vh;
    min-height:0;
    overflow:hidden;
  }
  body.checkin-page .admin-main{
    height:100vh;
    min-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  body.checkin-page .checkin-screen{
    flex:1 1 auto;
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  body.checkin-page .developer-credit-admin{
    display:none;
  }
}

/* En pantallas pequeñas se conserva la usabilidad normal,
   manteniendo fijos los títulos de las columnas dentro de la tabla. */
@media (max-width:899px), (max-height:649px){
  .checkin-screen{
    display:block;
  }
  .checkin-fixed-area{
    position:sticky;
    top:0;
    z-index:20;
  }
  .checkin-list-area .checkin-table-wrap{
    max-height:62vh;
  }
}

/* Herramientas universales para listas del panel */
.admin-list-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid #5b4025;border-radius:13px;background:#1d150f}
.admin-list-tools .help{margin-left:auto;color:#dfcca7}
.inline-index-form{display:flex;align-items:center;gap:8px;margin-left:auto}
.inline-index-form select{min-width:210px}
.product-index-table{margin-bottom:20px}
@media(max-width:760px){.admin-list-tools,.inline-index-form{align-items:stretch;flex-direction:column}.admin-list-tools .help,.inline-index-form{margin-left:0}.admin-list-tools .btn,.inline-index-form select{width:100%}}


/* BACKUP COMPLETO DEL SISTEMA */
.backup-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.backup-status-card{
  display:grid;
  gap:6px;
  padding:16px;
  border:1px solid #654825;
  border-radius:14px;
  background:#201710;
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}
.backup-status-card.ok{border-color:#279a58;background:#12341f}
.backup-status-card span{font-weight:850;color:#f1d486}
.backup-status-card strong{font-size:1.65rem;color:#fff}
.backup-status-card small{color:#d7c6a6;line-height:1.35}
.backup-primary-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  border:1px solid #d5a84d;
  box-shadow:0 0 0 2px rgba(213,168,77,.10),0 12px 28px rgba(0,0,0,.28);
}
.backup-primary-panel>div{max-width:760px}
.backup-generate-button{
  min-width:250px;
  min-height:58px;
  font-size:1rem!important;
  font-weight:950!important;
  background:#0b9e4b!important;
  border-color:#42dc83!important;
  color:#fff!important;
}
.backup-warning{
  margin-top:12px;
  padding:11px 13px;
  border-radius:10px;
  border:1px solid #e0b54f;
  background:#4b350e;
  color:#fff1c5;
  font-weight:700;
}
.backup-actions-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:18px 0;
}
.backup-content-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.backup-content-list span{
  padding:10px 12px;
  border:1px solid #4c713e;
  border-radius:10px;
  background:#18301b;
  color:#e9ffe9;
  font-weight:750;
}
@media(max-width:980px){
  .backup-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .backup-primary-panel{align-items:stretch;flex-direction:column}
  .backup-generate-button{width:100%;min-width:0}
}
@media(max-width:700px){
  .backup-actions-grid{grid-template-columns:1fr}
  .backup-content-list{grid-template-columns:1fr}
}
@media(max-width:520px){
  .backup-status-grid{grid-template-columns:1fr}
}


/* ==========================================================
   ADMIN NIVEL DIOS Y PERMISOS GRANULARES
   ========================================================== */
.god-login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 15%,rgba(194,36,36,.25),transparent 32%),
    linear-gradient(145deg,#090606,#1d0b0b 55%,#080606);
}
.god-login-card{
  border:1px solid #ef4b4b!important;
  box-shadow:0 0 0 3px rgba(239,75,75,.12),0 24px 70px rgba(0,0,0,.58)!important;
}
.god-seal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 13px;
  border-radius:999px;
  background:#b30000;
  border:1px solid #ff5c5c;
  color:#fff;
  font-weight:950;
  letter-spacing:.08em;
  box-shadow:0 8px 24px rgba(179,0,0,.35);
}
.god-button{
  background:#b30000!important;
  color:#fff!important;
  border-color:#ff5c5c!important;
  font-weight:950!important;
}
.god-menu-link{
  background:#9d0000!important;
  color:#fff!important;
  border:1px solid #ff5757!important;
  font-weight:950!important;
}
.god-panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}
.god-panel-heading h1{margin-top:10px}
.god-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin:18px 0;
}
.god-summary-card{
  padding:17px;
  border-radius:14px;
  background:#381010;
  border:1px solid #a93434;
  display:grid;
  gap:7px;
  box-shadow:0 10px 26px rgba(0,0,0,.24);
}
.god-summary-card.active{
  background:#12341e;
  border-color:#2cb765;
}
.god-summary-card span{
  color:#f3d5d5;
  font-weight:750;
}
.god-summary-card strong{
  font-size:1.9rem;
  color:#fff;
}
.god-tools-grid,
.permission-tool-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:17px 0;
}
.god-tool-card,
.permission-tool-card{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid #694b2b;
  border-radius:13px;
  background:#21170f;
  color:#fff;
  min-height:126px;
  box-shadow:0 8px 22px rgba(0,0,0,.20);
}
.god-tool-card{
  border-color:#9f3838;
  background:#321010;
}
.god-tool-card strong,
.permission-tool-card strong{
  color:#fff;
  font-size:1rem;
}
.god-tool-card span,
.permission-tool-card span{
  color:#decdb0;
  line-height:1.4;
  font-size:.84rem;
}
.permission-tool-card small{
  color:#f0bf59;
  font-weight:850;
}
.permission-selector{
  margin:18px 0;
  padding:16px;
  border-radius:14px;
  border:1px solid #704f2b;
  background:#17100c;
}
.permission-selector-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:13px;
}
.permission-selector-head h3{margin:0 0 5px}
.permission-selector-head p{margin:0;color:#cdbb9d}
.permission-checkbox-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.permission-checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border:1px solid #654827;
  border-radius:11px;
  background:#241910;
  cursor:pointer;
}
.permission-checkbox:has(input:checked){
  border-color:#35b86d;
  background:#14321f;
}
.permission-checkbox input{
  width:20px;
  height:20px;
  margin-top:2px;
}
.permission-checkbox span{
  display:grid;
  gap:3px;
}
.permission-checkbox strong{color:#fff}
.permission-checkbox small{color:#cbb99c;line-height:1.35}
.permission-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.permission-tags span{
  display:inline-block;
  padding:4px 7px;
  border-radius:999px;
  background:#173d26;
  border:1px solid #2ca965;
  color:#e5fff0;
  font-size:.7rem;
  font-weight:800;
}
.no-permission-badge{
  display:inline-block;
  padding:5px 8px;
  border-radius:8px;
  color:#fff;
  background:#a60000;
  border:1px solid #ff5656;
}
.no-permissions-panel{
  max-width:720px;
  text-align:center;
  padding:35px!important;
  border-color:#9a3333!important;
}
.no-permissions-icon{
  font-size:3rem;
  margin-bottom:8px;
}
.admin-welcome{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
@media(max-width:1100px){
  .god-tools-grid,.permission-tool-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .god-summary-grid{grid-template-columns:1fr}
  .god-tools-grid,.permission-tool-grid{grid-template-columns:1fr}
  .permission-checkbox-grid{grid-template-columns:1fr}
  .permission-selector-head{flex-direction:column}
}


/* ============================================================
   ETAPA 1 — DASHBOARD EJECUTIVO
   ============================================================ */
.executive-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin-bottom:18px;
}
.executive-heading h1{
  margin:.25rem 0 .35rem;
  font-size:clamp(2rem,4vw,3.15rem);
}
.executive-heading p{margin:0;color:#d5c5aa}
.executive-eyebrow{
  display:block;
  color:#f2cc73;
  font-size:.73rem;
  letter-spacing:.14em;
  font-weight:900;
}
.executive-heading-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.executive-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.executive-kpi{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:5px;
  min-height:132px;
  padding:16px;
  border:1px solid #664925;
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0,rgba(216,171,76,.15),transparent 44%),
    linear-gradient(145deg,#2a1e15,#18110d);
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}
.executive-kpi::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:#d6a94e;
}
.executive-kpi span{
  color:#e2d2b5;
  font-size:.78rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.executive-kpi strong{
  color:#fff;
  font-size:clamp(1.45rem,2.5vw,2.15rem);
  line-height:1.08;
}
.executive-kpi small{color:#bea98b;line-height:1.35}
.executive-kpi-main{
  border-color:#32a964;
  background:
    radial-gradient(circle at 100% 0,rgba(56,176,104,.22),transparent 45%),
    linear-gradient(145deg,#173b23,#101b14);
}
.executive-kpi-main::after{background:#35bc70}
.executive-kpi-warning{
  border-color:#dd9b32;
  background:
    radial-gradient(circle at 100% 0,rgba(231,164,52,.22),transparent 45%),
    linear-gradient(145deg,#483310,#20170d);
}
.executive-kpi-warning::after{background:#f2b94e}
.executive-grid{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}
.executive-grid-main{grid-template-columns:minmax(0,2fr) minmax(290px,.85fr)}
.executive-grid-secondary{grid-template-columns:1fr 1fr}
.executive-section-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:15px;
}
.executive-section-title span{
  display:block;
  color:#ddb85f;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.12em;
}
.executive-section-title h2{
  margin:3px 0 0;
  font-size:1.25rem;
  color:#fff;
}
.executive-section-title>strong{
  color:#f2d47f;
  font-size:1.15rem;
}
.executive-chart-panel{min-height:370px}
.executive-bars{
  height:280px;
  display:grid;
  grid-template-columns:repeat(14,minmax(18px,1fr));
  align-items:end;
  gap:7px;
  padding:12px 4px 0;
  border-bottom:1px solid #59422a;
}
.executive-bar-column{
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr auto auto;
  align-items:end;
  gap:4px;
  min-width:0;
}
.executive-bar-value{
  opacity:0;
  visibility:hidden;
  position:absolute;
  z-index:9;
  padding:6px 8px;
  border-radius:8px;
  background:#090706;
  border:1px solid #806039;
  color:#fff;
  font-size:.68rem;
  white-space:nowrap;
  pointer-events:none;
  transform:translateY(-4px);
}
.executive-bar-column:hover .executive-bar-value{
  opacity:1;
  visibility:visible;
}
.executive-bar-track{
  position:relative;
  width:100%;
  height:100%;
  min-height:90px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  border-radius:7px 7px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.015),rgba(214,169,78,.055));
}
.executive-bar-fill{
  width:min(30px,72%);
  min-height:3px;
  border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg,#f4d783,#bb7d25);
  box-shadow:0 0 14px rgba(224,173,73,.30);
  transition:height .35s ease;
}
.executive-bar-column strong{
  color:#e9d8ba;
  font-size:.62rem;
  text-align:center;
  white-space:nowrap;
}
.executive-bar-column small{
  color:#8f806c;
  font-size:.58rem;
  text-align:center;
}
.executive-checkin-panel{
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.executive-checkin-ring{
  --progress:0;
  width:190px;
  height:190px;
  margin:6px auto 20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(#34b86c calc(var(--progress) * 3.6),#34271d 0);
  box-shadow:0 0 0 1px #5b452c,0 16px 34px rgba(0,0,0,.32);
}
.executive-checkin-ring::before{
  content:"";
  grid-area:1/1;
  width:142px;
  height:142px;
  border-radius:50%;
  background:#18110d;
  border:1px solid #51402d;
}
.executive-checkin-ring>div{
  grid-area:1/1;
  z-index:2;
  display:grid;
  text-align:center;
}
.executive-checkin-ring strong{
  color:#fff;
  font-size:2.2rem;
  line-height:1;
}
.executive-checkin-ring span{
  color:#b9a88d;
  font-size:.78rem;
  text-transform:uppercase;
  font-weight:850;
}
.executive-checkin-numbers{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-bottom:14px;
}
.executive-checkin-numbers div{
  display:grid;
  gap:2px;
  padding:10px 7px;
  text-align:center;
  border:1px solid #523d27;
  border-radius:9px;
  background:#17100c;
}
.executive-checkin-numbers strong{color:#fff;font-size:1.2rem}
.executive-checkin-numbers span{color:#aa997e;font-size:.67rem}
.executive-status-list{display:grid;gap:12px}
.executive-status-row{
  display:grid;
  grid-template-columns:minmax(125px,auto) 1fr 34px;
  align-items:center;
  gap:10px;
}
.executive-status-row>div:first-child{
  display:flex;
  align-items:center;
  gap:8px;
}
.executive-status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#aaa;
}
.executive-status-dot.paid{background:#2cbb68}
.executive-status-dot.free{background:#e43838}
.executive-status-dot.review{background:#349ce5}
.executive-status-dot.pending{background:#d9aa35}
.executive-status-dot.cancelled{background:#93423a}
.executive-status-progress{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#100c09;
  border:1px solid #443321;
}
.executive-status-progress span{
  display:block;
  height:100%;
  min-width:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#c28c32,#edce76);
}
.executive-status-row b{text-align:right;color:#fff}
.executive-small-summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid #4a3725;
  color:#cbb99b;
  font-size:.82rem;
}
.executive-location-list{display:grid;gap:10px}
.executive-location-row{
  display:grid;
  grid-template-columns:25px 1fr 36px;
  gap:9px;
  align-items:center;
}
.executive-location-row>b{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#44301b;
  color:#f1ce76;
  font-size:.72rem;
}
.executive-location-row>div{
  display:grid;
  gap:5px;
}
.executive-location-row strong{color:#fff;font-size:.82rem}
.executive-location-row span{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#100c09;
  border:1px solid #493620;
}
.executive-location-row i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#3f9c63,#78d297);
}
.executive-location-row em{
  color:#f1d387;
  font-style:normal;
  font-weight:900;
  text-align:right;
}
.executive-alert-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
}
.executive-alert{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:13px;
  padding:14px;
  border-radius:12px;
  border:1px solid #69502f;
  background:#21170f;
}
.executive-alert strong{color:#fff}
.executive-alert p{margin:4px 0 0;color:#cfbea0;font-size:.83rem}
.executive-alert.blue{border-color:#368ed1;background:#10283b}
.executive-alert.yellow{border-color:#d3a330;background:#49350f}
.executive-alert.green{border-color:#329b5e;background:#12311d}
.executive-latest-panel{margin-top:16px}
.executive-latest-table{min-width:760px}
.executive-footnote{
  margin:15px 0 5px;
  padding:11px 13px;
  border-left:4px solid #d6a94e;
  background:#21170f;
  color:#cfbea3;
  font-size:.8rem;
}
@media(max-width:1250px){
  .executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .executive-grid-main{grid-template-columns:1fr}
  .executive-checkin-panel{max-width:none}
  .executive-alert-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .executive-grid-secondary{grid-template-columns:1fr}
  .executive-heading{flex-direction:column}
  .executive-bars{gap:4px;overflow-x:auto}
  .executive-bar-column{min-width:30px}
}
@media(max-width:600px){
  .executive-kpis{grid-template-columns:1fr}
  .executive-heading-actions{width:100%}
  .executive-heading-actions .btn{flex:1}
  .executive-chart-panel{overflow:hidden}
  .executive-bars{
    grid-template-columns:repeat(14,32px);
    overflow-x:auto;
    justify-content:start;
  }
  .executive-checkin-numbers{grid-template-columns:1fr}
  .executive-status-row{
    grid-template-columns:minmax(105px,auto) 1fr 28px;
    font-size:.8rem;
  }
}
