/* ==========================================================
   Banner de cookies + páginas legales · Restaurante Mesón Canela
   Colores de la web: naranja #f07d00 · oscuro #222 · Montserrat / Open Sans
   ========================================================== */

:root {
  --mc-orange: #f07d00;
  --mc-orange-dark: #c96900;
  --mc-dark: #222222;
  --mc-dark-2: #2d2d2d;
  --mc-grey: #9dabaf;
  --mc-text: #3d3d3d;
}

/* ---------- Botones ---------- */
.mc-btn {
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: 4px;
  border: 2px solid var(--mc-orange);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.mc-btn--primary { background: var(--mc-orange); color: #fff; }
.mc-btn--primary:hover, .mc-btn--primary:focus { background: var(--mc-orange-dark); border-color: var(--mc-orange-dark); color: #fff; text-decoration: none; }
.mc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.mc-btn--ghost:hover, .mc-btn--ghost:focus { border-color: var(--mc-orange); color: var(--mc-orange); text-decoration: none; }
.mc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Barra inferior ---------- */
#mc-cookies .mc-cookies__bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99998;
  background: var(--mc-dark);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
  color: #e6e6e6;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  transform: translateY(110%);
  transition: transform .35s ease;
}
#mc-cookies.mc-cookies--visible .mc-cookies__bar { transform: translateY(0); }
.mc-cookies__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.mc-cookies__text { flex: 1 1 auto; }
.mc-cookies__text p { margin: 0; color: #e6e6e6; font-size: 14px; }
.mc-cookies__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 16px !important;
  color: #fff !important;
  margin: 0 0 4px !important;
  letter-spacing: .5px;
}
#mc-cookies a { color: var(--mc-orange); text-decoration: underline; }
.mc-cookies__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Modal de configuración ---------- */
.mc-cookies__modal {
  position: fixed; inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mc-cookies__modal[hidden] { display: none; }
.mc-cookies__panel {
  position: relative;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--mc-dark);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 28px 26px 22px;
  color: #e6e6e6;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.mc-cookies__panel p { color: #e6e6e6; }
.mc-cookies__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.mc-cookies__option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mc-cookies__option strong { display: block; color: #fff; font-family: Montserrat, sans-serif; font-size: 14px; }
.mc-cookies__option span { display: block; color: #bfc7c9; font-size: 13px; }
.mc-cookies__actions--modal { margin-top: 20px; flex-wrap: wrap; justify-content: flex-end; }

/* Interruptor */
.mc-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin: 0; }
.mc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.mc-switch span {
  position: absolute; inset: 0; cursor: pointer;
  background: #555; border-radius: 26px; transition: background .2s;
}
.mc-switch span::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s;
}
.mc-switch input:checked + span { background: var(--mc-orange); }
.mc-switch input:checked + span::before { transform: translateX(20px); }
.mc-switch input:disabled + span { opacity: .6; cursor: not-allowed; }
.mc-switch input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Mapa bloqueado hasta consentimiento ---------- */
.mc-embed { width: 100%; min-height: 360px; background: var(--mc-dark-2); display: flex; }
.mc-embed iframe { width: 100%; min-height: 450px; border: 0; display: block; }
.mc-embed__placeholder {
  margin: auto; padding: 48px 20px; text-align: center; max-width: 620px;
  font-family: "Open Sans", sans-serif;
}
.mc-embed__title { color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.mc-embed__title i { color: var(--mc-orange); margin-right: 6px; }
.mc-embed__text { color: #bfc7c9; font-size: 14px; margin-bottom: 18px; }
.mc-embed__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Enlaces legales del pie ---------- */
.legal-links {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
}
.legal-links li { margin: 0; }
footer .legal-links a {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  color: var(--mc-grey);
  text-decoration: none;
}
footer .legal-links a:hover, footer .legal-links a:focus { color: var(--mc-orange); }

/* ---------- Páginas legales ---------- */
.legal-section { padding: 70px 0 80px; background: #fff; }
.legal-content { max-width: 860px; margin: 0 auto; color: var(--mc-text); font-family: "Open Sans", sans-serif; font-size: 15px; line-height: 1.75; }
.legal-content h2 {
  font-family: Montserrat, sans-serif; color: var(--mc-dark);
  font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none;
  margin: 46px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: Montserrat, sans-serif; color: var(--mc-dark); font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.legal-content p, .legal-content li { color: var(--mc-text); }
.legal-content a { color: var(--mc-orange-dark); text-decoration: underline; }
.legal-content ul { padding-left: 22px; }
.legal-content .legal-updated { color: #777; font-size: 13px; margin-bottom: 30px; }
.legal-data { background: #faf4ec; padding: 20px 22px; border-radius: 8px; margin: 0 0 20px; }
.legal-data p { margin: 4px 0; }
.legal-table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.legal-table th { background: var(--mc-dark); color: #fff; font-family: Montserrat, sans-serif; font-weight: 600; text-align: left; padding: 10px 12px; }
.legal-table td { border-bottom: 1px solid #e5e5e5; padding: 10px 12px; vertical-align: top; color: var(--mc-text); }
.legal-table tr:nth-child(even) td { background: #fafafa; }
.legal-content .mc-btn--ghost { color: var(--mc-orange-dark); border-color: var(--mc-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .mc-cookies__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .mc-cookies__actions { flex-direction: column-reverse; }
  .mc-cookies__actions .mc-btn { width: 100%; }
  .mc-cookies__actions--modal { flex-direction: column-reverse; }
  .legal-section { padding: 44px 0 56px; }
  .legal-content h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  #mc-cookies .mc-cookies__bar { transition: none; }
}

/* Botones dentro de páginas de texto (404, cookies) */
.legal-content a.mc-btn { text-decoration: none; }
.legal-content a.mc-btn--primary, .legal-content a.mc-btn--primary:hover, .legal-content a.mc-btn--primary:focus { color: #fff; }
