:root{
  --bg:#f7f3ec;
  --bg-soft:#fffaf3;
  --card:#ffffff;
  --card-soft:#fff7ea;
  --text:#1f2933;
  --muted:#6b7280;
  --line:rgba(120,90,50,.18);
  --primary:#d89b28;
  --secondary:#2f6f73;
  --primary-soft:#fff1cf;
  --shadow:0 18px 45px rgba(80,55,20,.10);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216,155,40,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(47,111,115,.14), transparent 34%),
    linear-gradient(180deg,#fffaf3 0%,#f7f3ec 55%,#f3efe7 100%);
  color:var(--text);
}

a{
  color:inherit;
}

.container{
  width:min(1150px,92%);
  margin:auto;
}

/* =========================
   NAV / HEADER PUBLICO
========================= */

.nav{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,250,243,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav-in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
}

.brand{
  font-weight:900;
  font-size:20px;
  letter-spacing:.2px;
  color:#1f2933;
}

.brand span{
  color:var(--primary);
}

.nav-links{
  display:flex;
  gap:18px;
  font-size:14px;
}

.nav-links a{
  text-decoration:none;
  color:#4b5563;
  font-weight:700;
}

.nav-links a:hover{
  color:var(--primary);
}

/* =========================
   HERO PUBLICO
========================= */

.hero{
  padding:80px 0 58px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:36px;
  align-items:center;
}

.badge{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:var(--primary-soft);
  color:#8a5a00;
  font-weight:900;
  font-size:13px;
  border:1px solid rgba(216,155,40,.35);
}

h1{
  font-size:clamp(34px,6vw,62px);
  line-height:1.04;
  margin:18px 0 14px;
  color:#1f2933;
}

.lead{
  font-size:18px;
  color:#4b5563;
  max-width:620px;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:25px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 20px;
  border-radius:16px;
  font-weight:900;
  text-decoration:none;
  border:0;
  cursor:pointer;
  transition:.18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),#ffe7a6);
  color:#2b1d00;
  box-shadow:0 14px 34px rgba(216,155,40,.25);
}

.btn-dark{
  background:#ffffff;
  color:#334155;
  border:1px solid var(--line);
  box-shadow:0 8px 22px rgba(80,55,20,.08);
}

.mock{
  background:rgba(255,255,255,.70);
  border:1px solid var(--line);
  border-radius:30px;
  padding:18px;
  box-shadow:var(--shadow);
}

.mock-card{
  border-radius:24px;
  min-height:360px;
  background:linear-gradient(135deg,rgba(216,155,40,.22),rgba(47,111,115,.18));
  display:flex;
  align-items:end;
  padding:24px;
  overflow:hidden;
}

.mock-panel{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.45);
  border-radius:22px;
  padding:18px;
  width:100%;
  color:#1f2933;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.mock-panel p{
  color:#4b5563;
}

/* =========================
   SECCIONES PUBLICAS
========================= */

.section{
  padding:58px 0;
}

.section h2{
  font-size:clamp(28px,4vw,42px);
  margin:0 0 14px;
  text-align:center;
  color:#1f2933;
}

.section p.center{
  color:var(--muted);
  text-align:center;
  margin:0 auto 32px;
  max-width:760px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}

.icon{
  font-size:34px;
  margin-bottom:10px;
}

.card h3{
  margin:0 0 8px;
  color:#1f2933;
}

.card p{
  color:#5b6472;
  margin:0;
}

.info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.footer{
  padding:30px 0;
  border-top:1px solid var(--line);
  color:#6b7280;
  text-align:center;
  background:rgba(255,250,243,.75);
}

.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#25d366;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:28px;
  box-shadow:0 18px 45px rgba(37,211,102,.35);
  z-index:30;
}

/* =========================
   PANEL ADMIN
========================= */

.admin-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:100vh;
}

.sidebar{
  background:linear-gradient(180deg,#fff7ea,#f3eadc);
  border-right:1px solid var(--line);
  padding:20px;
  position:sticky;
  top:0;
  height:100vh;
  box-shadow:8px 0 25px rgba(80,55,20,.06);
}

.sidebar .brand{
  margin-bottom:14px;
}

.sidebar p{
  color:#6b7280 !important;
}

.sidebar a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#374151;
  margin:6px 0;
  font-weight:800;
}

.sidebar a:hover{
  background:rgba(216,155,40,.14);
  color:#8a5a00;
}

.main{
  padding:24px;
}

.main h1{
  color:#1f2933;
}

.table-wrap{
  overflow:auto;
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th,td{
  padding:14px;
  border-bottom:1px solid var(--line);
  text-align:left;
  color:#1f2933;
}

th{
  color:#8a5a00;
  font-size:13px;
  background:#fff4dc;
}

.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.full{
  grid-column:1/-1;
}

label{
  color:#374151;
  font-weight:800;
  margin-bottom:6px;
  display:block;
}

input,
textarea,
select{
  width:100%;
  padding:13px 14px;
  background:#ffffff;
  color:#1f2933;
  border:1px solid rgba(120,90,50,.20);
  border-radius:14px;
  outline:none;
}

input:focus,
textarea:focus,
select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(216,155,40,.14);
}

input[type="color"]{
  height:46px;
  padding:5px;
}

input[type="file"]{
  background:#fffaf3;
}

textarea{
  min-height:110px;
}

small{
  color:#6b7280 !important;
}

/* =========================
   LOGIN
========================= */

.login{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}

.login-card{
  width:min(430px,100%);
  background:rgba(255,255,255,.90);
  border:1px solid var(--line);
  border-radius:26px;
  padding:26px;
  box-shadow:var(--shadow);
}

.login-card h2{
  color:#1f2933;
}

.alert{
  padding:14px;
  border-radius:14px;
  background:#fff1cf;
  border:1px solid rgba(216,155,40,.35);
  color:#7a4d00;
  margin-bottom:14px;
}

/* =========================
   LOGO PUBLICO
========================= */

.public-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  font-size:18px;
  color:#1f2933;
}

.public-brand img{
  width:46px;
  height:46px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}

.hero-logo-mobile{
  display:none;
  margin-bottom:14px;
}

.hero-logo-mobile img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}

/* =========================
   RESPONSIVE CELULAR
========================= */

@media(max-width:850px){

  body{
    background:
      radial-gradient(circle at top, rgba(216,155,40,.16), transparent 32%),
      linear-gradient(180deg,#fffaf3,#f7f3ec);
  }

  .nav-links{
    display:none;
  }

  .hero{
    grid-template-columns:1fr;
    padding-top:45px;
    gap:24px;
  }

  h1{
    font-size:clamp(34px,12vw,48px);
  }

  .lead{
    font-size:16px;
  }

  .grid,
  .info,
  .form{
    grid-template-columns:1fr;
  }

  .admin-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    height:auto;
    display:block;
    padding:14px;
  }

  .sidebar a{
    display:inline-flex;
    margin:4px;
    padding:10px 12px;
    font-size:14px;
  }

  .main{
    padding:16px;
  }

  .mock-card{
    min-height:260px;
  }

  .public-brand img{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .public-brand{
    font-size:15px;
  }

  .hero-logo-mobile{
    display:block;
  }

  .btn{
    width:100%;
  }

  .actions{
    gap:10px;
  }

  table{
    min-width:680px;
  }
}



/* =========================
   MODO OSCURO / CLARO
========================= */

html[data-theme="dark"]{
  --bg:#070b14;
  --bg-soft:#0b1220;
  --card:#111827;
  --card-soft:#101827;
  --text:#f8fafc;
  --muted:#a7b0c0;
  --line:rgba(255,255,255,.12);
  --primary:#00e5ff;
  --secondary:#ffb000;
  --primary-soft:rgba(0,229,255,.12);
  --shadow:0 20px 60px rgba(0,0,0,.28);
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top,#13233b,#070b14 55%),
    linear-gradient(180deg,#070b14,#050814);
  color:var(--text);
}

html[data-theme="dark"] .nav{
  background:rgba(7,11,20,.88);
  border-bottom:1px solid var(--line);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .public-brand,
html[data-theme="dark"] h1,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .main h1,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] label,
html[data-theme="dark"] .login-card h2{
  color:#f8fafc;
}

html[data-theme="dark"] .nav-links a{
  color:#d1d5db;
}

html[data-theme="dark"] .lead,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .mock-panel p,
html[data-theme="dark"] .section p.center{
  color:#cbd5e1;
}

html[data-theme="dark"] .badge{
  background:rgba(0,229,255,.12);
  color:#67e8f9;
  border:1px solid rgba(0,229,255,.25);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .login-card{
  background:rgba(16,24,39,.88);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

html[data-theme="dark"] .mock{
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.04));
  border:1px solid var(--line);
}

html[data-theme="dark"] .mock-card{
  background:linear-gradient(135deg,rgba(0,229,255,.18),rgba(255,176,0,.14));
}

html[data-theme="dark"] .mock-panel{
  background:rgba(7,11,20,.78);
  border:1px solid var(--line);
  color:#f8fafc;
}

html[data-theme="dark"] .btn-primary{
  background:linear-gradient(135deg,var(--primary),#ffffff);
  color:#001018;
  box-shadow:0 15px 40px rgba(0,229,255,.18);
}

html[data-theme="dark"] .btn-dark{
  background:rgba(255,255,255,.08);
  color:#f8fafc;
  border:1px solid var(--line);
  box-shadow:none;
}

html[data-theme="dark"] .sidebar{
  background:#060914;
  border-right:1px solid var(--line);
}

html[data-theme="dark"] .sidebar p{
  color:#9ca3af !important;
}

html[data-theme="dark"] .sidebar a{
  color:#cbd5e1;
}

html[data-theme="dark"] .sidebar a:hover{
  background:rgba(0,229,255,.10);
  color:white;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
  background:#0b1220;
  color:white;
  border:1px solid var(--line);
}

html[data-theme="dark"] input[type="file"]{
  background:#0b1220;
}

html[data-theme="dark"] th{
  background:#111827;
  color:#67e8f9;
}

html[data-theme="dark"] .footer{
  background:#070b14;
  color:#9ca3af;
}

html[data-theme="dark"] .alert{
  background:rgba(255,176,0,.13);
  border:1px solid rgba(255,176,0,.25);
  color:#ffd27a;
}

/* BOTÓN CAMBIO DE TEMA */

.theme-toggle{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:20px;
  box-shadow:0 10px 24px rgba(80,55,20,.10);
  transition:.18s ease;
}

.theme-toggle:hover{
  transform:translateY(-1px);
}

html[data-theme="dark"] .theme-toggle{
  background:rgba(255,255,255,.08);
  color:white;
  box-shadow:none;
}
/* =========================
   FIX BOTÓN TEMA EN CELULAR
========================= */

@media(max-width:850px){

  .nav .nav-links{
    display:none;
  }

  .nav .theme-toggle{
    display:inline-flex !important;
    width:40px;
    height:40px;
    font-size:18px;
    flex-shrink:0;
  }

}

/* =========================
   BOTÓN TEMA SIDEBAR ADMIN
========================= */

.sidebar-theme-box{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:22px 0 20px;
  padding:10px 0;
}

.sidebar-theme-box .theme-toggle{
  margin:0 auto;
  width:46px;
  height:46px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}


/* FIX FINAL BOTÓN TEMA ALINEADO CON MENÚ ADMIN */
.sidebar-theme-box{
  width:120px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:24px 0 24px 0 !important;
  padding:8px 14px !important;
  text-align:center !important;
}

.sidebar-theme-box .theme-toggle{
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:46px !important;
  height:46px !important;
  border-radius:16px !important;
}


/* =========================
   ADMIN EMPRESAS RESPONSIVE
========================= */

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.page-head h1{
  font-size:34px;
  margin:0;
}

.page-head p{
  margin:6px 0 0;
  color:var(--muted);
}

.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.status-badge.active{
  background:rgba(37,211,102,.14);
  color:#15803d;
  border:1px solid rgba(37,211,102,.28);
}

.status-badge.inactive{
  background:rgba(239,68,68,.12);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.25);
}

.mobile-cards{
  display:none;
}

.mobile-business-card{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}

.mobile-business-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}

.mobile-business-top h3{
  margin:0 0 5px;
  font-size:18px;
}

.mobile-business-top p,
.mobile-business-info p{
  margin:0 0 6px;
  color:var(--muted);
  font-size:14px;
}

.mobile-business-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:12px;
}

.mobile-business-actions .btn{
  width:100%;
}

html[data-theme="dark"] .mobile-business-card{
  background:rgba(16,24,39,.88);
  border:1px solid var(--line);
}

html[data-theme="dark"] .status-badge.active{
  color:#86efac;
}

html[data-theme="dark"] .status-badge.inactive{
  color:#fca5a5;
}

@media(max-width:850px){

  .page-head{
    align-items:stretch;
  }

  .page-head h1{
    font-size:30px;
  }

  .page-head .btn{
    width:100%;
  }

  .desktop-table{
    display:none;
  }

  .mobile-cards{
    display:block;
  }
}



/* =========================
   FORMULARIO EMPRESA RESPONSIVE
========================= */

.admin-form-card{
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:var(--shadow);
}

.upload-box{
  background:rgba(255,250,243,.72);
  border:1px dashed var(--line);
  border-radius:18px;
  padding:14px;
}

.preview-box{
  margin-top:12px;
}

.preview-box img{
  max-width:130px;
  max-height:90px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}

.hero-preview img{
  max-width:220px;
  max-height:120px;
}

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

html[data-theme="dark"] .admin-form-card{
  background:rgba(16,24,39,.88);
  border:1px solid var(--line);
}

html[data-theme="dark"] .upload-box{
  background:rgba(255,255,255,.04);
  border:1px dashed var(--line);
}

@media(max-width:850px){

  .admin-form-card{
    padding:14px;
    border-radius:20px;
  }

  .form-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .form-actions .btn{
    width:100%;
  }

  .preview-box img,
  .hero-preview img{
    width:100%;
    max-width:100%;
    height:auto;
    max-height:180px;
  }
}




/* =========================
   DASHBOARD ADMIN RESPONSIVE
========================= */

.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:20px;
}

.dashboard-card{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.dashboard-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  background:var(--primary-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  flex-shrink:0;
}

.dashboard-card h3{
  margin:0 0 8px;
  color:var(--text);
}

.dashboard-card strong{
  display:block;
  font-size:34px;
  line-height:1;
  color:var(--text);
  margin-bottom:8px;
}

.dashboard-card p{
  margin:0;
  color:var(--muted);
}

.dashboard-panel{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.dashboard-panel h2{
  margin:0 0 8px;
  color:var(--text);
}

.dashboard-panel p{
  margin:0;
  color:var(--muted);
  max-width:720px;
}

html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .dashboard-panel{
  background:rgba(16,24,39,.88);
  border:1px solid var(--line);
}

html[data-theme="dark"] .dashboard-icon{
  background:rgba(0,229,255,.12);
}

@media(max-width:850px){

  .dashboard-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .dashboard-card{
    padding:16px;
    border-radius:20px;
  }

  .dashboard-icon{
    width:48px;
    height:48px;
    font-size:25px;
  }

  .dashboard-card strong{
    font-size:30px;
  }

  .dashboard-panel{
    padding:16px;
    border-radius:20px;
  }

  .dashboard-panel .btn{
    width:100%;
  }
}



/* =========================
   ADMIN HAMBURGUESA MOBILE PRO
========================= */

.admin-mobile-topbar{
  display:none;
}

.sidebar-head{
  display:block;
}

.admin-close-btn{
  display:none;
}

.admin-overlay{
  display:none;
}

.admin-menu{
  display:block;
}

.admin-menu a,
.logout-link{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#374151;
  margin:6px 0;
  font-weight:800;
}

.admin-menu a:hover,
.admin-menu a.active,
.logout-link:hover{
  background:rgba(216,155,40,.14);
  color:#8a5a00;
}

html[data-theme="dark"] .admin-menu a,
html[data-theme="dark"] .logout-link{
  color:#cbd5e1;
}

html[data-theme="dark"] .admin-menu a:hover,
html[data-theme="dark"] .admin-menu a.active,
html[data-theme="dark"] .logout-link:hover{
  background:rgba(0,229,255,.10);
  color:#ffffff;
}

@media(max-width:850px){

  body.admin-menu-open{
    overflow:hidden;
  }

  .admin-mobile-topbar{
    display:flex;
    position:sticky;
    top:0;
    z-index:1001;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    background:rgba(255,250,243,.92);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
  }

  .admin-mobile-brand{
    font-weight:900;
    font-size:17px;
    color:var(--text);
    white-space:nowrap;
  }

  .admin-mobile-brand span{
    color:var(--primary);
  }

  .admin-mobile-actions{
    display:flex;
    align-items:center;
    gap:8px;
  }

  .admin-menu-btn{
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.78);
    color:var(--text);
    font-size:22px;
    font-weight:900;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(80,55,20,.10);
  }

  .admin-layout{
    display:block;
    min-height:100vh;
  }

  .sidebar{
    position:fixed !important;
    top:0;
    left:0;
    width:min(82vw,320px);
    height:100vh !important;
    z-index:1003;
    transform:translateX(-105%);
    transition:transform .22s ease;
    overflow-y:auto;
    padding:18px;
    border-right:1px solid var(--line);
    box-shadow:24px 0 70px rgba(80,55,20,.18);
  }

  .sidebar.open{
    transform:translateX(0);
  }

  .sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
  }

  .admin-close-btn{
    display:inline-flex;
    width:40px;
    height:40px;
    border-radius:14px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.78);
    color:var(--text);
    align-items:center;
    justify-content:center;
    font-size:26px;
    line-height:1;
    cursor:pointer;
  }

  .admin-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(3px);
    z-index:1002;
  }

  .admin-overlay.open{
    display:block;
  }

  .main{
    padding:16px;
  }

  .sidebar-theme-box{
    width:100% !important;
    justify-content:flex-start !important;
    margin:18px 0 !important;
    padding:0 !important;
  }

  .sidebar-theme-box .theme-toggle{
    margin:0 !important;
  }

  .logout-link{
    margin-top:12px;
  }

  html[data-theme="dark"] .admin-mobile-topbar{
    background:rgba(7,11,20,.92);
    border-bottom:1px solid var(--line);
  }

  html[data-theme="dark"] .admin-menu-btn,
  html[data-theme="dark"] .admin-close-btn{
    background:rgba(255,255,255,.08);
    color:#ffffff;
  }
}




/* =========================
   REGISTRO PUBLICO SAAS
========================= */

.registro-hero{
  max-width:850px;
  margin:0 auto 28px;
  text-align:center;
}

.registro-hero h1{
  margin-top:16px;
}

.registro-hero p{
  color:var(--muted);
  font-size:18px;
  max-width:720px;
  margin:0 auto;
}

.registro-card{
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow);
}

.registro-card h2{
  margin:8px 0 16px;
  color:var(--text);
  font-size:24px;
}

.plans-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:28px;
}

.plan-option{
  display:block;
  cursor:pointer;
}

.plan-option input{
  display:none;
}

.plan-box{
  height:100%;
  background:rgba(255,250,243,.82);
  border:2px solid var(--line);
  border-radius:24px;
  padding:18px;
  transition:.18s ease;
}

.plan-option input:checked + .plan-box{
  border-color:var(--primary);
  box-shadow:0 14px 35px rgba(216,155,40,.22);
  transform:translateY(-2px);
}

.plan-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}

.plan-top h3{
  margin:0;
  color:var(--text);
}

.plan-top strong{
  font-size:24px;
  color:var(--text);
  white-space:nowrap;
}

.plan-box p{
  color:var(--muted);
  margin:0 0 12px;
}

.plan-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.plan-meta span{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:var(--primary-soft);
  color:#8a5a00;
  font-size:12px;
  font-weight:900;
}

.plan-box ul{
  list-style:none;
  padding:0;
  margin:0;
}

.plan-box li{
  margin:7px 0;
  color:var(--muted);
  font-size:14px;
}

.registro-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

html[data-theme="dark"] .registro-card,
html[data-theme="dark"] .plan-box{
  background:rgba(16,24,39,.88);
  border-color:var(--line);
}

html[data-theme="dark"] .plan-meta span{
  background:rgba(0,229,255,.12);
  color:#67e8f9;
}

@media(max-width:850px){

  .registro-hero{
    text-align:left;
    margin-bottom:20px;
  }

  .registro-hero h1{
    font-size:36px;
  }

  .registro-hero p{
    font-size:16px;
  }

  .registro-card{
    padding:16px;
    border-radius:22px;
  }

  .plans-grid{
    grid-template-columns:1fr;
  }

  .plan-top strong{
    font-size:22px;
  }

  .registro-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .registro-actions .btn{
    width:100%;
  }
}




/* =========================
   PAGO / VOUCHER PUBLICO
========================= */

.success-box{
  background:rgba(37,211,102,.12);
  border:1px solid rgba(37,211,102,.24);
  border-radius:24px;
  padding:20px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}

.success-box h2{
  margin:0 0 8px;
  color:var(--text);
}

.success-box p{
  color:var(--muted);
  margin:0 0 14px;
}

.payment-layout{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:18px;
  margin-bottom:18px;
}

.payment-card{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:26px;
  padding:22px;
  box-shadow:var(--shadow);
}

.payment-card h1{
  font-size:clamp(32px,5vw,48px);
}

.payment-card h2{
  margin:12px 0 14px;
  color:var(--text);
}

.payment-summary{
  display:grid;
  gap:8px;
  margin:18px 0;
}

.payment-summary p{
  margin:0;
  color:var(--muted);
}

.bank-selector{
  margin-bottom:14px;
}

.bank-info{
  display:none;
  background:rgba(255,250,243,.76);
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
}

.bank-info.active{
  display:block;
}

.bank-info h3{
  margin:0 0 10px;
  color:var(--text);
}

.bank-info p{
  margin:7px 0;
  color:var(--muted);
}

.bank-note{
  background:var(--primary-soft);
  border-radius:16px;
  padding:12px;
  color:#8a5a00 !important;
  font-weight:800;
}

.voucher-form{
  margin-top:18px;
}

html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .bank-info{
  background:rgba(16,24,39,.88);
  border:1px solid var(--line);
}

html[data-theme="dark"] .success-box{
  background:rgba(37,211,102,.10);
}

html[data-theme="dark"] .bank-note{
  background:rgba(0,229,255,.10);
  color:#67e8f9 !important;
}

@media(max-width:850px){

  .payment-layout{
    grid-template-columns:1fr;
  }

  .payment-card{
    padding:16px;
    border-radius:22px;
  }

  .payment-card h1{
    font-size:34px;
  }

  .voucher-form .form{
    grid-template-columns:1fr;
  }

  .voucher-form .form-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .voucher-form .btn{
    width:100%;
  }
}




/* =========================
   ESTADOS DE PAGO
========================= */

.status-badge.pending{
  background:rgba(245,158,11,.14);
  color:#b45309;
  border:1px solid rgba(245,158,11,.30);
}

.status-badge.rejected{
  background:rgba(239,68,68,.12);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.25);
}

html[data-theme="dark"] .status-badge.pending{
  color:#facc15;
}

html[data-theme="dark"] .status-badge.rejected{
  color:#fca5a5;
}




/* =========================
   VENCIMIENTOS ADMIN
========================= */

.status-badge.pending{
  background:rgba(245,158,11,.14);
  color:#b45309;
  border:1px solid rgba(245,158,11,.30);
}

.status-badge.rejected,
.status-badge.inactive{
  background:rgba(239,68,68,.12);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.25);
}

html[data-theme="dark"] .status-badge.pending{
  color:#facc15;
}

html[data-theme="dark"] .status-badge.rejected,
html[data-theme="dark"] .status-badge.inactive{
  color:#fca5a5;
}


/* =========================
   CLIENTES / RESET CLAVE
========================= */

.reset-pass-form{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.reset-pass-form input{
  min-width:160px;
  max-width:220px;
}

@media(max-width:850px){
  .reset-pass-form{
    display:grid;
    grid-template-columns:1fr;
  }

  .reset-pass-form input,
  .reset-pass-form .btn{
    width:100%;
    max-width:100%;
  }
}


/* =========================
   SLIDER PRODUCTOS PORTADA
========================= */

.mock {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.hero-rotator {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 340px;
  min-height: 340px;
  padding: 0 !important;
  background: #f6f3ea;
  border-radius: 24px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}


.hero-rotator .mock-panel {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 46px);
  max-width: 360px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  padding: 11px 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
  z-index: 4;
}

.hero-rotator .mock-panel b{
  display:block;
  width:100%;
  font-size: 14px;
  line-height: 1.15;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-rotator .mock-panel p{
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 6;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.hero-dot.active {
  background: #f1b634;
  width: 22px;
}


@media(max-width: 720px) {
  .mock {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-rotator {
    height: 260px;
    min-height: 260px;
  }

  .hero-slide img {
    max-height: 260px;
  }

.hero-rotator .mock-panel {
  bottom: 10px;
  width: calc(100% - 32px);
  max-width: 330px;
  padding: 10px 12px;
  border-radius: 14px;
}

.hero-rotator .mock-panel b{
  font-size: 13px;
}

.hero-rotator .mock-panel p{
  font-size: 11px;
}

  .hero-dots {
    bottom: 8px;
  }
}

/* ===============================
   MENU SUPERIOR RESPONSIVE KG
================================ */

.brand-link {
  text-decoration: none;
  color: inherit;
}

.nav-in {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text, #111827);
  transition: .2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,.06);
}

.nav-links .nav-main {
  background: linear-gradient(135deg, #ffcc00, #ff8c00);
  color: #111;
  box-shadow: 0 8px 20px rgba(255, 166, 0, .25);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #111827;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 850px) {
  .nav-in {
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
    white-space: nowrap;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    z-index: 999;
  }

	.nav .nav-links.show {
	  display: flex !important;
	}

  .nav-links a,
  .nav-links button {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    background: #f3f4f6;
    color: #111827;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .nav-links .nav-main {
    background: linear-gradient(135deg, #ffcc00, #ff8c00);
    color: #111;
  }

  .theme-toggle {
    justify-content: center;
    margin: 0 auto;
  }
}

html[data-theme="dark"] .nav .nav-links {
  background: rgba(17,24,39,.96);
}

html[data-theme="dark"] .nav-links a {
  background: rgba(255,255,255,.08);
  color: #fff;
}

html[data-theme="dark"] .nav-links .nav-main {
  color: #111;
}


/* ===============================
   MENU PAGO RESPONSIVE
================================ */

.payment-nav .brand-link {
  text-decoration: none;
  color: inherit;
}

.payment-nav .nav-in {
  position: relative;
}

.payment-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text, #111827);
  transition: .18s ease;
}

.payment-nav-links a:hover {
  background: rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.payment-nav-links a:nth-child(2) {
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  color: #111827;
  box-shadow: 0 8px 22px rgba(255,166,0,.24);
}

.payment-menu-btn {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media(max-width:850px) {
  .payment-nav .nav-in {
    justify-content: space-between;
    gap: 12px;
  }

  .payment-nav .brand {
    font-size: 18px;
    white-space: nowrap;
  }

	.payment-menu-btn {
	  display: inline-flex;
	  flex-shrink: 0;
	}

  .payment-nav .payment-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    z-index: 999;
  }

  .payment-nav .payment-nav-links.show {
    display: flex !important;
  }

  .payment-nav-links a,
  .payment-nav-links button {
    width: 100%;
    text-align: center;
  }

  .payment-nav-links a {
    background: #f3f4f6;
    color: #111827;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .payment-nav-links a:nth-child(2) {
    background: linear-gradient(135deg, #ffcc00, #ff9f00);
    color: #111827;
  }

  .payment-nav-links .theme-toggle {
    margin: 0 auto;
  }
}

html[data-theme="dark"] .payment-nav .payment-nav-links {
  background: rgba(17,24,39,.96);
}

html[data-theme="dark"] .payment-nav-links a {
  background: rgba(255,255,255,.08);
  color: #fff;
}

html[data-theme="dark"] .payment-nav-links a:nth-child(2) {
  color: #111827;
}


/* ===============================
   MENU CLIENTE RESPONSIVE
================================ */

.client-nav .brand-link {
  text-decoration: none;
  color: inherit;
}

.client-nav .nav-in {
  position: relative;
}

.client-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text, #111827);
  transition: .18s ease;
}

.client-nav-links a:hover {
  background: rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.client-nav-main {
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  color: #111827 !important;
  box-shadow: 0 8px 22px rgba(255,166,0,.24);
}

.client-menu-btn {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media(max-width:850px) {
  .client-nav .nav-in {
    justify-content: space-between;
    gap: 12px;
  }

  .client-nav .brand {
    font-size: 18px;
    white-space: nowrap;
  }

  .client-menu-btn {
    display: inline-flex;
  }

  .client-nav .client-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    z-index: 999;
  }

  .client-nav .client-nav-links.show {
    display: flex !important;
  }

  .client-nav-links a,
  .client-nav-links button {
    width: 100%;
    text-align: center;
  }

  .client-nav-links a {
    background: #f3f4f6;
    color: #111827;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .client-nav-main {
    background: linear-gradient(135deg, #ffcc00, #ff9f00) !important;
    color: #111827 !important;
  }

  .client-nav-links .theme-toggle {
    margin: 0 auto;
  }
}

html[data-theme="dark"] .client-nav .client-nav-links {
  background: rgba(17,24,39,.96);
}

html[data-theme="dark"] .client-nav-links a {
  background: rgba(255,255,255,.08);
  color: #fff;
}

html[data-theme="dark"] .client-nav-main {
  color: #111827 !important;
}



/* ===============================
   MENU PERFIL CLIENTE RESPONSIVE
================================ */

.profile-nav .brand-link {
  text-decoration: none;
  color: inherit;
}

.profile-nav .nav-in {
  position: relative;
}

.profile-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text, #111827);
  transition: .18s ease;
}

.profile-nav-links a:hover {
  background: rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.profile-nav-main {
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  color: #111827 !important;
  box-shadow: 0 8px 22px rgba(255,166,0,.24);
}

.profile-menu-btn {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media(max-width:850px) {
  .profile-nav .nav-in {
    justify-content: space-between;
    gap: 12px;
  }

  .profile-nav .brand {
    font-size: 18px;
    white-space: nowrap;
  }

  .profile-menu-btn {
    display: inline-flex;
  }

  .profile-nav .profile-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    z-index: 999;
  }

  .profile-nav .profile-nav-links.show {
    display: flex !important;
  }

  .profile-nav-links a,
  .profile-nav-links button {
    width: 100%;
    text-align: center;
  }

  .profile-nav-links a {
    background: #f3f4f6;
    color: #111827;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .profile-nav-main {
    background: linear-gradient(135deg, #ffcc00, #ff9f00) !important;
    color: #111827 !important;
  }

  .profile-nav-links .theme-toggle {
    margin: 0 auto;
  }
}

html[data-theme="dark"] .profile-nav .profile-nav-links {
  background: rgba(17,24,39,.96);
}

html[data-theme="dark"] .profile-nav-links a {
  background: rgba(255,255,255,.08);
  color: #fff;
}

html[data-theme="dark"] .profile-nav-main {
  color: #111827 !important;
}