/* ============================================================
   Cowork SAS — Sistema de diseño (identidad propia)
   Paleta índigo/violeta · neutros fríos · sidebar oscuro
   ============================================================ */
:root {
  /* brand — grises neutros */
  --primary: #616161;
  --primary-600: #4d4d4d;
  --primary-700: #424242;
  --violet: #8a8a8a;
  --primary-soft: #eeeeef;

  /* sidebar #424242 */
  --ink-1: #474747;
  --ink-2: #3d3d3d;
  --ink-line: rgba(255, 255, 255, .09);
  --nav: #bdbdbd;
  --nav-hover: #ffffff;
  --side-active: #616161;

  /* neutrals */
  --text: #1a1f2e;
  --text-2: #4b5468;
  --muted: #8b93a7;
  --border: #e9ebf1;
  --border-2: #f0f2f6;
  --canvas: #f5f6f9;
  --card: #ffffff;

  /* status */
  --green: #12a150;   --green-bg: #e7f7ee;
  --amber: #c9820a;   --amber-bg: #fdf3df;
  --red: #e04352;     --red-bg: #fdeaec;
  --blue: #3b6fe0;    --blue-bg: #e9f0fd;
  --gray: #6b7488;    --gray-bg: #eef0f4;
  --violet-bg: #eef1f5;

  /* shape */
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh: 0 1px 3px rgba(16, 24, 40, .09), 0 1px 2px rgba(16, 24, 40, .05);
  --sh-md: 0 8px 24px rgba(16, 24, 40, .08);
  --sh-lift: 0 12px 30px rgba(66, 66, 66, .18);

  --sidebar-w: 264px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(185deg, var(--ink-1), var(--ink-2));
  color: var(--nav);
  border-right: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-logo { display: flex; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: #ffffff; letter-spacing: .2px; }
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #9e9e9e; }

.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: #8a8a8a; text-transform: uppercase; padding: 16px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--nav); font-size: 13.5px; font-weight: 500;
  text-decoration: none; cursor: pointer; position: relative;
  transition: background .15s, color .15s;
}
.nav-item .ic { width: 18px; height: 18px; opacity: .75; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: var(--nav-hover); }
.nav-item:hover .ic { opacity: 1; }
.nav-item.active {
  background: var(--side-active);
  color: #ffffff;
  font-weight: 600;
}
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 4px 4px 0; background: #ffffff;
}
.nav-item.active .ic { opacity: 1; color: #ffffff; }
.nav-badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255, 255, 255, .18);
  color: #fff; padding: 2px 7px; border-radius: 999px;
}
.nav-item.active .nav-badge { background: rgba(255, 255, 255, .28); }

.sidebar-foot { padding-top: 12px; }
.help-card {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 12px; display: grid;
  grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center;
}
.help-icon {
  grid-row: span 2; width: 34px; height: 34px; border-radius: 9px;
  background: #5f5f5f;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.help-card b { color: #ffffff; font-size: 12.5px; }
.help-card p { margin: 0; font-size: 11px; color: #b0b0b0; grid-column: 2; }
.help-btn {
  grid-column: 1 / -1; margin-top: 8px; width: 100%;
  background: rgba(255, 255, 255, .1); color: #ececec; border: 1px solid var(--ink-line);
  padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.help-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ============================================================
   Main + Topbar
   ============================================================ */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.page-title { font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 700; margin: 0; color: var(--text); }
.page-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: .15s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-600); border-color: #d4d8e0; }
#menuToggle { display: none; }

.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; height: 38px; width: 300px; }
.search .ic { width: 17px; height: 17px; color: var(--muted); }
.search input { border: none; outline: none; background: none; font-size: 13.5px; color: var(--text); width: 100%; font-family: inherit; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(97, 97, 97, .18); }

.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.v-divider { width: 1px; height: 28px; background: var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; }
.user-chip:hover { background: var(--primary-soft); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--primary));
  color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--muted); }
.chev { width: 16px; height: 16px; color: var(--muted); }

/* ============================================================
   Content
   ============================================================ */
.content { padding: 26px 28px 34px; flex: 1; max-width: 1440px; width: 100%; }
.footer { padding: 16px 28px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.foot-dot { color: var(--border); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #3a3a3a 0%, #545454 45%, #6e6e6e 100%);
  border-radius: var(--r-lg); padding: 26px 30px; color: #fff; margin-bottom: 22px;
  box-shadow: var(--sh-lift);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%;
}
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .5px; opacity: .85; margin: 0 0 6px; }
.hero-title { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.hero-sub { margin: 0; font-size: 13.5px; opacity: .9; max-width: 620px; }
.hero-actions { margin-top: 16px; display: flex; gap: 10px; position: relative; z-index: 1; }
.hero .btn-white { background: #fff; color: var(--primary-700); }
.hero .btn-ghost-w { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* KPI grid */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.kpi-ic {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.kpi-ic .ic { width: 18px; height: 18px; }
.kpi-ic.indigo { background: var(--primary-soft); color: var(--primary-600); }
.kpi-ic.green { background: var(--green-bg); color: var(--green); }
.kpi-ic.amber { background: var(--amber-bg); color: var(--amber); }
.kpi-ic.red { background: var(--red-bg); color: var(--red); }
.kpi-ic.violet { background: var(--violet-bg); color: var(--violet); }
.kpi-val { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.kpi-hint { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trend { font-weight: 700; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

/* ============================================================
   Cards
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); margin-bottom: 22px; overflow: hidden;
}
.grid-2 .card { margin-bottom: 0; }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--border-2);
}
.card-head.plain { border-bottom: none; padding-bottom: 4px; }
.card-title { font-family: 'Sora', sans-serif; font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0; }
.card-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.card-title-ic { display: flex; align-items: center; gap: 10px; }
.card-title-ic .badge-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-600); display: flex; align-items: center; justify-content: center; }
.card-body { padding: 20px 22px; }

/* stacked fields */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.fields.two { grid-template-columns: repeat(2, 1fr); }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.field .val { font-size: 13.5px; color: var(--text); font-weight: 500; }
.field .val.strong { font-weight: 600; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.doc-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--primary-soft); color: var(--primary-600); font-weight: 600; font-size: 12.5px;
  padding: 7px 12px; border-radius: 8px; border: 1px solid #dfe3e9;
}
.doc-link:hover { background: #e4e7ec; }

/* tabs */
.tabs { display: inline-flex; background: var(--canvas); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.tab { border: none; background: none; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-radius: 7px; cursor: pointer; font-family: inherit; }
.tab.active-tab { background: #fff; color: var(--primary-600); box-shadow: var(--sh-sm); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; color: var(--muted); font-weight: 600; text-transform: uppercase;
  font-size: 11px; letter-spacing: .5px; padding: 11px 16px;
  background: var(--canvas); border-bottom: 1px solid var(--border); white-space: nowrap;
}
thead th:first-child { border-top-left-radius: 0; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-2); color: var(--text-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbff; }
td .strong { color: var(--text); font-weight: 600; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.gray { background: var(--gray-bg); color: var(--gray); }
.count-pill { min-width: 24px; justify-content: center; padding: 3px 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; border: none; padding: 9px 15px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: .15s; }
.btn:hover { background: var(--primary-600); box-shadow: 0 6px 16px rgba(66,66,66,.24); }
.btn .ic { width: 16px; height: 16px; }
.btn.ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--canvas); color: var(--primary-600); border-color: #dcdffb; box-shadow: none; }
.btn.small { padding: 6px 11px; font-size: 12px; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--border-2); flex-wrap: wrap; }
.toolbar .search { height: 40px; }
.toolbar select { height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text-2); background: #fff; font-family: inherit; cursor: pointer; }
.toolbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(97, 97, 97, .18); }
.spacer { flex: 1; }

/* employee cell */
.emp-cell { display: flex; align-items: center; gap: 10px; }
.emp-cell .avatar { width: 32px; height: 32px; font-size: 11px; }
.emp-mail { color: var(--primary-600); text-decoration: none; }
.emp-mail:hover { text-decoration: underline; }

/* fab */
.fab {
  position: fixed; right: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--primary)); color: #fff; border: none;
  cursor: pointer; box-shadow: var(--sh-lift); display: flex; align-items: center; justify-content: center;
}
.fab:hover { transform: translateY(-2px); }
.fab .ic { width: 22px; height: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
/* scrim (fondo oscuro al abrir el menú en móvil) */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 30; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.scrim.show { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--sh-md); }
  #menuToggle { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .search { display: none; }
  .topbar { padding: 12px 16px; }
  .page-title { font-size: 17px; }
  .topbar-right { gap: 10px; }
  /* toolbars: buscador ocupa toda la fila; selects fluyen debajo */
  .toolbar .search { display: flex; flex: 1 1 100%; order: -1; }
  .toolbar select { flex: 1 1 auto; }
  .card-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .kpis, .fields, .fields.two { grid-template-columns: 1fr; }
  .user-meta { display: none; }
  .content { padding: 18px 14px 28px; }
  .hero { padding: 20px 18px; }
  .hero-title { font-size: 20px; }
  .hero-actions { flex-wrap: wrap; }
  .kpi-val { font-size: 23px; }
  .card-body { padding: 16px; }
  .card-head { padding: 16px; }
  .ad-banner { height: auto; }
  .ad-slide { position: relative; flex-wrap: wrap; padding: 40px 16px 30px; gap: 10px; }
  .ad-slide:not(.active) { display: none; }
  .ad-cta { margin: 0; }
  .ad-text b { font-size: 15px; }
  .fab { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}

/* ============================================================
   Componentes: servicios, directorio, lealtad, agenda médica
   ============================================================ */
/* service chips */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; background: var(--canvas); color: var(--text-2);
  border: 1px solid var(--border);
}
.chip .ic { width: 13px; height: 13px; color: var(--muted); }
.chip.on { background: var(--primary-soft); color: var(--primary-700); border-color: #dcdcdc; }
.chip.on .ic { color: var(--primary-600); }
.chip.hours { background: #eef4ff; color: #2f5fd0; border-color: #dbe6ff; }

/* directory grid */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dir-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .15s, transform .15s;
}
.dir-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.dir-top { display: flex; align-items: center; gap: 12px; }
.dir-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, var(--violet), var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.dir-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.dir-cat { font-size: 12px; color: var(--muted); }
.dir-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.dir-meta { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); }
.dir-meta .row { display: flex; align-items: center; gap: 7px; }
.dir-meta .ic { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.dir-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.dir-foot .btn { flex: 1; justify-content: center; }

/* loyalty */
.promo {
  background: linear-gradient(120deg, #3a3a3a, #616161); color: #fff; border-radius: var(--r-lg);
  padding: 26px 30px; margin-bottom: 22px; position: relative; overflow: hidden; box-shadow: var(--sh-lift);
}
.promo::after { content: "10%"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: 'Sora', sans-serif; font-size: 88px; font-weight: 700; opacity: .12; }
.promo h2 { font-family: 'Sora', sans-serif; font-size: 22px; margin: 0 0 6px; }
.promo p { margin: 0; font-size: 13.5px; opacity: .9; max-width: 560px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-sm); }
.step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-700);
  font-weight: 700; font-family: 'Sora', sans-serif; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* agenda médica */
.med-cell { display: flex; align-items: center; gap: 8px; }
.med-cross { width: 22px; height: 22px; border-radius: 6px; background: #eaf6ef; color: #12a150;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.link-cal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--primary-600); text-decoration: none; }
.link-cal .ic { width: 14px; height: 14px; }

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

/* ---- sponsored ad banner ---- */
.ad-banner { position: relative; height: 100px; border-radius: var(--r); overflow: hidden; margin-bottom: 22px; box-shadow: var(--sh); }
.ad-slide {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  text-decoration: none; color: #fff; background: linear-gradient(120deg, var(--g1), var(--g2));
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.ad-slide.active { opacity: 1; pointer-events: auto; }
.ad-tag { position: absolute; top: 12px; left: 24px; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.ad-logo { width: 54px; height: 54px; border-radius: 13px; background: rgba(255,255,255,.22); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; margin-top: 10px; }
.ad-text { display: flex; flex-direction: column; margin-top: 12px; min-width: 0; }
.ad-text b { font-family: 'Sora', sans-serif; font-size: 17px; line-height: 1.2; }
.ad-text span { font-size: 12.5px; opacity: .92; }
.ad-cta { margin-left: auto; background: #fff; color: #333; font-weight: 700; font-size: 12.5px; padding: 9px 16px; border-radius: 9px; white-space: nowrap; margin-top: 8px; }
.ad-dots { position: absolute; bottom: 10px; right: 18px; display: flex; gap: 6px; }
.ad-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.ad-dot.active { background: #fff; }

/* ---- maps routing buttons ---- */
.map-btns { display: flex; gap: 6px; }
.map-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; text-decoration: none; border: 1px solid var(--border); white-space: nowrap; }
.map-btn .ic { width: 13px; height: 13px; }
.map-btn.gmaps { color: #1a73e8; background: #eaf1fe; border-color: #d7e5fd; }
.map-btn.gmaps:hover { background: #ddeaff; }
.map-btn.waze { color: #12a0b4; background: #e6f8fb; border-color: #cdeff4; }
.map-btn.waze:hover { background: #d6f2f7; }

/* ---- lock note (descarga restringida) ---- */
.lock-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lock-note .ic { width: 14px; height: 14px; }

/* ---- comunicados feed ---- */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-2); }
.feed-item:last-child { border-bottom: none; }
.feed-ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feed-ic .ic { width: 19px; height: 19px; }
.feed-ic.green { background: var(--green-bg); color: var(--green); }
.feed-ic.blue { background: var(--blue-bg); color: var(--blue); }
.feed-ic.violet { background: var(--violet-bg); color: var(--violet); }
.feed-ic.amber { background: var(--amber-bg); color: var(--amber); }
.feed-ic.gray { background: var(--gray-bg); color: var(--gray); }
.feed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.feed-date { font-size: 12px; color: var(--muted); }
.feed-title { font-size: 14.5px; color: var(--text); display: block; margin-bottom: 3px; }
.feed-text { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ---- ratings ---- */
.stars { color: #f0a500; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.stars .star { color: #dcdfe6; }
.stars .star.on { color: #f0a500; }
.stars .star.half { position: relative; color: #dcdfe6; }
.stars .star.half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: #f0a500; }
.rate-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 30px 22px; }
.rate-big { font-family: 'Sora', sans-serif; font-size: 52px; font-weight: 700; color: var(--text); line-height: 1; }
.rate-summary .stars { font-size: 22px; }
.rate-total { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.rate-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.rate-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); width: 160px; flex-shrink: 0; }
.rate-name .ic { width: 15px; height: 15px; color: var(--muted); }
.rate-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.rate-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f0a500, #f5b933); }
.rate-score { font-weight: 700; color: var(--text); width: 34px; text-align: right; font-size: 13.5px; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-top .avatar { width: 36px; height: 36px; font-size: 12px; }
.review-top .stars { margin-left: auto; font-size: 13px; }
.review-meta { font-size: 12px; color: var(--muted); }
.review-text { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; font-style: italic; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } .ad-text span { display: none; } }
