/* =========================================================
   BASE
   ========================================================= */

:root{
  --bg:#eef1f7;
  --bg-soft:#f5f7fb;
  --card:#f6f8fc;
  --white:#ffffff;
  --text:#152238;
  --muted:#687489;
  --line:#dde3ef;
  --primary:#3f6df6;
  --primary-dark:#315ce0;
  --shadow:0 8px 30px rgba(19,34,68,0.08);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  background:linear-gradient(180deg,#eef1f7 0%,#f8fafd 100%);
  color:var(--text);
  line-height:1.5;
}

a{ color:inherit; }

img{ max-width:100%; height:auto; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  width:100%;
  background:rgba(246,248,252,0.94);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
}

.site-header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.site-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}

.site-brand img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:245px !important;
  max-height:68px !important;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.site-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  color:#28426d;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  transition:.2s ease;
}

.site-nav a:hover{
  background:#edf2ff;
  color:var(--primary);
}

.site-nav .nav-cta{
  background:var(--primary);
  color:#fff;
  box-shadow:0 8px 20px rgba(63,109,246,.18);
}

.site-nav .nav-cta:hover{
  background:var(--primary-dark);
  color:#fff;
}

/* =========================================================
   COMMON FORMS / CARDS
   ========================================================= */

.container,
.auth-wrap,
.page-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:24px 18px;
}

.card,
.auth-card,
.panel-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
}

.auth-card{
  max-width:520px;
  margin:48px auto;
}

.auth-card h1,
.card h1,
.card h2{
  margin:0 0 12px;
  color:#10203b;
  line-height:1.1;
}

label{
  display:block;
  font-weight:750;
  color:#596579;
  font-size:14px;
  margin:14px 0 6px;
}

input,
textarea,
select{
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:10px 14px;
  font:inherit;
  color:var(--text);
  outline:none;
}

textarea{ min-height:110px; resize:vertical; }

input:focus,
textarea:focus,
select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(63,109,246,.12);
}

button,
.btn,
.btn-main,
.btn-secondary{
  cursor:pointer;
}

button,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:999px;
  padding:0 18px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  transition:.2s ease;
}

button:hover,
.btn:hover{ background:var(--primary-dark); }

.alert,
.error,
.success{
  border-radius:16px;
  padding:12px 14px;
  margin:12px 0;
  font-weight:700;
}
.error{ background:#fff0f0; color:#b42318; border:1px solid #ffd5d2; }
.success{ background:#eefbf4; color:#067647; border:1px solid #c7f0d8; }
.alert{ background:#fff8e6; color:#8a5a00; border:1px solid #ffe3a3; }

/* =========================================================
   HOME
   ========================================================= */

.home-public{
  background:linear-gradient(180deg,#eef1f7 0%,#f8fafd 100%);
  min-height:100vh;
  padding-bottom:44px;
}

.home-hero{
  position:relative;
  padding:46px 18px 24px;
  overflow:hidden;
}

.home-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 85% 10%, rgba(63,109,246,.13), transparent 26%),
    radial-gradient(circle at 10% 70%, rgba(63,109,246,.09), transparent 22%);
  pointer-events:none;
}

.home-hero-inner{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:34px;
  align-items:center;
}

.home-hero-content,
.home-hero-image-card,
.home-step-card,
.home-feature-card,
.home-final-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:34px;
  box-shadow:var(--shadow);
}

.home-hero-content{ padding:38px; }

.home-eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--primary);
  background:#e9eefc;
  padding:10px 14px;
  border-radius:999px;
  margin-bottom:18px;
}

.home-hero h1,
.home-section-header h2,
.home-free-card h2,
.home-final-card h2{
  margin:0;
  color:#10203b;
  font-weight:850;
  letter-spacing:-.035em;
  line-height:1.04;
}

.home-hero h1{ font-size:54px; max-width:680px; }

.home-lead{
  color:#596579;
  font-size:19px;
  line-height:1.55;
  margin:22px 0 0;
}

.home-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 0;
}

.home-badges span{
  background:#fff;
  border:1px solid #dde4f1;
  color:#28426d;
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:750;
}

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

.btn-main,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  font-weight:850;
  text-decoration:none;
  transition:.2s ease;
}

.btn-main{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(63,109,246,.24);
}

.btn-main:hover{ transform:translateY(-1px); background:var(--primary-dark); }

.btn-secondary{
  background:#fff;
  color:#28426d;
  border:1px solid #dde4f1;
}

.btn-secondary:hover{ background:#edf2ff; }

.home-hero-image-card{
  padding:14px;
  overflow:hidden;
}

.home-hero-image-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:26px;
}

.home-steps-section,
.home-free-section,
.home-features-section,
.home-final-cta{
  max-width:1180px;
  margin:24px auto 0;
  padding:0 18px;
}

.home-section-header{
  text-align:center;
  max-width:760px;
  margin:0 auto 24px;
}

.home-section-header h2{ font-size:40px; }

.home-section-header p{
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
  margin:14px 0 0;
}

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

.home-step-card,
.home-feature-card{ padding:26px; }

.step-number{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  margin-bottom:18px;
}

.home-step-card h3,
.home-feature-card h3{
  margin:0;
  color:#16243b;
  font-size:22px;
  line-height:1.15;
}

.home-step-card p,
.home-feature-card p{
  color:var(--muted);
  font-size:15.5px;
  line-height:1.55;
  margin:12px 0 0;
}

.home-free-card{
  background:#10203b;
  color:#fff;
  border-radius:34px;
  padding:34px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:center;
  box-shadow:0 8px 30px rgba(19,34,68,0.12);
}

.home-free-card h2{ color:#fff; font-size:38px; }

.home-free-card p{
  color:rgba(255,255,255,.74);
  line-height:1.6;
  font-size:17px;
}

.home-free-list{ display:grid; gap:12px; }

.home-free-list div{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:16px;
}

.home-free-list strong,
.home-free-list span{ display:block; }
.home-free-list strong{ color:#fff; font-size:17px; }
.home-free-list span{ color:rgba(255,255,255,.68); margin-top:4px; }

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

.home-final-card{
  text-align:center;
  padding:38px 24px;
}

.home-final-card h2{ font-size:40px; }

.home-final-card p{
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
  max-width:680px;
  margin:14px auto 24px;
}

/* =========================================================
   FOOTER / COOKIES BASICO
   ========================================================= */

.site-footer{
  border-top:1px solid var(--line);
  background:rgba(246,248,252,.82);
  padding:18px;
  color:#687489;
  font-size:14px;
}

.site-footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.site-footer a,
.site-footer button{
  color:#28426d;
  text-decoration:none;
  font-weight:750;
  background:none;
  border:0;
  padding:0;
  min-height:auto;
  font:inherit;
  cursor:pointer;
}

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

@media (max-width:900px){
  .home-hero-inner{ grid-template-columns:1fr; }
  .home-hero h1{ font-size:42px; }
  .home-steps-grid,
  .home-features-grid,
  .home-free-card{ grid-template-columns:1fr; }
  .home-section-header h2,
  .home-free-card h2,
  .home-final-card h2{ font-size:32px; }
}

@media (max-width:768px){
  .site-header-inner{
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:14px 12px;
  }

  .site-brand img{
    max-width:220px !important;
    max-height:62px !important;
  }

  .site-nav{ justify-content:center; gap:6px; }
  .site-nav a{ font-size:13px; min-height:34px; padding:0 11px; }
}

@media (max-width:560px){
  .home-hero{ padding:18px 12px 12px; }
  .home-hero-content{ padding:24px 18px; border-radius:26px; }
  .home-hero h1{ font-size:34px; }
  .home-lead{ font-size:16px; }
  .home-actions{ flex-direction:column; }
  .btn-main,
  .btn-secondary{ width:100%; }
  .home-hero-image-card{ border-radius:26px; }
  .home-hero-image-card img{ border-radius:20px; }
}

@media (max-width:420px){
  .site-brand img{ max-width:190px !important; }
}
.footer-cookie-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.footer-cookie-button:hover {
    color: var(--primary);
}

/* =========================================================
   Popup cookies RGPD / ePrivacy
   ========================================================= */

.cookie-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 22px;
    background: rgba(10, 18, 34, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-consent.is-visible {
    display: flex;
}

.cookie-consent__box {
    position: relative;
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 30px;
    background: rgba(248, 250, 253, .97);
    box-shadow: 0 30px 90px rgba(7, 15, 33, .28);
}

.cookie-consent__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.cookie-consent__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: #edf2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    padding-right: 34px;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.05;
}

.cookie-consent p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.cookie-consent__links a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.cookie-consent__actions--settings {
    grid-template-columns: 1fr 1fr 1.2fr;
}

.cookie-btn {
    min-height: 46px;
    padding: 12px 15px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

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

.cookie-btn--primary {
    border: 1px solid var(--primary);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 28px rgba(63, 109, 246, .24);
}

.cookie-btn--ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}

.cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option strong {
    color: var(--text);
    font-size: 16px;
}

.cookie-option small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    width: 58px;
    height: 34px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d9e0ec;
    transition: background .2s ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .20);
    transition: transform .2s ease;
}

.cookie-switch input:checked + span {
    background: var(--primary);
}

.cookie-switch input:checked + span::after {
    transform: translateX(24px);
}

.cookie-switch--locked {
    opacity: .75;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 24px 0 48px;
    }

    .legal-shell {
        padding: 22px 16px;
        border-radius: 26px;
    }

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

    .cookie-consent {
        padding: 12px;
    }

    .cookie-consent__box {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .cookie-consent__actions,
    .cookie-consent__actions--settings {
        grid-template-columns: 1fr;
    }

    .cookie-option {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ADMIN / PANEL DE ADMINISTRACIÓN
   Recupera estilos del listado de restaurantes, usuarios y tarjetas
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.stat-card {
    background: var(--card, #f6f8fc);
    border: 1px solid var(--line, #dde3ef);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow, 0 8px 30px rgba(19,34,68,0.08));
}

.stat-card span {
    display: block;
    color: var(--muted, #6b7485);
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    letter-spacing: -.04em;
    color: var(--text, #152238);
}

.admin-note,
.admin-search,
.admin-table,
.panel-card,
.card {
    background: var(--card, #f6f8fc);
    border: 1px solid var(--line, #dde3ef);
    border-radius: 24px;
    box-shadow: var(--shadow, 0 8px 30px rgba(19,34,68,0.08));
}

.admin-note {
    padding: 16px 18px;
    margin-bottom: 18px;
    color: var(--muted, #6b7485);
}

.admin-search {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 20px;
}

.admin-search label {
    margin: 0;
}

.admin-search input,
.admin-search select,
.inline-reset input {
    width: 100%;
    border: 1px solid var(--line, #dde3ef);
    background: #fff;
    color: var(--text, #152238);
    border-radius: 999px;
    padding: 12px 14px;
    outline: none;
}

.admin-search input:focus,
.admin-search select:focus,
.inline-reset input:focus {
    border-color: var(--primary, #3f6df6);
    box-shadow: 0 0 0 4px rgba(63,109,246,.12);
}

.admin-table {
    overflow: hidden;
}

.admin-table-head,
.admin-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr .85fr .65fr 1.3fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
}

.admin-table-head {
    background: rgba(63,109,246,.08);
    color: var(--primary, #3f6df6);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-row {
    border-top: 1px solid var(--line, #dde3ef);
    background: rgba(255,255,255,.35);
}

.admin-row:hover {
    background: rgba(255,255,255,.72);
}

.admin-row > div {
    min-width: 0;
}

.admin-row strong {
    display: block;
    color: var(--text, #152238);
}

.admin-row span,
.admin-row small {
    display: block;
    color: var(--muted, #6b7485);
    margin-top: 4px;
    word-break: break-word;
}

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

.admin-actions form {
    margin: 0;
}

.status-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    color: #fff !important;
    background: var(--muted, #6b7485);
}

.status-pill.ok {
    background: var(--success, #16a34a);
}

.status-pill.danger {
    background: var(--danger, #dc2626);
}

.status-pill.admin {
    background: var(--primary, #3f6df6);
}

.checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-stack label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text, #152238);
    margin: 0;
}

.checkbox-stack input[type="checkbox"] {
    width: auto;
}

.users-head,
.users-row {
    grid-template-columns: 1fr .45fr 1fr .55fr 1.4fr;
}

.inline-reset {
    display: flex;
    gap: 6px;
    align-items: center;
}

.inline-reset input {
    max-width: 170px;
    padding: 9px 10px;
    border-radius: 999px;
}

.panel-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 18px 60px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.panel-header h1 {
    margin: 0;
    color: var(--text, #152238);
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.panel-header p,
.panel-header .muted {
    color: var(--muted, #6b7485);
    margin: 8px 0 0;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.panel-card {
    padding: 24px;
}

.btn,
button.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--primary, #3f6df6);
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(63,109,246,.18);
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    background: #315ce0;
    transform: translateY(-1px);
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: #fff;
    color: var(--text, #152238) !important;
    border: 1px solid var(--line, #dde3ef);
    box-shadow: none;
}

.btn-ghost:hover {
    background: #edf2ff;
    color: var(--primary, #3f6df6) !important;
}

.btn-danger {
    background: var(--danger, #dc2626);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: var(--success, #16a34a);
}

.btn-success:hover {
    background: #15803d;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table-head {
        display: none;
    }

    .admin-row,
    .users-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }

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

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

    .panel-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .inline-reset {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-reset input {
        max-width: none;
    }

    .panel-header h1 {
        font-size: 30px;
    }
}

/* =========================================================
   MENU EDITOR / EDITAR CARTA
   Recupera el estilo de menu-editor.php
   ========================================================= */

/* Evita que el footer tape formularios largos */
.site-footer,
footer{
  position: static !important;
  width: 100%;
  margin-top: 40px;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--primary);
  background:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:850;
}

.muted{
  color:var(--muted);
  line-height:1.55;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  margin-top:28px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

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

.field{ margin-top:14px; }

.field label{
  display:block;
  font-size:13px;
  color:var(--muted);
  font-weight:850;
  margin:0 0 6px;
}

.editor-layout{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.editor-layout > aside.panel-card{
  position:sticky;
  top:96px;
}

.section-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.section-pill{
  display:block;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  text-decoration:none;
  transition:.18s ease;
}

.section-pill:hover{
  background:#edf2ff;
  border-color:#cbd8ff;
  transform:translateY(-1px);
}

.section-pill strong{
  display:block;
  color:var(--text);
  font-size:14px;
}

.section-pill span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}

.template-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.template-buttons form{ margin:0; }
.template-buttons button{ white-space:nowrap; }

.section-editor{
  padding:24px;
  margin-bottom:20px;
  scroll-margin-top:110px;
}

.section-title-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}

.section-title-row h2{
  margin:0;
  color:var(--text);
  letter-spacing:-.03em;
}

.section-title-row form{ margin:0; }

.item-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.74);
  margin-top:14px;
  box-shadow:0 4px 14px rgba(19,34,68,.035);
}

.item-row{
  display:grid;
  grid-template-columns:1.2fr 1.4fr 110px 80px 112px;
  gap:10px;
  align-items:end;
}

.item-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* Formularios de borrar plato debajo de cada ficha */
.section-editor form[onsubmit*="Eliminar este plato"]{
  margin-top:8px !important;
  margin-bottom:18px;
}

/* Botones más compactos en el editor */
.btn-small,
button.btn-small,
a.btn-small{
  min-height:32px;
  padding:0 12px;
  font-size:12px;
}

.btn-block{ width:100%; }

/* Inputs del editor */
.section-editor input,
.section-editor textarea,
.section-editor select,
.editor-layout input,
.editor-layout textarea,
.editor-layout select{
  min-height:42px;
  border-radius:14px;
}

.section-editor input[type="checkbox"],
.editor-layout input[type="checkbox"]{
  width:16px;
  min-height:16px;
  height:16px;
  accent-color:var(--primary);
}

.empty-state{
  padding:24px;
  color:var(--muted);
  text-align:center;
}

@media (max-width:1000px){
  .editor-layout{
    grid-template-columns:1fr;
  }

  .editor-layout > aside.panel-card{
    position:static;
  }

  .panel-header{
    flex-direction:column;
  }

  .hero-actions{
    justify-content:flex-start;
    margin-top:0;
  }
}

@media (max-width:720px){
  .form-grid,
  .item-row{
    grid-template-columns:1fr;
  }

  .section-title-row{
    flex-direction:column;
  }

  .section-title-row form,
  .section-title-row button,
  .item-actions,
  .item-actions button{
    width:100%;
  }

  .panel-section{
    padding-left:12px;
    padding-right:12px;
  }

  .panel-header h1{
    font-size:30px !important;
  }
}

/* =========================================================
   FICHA PUBLICA RESTAURANTE / RESTAURANT.PHP
   Recupera estilo tipo tarjeta digital + anclas
   ========================================================= */

.page-public{
  max-width:760px;
  margin:30px auto;
  padding:18px;
}

.public-shell{
  position:relative;
  background:#f3f5f9;
  border:1px solid #e5eaf3;
  border-radius:38px;
  padding:22px;
  box-shadow:0 8px 30px rgba(19,34,68,0.08);
  overflow:hidden;
}

.public-shell::before,
.public-shell::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:rgba(88,117,255,0.08);
  z-index:0;
}

.public-shell::before{
  width:180px;
  height:180px;
  top:-30px;
  right:-40px;
}

.public-shell::after{
  width:120px;
  height:120px;
  left:-35px;
  top:220px;
}

.hero-card,
.section-card,
.nav-card,
.footer-card{
  position:relative;
  z-index:1;
}

.hero-card{
  background:#f6f8fc;
  border:1px solid #dde3ef;
  border-radius:30px;
  padding:28px 22px;
  margin-bottom:18px;
}

.eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#3f6df6;
  background:#e9eefc;
  padding:10px 14px;
  border-radius:999px;
  margin-bottom:20px;
}

.logo-box{
  background:#fff;
  border:1px solid #eceff5;
  border-radius:22px;
  padding:22px;
  text-align:center;
  margin-bottom:20px;
}

.logo-box img{
  max-width:260px;
  max-height:110px;
  width:auto;
  height:auto;
}

.restaurant-title{
  margin:0;
  font-size:42px;
  line-height:1.05;
  font-weight:850;
  letter-spacing:-0.03em;
  text-align:center;
  color:#10203b;
}

.restaurant-subtitle{
  text-align:center;
  color:#6b7485;
  margin-top:10px;
  font-size:16px;
  line-height:1.5;
}

.nav-card,
.public-section-nav,
.menu-anchor-card,
.menu-nav-card,
.restaurant-anchor-card{
  position:sticky;
  top:12px;
  z-index:50;
  background:rgba(246,248,252,0.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid #dde3ef;
  border-radius:22px;
  padding:12px;
  margin:0 0 18px;
  box-shadow:0 8px 24px rgba(19,34,68,0.08);
}

.section-nav-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#3f6df6;
  background:#e9eefc;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  margin-bottom:10px;
}

.section-nav,
.section-nav-scroll,
.menu-anchor-nav,
.restaurant-anchor-nav,
.anchors-nav{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  padding:2px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.section-nav::-webkit-scrollbar,
.section-nav-scroll::-webkit-scrollbar,
.menu-anchor-nav::-webkit-scrollbar,
.restaurant-anchor-nav::-webkit-scrollbar,
.anchors-nav::-webkit-scrollbar{
  display:none;
}

.section-nav a,
.section-nav-scroll a,
.menu-anchor-nav a,
.restaurant-anchor-nav a,
.anchors-nav a,
.anchor-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #dde4f1;
  color:#28426d;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  line-height:1;
  box-shadow:0 4px 12px rgba(19,34,68,0.04);
  transition:all .2s ease;
}

.section-nav a:hover,
.section-nav-scroll a:hover,
.menu-anchor-nav a:hover,
.restaurant-anchor-nav a:hover,
.anchors-nav a:hover,
.anchor-btn:hover{
  background:#edf2ff;
  color:#3f6df6;
  border-color:#cbd8ff;
  transform:translateY(-1px);
}

.section-nav a:first-child,
.section-nav-scroll a:first-child,
.menu-anchor-nav a:first-child,
.restaurant-anchor-nav a:first-child,
.anchors-nav a:first-child{
  background:#3f6df6;
  border-color:#3f6df6;
  color:#ffffff;
  box-shadow:0 8px 18px rgba(63,109,246,0.20);
}

.section-card,
.menu-section{
  background:#f8fafd;
  border:1px solid #dde3ef;
  border-radius:28px;
  padding:24px 22px;
  margin-bottom:18px;
  box-shadow:0 4px 16px rgba(19,34,68,0.04);
  scroll-margin-top:100px;
}

[id^="seccion-"]{
  scroll-margin-top:100px;
}

.section-label{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#3f6df6;
  margin-bottom:8px;
}

.section-title,
.menu-section h2{
  margin:0 0 18px;
  font-size:32px;
  line-height:1.1;
  font-weight:850;
  color:#16243b;
}

.dish-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dish-item,
.menu-item,
.menu-dish,
.dish{
  background:#fff;
  border:1px solid #e8edf6;
  border-radius:18px;
  padding:16px 18px;
  margin-bottom:14px;
}

.dish-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.dish-name,
.menu-item h3,
.menu-dish h3,
.dish h3{
  font-size:19px;
  font-weight:800;
  color:#12233d;
  margin:0;
}

.dish-price,
.price,
.menu-price{
  font-size:18px;
  font-weight:850;
  color:#12233d;
  white-space:nowrap;
}

.dish-desc{
  margin:8px 0 0;
  color:#6b7485;
  font-size:15px;
  line-height:1.5;
}

.dish-meta{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:800;
  padding:7px 10px;
  border-radius:999px;
  background:#eef3ff;
  color:#3a5cd8;
}

.public-footer{
  text-align:center;
  color:#6f7990;
  font-size:14px;
  margin-top:16px;
}

.public-footer a{
  color:#3c63ec;
  text-decoration:none;
  font-weight:800;
}

.restaurant-public,
.restaurant-menu-public{
  max-width:760px;
  margin:30px auto;
  padding:18px;
}

@media (max-width:768px){
  .page-public,
  .restaurant-public,
  .restaurant-menu-public{
    margin:0;
    padding:12px;
  }

  .public-shell{
    border-radius:28px;
    padding:14px;
  }

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

  .restaurant-title{
    font-size:32px;
  }

  .section-title,
  .menu-section h2{
    font-size:26px;
  }

  .nav-card,
  .public-section-nav,
  .menu-anchor-card,
  .menu-nav-card,
  .restaurant-anchor-card{
    top:8px;
    border-radius:18px;
    padding:10px;
    margin-bottom:14px;
  }

  .section-nav-title{
    font-size:11px;
    min-height:28px;
    padding:0 10px;
    margin-bottom:8px;
  }

  .section-nav,
  .section-nav-scroll,
  .menu-anchor-nav,
  .restaurant-anchor-nav,
  .anchors-nav{
    gap:8px;
  }

  .section-nav a,
  .section-nav-scroll a,
  .menu-anchor-nav a,
  .restaurant-anchor-nav a,
  .anchors-nav a,
  .anchor-btn{
    min-height:36px;
    padding:0 13px;
    font-size:13px;
  }

  .section-card,
  .menu-section{
    padding:18px 16px;
    border-radius:22px;
    scroll-margin-top:86px;
  }

  [id^="seccion-"]{
    scroll-margin-top:86px;
  }

  .dish-top{
    flex-direction:column;
    gap:6px;
  }

  .logo-box img{
    max-width:220px;
  }
}
/* =========================================================
   FOOTER GENERAL + FOOTER LEGAL + GESTION COOKIES
   ========================================================= */

.site-footer{
  width:100%;
  background:rgba(246,248,252,0.96);
  border-top:1px solid #dde3ef;
  margin-top:50px;
  padding:18px 18px;
  color:#687489;
  font-size:13px;
  position:relative !important;
  z-index:10;
}

.site-footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.site-footer-logo,
.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#10203b;
  font-weight:800;
  text-decoration:none;
}

.site-footer-logo img,
.footer-brand img{
  max-height:34px;
  width:auto;
  display:block;
}

.site-footer-links,
.footer-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.site-footer a,
.footer-links a,
.site-footer-links a{
  color:#28426d;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  transition:.2s ease;
}

.site-footer a:hover,
.footer-links a:hover,
.site-footer-links a:hover{
  color:#3f6df6;
}

.site-footer-copy,
.footer-copy{
  color:#7a8496;
  font-size:13px;
}

/* Botón gestionar cookies del footer */
.cookie-settings-btn,
#open-cookie-settings,
button.cookie-settings-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:#28426d;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  padding:0;
  box-shadow:none;
  min-height:auto;
}

.cookie-settings-btn:hover,
#open-cookie-settings:hover,
button.cookie-settings-btn:hover{
  color:#3f6df6;
  background:transparent;
  transform:none;
}

/* Compatibilidad si el footer tiene clases antiguas */
.footer{
  width:100%;
  background:rgba(246,248,252,0.96);
  border-top:1px solid #dde3ef;
  margin-top:50px;
  padding:18px;
  color:#687489;
  font-size:13px;
  position:relative !important;
  z-index:10;
}

.footer .container,
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

/* Para que no se quede pegado al contenido en páginas largas */
body{
  min-height:100vh;
}

main{
  min-height:calc(100vh - 180px);
}

/* Footer legal sencillo */
.legal-footer-note{
  color:#7a8496;
  font-size:12px;
  line-height:1.5;
  margin-top:8px;
}

/* Responsive */
@media (max-width:768px){
  .site-footer{
    padding:18px 14px;
    margin-top:34px;
  }

  .site-footer-inner,
  .footer .container,
  .footer-inner{
    flex-direction:column;
    text-align:center;
    justify-content:center;
    gap:12px;
  }

  .site-footer-links,
  .footer-links{
    gap:10px 14px;
  }

  .site-footer-copy,
  .footer-copy{
    font-size:12px;
  }
}
/* =========================================================
   CONTACTO PUBLICO RESTAURANT.PHP
   contact-row / public-contact-row
   ========================================================= */

.public-contact-card,
.contact-card{
  position:relative;
  z-index:1;
  background:#f8fafd;
  border:1px solid #dde3ef;
  border-radius:28px;
  padding:20px;
  margin:0 0 18px;
  box-shadow:0 4px 16px rgba(19,34,68,0.04);
}

.public-contact-title,
.contact-title{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#3f6df6;
  background:#e9eefc;
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:12px;
}

.contact-row,
.public-contact-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 0;
}

.contact-row a,
.public-contact-row a,
.contact-row button,
.public-contact-row button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 15px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #dde4f1;
  color:#28426d;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  line-height:1;
  box-shadow:0 4px 12px rgba(19,34,68,0.04);
  transition:all .2s ease;
  cursor:pointer;
}

.contact-row a:hover,
.public-contact-row a:hover,
.contact-row button:hover,
.public-contact-row button:hover{
  background:#edf2ff;
  color:#3f6df6;
  border-color:#cbd8ff;
  transform:translateY(-1px);
}

/* Variante destacada para el primer enlace */
.contact-row a:first-child,
.public-contact-row a:first-child{
  background:#3f6df6;
  border-color:#3f6df6;
  color:#ffffff;
  box-shadow:0 8px 18px rgba(63,109,246,0.20);
}

.contact-row a:first-child:hover,
.public-contact-row a:first-child:hover{
  background:#315ce0;
  color:#ffffff;
}

/* Iconos o emojis dentro del enlace */
.contact-row .icon,
.public-contact-row .icon,
.contact-row svg,
.public-contact-row svg{
  flex:0 0 auto;
}

/* Por si los enlaces vienen como span + a */
.contact-row span,
.public-contact-row span{
  display:inline-flex;
  align-items:center;
}

/* Responsive */
@media (max-width:768px){
  .public-contact-card,
  .contact-card{
    border-radius:22px;
    padding:16px;
  }

  .contact-row,
  .public-contact-row{
    gap:8px;
  }

  .contact-row a,
  .public-contact-row a,
  .contact-row button,
  .public-contact-row button{
    min-height:38px;
    padding:0 13px;
    font-size:13px;
  }
}

@media (max-width:480px){
  .contact-row,
  .public-contact-row{
    flex-direction:column;
  }

  .contact-row a,
  .public-contact-row a,
  .contact-row button,
  .public-contact-row button{
    width:100%;
  }
}
/* =========================================================
   CONTACTO PUBLICO RESTAURANT.PHP
   Para: <div class="contact-row public-contact-row"><span>...</span></div>
   ========================================================= */

.contact-row.public-contact-row,
.public-contact-row{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:16px 0 0;
  padding:14px;
  background:#ffffff;
  border:1px solid #e4eaf4;
  border-radius:20px;
  box-shadow:0 4px 14px rgba(19,34,68,0.035);
}

.contact-row.public-contact-row span,
.public-contact-row span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  background:#eef3ff;
  border:1px solid #dbe5ff;
  color:#28426d;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
}

/* Si en algún momento hay enlaces además de spans */
.contact-row.public-contact-row a,
.public-contact-row a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  background:#3f6df6;
  border:1px solid #3f6df6;
  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 8px 18px rgba(63,109,246,0.20);
  transition:.2s ease;
}

.contact-row.public-contact-row a:hover,
.public-contact-row a:hover{
  background:#315ce0;
  border-color:#315ce0;
  transform:translateY(-1px);
}

/* Versión móvil */
@media (max-width:480px){
  .contact-row.public-contact-row,
  .public-contact-row{
    flex-direction:column;
    align-items:stretch;
    padding:12px;
  }

  .contact-row.public-contact-row span,
  .public-contact-row span,
  .contact-row.public-contact-row a,
  .public-contact-row a{
    width:100%;
    box-sizing:border-box;
  }
}
/* =========================================================
   BOTONES QR DEL PANEL USUARIO
   Separación vertical en la tarjeta QR
   ========================================================= */

.qr-card .btn,
.qr-card a.btn,
.qr-card .btn-main,
.qr-card a.btn-main,
.qr-card .button,
.qr-card a.button,
.qr-card .qr-actions a,
.qr-card .qr-actions button,
.dashboard-card .qr-actions a,
.dashboard-card .qr-actions button{
  display:flex;
  width:100%;
  margin:0 0 10px 0;
  min-height:44px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
}

.qr-card .btn:last-child,
.qr-card a.btn:last-child,
.qr-card .btn-main:last-child,
.qr-card a.btn-main:last-child,
.qr-card .button:last-child,
.qr-card a.button:last-child,
.qr-card .qr-actions a:last-child,
.qr-card .qr-actions button:last-child,
.dashboard-card .qr-actions a:last-child,
.dashboard-card .qr-actions button:last-child{
  margin-bottom:0;
}

/* Si los botones no están dentro de .qr-actions y van seguidos directamente */
.qr-card > a.btn,
.qr-card > a.btn-main,
.qr-card > a.button,
.dashboard-card > a.btn,
.dashboard-card > a.btn-main,
.dashboard-card > a.button{
  margin-top:10px;
}

/* Bloque de acciones QR */
.qr-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}

.qr-actions a,
.qr-actions button{
  width:100%;
}

/* Para que el enlace de la URL no se pegue al primer botón */
.qr-card p + a,
.qr-card img + a,
.dashboard-card p + a,
.dashboard-card img + a{
  margin-top:10px;
}

/* Ajuste específico si están dentro de una columna derecha del dashboard */
.dashboard-side .btn,
.dashboard-side a.btn,
.dashboard-side .btn-main,
.dashboard-side a.btn-main{
  margin-bottom:10px;
}

.dashboard-side .btn:last-child,
.dashboard-side a.btn:last-child,
.dashboard-side .btn-main:last-child,
.dashboard-side a.btn-main:last-child{
  margin-bottom:0;
}