@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #efe6d4;
  --text: #0f0e0d;
  --muted: #6b6560;
  --accent: #b8945a;
  --accent-2: #2c4a3e;
  --card: #ffffff;
  --border: #e4dfd8;
  --surface: #f5f3f0;
  --primary: #0f0e0d;
  --tile-a: #f3efe8;
  --tile-b: #e9edea;
  --tile-c: #ede9f1;
  --tile-d: #e8eff4;
}

* {
  box-sizing: border-box;
}

.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Scrollbars más sutiles */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 24, 22, 0.25) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(27, 24, 22, 0.25);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(27, 24, 22, 0.4);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0 2rem;
  height: 54px;
  overflow: visible;
  background: rgba(15, 14, 13, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: nowrap;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.logo {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  height: 54px;
  overflow: visible;
  flex-shrink: 0;
}

.logo img {
  height: 176px;
  display: block;
  filter: invert(1);
  object-fit: contain;
  position: relative;
  z-index: 11;
  margin-top: 30px;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  margin: 3px 0;
  border-radius: 999px;
}

.nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: nowrap;
  margin-left: 0.4rem;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  transition: color 0.2s;
}

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

.lang button {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.15s;
}

.lang {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.4rem;
}

.lang button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero {
  text-align: center;
  padding: 7rem 1.5rem 5.5rem;
  background:
    linear-gradient(rgba(10, 8, 6, 0.58), rgba(10, 8, 6, 0.58)),
    var(--hero-image, url("9175b3db-0a64-4326-a418-315d777c256b.JPG")) center 10% / cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  color: #fff;
  font-weight: 700;
}

.hero p {
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.eyebrow {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero .btn {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero .btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.9);
}

.hero .btn.ghost:hover {
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}

.hero.compact {
  padding: 1.2rem 1.5rem 1rem;
  text-align: left;
  background: none;
  border-bottom: 1px solid rgba(226,215,200,0.6);
}
.hero.compact h1 {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}
.hero.compact p {
  font-size: 0.85rem;
  margin: 0;
}
.hero.compact .eyebrow {
  font-size: 0.65rem;
  margin-bottom: 0.3rem;
}

.block {
  padding: 3rem 4rem;
  width: 100%;
}

/* Editorial vertical section labels */
#locales, #galeria, #resenas, #reservas {
  position: relative;
  padding-left: 7rem;
}

#resenas {
  padding-top: 1rem;
}

#locales .section-head h2,
#galeria .section-head h2,
#resenas .section-head h2,
#reservas .section-head h2 {
  position: absolute;
  left: 2rem;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
  white-space: nowrap;
  margin: 0;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  align-items: center;
}

.tile {
  background: var(--tile-a);
  border-radius: 6px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  background: var(--card);
}

.faq-item summary {
  cursor: pointer;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.edit-mode [data-content-key],
.edit-mode [data-edit-key] {
  outline: 1px dashed rgba(107, 31, 43, 0.5);
  outline-offset: 4px;
  cursor: pointer;
}

.edit-mode [data-content-key][contenteditable="true"] {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(15, 14, 13, 0.05);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}

.card-link:hover {
  transform: translateY(-2px);
}

.card-logo {
  position: relative;
  background: #0f0e0d;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  padding: 1.8rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
  min-height: 140px;
}

.card-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(107, 31, 43, 0.38);
}

.card-logo img {
  position: relative;
  z-index: 1;
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

.card h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.4rem;
  border: none;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  transition: opacity 0.18s, background 0.18s;
}

.btn:hover {
  opacity: 0.82;
}

.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--text);
  opacity: 1;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 2rem 3rem;
  background: #0f0e0d;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

.footer .btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
}

.footer .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.panel-filters {
  position: sticky;
  top: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  z-index: 2;
}

.panel-tabs {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0.6rem;
  background: var(--bg);
  z-index: 3;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.panel-section {
  display: none;
}

.panel-section.active {
  display: block;
}

.panel-preview {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 0.8rem;
}

.panel-preview iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
}

/* ── Canvas editor ────────────────────────────────────────────────────────── */
.wysiwyg-panel { padding-bottom: 0; }

.wysiwyg-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.wysiwyg-hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-right: auto;
}

.wysiwyg-frame {
  width: 100%;
  height: 82vh;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  display: block;
  background: #fff;
}

/* Split layout */
.canvas-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.canvas-preview {
  flex: 1;
  min-width: 0;
}

.canvas-preview .wysiwyg-frame {
  height: 82vh;
}

/* Properties panel */
.canvas-props {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
}

.cprops-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 0.75rem;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cprops-empty-icon { font-size: 2rem; }

.cprops-header {
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cprops-section {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.cprops-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.cprops-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cprops-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
}

.cprops-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 139,90,43), 0.1);
}

.cprops-img-preview {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 150px;
  display: block;
}

.cprops-img-empty {
  width: 100%;
  height: 90px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.cprops-upload-btn {
  cursor: pointer;
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
}

.cprops-del-btn { color: #c0392b; border-color: #c0392b; }

/* Galería en modo edición (dentro del iframe) */
.gallery-edit-slot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f3ece2;
  border: 2px dashed var(--border);
}
.gallery-edit-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-edit-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 0.18s;
}
.gallery-edit-slot:hover .gallery-edit-actions { opacity: 1; }
.gallery-edit-btn {
  background: #fff; color: #222;
  border: none; border-radius: 6px;
  padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 700;
  cursor: pointer;
}
.gallery-edit-del { background: #e74c3c; color: #fff; }
.gallery-edit-add {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-style: dashed;
}
.gallery-add-btn {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
}

/* ── Content Editor (marketing > edición web) ───────────────────────────── */

.cedit-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cedit-lang-bar {
  display: flex;
  gap: 0.4rem;
}

.cedit-lang {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.cedit-lang.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cedit-save-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cedit-save-indicator.show { opacity: 1; }
.cedit-save-indicator.ok   { color: #2e7d32; }
.cedit-save-indicator.err  { color: var(--accent); }
.cedit-save-indicator.loading { color: var(--muted); opacity: 1; }

.cedit-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--surface);
}

.cedit-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
}

.cedit-card-head strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
}

.cedit-card-body {
  padding: 0;
}

.cedit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
  transition: background 0.12s;
}

.cedit-row:last-child {
  border-bottom: none;
}

.cedit-label {
  flex: 0 0 150px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  user-select: none;
}

/* Text rows */
.cedit-text-row {
  cursor: default;
}

.cedit-text-row:not(.cedit-editing):hover {
  background: rgba(107, 31, 43, 0.03);
}

.cedit-display {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.12s;
  word-break: break-word;
  white-space: pre-wrap;
  min-height: 1.4em;
}

.cedit-text-row:not(.cedit-editing):hover .cedit-display {
  background: rgba(107, 31, 43, 0.06);
}

.cedit-pencil {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--accent);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.cedit-text-row:not(.cedit-editing):hover .cedit-pencil {
  opacity: 1;
}

.cedit-pencil:hover {
  background: rgba(107, 31, 43, 0.1);
}

.cedit-input {
  flex: 1;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  outline: none;
  resize: vertical;
  box-shadow: 0 0 0 3px rgba(107, 31, 43, 0.08);
  transition: box-shadow 0.15s;
}

.cedit-input:focus {
  box-shadow: 0 0 0 4px rgba(107, 31, 43, 0.14);
}

/* Image rows */
.cedit-image-slot {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cedit-img-thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.cedit-img-empty {
  width: 72px;
  height: 44px;
  border-radius: 7px;
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--muted);
}

.cedit-img-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}

.cedit-img-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cedit-img-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}

.cedit-img-link:hover {
  color: var(--accent);
}

/* Gallery rows */
.cedit-gallery-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
}

.cedit-gallery-ta {
  width: 100%;
  font-size: 0.81rem;
  font-family: "Courier New", monospace;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  color: var(--text);
}

.cedit-gallery-ta:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 31, 43, 0.08);
}

.cedit-gallery-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  border: 1.5px dashed var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  background: rgba(107, 31, 43, 0.04);
  transition: background 0.15s;
}

.cedit-gallery-upload:hover {
  background: rgba(107, 31, 43, 0.1);
}

/* ── RRHH Seguimiento ────────────────────────────────────────────────────── */

.seg-layout {
  display: flex;
  gap: 0;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.seg-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.seg-sidebar-header {
  padding: 0.7rem 0.75rem 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seg-add-worker-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.seg-add-worker-btn:hover {
  background: var(--accent);
  color: #fff;
}

.seg-progress {
  position: relative;
  height: 28px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
}

.seg-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #a8ddb5, #4caf50);
  transition: width 0.4s ease;
  z-index: 0;
}

.seg-progress span {
  position: relative;
  z-index: 1;
}

.seg-group {
  padding: 0.5rem 0;
}

.seg-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.4rem 0.75rem 0.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.seg-group-label:hover {
  color: var(--accent);
}

.seg-collapse-arrow {
  font-size: 0.6rem;
  flex-shrink: 0;
}

.seg-group-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-group-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  background: var(--border);
  border-radius: 10px;
  padding: 0.05rem 0.45rem;
  color: var(--muted);
}

.seg-worker-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}

.seg-worker-card:hover {
  background: rgba(107, 31, 43, 0.04);
}

.seg-worker-card.active {
  background: rgba(107, 31, 43, 0.07);
  border-left-color: var(--accent);
}

.seg-worker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seg-worker-card.done .seg-worker-avatar {
  background: #4caf50;
}

.seg-worker-info {
  flex: 1;
  min-width: 0;
}

.seg-worker-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-worker-rol {
  font-size: 0.72rem;
  color: var(--muted);
}

.seg-call-badge {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.seg-call-badge.done { color: #2e7d32; }
.seg-call-badge.pending { color: var(--muted); }

.seg-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--card);
}

.seg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 3rem;
  text-align: center;
}

.seg-loading {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Ficha del trabajador */
.seg-ficha {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seg-ficha-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.seg-ficha-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seg-ficha-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
}

.seg-ficha-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.seg-ficha-mes-badge {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.seg-ficha-mes-badge.done {
  background: #e8f5e9;
  color: #2e7d32;
}

.seg-ficha-mes-badge.pending {
  background: #fff3e0;
  color: #e65100;
}

.seg-delete-worker {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.seg-delete-worker:hover {
  color: #c0392b;
  background: #fce4ec;
}

/* Modal */
.seg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.seg-modal-overlay.show {
  display: flex;
}

.seg-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  overflow: hidden;
}

.seg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.85rem;
  background: var(--primary);
  color: #fff;
}

.seg-modal-head strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
}

.seg-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.seg-modal-close:hover { color: #fff; }

.seg-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seg-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.seg-modal-body input,
.seg-modal-body select {
  font-size: 0.88rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  outline: none;
  font-family: inherit;
}

.seg-modal-body input:focus,
.seg-modal-body select:focus {
  border-color: var(--accent);
}

.seg-ficha-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.seg-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
}

/* Llamada form */
.seg-llamada-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seg-llamada-form.hidden { display: none; }

.seg-llamada-preguntas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seg-pregunta-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.seg-pregunta-input {
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  resize: vertical;
  outline: none;
}

.seg-pregunta-input:focus {
  border-color: var(--accent);
}

.seg-llamada-resumen {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seg-llamada-qa {
  font-size: 0.85rem;
}

.seg-llamada-qa strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.seg-llamada-qa p {
  margin: 0;
  padding: 0.4rem 0.65rem;
  background: var(--bg);
  border-radius: 6px;
  line-height: 1.5;
}

.seg-llamada-qa.seg-libre p {
  background: #f0fdf4;
}

.seg-llamada-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Añadir nota */
.seg-add-nota {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seg-add-nota.hidden { display: none; }

.seg-add-nota textarea {
  font-size: 0.88rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  resize: vertical;
  outline: none;
}

.seg-add-nota textarea:focus {
  border-color: var(--accent);
}

.seg-tipo-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.12s;
}

.seg-tipo-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Timeline */
.seg-empty-timeline {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.seg-nota-card {
  margin: 0.65rem 1rem;
  border: 1.5px solid;
  border-radius: 10px;
  overflow: hidden;
}

.seg-nota-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.seg-nota-tipo {
  font-weight: 700;
}

.seg-nota-fecha {
  color: var(--muted);
  margin-left: auto;
}

.seg-nota-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.seg-nota-delete:hover { color: var(--accent); }

.seg-nota-body {
  padding: 0.6rem 0.75rem;
  font-size: 0.87rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .seg-layout {
    flex-direction: column;
  }
  .seg-sidebar {
    width: 100%;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .seg-ficha-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .seg-ficha-mes-badge {
    margin-left: 0;
  }
}

.edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.upload {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed #b7a593;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.upload input {
  display: none;
}

.gallery-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-tools .btn {
  font-size: 0.7rem;
  padding: 0.4rem 0.7rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
  font-size: 0.9rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #eadfce;
}

.table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form {
  display: grid;
  gap: 0.6rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

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

.form input,
.form select {
  padding: 0.75rem 0.9rem;
  border: 1px solid #d6c9bb;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 6px 14px rgba(27, 24, 22, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  height: 46px;
}

.form textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid #d6c9bb;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 6px 14px rgba(27, 24, 22, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  min-height: 90px;
  resize: vertical;
}

.form textarea:focus {
  outline: none;
  border-color: #b7a593;
  box-shadow: 0 0 0 3px rgba(211, 106, 95, 0.18), 0 10px 20px rgba(27, 24, 22, 0.1);
}

.form input[readonly] {
  cursor: pointer;
}

.datepicker {
  position: absolute;
  z-index: 10000;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(27, 24, 22, 0.18);
  padding: 0.9rem;
  width: 280px;
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
}

.datepicker.hidden {
  display: none;
}

.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.dp-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dp-nav {
  border: none;
  background: #1b1816;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.dp-weekday {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
}

.dp-day {
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.dp-day.muted {
  color: #b7a593;
  background: #f6efe6;
}

.dp-day.selected {
  background: var(--accent);
  color: #fff;
}

.dp-day.disabled {
  color: #c9b9a6;
  background: #f4ede4;
  cursor: not-allowed;
}

.form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b625a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>\");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: #b7a593;
  box-shadow: 0 0 0 3px rgba(211, 106, 95, 0.18), 0 10px 20px rgba(27, 24, 22, 0.1);
}

.form input:hover,
.form select:hover {
  transform: translateY(-1px);
}

.form-note {
  color: var(--muted);
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  z-index: 9999;
  overflow-y: auto;
}

.popup.show {
  display: flex;
}

.popup-card {
  background: var(--card);
  padding: 2.2rem 1.5rem 1.5rem;
  border-radius: 12px;
  position: relative;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(27, 24, 22, 0.12);
  margin-top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.close {
  position: sticky;
  top: 0.5rem;
  right: 0.7rem;
  background: #1b1816;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 760px) {
  .top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 54px;
    overflow: visible;
    position: sticky;
  }
  .logo img {
    height: 100px;
    margin-top: 20px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: flex;
    flex-direction: column;
    width: calc(100% - 2rem);
    align-items: center;
    margin-left: 0;
    position: absolute;
    left: 1rem;
    top: 54px;
    background: rgba(15, 14, 13, 0.97);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    gap: 0.6rem;
    padding: 0.6rem 0 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 240ms ease, opacity 200ms ease;
    z-index: 20;
  }
  .nav a {
    color: rgba(255,255,255,0.8);
  }
  .nav.open {
    max-height: 400px;
    opacity: 1;
  }
  .lang {
    margin-left: 0;
  }
}

/* ── Formulario de reservas rediseñado ──────────────────────────────────── */

.reserva-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 760px;
}

.reserva-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reserva-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.reserva-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.reserva-row--datetime {
  grid-template-columns: 1fr 2fr;
}

.reserva-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Local chips */
.local-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.local-grid::-webkit-scrollbar {
  display: none;
}

.local-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1.5px solid #d4c9b8;
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.local-chip:hover {
  border-color: var(--accent);
  background: #fff8f6;
}

.local-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.chip-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.local-chip.selected .chip-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.stepper-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid #d4c9b8;
  background: var(--card);
  cursor: pointer;
  font-size: 1.1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.stepper-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#personasDisplay {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

.stepper-unit {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Time picker */
#timePicker {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.time-section {
  flex: 1;
  min-width: 140px;
}

.time-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.time-pill {
  padding: 0.3rem 0.6rem;
  border: 1.5px solid #d4c9b8;
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.time-pill:hover {
  border-color: var(--accent);
}

.time-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Date input */
.reserva-date-input,
.reserva-select,
.reserva-form input[type="tel"],
.reserva-form input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid #d4c9b8;
  border-radius: 8px;
  background: var(--card);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.reserva-date-input { cursor: pointer; }

.reserva-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.2rem;
}

.reserva-date-input:focus, .reserva-date-input:hover,
.reserva-select:focus, .reserva-select:hover,
.reserva-form input[type="tel"]:focus, .reserva-form input[type="tel"]:hover,
.reserva-form input[type="text"]:focus, .reserva-form input[type="text"]:hover {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .reserva-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .reserva-row--datetime { grid-template-columns: 1fr; }
  #timePicker { flex-direction: column; gap: 0.8rem; }
}

/* ── Calendario de reservas ─────────────────────────────────────────────── */

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.cal-toolbar select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d4c9b8;
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#calTitle {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 180px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  overflow-x: auto;
}

.cal-day {
  background: var(--card);
  border: 1px solid #e4d9c8;
  border-radius: 10px;
  padding: 0.5rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cal-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.cal-day-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e4d9c8;
}

.cal-weekday {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cal-date-num {
  font-weight: 700;
  font-size: 1rem;
  margin-left: auto;
}

.is-today .cal-date-num {
  color: var(--accent);
}

.cal-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.cal-empty {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.6rem 0;
}

.cal-event {
  border-left: 3px solid var(--muted);
  background: var(--bg);
  border-radius: 0 5px 5px 0;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
  position: relative;
  cursor: default;
}

.cal-event.tapeta      { border-left-color: #d36a5f; }
.cal-event.cooperativa { border-left-color: #8fb6a6; }
.cal-event.canmateu    { border-left-color: #e0943a; }
.cal-event.latapa      { border-left-color: #a07cc5; }
.cal-event.botiga      { border-left-color: #5b9ec9; }
.cal-event.viva        { border-left-color: #e895b3; }

.cal-time {
  font-weight: 700;
  display: block;
}

.cal-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.cal-meta {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-del {
  position: absolute;
  top: 2px;
  right: 2px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.cal-event:hover .cal-del {
  opacity: 1;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.cal-legend-item {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border-left: 3px solid var(--muted);
  background: var(--card);
}

.cal-legend-item.tapeta      { border-left-color: #d36a5f; }
.cal-legend-item.cooperativa { border-left-color: #8fb6a6; }
.cal-legend-item.canmateu    { border-left-color: #e0943a; }
.cal-legend-item.latapa      { border-left-color: #a07cc5; }
.cal-legend-item.botiga      { border-left-color: #5b9ec9; }
.cal-legend-item.viva        { border-left-color: #e895b3; }

@media (max-width: 900px) {
  .cal-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-toolbar { flex-direction: column; }
}

/* ── Botón WhatsApp flotante ─────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

/* ── Trabaja (desplegable) ───────────────────────────────────────────────── */

.trabaja-details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

.trabaja-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.trabaja-summary::-webkit-details-marker { display: none; }

.trabaja-summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trabaja-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trabaja-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.trabaja-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 220ms ease;
  flex-shrink: 0;
}

.trabaja-details[open] .trabaja-arrow {
  transform: rotate(90deg);
}

.trabaja-body {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid #eadfce;
  animation: slideDown 220ms ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Galería ─────────────────────────────────────────────────────────────── */

.galeria-grid {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 320px;
}

.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 600px) {
  .carousel-slide { width: 240px; }
  .carousel-slide img { height: 160px; }
}

/* ── Reseñas ─────────────────────────────────────────────────────────────── */

.resenas-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resena {
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resena p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  line-height: 1.55;
}

.resena strong {
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── Historia editorial ──────────────────────────────────────────────────── */

.historia-section {
  max-width: 860px;
  margin: 0 auto;
}

.historia-eyebrow {
  font-family: "Gill Sans", "Trebuchet MS", "Arial", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.historia-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
  line-height: 1.15;
}

.historia-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.historia-body p {
  margin: 0;
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.historia-lead {
  font-size: 1.22rem !important;
  font-weight: 600;
  color: var(--primary) !important;
  line-height: 1.55 !important;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eadfce;
}

.historia-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.historia-cols p {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

.historia-quote {
  margin: 0.5rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, #fff8f5 0%, #fdf4ec 100%);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--primary);
}

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

  .historia-quote {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* ── Reservas destacadas ─────────────────────────────────────────────────── */

.reservas-highlight {
  background: linear-gradient(135deg, #fff8f5 60%, #f6efe6 100%);
  border-radius: 24px;
  border: 1px solid #f0dfd4;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Eventos CTA ─────────────────────────────────────────────────────────── */

.eventos-cta {
  background: linear-gradient(135deg, var(--tile-b) 0%, var(--tile-a) 100%);
  border-radius: 24px;
  text-align: center;
  max-width: 700px;
  margin-top: 3rem;
}

.eventos-cta .section-head {
  margin-bottom: 1.5rem;
}

/* ── Sidebar dirección ───────────────────────────────────────────────────── */

.dir-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  overflow: hidden;
}

.dir-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.dir-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #eadfce;
  background: #f4eee6;
  overflow-y: auto;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dir-nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.dir-nav-btn:hover {
  background: rgba(211, 106, 95, 0.08);
}

.dir-nav-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.dir-main {
  flex: 1;
  overflow-y: auto;
}

.dir-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.dir-inline {
  padding: 1.5rem;
  max-width: 900px;
}

@media (max-width: 700px) {
  .dir-sidebar { width: 150px; }
  .dir-nav-btn { font-size: 0.75rem; padding: 0.45rem 0.6rem; }
}

/* ── Confirmación de reserva ─────────────────────────────────────────────── */

.reserva-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: successIn 0.4s ease;
}

@keyframes successIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.reserva-success-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.reserva-success h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.reserva-success-details {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* ── Teaser de locales en home ────────────────────────────────────────────── */

.locales-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.locales-teaser-names {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  width: 100%;
}

/* Photo cards */
.ltc {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 2/3;
}

.ltc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ltc:hover .ltc-bg {
  transform: scale(1.08);
}

.ltc-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  object-fit: contain;
  z-index: 2;
  filter: brightness(0) invert(1);
  opacity: 0.45;
}

.ltc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  z-index: 1;
  transition: opacity 0.3s;
}

.ltc:hover .ltc-overlay {
  opacity: 0.85;
}

.ltc-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1rem 0.9rem;
  z-index: 2;
}

.ltc-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.ltc-loc {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .locales-teaser-names {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .locales-teaser-names {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Franja de descuento (siempre visible) ───────────────────────────────── */

.descuento-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.descuento-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.descuento-strip strong {
  color: #fff;
  font-size: 1.15rem;
  display: block;
  font-family: "Playfair Display", Georgia, serif;
}

.descuento-strip p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}

.descuento-strip .btn {
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Mejoras responsive móvil ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .block {
    padding: 3rem 2rem;
  }
  #locales, #galeria, #resenas, #reservas {
    padding-left: 5rem;
  }
}

@media (max-width: 640px) {
  .block {
    padding: 2rem 1.2rem;
  }

  #locales, #galeria, #resenas, #reservas {
    padding-left: 1.2rem;
  }

  #locales .section-head h2,
  #galeria .section-head h2,
  #resenas .section-head h2,
  #reservas .section-head h2 {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    white-space: normal;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 2.2rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .section-head h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .reservas-highlight {
    border-radius: 16px;
  }

  .eventos-cta {
    border-radius: 16px;
  }

  .descuento-strip {
    border-radius: 16px;
  }

  .popup-card {
    padding: 1.75rem 1.1rem 1.25rem;
    margin-top: 0.5rem;
  }

  .reserva-success h3 {
    font-size: 1.35rem;
  }
}
