/* ==========================================================
   Triangulo Aventura — Version PHP
   Sistema "Aventura Natural" (verde bosque / terracota / arena)
   Sincronizado con frontend/src/index.css
   ========================================================== */
:root {
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;

  --primary-400: #549066;
  --primary-500: #357a4c;
  --primary-600: #285f3b;
  --primary-700: #1f4a2e;
  --primary-800: #183a25;
  --primary-900: #11291a;

  --accent-400: #cd7339;
  --accent-500: #c0602c;
  --accent-600: #a44e25;

  --page-bg: #f5f1e8;
  --surface: #ffffff;
  --text: #25302a;
  --heading: #18271d;
  --muted: #6c7268;
  --border: #e6e0d2;
  --dark-surface: #15271b;
  --inverse-text: #f5f1e8;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --success-bg: #eef3ea;
  --success-text: #1f4a2e;
  --success-border: #cfe0cd;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-card: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(24, 39, 29, 0.08);
  --shadow: 0 10px 30px rgba(24, 39, 29, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ic { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.card-meta .ic, .item-meta .ic { vertical-align: -0.15em; }
main { flex: 1 0 auto; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-family: var(--font-body); cursor: pointer;
  transition: all .18s ease; font-size: .95rem;
}
.btn-primary { background: var(--accent-500); color: #fff; border-color: var(--accent-600); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-accent { background: var(--accent-500); color: #fff; border-color: var(--accent-600); }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-secondary { background: #ece4d3; color: var(--primary-700); border-color: #ded2b8; }
.btn-secondary:hover { background: #e1d6bf; }
.btn-ghost { background: transparent; color: var(--primary-700); border-color: var(--border); }
.btn-ghost:hover { background: #efeadd; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-primary { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.35rem; color: var(--heading); }
.brand-accent { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .42em; font-size: .68rem; color: var(--accent-500); margin-top: 3px; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, #3d8a57, #225135); color: #fff; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(34,81,53,.25);
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--radius-full); color: var(--muted); font-weight: 600; font-size: .9rem;
}
.nav-links a:hover, .nav-links a.active { background: #eef4ef; color: var(--heading); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-host-link { padding: 10px 16px; border-radius: var(--radius-full); color: var(--muted); font-weight: 600; font-size: .9rem; }
.nav-host-link:hover { background: #f0ebdf; color: var(--heading); }
.nav-panel-link { padding: 10px 16px; border-radius: var(--radius-full); color: var(--primary-700); font-weight: 600; font-size: .9rem; }
.nav-panel-link:hover { background: rgba(31,74,46,.08); }
.nav-user { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--border); padding-left: 14px; }
.nav-user-meta { text-align: right; line-height: 1.2; }
.nav-user-name { display: block; font-size: .85rem; font-weight: 700; color: var(--heading); }
.nav-user-role { display: block; font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.nav-avatar { width: 38px; height: 38px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #f3eedf; display: grid; place-items: center; font-weight: 700; color: var(--primary-700); }
.nav-logout { width: 38px; height: 38px; border-radius: var(--radius-full); border: none; background: #f3eedf; color: var(--primary-700); cursor: pointer; font-size: 1rem; }
.nav-logout:hover { background: #e9e0cb; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 940px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--page-bg); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--inverse-text); padding: 96px 0; overflow: hidden;
  background: linear-gradient(rgba(17,41,26,.72), rgba(17,41,26,.78)),
              url('https://images.unsplash.com/photo-1508739773434-c26b3d09e071?auto=format&fit=crop&w=1920&q=80') center/cover;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p { max-width: 620px; font-size: 1.15rem; margin: 18px 0 24px; color: #f0ece0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700; color: var(--accent-400); margin-bottom: 14px; }
.hero-desc { max-width: 620px; font-size: 1rem; line-height: 1.6; color: #e8e3d6; margin: -8px 0 24px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-full); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.10); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f5f1e8; font-size: .82rem; font-weight: 600; box-shadow: 0 2px 12px rgba(0,0,0,.10); }

/* Hero a dos columnas: texto (izq) + escaparate de destacadas (der) */
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: stretch; }
.hero-content { min-width: 0; }
.hero-showcase { display: grid; grid-template-columns: 1.35fr 200px; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 440px; }
.spot {
  position: relative; border-radius: var(--radius-card); overflow: hidden; text-decoration: none;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); transition: transform .2s ease;
}
.spot:hover { transform: translateY(-3px); }
.spot-big { grid-column: 1; grid-row: 1 / span 2; }
.spot-small { grid-column: 2; }
.spot-tag {
  position: absolute; top: 14px; left: 14px; background: var(--site-featured-tag-bg, #e9f0e7); color: var(--primary-700);
  border-radius: var(--radius-full); padding: 4px 12px; font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.spot-info { padding: 16px; color: #fff; }
.spot-title { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: #fff; }
.spot-big .spot-title { font-size: 1.5rem; }
.spot-small .spot-title { font-size: 1rem; }
.spot-meta { display: block; margin-top: 4px; font-size: .78rem; color: #eef0ea; opacity: .95; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 360px; }
}
@media (max-width: 560px) {
  .hero-showcase { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 120px; }
  .spot-big { grid-column: 1 / span 2; grid-row: 1; }
  .spot-small { grid-row: 2; }
  .spot-small:nth-child(2) { grid-column: 1; }
  .spot-small:nth-child(3) { grid-column: 2; }
}

/* Buscador del hero */
.search-dock {
  margin-top: 34px; background: var(--surface); border-radius: var(--radius-card); padding: 16px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; max-width: 920px;
}
.search-dock input, .search-dock select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; background: #fbfaf5; color: var(--text);
}
@media (max-width: 820px) { .search-dock { grid-template-columns: 1fr; } }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: #e7e1d2; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--heading); }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { background: #f3eedf; color: var(--heading); border: 1px solid #e0d6bd; border-radius: var(--radius-full); padding: 4px 12px; font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; }
.badge-featured { background: #e9f0e7; color: var(--primary-700); border: 1px solid #cfe0cd; }
.badge-accent { background: #f7e6d6; color: var(--accent-600); border: 1px solid #ecccac; }
.badge-verified { background: #e7efe5; color: var(--primary-700); }
.badge-difficulty { background: #f0ece0; color: var(--text); }

/* Panel de busqueda de catalogos (Experiencias / Alojamiento) */
.search-panel {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; gap: 14px; align-items: end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.search-panel-4 { grid-template-columns: 1fr 1fr 1fr 1fr auto; }
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.search-submit { height: 46px; }
@media (max-width: 900px) { .search-panel, .search-panel-4 { grid-template-columns: 1fr 1fr; } .search-submit { grid-column: 1 / -1; } }
@media (max-width: 560px) { .search-panel, .search-panel-4 { grid-template-columns: 1fr; } }

/* Tarjetas de categoria (Elementos) */
.category-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 220px; padding: 22px; border-radius: var(--radius-card); overflow: hidden;
  background-size: cover; background-position: center; color: #fff; text-decoration: none;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.category-emoji { font-size: 1.8rem; }
.category-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.category-desc { font-size: .85rem; color: #edefe8; opacity: .92; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--text); cursor: pointer; }
.chip.active, .chip:hover { background: var(--primary-600); color: #fff; border-color: var(--primary-700); }

.stars { color: #f4b400; letter-spacing: 1px; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent-600); font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--heading); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; background: #fbfaf5; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(53,122,76,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; border: 1px solid transparent; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }

/* ---------- Auth layout ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(rgba(17,41,26,.7), rgba(17,41,26,.82)), url('https://images.unsplash.com/photo-1533692328991-08159ff19fca?auto=format&fit=crop&w=1200&q=80') center/cover; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-main .form-card { width: 100%; max-width: 440px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dash-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; position: sticky; top: 88px; }
.dash-nav a { display: block; padding: 10px 14px; border-radius: var(--radius); color: var(--text); font-weight: 500; }
.dash-nav a:hover, .dash-nav a.active { background: #e7efe5; color: var(--primary-700); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--primary-700); font-weight: 700; }
.stat-card .label { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .stat-cards { grid-template-columns: repeat(2, 1fr); } .dash-nav { position: static; } }

/* ---------- Tabs de dashboard ---------- */
.dash-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.dash-tab { padding: 10px 18px; border-radius: var(--radius) var(--radius) 0 0; color: var(--muted); font-weight: 600; font-size: .92rem; border: 1px solid transparent; border-bottom: none; }
.dash-tab:hover { color: var(--heading); background: #f3eedf; }
.dash-tab.active { color: var(--primary-700); background: var(--surface); border-color: var(--border); }
.dash-tab .count { display: inline-block; margin-left: 6px; background: #e7efe5; color: var(--primary-700); border-radius: var(--radius-full); padding: 1px 8px; font-size: .72rem; }

/* Formulario expandible (crear/editar sin modal) */
.disclosure { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); margin-bottom: 18px; overflow: hidden; }
.disclosure > summary { cursor: pointer; padding: 14px 20px; font-weight: 600; color: var(--heading); list-style: none; display: flex; align-items: center; gap: 8px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "＋"; color: var(--primary-600); font-weight: 700; }
.disclosure[open] > summary::before { content: "－"; }
.disclosure[open] > summary { border-bottom: 1px solid var(--border); background: #faf8f1; }
.disclosure .disclosure-body { padding: 20px; }
.disclosure-edit > summary { padding: 8px 12px; font-size: .82rem; color: var(--primary-700); }
/* ==========================================================
   Area de trabajo del operador: shell con barra lateral
   ========================================================== */
/* En el area de trabajo la barra superior deja de estar centrada a 1200px: se
   extiende a todo lo ancho para que el logo quede alineado con la barra lateral
   y el menu con el contenido. Sin esto el panel arranca pegado a la izquierda
   mientras la cabecera flota en el medio, y se ve como dos sitios distintos. */
.has-panel .navbar .container { max-width: none; padding: 0 24px; }

.panel-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; align-items: start; }
.panel-side { position: sticky; top: 0; align-self: start; min-height: 100vh; background: var(--surface);
  border-right: 1px solid var(--border); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.panel-side-id { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.panel-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: var(--radius-full); background: var(--primary-600);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.panel-side-name { min-width: 0; }
.panel-side-name strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-side-badge { font-size: .72rem; color: var(--primary-700); }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius);
  color: var(--heading); text-decoration: none; font-size: .9rem; font-weight: 500; }
.panel-nav-item:hover { background: #faf8f1; }
.panel-nav-item.active { background: #e7efe5; color: var(--primary-700); font-weight: 700; }
.panel-nav-icon { width: 18px; text-align: center; flex: 0 0 18px; }
.panel-nav-label { flex: 1; min-width: 0; }
.panel-nav-count { background: #e7efe5; color: var(--primary-700); border-radius: var(--radius-full);
  padding: 1px 8px; font-size: .72rem; font-weight: 700; }
.panel-nav-item.active .panel-nav-count { background: var(--primary-600); color: #fff; }

/* Paginas del panel que no son el formulario de publicacion. El ancho lo fija
   .panel-main, no cada pagina por su cuenta. */
.panel-page, .panel-page-inner { width: 100%; }

/* Dentro del panel, todas las tarjetas se ven igual que las del formulario de
   publicacion: mismo relleno, mismo borde, sin sombra. */
.panel-shell .form-card,
.panel-shell .item-card,
.panel-shell .table-wrap { padding: 0; box-shadow: none; }
.panel-shell .form-card { padding: 20px 22px; }
.panel-shell .stat-cards { gap: 14px; margin-bottom: 22px; }
.panel-shell .stat-card { padding: 16px 18px; }
.panel-shell .stat-card .num { font-size: 1.7rem; }
.panel-shell h3 { font-size: .98rem; }
.panel-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: #f2efe6; border: 1px solid var(--border); border-radius: var(--radius-full); }
.panel-switch-item { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px;
  border-radius: var(--radius-full); text-decoration: none; color: var(--muted); font-size: .87rem; font-weight: 600; }
.panel-switch-item.active { background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.panel-switch-item .count { background: #e7efe5; color: var(--primary-700); border-radius: var(--radius-full);
  padding: 0 7px; font-size: .72rem; font-weight: 700; }
.panel-page-inner .section-head { margin-bottom: 18px; }
.panel-help { margin-top: auto; background: #faf8f1; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px; }
.panel-help p { margin: 4px 0 10px; font-size: .82rem; color: var(--muted); }
/* Ancho unico de TODA el area del operador. Un solo numero manda: si una pagina
   del panel se ve mas ancha o mas angosta que otra, es porque se salto esto. */
.panel-main { padding: 26px 30px 60px; min-width: 0; max-width: 1280px; }

/* ==========================================================
   Formulario de publicacion (pagina completa)
   ========================================================== */
.pub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pub-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.pub-head .muted { margin: 0; }
.pub-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pub-saved { font-size: .78rem; color: var(--primary-700); font-weight: 600; }

.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.pub-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pub-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }

.pub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 22px; }
.pub-card h2 { margin: 0 0 2px; font-size: 1.05rem; }
.pub-card h3 { margin: 0 0 2px; font-size: .98rem; }
.pub-sub { margin: 0 0 16px; font-size: .84rem; color: var(--muted); }
.req { color: var(--accent, #a44e25); }

.pub-textarea-lg { min-height: 170px; }
.pub-counter { text-align: right; font-size: .74rem; color: var(--muted); margin-top: 4px; }

/* Selector visual de tipo de experiencia */
.pub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pub-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-card); cursor: pointer; background: var(--surface); text-align: center; }
.pub-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pub-tile-icon { font-size: 1.5rem; line-height: 1; }
.pub-tile-label { font-size: .85rem; font-weight: 600; }
.pub-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-tile-wide { padding: 18px 16px; }
.pub-tile-hint { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.pub-tile:hover { border-color: var(--primary-600); }
.pub-tile:has(input:checked) { border-color: var(--primary-600); background: #e7efe5; box-shadow: inset 0 0 0 1px var(--primary-600); }

/* Campo con icono al frente */
.pub-field-icon { position: relative; }
.pub-field-icon > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: .95rem; }
.pub-field-icon .form-control { padding-left: 36px; }

/* Precio con prefijo/sufijo */
.pub-money { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pub-money-pre, .pub-money-post { display: flex; align-items: center; padding: 0 12px; background: #faf8f1; color: var(--muted); font-size: .85rem; }
.pub-money .form-control { border: none; border-radius: 0; flex: 1; min-width: 0; }
.pub-suffix { display: flex; align-items: center; gap: 8px; }
.pub-suffix .form-control { flex: 1; min-width: 0; }
.pub-suffix > span { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* Interruptor */
.pub-switch { display: inline-flex; align-items: center; height: 42px; cursor: pointer; }
.pub-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pub-switch-track { width: 44px; height: 24px; border-radius: var(--radius-full); background: #d9d5c8; position: relative; transition: background .15s; }
.pub-switch-dot { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--radius-full); background: #fff; transition: transform .15s; }
.pub-switch input:checked + .pub-switch-track { background: var(--primary-600); }
.pub-switch input:checked + .pub-switch-track .pub-switch-dot { transform: translateX(20px); }

/* Casillas y radios en rejilla */
.pub-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.pub-checks-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pub-check, .pub-radio { display: flex; align-items: center; gap: 8px; font-size: .87rem; cursor: pointer; }
.pub-radios { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; min-height: 42px; }

/* Etiquetas libres */
.pub-tagbox { display: flex; gap: 8px; }
.pub-tagbox .form-control { flex: 1; min-width: 0; }
.pub-tag-add { width: 42px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; font-size: 1.1rem; color: var(--primary-700); }
.pub-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pub-tag { display: inline-flex; align-items: center; gap: 6px; background: #e7efe5; color: var(--primary-700);
  border-radius: var(--radius-full); padding: 4px 10px; font-size: .8rem; }
.pub-tag button { border: none; background: none; cursor: pointer; color: inherit; font-size: .9rem; line-height: 1; padding: 0; }

/* Subida de fotos */
.pub-upload-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 18px; align-items: start; }
.pub-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: var(--radius-card); padding: 26px 18px; background: #faf8f1; }
.pub-drop.dragover { border-color: var(--primary-600); background: #e7efe5; }
.pub-drop-icon { font-size: 1.6rem; }
.pub-drop small { font-size: .72rem; }
.pub-tips { margin: 0; padding-left: 18px; font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.pub-thumbs { margin-top: 16px; }
.pub-thumb-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pub-thumb { position: relative; width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: var(--radius-full);
  border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .7rem; line-height: 1; }
/* Fotos ya guardadas (al editar): se quitan marcando la casilla, no con la X */
.pub-thumb-existing { width: 104px; height: auto; border: none; display: block; }
.pub-thumb-existing img { height: 84px; border-radius: var(--radius); border: 1px solid var(--border); }
.pub-thumb-del { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); margin-top: 4px; cursor: pointer; }

.pub-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 4px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Columna derecha: vista previa */
.pub-preview { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.pub-preview-img { position: relative; height: 132px; background: #e7efe5 center/cover no-repeat; }
.pub-preview-el { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.9); color: var(--heading);
  border-radius: var(--radius-full); padding: 2px 10px; font-size: .72rem; font-weight: 700; }
.pub-preview-body { padding: 12px 14px; }
.pub-preview-body strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.pub-preview-body .muted { font-size: .8rem; }
.pub-preview-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.pub-preview-price { font-size: .78rem; text-align: right; color: var(--muted); }
.pub-preview-price strong { display: inline; font-size: 1rem; color: var(--heading); }

/* Columna derecha: checklist */
.pub-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pub-checklist li { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--muted); }
.pub-checklist li::before { content: "○"; width: 18px; height: 18px; flex: 0 0 18px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; background: #eee9dc; color: #a9a291; font-size: .7rem; }
.pub-checklist li.done { color: var(--heading); }
.pub-checklist li.done::before { content: "✓"; background: var(--primary-600); color: #fff; }
.pub-progress { height: 6px; border-radius: var(--radius-full); background: #eee9dc; overflow: hidden; margin-bottom: 6px; }
.pub-progress span { display: block; height: 100%; width: 0; background: var(--primary-600); transition: width .2s; }
.pub-help-card p { margin: 6px 0 10px; font-size: .82rem; }

@media (max-width: 1100px) {
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-aside { position: static; }
  .pub-upload-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .panel-shell { grid-template-columns: minmax(0, 1fr); }
  .panel-side { position: static; min-height: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .panel-nav { flex-direction: row; flex-wrap: wrap; }
  .panel-help { display: none; }
  .panel-main { padding: 20px 16px 50px; }
  .pub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   Galeria de la ficha: una grande a la izquierda, cuatro a la derecha
   ========================================================== */
/* Las proporciones se eligen segun cuantas fotos haya, para que "cover" recorte
   lo menos posible. Antes era una sola composicion fija (2fr/1fr, 420 px): la
   grande quedaba panoramica ~1.9:1 y las laterales casi cuadradas, asi que una
   foto normal de telefono (3:2 o 4:3) perdia media escena arriba y abajo.
   Ahora cada caso deja los huecos cerca de 4:3 / 3:2, que es como salen. */
/* grid-template-rows: 1fr es imprescindible. Con aspect-ratio el bloque tiene
   altura definida, pero su fila implicita es "auto" y se estiraba al alto
   NATURAL de las fotos: las de la derecha crecian fuera de la caja y overflow
   las cortaba por la mitad. Con la fila en 1fr, los huecos miden lo que debe y
   es object-fit quien encuadra. Los min-height:0 permiten que las celdas se
   encojan (por defecto una celda de grid no baja de su contenido). */
.gal { display: grid; grid-template-rows: 1fr; gap: 8px; border-radius: var(--radius-card); overflow: hidden; }
.gal > *, .gal-lado > * { min-height: 0; min-width: 0; }

/* 1 foto: ocupa todo, sin cuadricula vacia al lado. */
.gal-1 { grid-template-columns: 1fr; aspect-ratio: 16 / 9; }

/* 2 fotos: grande ~1.4:1, lateral ~1.2:1 */
.gal-2 { grid-template-columns: 1.15fr 1fr; aspect-ratio: 2.6 / 1; }

/* 3 fotos: grande ~1.3:1 y las dos laterales ~1.3:1. La mejor del grupo. */
.gal-3 { grid-template-columns: 2fr 1fr; aspect-ratio: 2 / 1; }

/* 4 fotos: la ultima ocupa el ancho de la fila para no dejar un hueco. */
.gal-4 { grid-template-columns: 1.15fr 1fr; aspect-ratio: 2.5 / 1; }
.gal-4 .gal-tile:last-child { grid-column: span 2; }

/* 5 fotos: grande ~1.6:1 y las cuatro laterales ~1.4:1 */
.gal-5 { grid-template-columns: 1.15fr 1fr; aspect-ratio: 3 / 1; }
.gal-principal, .gal-tile { position: relative; padding: 0; border: none; background: #e7efe5; cursor: pointer; overflow: hidden; display: block; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gal-principal:hover img, .gal-tile:hover img { transform: scale(1.04); }
.gal-lado { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
/* Con pocas fotos, la columna derecha se reorganiza para no dejar huecos. */
.gal-2 .gal-lado { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-3 .gal-lado { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.gal-mas { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,23,18,.55);
  color: #fff; font-weight: 800; font-size: 1.3rem; }

/* Visor a pantalla completa */
.gal-visor { position: fixed; inset: 0; z-index: 9998; background: rgba(12,23,18,.94); display: grid; place-items: center; }
.gal-visor img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.gal-visor-cerrar, .gal-visor-nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: var(--radius-full); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.gal-visor-cerrar:hover, .gal-visor-nav:hover { background: rgba(255,255,255,.26); }
.gal-visor-cerrar { top: 20px; right: 20px; }
.gal-visor-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gal-visor-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.gal-visor-cuenta { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; }

@media (max-width: 760px) {
  /* En movil la grande va arriba a 4:3 (como la foto original) y las demas
     debajo en una tira; asi tampoco se recortan. */
  .gal, .gal-1, .gal-2, .gal-3, .gal-4, .gal-5 { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gal-principal { aspect-ratio: 4 / 3; }
  .gal-lado { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
  .gal-lado .gal-tile { aspect-ratio: 1 / 1; }
  .gal-4 .gal-tile:last-child { grid-column: auto; }
  .gal-visor-nav { width: 40px; height: 40px; }
}

/* Guia de inicio del operador nuevo (panel sin publicaciones todavia) */
.onboarding-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border); }
.onboarding-step:first-of-type { border-top: none; padding-top: 0; }
.onboarding-step:last-of-type { padding-bottom: 0; }
.onboarding-num { flex: 0 0 30px; height: 30px; border-radius: var(--radius-full); background: var(--primary-600); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.onboarding-step .btn + .btn { margin-left: 8px; }

.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.thumb-remove { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; }
.thumb-check { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.weekday-row { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .82rem; font-weight: 600; cursor: pointer; background: #fbfaf5; }
.weekday input { margin: 0; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] { width: 52px; height: 44px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; flex: 0 0 auto; }
.color-field .color-hex { flex: 1; font-family: monospace; text-transform: uppercase; background: #fbfaf5; }

/* Selector de estrellas (radio invertido con :checked ~) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.8rem; }
.star-input input { display: none; }
.star-input label { color: #d8d2c2; cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f4b400; }

/* Chat / mensajeria */
.chat { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; max-height: 480px; overflow-y: auto; }
.chat-msg { max-width: 78%; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-msg.theirs { align-self: flex-start; }
.chat-bubble { display: inline-block; padding: 10px 14px; border-radius: 16px; font-size: .93rem; }
.chat-msg.mine .chat-bubble { background: var(--primary-600); color: #f6f3ea; border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-bubble { background: #f0ebdf; color: var(--heading); border-bottom-left-radius: 4px; }
.chat-time { font-size: .68rem; color: var(--muted); margin-top: 4px; }

/* Lista de items del panel (experiencias / alojamientos) */
.item-list { display: flex; flex-direction: column; gap: 14px; }
.item-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.item-info { min-width: 0; }
.item-title { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--heading); }
.item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.item-tools { border-top: 1px solid var(--border); padding: 0 20px 4px; }
.item-tools .disclosure { border: none; border-radius: 0; margin-bottom: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
.item-tools .disclosure:last-child { border-bottom: none; }
.item-tools .disclosure > summary { padding: 12px 0; }
.item-tools .disclosure[open] > summary { background: transparent; }
.item-tools .disclosure .disclosure-body { padding: 8px 0 20px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f3eedf; color: var(--heading); font-weight: 600; }
tbody tr:hover { background: #faf8f1; }

/* ---------- Footer (fondo arena claro, igual que el original) ---------- */
.footer { background: #f5f1e8; color: var(--heading); margin-top: 0; padding: 56px 0 28px; border-top: 1px solid #ece4d3; }
.footer h4 { color: var(--heading); font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.footer a { color: var(--muted); display: block; padding: 5px 0; font-size: .9rem; }
.footer a:hover { color: var(--heading); }
.footer-desc { max-width: 340px; color: var(--muted); line-height: 1.7; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr .85fr 1.05fr 1.05fr 1.05fr; gap: 28px; }
.footer-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-channel { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #ece4d3; background: #fffdf7; color: var(--heading); transition: background .15s, color .15s, transform .15s, border-color .15s; }
.footer-channel svg { width: 20px; height: 20px; }
.footer-channel-txt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.footer-channel:hover { background: var(--primary-600); color: #fff; border-color: var(--primary-600); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #ece4d3; margin-top: 36px; padding-top: 22px; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; }
.footer-legal a { display: inline; padding: 0; }
.footer-legal .sep { padding: 0 8px; color: #9aa093; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Detail page ---------- */
.detail-hero { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; border-radius: var(--radius-card); background: #e7e1d2; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.detail-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 28px; }
.booking-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .booking-box { position: static; } }

/* ---- Widget de reserva (estilo Airbnb) ---- */
.bw-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.bw-price strong { font-size: 1.5rem; color: var(--heading); }
.bw-price span { color: var(--muted); font-size: .92rem; }
.bw-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bw-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; background: var(--surface); border: none; cursor: pointer; text-align: left; transition: background .15s; }
.bw-cell:hover { background: #faf7f0; }
.bw-cell + .bw-cell { border-left: 1px solid var(--border); }
.bw-cell.active { outline: 2px solid var(--primary-500); outline-offset: -2px; border-radius: 10px; }
.bw-cell-label { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.bw-cell-val { font-size: .92rem; color: var(--text); }
.bw-cell-val.empty { color: var(--muted); }
.bw-guests { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 10px 14px; margin-bottom: 14px; }
.bw-dates + .bw-guests { margin-top: 0; }
.bw-guests > span { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.bw-stepper { display: flex; align-items: center; gap: 12px; }
.bw-stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.bw-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.bw-stepper [data-guests] { min-width: 20px; text-align: center; font-weight: 600; }
.bw-field { margin-bottom: 12px; }
.bw-field label { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); margin-bottom: 5px; }
.bw-summary { display: flex; justify-content: space-between; padding: 12px 2px; margin: 6px 0 12px; border-top: 1px solid var(--border); font-size: .95rem; }
.bw-summary strong { color: var(--heading); }
.bw-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 10px; }
.bw-error { color: var(--danger); font-size: .84rem; margin: 8px 0 0; }

/* ---- Calendario propio ---- */
.bw-cal { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 10px 0 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bw-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bw-cal-head strong { font-size: .95rem; color: var(--heading); text-transform: capitalize; }
.bw-cal-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1rem; color: var(--heading); display: grid; place-items: center; }
.bw-cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.bw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bw-cal-dow { text-align: center; font-size: .66rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.bw-day { aspect-ratio: 1; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: .86rem; color: var(--text); display: grid; place-items: center; }
.bw-day:hover:not(:disabled) { background: #eef3ea; }
.bw-day:disabled { color: #c9cdc4; cursor: default; text-decoration: line-through; }
.bw-day.empty { visibility: hidden; }
.bw-day.in-range { background: #eef3ea; border-radius: 0; }
.bw-day.sel { background: var(--primary-600); color: #fff; }
.bw-day.sel.start { border-radius: 8px 0 0 8px; }
.bw-day.sel.end { border-radius: 0 8px 8px 0; }
.bw-day.sel.single { border-radius: 8px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.pagination .current { background: var(--primary-600); color: #fff; border-color: var(--primary-700); }

.list-inline { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-inline li { padding-left: 22px; position: relative; }
.list-inline li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-500); font-weight: 700; }

/* ============================================================
   Pulido visual (capa aditiva) — micro-interacciones y detalles
   ============================================================ */
html { scroll-behavior: smooth; }
::selection { background: var(--primary-600); color: #fff; }
img { max-width: 100%; }

/* Foco accesible y coherente en toda la interfaz */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Botones: micro-interaccion mas "premium" */
.btn { box-shadow: 0 1px 2px rgba(24, 39, 29, .06); }
.btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24, 39, 29, .16); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(24, 39, 29, .10); }
.btn-ghost, .btn-secondary { box-shadow: none; }

/* Tarjetas: zoom sutil de la imagen al pasar el cursor */
.card-img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img { transform: scale(1.06); }

/* Legibilidad del texto blanco sobre imagenes de categoria */
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 41, 26, 0) 30%, rgba(17, 41, 26, .8) 100%);
  z-index: 0;
}
.category-card > * { position: relative; z-index: 1; }

/* Encabezados: un pelin mas afinados */
h1, h2 { letter-spacing: -0.01em; }

/* Inputs: transicion suave del foco */
.form-control, .search-dock input, .search-dock select { transition: border-color .15s ease, box-shadow .15s ease; }

/* Detalle en el precio */
.price { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }

/* Scrollbar discreta (solo navegadores webkit) */
* { scrollbar-width: thin; scrollbar-color: #cbc4b1 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d3ccba; border-radius: 999px; border: 2px solid var(--page-bg); }
*::-webkit-scrollbar-thumb:hover { background: #b9b099; }

/* Paginas informativas: columna a la IZQUIERDA (no centrada) y texto a la izquierda */
.page-article { max-width: 760px; margin: 0; text-align: left; }
.page-hero .container, .page-article h1, .page-article h2, .page-article h3, .page-article p { text-align: left; }

/* Titulo de bloque en paginas informativas (formato "# Bloque") */
.page-block-title { margin: 40px 0 18px; padding-top: 22px; border-top: 2px solid var(--border); font-size: 1.7rem; }
.page-article > .page-block-title:first-child { margin-top: 6px; padding-top: 0; border-top: none; }

/* ---- Mini editor visual (WYSIWYG) ---- */
.wysiwyg { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.wysiwyg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px; background: #f3eedf; border-bottom: 1px solid var(--border); }
.wysiwyg-btn { padding: 4px 10px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--heading); }
.wysiwyg-btn:hover { background: var(--primary-600); color: #fff; border-color: var(--primary-700); }
.wysiwyg-sep { margin-left: 6px; font-size: .74rem; color: var(--muted); font-weight: 700; }
.wysiwyg-color { width: 22px; height: 22px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; cursor: pointer; padding: 0; }
.wysiwyg-color:hover { transform: scale(1.12); }
.wysiwyg-area { min-height: 240px; padding: 14px 16px; outline: none; color: var(--text); line-height: 1.6; }
.wysiwyg-area:focus { box-shadow: none; }
.wysiwyg-area h2 { font-size: 1.5rem; margin: 16px 0 8px; }
.wysiwyg-area h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.wysiwyg-area p { margin: 0 0 12px; }
.wysiwyg-area ul, .wysiwyg-area ol { margin: 0 0 12px 22px; }

/* Contenido HTML del editor en paginas informativas */
.page-article h2 { margin: 30px 0 12px; }
.page-article h3 { margin: 22px 0 8px; }
.page-article p { margin: 0 0 16px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.page-article ul, .page-article ol { margin: 0 0 16px 22px; color: var(--muted); }
.page-article li { margin-bottom: 6px; }
.page-article a { color: var(--primary-600); text-decoration: underline; text-underline-offset: 3px; }
.page-article strong, .page-article b { color: var(--heading); }

/* ---- Tiles de categoria (¿Que aventura quieres vivir?) ---- */
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-500); }
.cat-tile-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #eef4ef; font-size: 1.7rem; }
.cat-tile-name { font-weight: 700; color: var(--heading); font-size: .98rem; }
.cat-tile-count { font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- Seccion de confianza ---- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trust-col { display: flex; gap: 14px; align-items: flex-start; }
.trust-ic { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #e7efe5; color: var(--primary-700); }
.trust-col h4 { font-family: var(--font-body); font-size: 1.02rem; margin-bottom: 4px; }
.trust-col p { font-size: .92rem; line-height: 1.6; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---- CTA operadores con imagen ---- */
.cta-op { background-size: cover; background-position: center; color: #fff; padding: 64px 0; }
.cta-op-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.cta-op-text { max-width: 560px; }
.cta-op-benefits { display: flex; flex-direction: column; gap: 12px; }
.cta-op-benefit { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.cta-op-benefit svg { color: #7fd29b; flex: 0 0 auto; }
@media (max-width: 820px) { .cta-op-inner { grid-template-columns: 1fr; gap: 26px; } }

/* Footer: contacto con iconos + responsive 5 columnas */
.footer a .ic { vertical-align: -0.18em; margin-right: 4px; color: var(--muted); }
.footer-contact-item { display: block; padding: 5px 0; font-size: .9rem; color: var(--muted); }
.footer-contact-item .ic { vertical-align: -0.18em; margin-right: 4px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==== Footer oscuro (tema del mockup) ==== */
.footer { background: var(--dark-surface, #0c1712); color: rgba(255,255,255,.72); border-top: none; }
.footer h4 { color: #fff; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer-desc { color: rgba(255,255,255,.6); }
.footer .brand-primary { color: #fff; }
.footer-contact-item { color: rgba(255,255,255,.72); }
.footer .footer-contact-item .ic, .footer a .ic { color: var(--accent-400); }
.footer-channel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.footer-channel:hover { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
.footer-legal a { color: rgba(255,255,255,.6); }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { color: rgba(255,255,255,.25); }

/* Eyebrows y precios en verde acento */
.section-head .eyebrow, .eyebrow { color: var(--accent-600); }
.price { background: #eafaf1; color: var(--primary-700); border-color: #bfead2; }

/* Enlace "Ver todos" con flecha circular (mockup) */
.see-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--heading); }
.see-all:hover { color: var(--accent-600); }
.see-all-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--accent-500); color: var(--accent-600); border-radius: 50%; transition: background .15s, color .15s; }
.see-all:hover .see-all-arrow { background: var(--accent-500); color: #fff; }

/* CTA operadores como tarjeta redondeada dentro de la seccion */
.cta-op { max-width: 1200px; margin: 20px auto 56px; border-radius: 22px; padding: 56px; }
@media (max-width: 640px) { .cta-op { padding: 32px 22px; margin: 16px 16px 40px; } }

/* ==== Navbar oscuro (consistente con el diseño del home) ==== */
.navbar { background: #0c1712; border-bottom: 1px solid rgba(255,255,255,.08); }
.navbar .brand-primary { color: #fff; }
.navbar .brand-accent { color: var(--accent-400); }
.navbar .nav-links a { color: rgba(255,255,255,.85); }
.navbar .nav-links a:hover, .navbar .nav-links a.active { background: rgba(255,255,255,.09); color: #fff; }
.navbar .nav-host-link, .navbar .nav-panel-link { color: rgba(255,255,255,.85); }
.navbar .nav-host-link:hover, .navbar .nav-panel-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.navbar .nav-user { border-left-color: rgba(255,255,255,.15); }
.navbar .nav-user-name { color: #fff; }
.navbar .nav-user-role { color: rgba(255,255,255,.6); }
.navbar .nav-avatar { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.navbar .nav-logout { background: rgba(255,255,255,.1); color: #fff; }
.navbar .nav-logout:hover { background: rgba(255,255,255,.18); }
.navbar .nav-toggle { color: #fff; border-color: rgba(255,255,255,.22); }
.navbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.navbar .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.navbar .brand-badge { background: var(--accent-500); box-shadow: 0 8px 18px rgba(31,183,116,.28); }
@media (max-width: 940px) {
  .navbar .nav-links { background: #0c1712; border-bottom-color: rgba(255,255,255,.08); }
}

/* Tarjetas del catálogo alineadas al diseño */
.card { border-radius: 14px; }
.card-img { aspect-ratio: 16 / 11; }
.card-title { font-size: 1.15rem; }
.category-card { border-radius: 14px; }

/* ==== Botón de cuenta desplegable (navbar) ==== */
.acct { position: relative; }
.acct-trigger-dark { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: .9rem; padding: 9px 15px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.acct-trigger-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.acct-caret { font-size: .7rem; opacity: .8; }
.acct-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-500); color: #fff; font-size: .72rem; font-weight: 700; }
.acct-menu-dark { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #12211a; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px; box-shadow: 0 20px 44px -14px rgba(0,0,0,.6); display: none; z-index: 60; }
.acct.open .acct-menu-dark { display: block; }
.acct-menu-dark a, .acct-menu-dark button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; background: none; border: none; cursor: pointer; font-family: inherit; }
.acct-menu-dark a:hover, .acct-menu-dark button:hover { background: rgba(255,255,255,.09); color: #fff; }
.acct-sep { height: 1px; background: rgba(255,255,255,.1); margin: 6px 4px; }

/* ==== Páginas de acceso (login / registro) ==== */
.auth-side { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 42px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.auth-tri { width: 30px; height: 30px; background: var(--accent-500); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: inline-block; }
.auth-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; color: #fff; }
.auth-brand-name b { color: var(--accent-400); font-family: var(--font-body); font-weight: 700; }
.auth-side-body h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; max-width: 16ch; }
.auth-side-body p { margin-top: 14px; max-width: 42ch; color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.6; }
.auth-benefits { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: .95rem; }
.auth-benefits li span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: var(--accent-400); flex: 0 0 auto; }
.auth-main { padding: 40px 24px; }
.auth-main .form-card { width: 100%; max-width: 460px; padding: 36px 34px; }
.auth-main .form-card h2 { font-size: 1.7rem; }
.form-control:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(31,183,116,.18); }

/* Registro de operador un poco más ancho (tiene más campos) */
.auth-main .form-card.wide { max-width: 560px; }

/* ==== Formularios de acceso: más compactos y refinados ==== */
.auth-main .form-card { max-width: 400px; padding: 32px 30px; border-radius: 18px; box-shadow: 0 8px 24px -16px rgba(20,33,26,.18); }
.auth-main .form-card.wide { max-width: 500px; }
.auth-main .form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-main .form-card > p.muted { font-size: .88rem; margin-bottom: 20px !important; }
.auth-main .form-group { margin-bottom: 13px; }
.auth-main .form-group label { font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: .01em; }
.auth-main .form-control { padding: 10px 13px; font-size: .92rem; border-radius: 10px; background: #fbfaf6; }
.auth-main .form-control:focus { background: #fff; }
.auth-main .form-row { gap: 12px; }
.auth-main .btn-block { padding: 12px; font-size: .95rem; border-radius: 10px; margin-top: 6px; }
.auth-main small.muted { font-size: .75rem; }

/* Logo del navbar interno IGUAL al del home (triángulo + texto Bricolage) */
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-tri { width: 30px; height: 30px; background: var(--accent-500); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: inline-block; flex: 0 0 auto; }
.nav-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .5px; line-height: 1; color: #fff; }
.nav-brand-sub { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 4px; color: var(--accent-400); }

/* Botón de cuenta solo con icono (circular) */
.acct-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; justify-content: center; }
.acct-icon .ic { margin: 0; }
.acct-icon .acct-av { width: 40px; height: 40px; font-size: 1rem; }
.acct-icon:has(.acct-av) { background: transparent; border-color: transparent; }

/* Footer del home replicado en paginas internas: apilar en movil */
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr !important; gap: 28px !important; padding-top: 40px !important; } }

/* Sello del plan Empresa (nivel Premium) */
.badge-plan-premium { background: #f6e7c4; color: #8a6a1a; border: 1px solid #e9d29a; }

/* ====== Experiencia DESTACADA: se ve distinta al resto ====== */
.card-featured {
  position: relative;
  border: 1px solid rgba(198, 150, 40, .45);
  box-shadow: 0 16px 38px -26px rgba(180, 138, 30, .42);
}
.card-featured:hover { box-shadow: 0 22px 46px -24px rgba(180, 138, 30, .52); }
/* Cinta dorada sobre la foto */
.card-ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, #c69214, #e0b95a); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(180, 138, 30, .6);
}

/* Centrar el menú del navbar interno (logo izq · links centro · cuenta der) */
.navbar-inner .brand { flex: 1 1 0; }
.navbar-inner .nav-links { flex: 0 1 auto; justify-content: center; }
.navbar-inner .nav-actions { flex: 1 1 0; justify-content: flex-end; }
@media (max-width: 940px) {
  .navbar-inner .nav-links { flex: initial; }
}

/* ====== Reserva por franjas: día + horarios ====== */
.bw-field-label { display:block; font-size:.64rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--heading); margin-bottom:6px; }
.sw-times { margin: 2px 0 14px; }
.sw-times-label { margin-top: 4px; }
.sw-times-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap:8px; }
.sw-time { border:1px solid var(--border); background: var(--surface); border-radius:10px; padding:8px 6px; cursor:pointer; text-align:center; display:flex; flex-direction:column; gap:2px; font-family:inherit; transition: border-color .15s, background .15s; }
.sw-time:hover { border-color: var(--primary-500); }
.sw-time strong { font-size:.92rem; color: var(--heading); }
.sw-time span { font-size:.7rem; color: var(--muted); }
.sw-time.sel { background: var(--primary-600); border-color: var(--primary-600); }
.sw-time.sel strong, .sw-time.sel span { color:#fff; }

/* ====== Filtro de categorías de Servicios ====== */
.svc-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; border:1px solid var(--border); background: var(--surface); color: var(--text); font-size:.86rem; font-weight:600; text-decoration:none; transition: all .15s; }
.svc-chip:hover { border-color: var(--primary-500); color: var(--heading); }
.svc-chip.active { background: var(--primary-600); border-color: var(--primary-600); color:#fff; }
.svc-chip-n { font-size:.7rem; background: rgba(0,0,0,.08); border-radius:10px; padding:1px 7px; }
.svc-chip.active .svc-chip-n { background: rgba(255,255,255,.25); }

/* Buscador de servicios (Estado + Categoría + Buscar) */
.search-panel-3 { grid-template-columns: 1fr 1fr auto; }
@media (max-width: 900px) { .search-panel-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .search-panel-3 { grid-template-columns: 1fr; } }

/* ===== Calendario de publicación (crear/editar experiencia y alojamiento) ===== */
.cal-field { display:flex; flex-direction:column; gap:14px; }
.cal-widget { max-width:360px; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-head .cal-title { font-weight:800; font-size:.95rem; color:var(--heading); }
.cal-nav { width:34px; height:34px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; font-size:1.05rem; line-height:1; }
.cal-nav:hover { border-color:var(--primary-500); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
.cal-dow { text-align:center; font-size:.68rem; font-weight:700; color:var(--muted); padding:2px 0; }
.cal-day { aspect-ratio:1; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--text); font-size:.85rem; cursor:pointer; font-family:inherit; font-variant-numeric:tabular-nums; transition:.12s; padding:0; }
.cal-day:hover:not(.off) { border-color:var(--primary-500); }
.cal-day.empty { border:0; background:transparent; cursor:default; }
.cal-day.off { color:var(--muted); opacity:.4; cursor:not-allowed; }
.cal-day.sel { background:var(--primary-500); color:#fff; border-color:var(--primary-500); font-weight:800; }
.cal-day.block { background:var(--danger-bg); color:var(--danger); border-color:var(--danger); text-decoration:line-through; font-weight:700; }
.cal-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:12px; font-size:.78rem; color:var(--muted); }
.cal-legend i { display:inline-block; width:13px; height:13px; border-radius:4px; vertical-align:-2px; margin-right:6px; border:1px solid var(--border); }
.cal-legend .lg-free { background:var(--surface); }
.cal-legend .lg-sel { background:var(--primary-500); border-color:var(--primary-500); }
.cal-legend .lg-block { background:var(--danger-bg); border-color:var(--danger); }
.cal-slots { display:flex; flex-direction:column; gap:10px; }
.cal-day-block { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.cal-day-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-day-name { font-weight:800; font-size:.9rem; color:var(--heading); }
.cal-add-slot { background:transparent; border:1px solid var(--primary-500); color:var(--primary-600); border-radius:8px; padding:4px 12px; font-size:.78rem; font-weight:700; cursor:pointer; font-family:inherit; }
.cal-add-slot:hover { background:var(--primary-500); color:#fff; }
.cal-slot-rows { display:flex; flex-direction:column; gap:8px; }
.cal-slot-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cal-slot-row label { font-size:.78rem; font-weight:600; color:var(--muted); margin:0; }
.cal-slot-row input[type=time] { width:auto; padding:7px 9px; }
.cal-slot-row .cal-cupos { width:70px; padding:7px 9px; }
.cal-slot-row .cal-x { margin-left:auto; width:30px; height:30px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--danger); cursor:pointer; font-size:1.1rem; line-height:1; }
.cal-slot-row .cal-x:hover { border-color:var(--danger); }
.cal-empty { font-size:.85rem; font-style:italic; }
.form-section-title { font-family:var(--font-display); font-size:.95rem; font-weight:800; color:var(--heading); margin:22px 0 12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.form-section-title:first-of-type { margin-top:4px; }
