/* ---- mockups/a-editorial/styles.css ---- */
/* ============================================================
   CARFY 2027 — Dirección A: "Editorial claro"
   Sistema base. Sin frameworks. Mobile-first.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Color */
  --ink-900: #0b0f14;
  --ink-800: #151c25;
  --ink-700: #2a3441;
  --ink-500: #5b6b7c;
  --ink-400: #8697a8;
  --ink-200: #dde4eb;
  --ink-100: #eef2f6;
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eaf0f5;

  --brand: #e10600;
  --brand-600: #b30500;
  --brand-soft: #fff1f0;

  --ok: #0b6e4f;
  --ok-soft: #e6f4ef;
  --warn: #b26b00;
  --warn-soft: #fdf3e2;

  /* Tipo */
  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espacio */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* Forma */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgb(11 15 20 / 0.06), 0 1px 3px rgb(11 15 20 / 0.04);
  --shadow-2: 0 8px 24px rgb(11 15 20 / 0.08), 0 2px 6px rgb(11 15 20 / 0.04);
  --shadow-3: 0 24px 60px rgb(11 15 20 / 0.14);

  --max: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink-900);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s4);
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--s4);
  top: var(--s4);
  z-index: 999;
  background: var(--ink-900);
  color: #fff;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgb(225 6 0 / 0.28);
}
.btn--primary:hover {
  background: var(--brand-600);
  text-decoration: none;
}
.btn--dark {
  background: var(--ink-900);
  color: #fff;
}
.btn--dark:hover {
  background: var(--ink-800);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn--ghost:hover {
  background: var(--paper-2);
  text-decoration: none;
}
.btn--light {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-2);
}
.btn--sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

/* ---------- Topbar + Header ---------- */
.topbar {
  background: var(--ink-900);
  color: #c7d2dd;
  font-size: 0.8rem;
}
.topbar .wrap {
  display: flex;
  gap: var(--s4);
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.topbar nav {
  display: flex;
  gap: var(--s4);
  overflow: hidden;
}
.topbar a {
  color: #c7d2dd;
  white-space: nowrap;
}
.topbar a:hover {
  color: #fff;
}
.topbar .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgb(61 220 151 / 0.18);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  line-height: 1;
}
.logo:hover {
  text-decoration: none;
}
.logo__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.72rem;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: #46525f;
  padding-bottom: 0.08em;
}
.logo__fy { color: var(--brand); }
.logo__tld { color: #46525f; }
.logo--light .logo__word,
.logo--light .logo__tld { color: #e6edf4; }
.logo--light .logo__fy { color: #ff3b30; }
.logo__img {
  display: block;
  height: 30px;
  width: auto;
}
@media (max-width: 600px) {
  .logo__word { font-size: 1.5rem; }
  .logo__img  { height: 26px; }
}

.nav {
  display: none;
  gap: 2px;
  margin-left: var(--s4);
}
.nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
}
.nav a:hover {
  background: var(--paper-2);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  color: var(--ink-900);
  background: var(--paper-3);
  font-weight: 600;
}
.header .actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s2);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* ---------- Hero con buscador ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 82% 18%, rgb(225 6 0 / 0.38), transparent 62%),
    radial-gradient(700px 380px at 12% 92%, rgb(11 110 79 / 0.22), transparent 60%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.028) 0 2px, transparent 2px 9px);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0b0f14 8%, rgb(11 15 20 / 0.72) 48%, rgb(11 15 20 / 0.35) 100%);
  z-index: -1;
}
.hero .wrap {
  padding-block: var(--s7) var(--s8);
}
.hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: var(--s3);
}
.hero h1 em {
  font-style: normal;
  color: #ff6a5e;
}
.hero p.lead {
  color: #c3cfdb;
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: var(--s6);
}

/* Buscador */
.search {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s2);
  display: grid;
  gap: var(--s2);
  box-shadow: var(--shadow-3);
  max-width: 860px;
}
.search .field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  min-width: 0;
}
.search label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  font-weight: 600;
}
.search input,
.search select {
  border: 0;
  background: transparent;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-900);
  padding: 0;
  width: 100%;
  outline: none;
  appearance: none;
}
.search input::placeholder {
  color: var(--ink-400);
  font-weight: 400;
}
.search .btn {
  height: 100%;
  min-height: 56px;
  border-radius: var(--r-md);
}

@media (min-width: 760px) {
  .search {
    grid-template-columns: 1.1fr 1.2fr auto;
    align-items: stretch;
  }
}

/* Chips bajo el buscador */
.hero .quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
  align-items: center;
}
.hero .quick span {
  font-size: 0.85rem;
  color: #9fb0c0;
  margin-right: var(--s1);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
  color: #e7eef5;
  font-size: 0.85rem;
  font-weight: 500;
}
.chip:hover {
  background: rgb(255 255 255 / 0.14);
  text-decoration: none;
  color: #fff;
}

/* ---------- Franja de datos ---------- */
.stats {
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  padding-block: var(--s5);
}
.stat .n {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .l {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 6px;
}
@media (min-width: 720px) {
  .stats .wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Secciones ---------- */
.section {
  padding-block: var(--s7);
}
.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--ink-100);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}
.section-head p {
  color: var(--ink-500);
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* Grid de provincias */
.prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.prov-grid a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-900);
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.prov-grid a:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgb(225 6 0 / 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}
.prov-grid .c {
  font-size: 0.75rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

/* Servicios */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.serv-card {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s4);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--ink-200);
  color: var(--ink-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.serv-card:hover {
  border-color: var(--ink-400);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}
.serv-card .ico {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.serv-card .ico svg {
  width: 22px;
  height: 22px;
}
.serv-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.serv-card span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* Tarjeta de negocio */
.cards {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bcard {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.bcard:hover {
  border-color: var(--ink-400);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.bcard h3 {
  margin: 0;
  font-size: 1.05rem;
}
.bcard h3 a {
  color: var(--ink-900);
}
.bcard h3 a:hover {
  color: var(--brand);
  text-decoration: none;
}
.bcard .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: 0.82rem;
  color: var(--ink-500);
}
.bcard .tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-700);
  font-size: 0.74rem;
  font-weight: 600;
}
.bcard .tag--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.bcard .addr {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin: 0;
}
.bcard .foot {
  display: flex;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--ink-100);
}
.bcard .foot .btn {
  flex: 1;
}

/* Grid con mapa */
.split {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }
}
.map-card {
  position: sticky;
  top: calc(var(--header-h) + var(--s4));
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  background: var(--paper-3);
}
.map-card .map {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 35%, rgb(225 6 0 / 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 58%, rgb(225 6 0 / 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 45% 72%, rgb(225 6 0 / 0.16) 0 3px, transparent 4px),
    repeating-linear-gradient(0deg, #e3eaf1 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, #e3eaf1 0 1px, transparent 1px 44px),
    #f2f6fa;
  display: grid;
  place-items: center;
  position: relative;
}
.map-card .map .pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgb(225 6 0 / 0.35);
}
.map-card .map .pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: #fff;
  border-radius: 50%;
}
.map-card .map .pin:nth-child(1) {
  left: 26%;
  top: 30%;
}
.map-card .map .pin:nth-child(2) {
  left: 58%;
  top: 52%;
}
.map-card .map .pin:nth-child(3) {
  left: 41%;
  top: 68%;
}
.map-card .map-note {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgb(255 255 255 / 0.94);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--ink-500);
  text-align: center;
}

/* Breadcrumbs */
.crumbs {
  font-size: 0.82rem;
  color: var(--ink-500);
  padding-block: var(--s4) 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.crumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--ink-400);
}
.crumbs a {
  color: var(--ink-500);
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs [aria-current] {
  color: var(--ink-900);
  font-weight: 500;
}

/* Encabezado de página interna */
.page-head {
  padding-block: var(--s5) var(--s6);
  border-bottom: 1px solid var(--ink-100);
}
.page-head h1 {
  margin-bottom: var(--s2);
}
.page-head .sub {
  color: var(--ink-500);
  font-size: 1.02rem;
  margin: 0;
  max-width: 70ch;
}
.page-head .kpis {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s5);
}
.page-head .kpis div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-head .kpis div span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  padding-block: var(--s4);
  position: sticky;
  top: var(--header-h);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  z-index: 20;
  border-bottom: 1px solid var(--ink-100);
}
.fbtn {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}
.fbtn:hover {
  border-color: var(--ink-400);
}
.fbtn[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.filters .count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* ---------- Ficha ---------- */
.ficha-head {
  padding-block: var(--s5) var(--s5);
  border-bottom: 1px solid var(--ink-100);
}
.ficha-head .badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--paper-3);
  color: var(--ink-700);
}
.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.ficha-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
  padding-block: var(--s6);
}
@media (min-width: 980px) {
  .ficha-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
}

.panel {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.panel + .panel {
  margin-top: var(--s4);
}
.panel .panel-h {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.panel .panel-b {
  padding: var(--s4);
}

.dl {
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s3);
  align-items: baseline;
}
.dl dt {
  font-size: 0.78rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.dl dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}

.cta-stack {
  display: grid;
  gap: var(--s2);
}
.cta-stack .btn {
  width: 100%;
  justify-content: flex-start;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
}
.cta-stack .btn small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.2;
}
.cta-stack .btn .txt {
  text-align: left;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--ink-100);
}
.hours li:last-child {
  border: 0;
}
.hours .today {
  font-weight: 700;
  color: var(--ink-900);
}
.hours .open {
  color: var(--ok);
  font-weight: 600;
}
.hours .closed {
  color: var(--ink-400);
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--s2);
}
.faq details {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  padding: var(--s4);
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq .a {
  padding: 0 var(--s4) var(--s4);
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* Blog teasers */
.posts {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.post .thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink-200), var(--paper-3));
  position: relative;
  overflow: hidden;
}
.post .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgb(11 15 20 / 0.12));
}
.post .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.post h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}
.post h3 a {
  color: var(--ink-900);
}
.post h3 a:hover {
  color: var(--brand);
  text-decoration: none;
}
.post time {
  font-size: 0.78rem;
  color: var(--ink-400);
}

/* ---------- Barra fija móvil ---------- */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--ink-200);
  box-shadow: 0 -6px 24px rgb(11 15 20 / 0.08);
  padding: 8px;
  gap: 6px;
}
.stickybar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-700);
}
.stickybar a:first-child {
  background: var(--brand);
  color: #fff;
}
.stickybar svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 980px) {
  .stickybar {
    display: none;
  }
}
body.has-stickybar {
  padding-bottom: 72px;
}
@media (min-width: 980px) {
  body.has-stickybar {
    padding-bottom: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: #93a3b3;
  padding-block: var(--s7) var(--s5);
  margin-top: var(--s7);
}
.footer h4,
.footer h2,
.footer .footer-h {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
  font-family: var(--text);
  font-weight: 700;
}
.footer .cols {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer .cols {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}
.footer a {
  color: #93a3b3;
}
.footer a:hover {
  color: #fff;
}
.footer .brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: var(--s3);
  letter-spacing: -0.03em;
}
.footer .brandline .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
}
.footer .legal {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
}

/* Utilidades */
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- mockups/a-editorial/detalle.css ---- */
/* ============================================================
   CARFY 2027 — Dirección A · Ampliación para ficha y listado
   Se carga DESPUÉS de styles.css
   ============================================================ */

/* ---------- Cabecera de ficha ---------- */
.ficha-head {
  padding-block: var(--s5) var(--s5);
  border-bottom: 1px solid var(--ink-100);
}
.ficha-head h1 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
  margin-bottom: var(--s2);
  max-width: 26ch;
}
.ficha-head h1 span {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-500);
  margin-top: 10px;
  font-family: var(--text);
}
.ficha-head .sub {
  color: var(--ink-500);
  margin: 0 0 var(--s4);
  max-width: 66ch;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--paper-3);
  color: var(--ink-700);
}
.badge svg {
  width: 13px;
  height: 13px;
}
.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  padding-top: var(--s4);
  border-top: 1px dashed var(--ink-200);
  font-size: 0.88rem;
  color: var(--ink-500);
}
.meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-strip svg {
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  flex: none;
}
.meta-strip b {
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.ficha-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
  padding-block: var(--s6);
}
@media (min-width: 980px) {
  .ficha-grid {
    grid-template-columns: minmax(0, 1fr) 372px;
    align-items: start;
  }
}
.side {
  display: grid;
  gap: var(--s4);
}
@media (min-width: 980px) {
  .side--sticky {
    position: sticky;
    top: calc(var(--header-h) + var(--s4));
  }
}

/* ---------- Paneles ---------- */
.panel {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.panel + .panel {
  margin-top: var(--s4);
}
.panel .panel-h {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.panel .panel-b {
  padding: var(--s4);
}
.panel--plain {
  border: 0;
  background: transparent;
}
.panel--plain .panel-b {
  padding: 0;
}

/* ---------- Bloques de contenido ---------- */
.block {
  margin-bottom: var(--s6);
}
.block > h2 {
  font-size: 1.35rem;
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.block > h2 .n {
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
}
.prose p {
  color: var(--ink-700);
  font-size: 0.98rem;
  max-width: 72ch;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: rgb(225 6 0 / 0.3);
  text-underline-offset: 2px;
}

/* ---------- Servicios ---------- */
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .svc-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink-900);
}
.svc-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}
.svc-list small {
  display: block;
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 400;
}

/* ---------- Mapa ancho ---------- */
.map-wide {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f2f6fa;
}
.map-wide .canvas {
  aspect-ratio: 16 / 8;
  position: relative;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.7) 0 2px, transparent 2px) 0 0 / 120px 120px,
    linear-gradient(0deg, rgb(255 255 255 / 0.7) 0 2px, transparent 2px) 0 0 / 120px 120px,
    linear-gradient(112deg, transparent 46%, #e8eef4 46% 50%, transparent 50%),
    linear-gradient(24deg, transparent 62%, #e8eef4 62% 66%, transparent 66%),
    #f4f7fa;
}
.map-wide .canvas::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 14px;
  background: #e3eaf1;
  transform: rotate(-4deg);
}
.map-wide .pin {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 8px 20px rgb(225 6 0 / 0.4);
  z-index: 2;
}
.map-wide .pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: 50%;
}
.map-wide .label {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: var(--shadow-1);
  z-index: 3;
  white-space: nowrap;
}
.map-wide .bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--ink-200);
  background: #fff;
}
.map-wide .bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* ---------- Horario ---------- */
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: 8px 0;
  border-bottom: 1px dashed var(--ink-100);
}
.hours li:last-child {
  border: 0;
}
.hours .today {
  font-weight: 700;
  color: var(--ink-900);
}
.hours .today::before {
  content: "Hoy";
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: 1px;
}
.hours .open {
  color: var(--ok);
  font-weight: 600;
}
.hours .closed {
  color: var(--ink-400);
}
.hours-note {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin: var(--s3) 0 0;
}

/* ---------- CTA lateral ---------- */
.cta-stack {
  display: grid;
  gap: var(--s2);
}
.cta-stack .btn {
  width: 100%;
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
}
.cta-stack .btn .txt {
  text-align: left;
  line-height: 1.2;
}
.cta-stack .btn small {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  opacity: 0.78;
  margin-top: 2px;
}
.cta-stack svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.dl {
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--s3);
  align-items: baseline;
}
.dl dt {
  font-size: 0.72rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}
.dl dd a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--ink-200);
}

/* ---------- Aviso ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  font-size: 0.86rem;
  color: var(--ink-500);
}
.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-400);
  margin-top: 1px;
}
.notice p {
  margin: 0;
}
.notice a {
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- Negocios relacionados ---------- */
.biz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.biz {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.biz:hover {
  border-color: var(--ink-400);
  box-shadow: var(--shadow-1);
}
.biz a.name {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.95rem;
}
.biz a.name:hover {
  color: var(--brand);
  text-decoration: none;
}
.biz .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.8rem;
  color: var(--ink-500);
  align-items: center;
}
.biz .row .km {
  color: var(--ink-900);
  font-weight: 600;
}
.biz .row .tg {
  background: var(--paper-3);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* ---------- Nube de enlaces ---------- */
.linkgrid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.linkgrid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  color: var(--ink-700);
  background: #fff;
}
.linkgrid a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.linkgrid .c {
  font-size: 0.72rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

/* ---------- Listado: cabecera + filtros ---------- */
.page-head {
  padding-block: var(--s5) var(--s6);
  border-bottom: 1px solid var(--ink-100);
}
.page-head h1 {
  margin-bottom: var(--s2);
}
.page-head .sub {
  color: var(--ink-500);
  font-size: 1.02rem;
  margin: 0;
  max-width: 70ch;
}
.page-head .kpis {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s5);
}
.page-head .kpis div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-head .kpis div span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  padding-block: var(--s3);
  position: sticky;
  top: var(--header-h);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  z-index: 20;
  border-bottom: 1px solid var(--ink-100);
}
.fbtn {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--text);
}
.fbtn:hover {
  border-color: var(--ink-400);
}
.fbtn[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.filters .count {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ---------- Paginación ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: var(--s6);
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 500;
}
.pagination a:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
  text-decoration: none;
}
.pagination [aria-current="page"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.pagination .gap {
  border: 0;
  background: transparent;
}

/* ---------- Sección de texto SEO ---------- */
.seo-text {
  max-width: 78ch;
}
.seo-text h2 {
  margin-bottom: var(--s3);
}
.seo-text h3 {
  font-size: 1.05rem;
  margin-top: var(--s5);
}
.seo-text p,
.seo-text li {
  font-size: 0.96rem;
  color: var(--ink-700);
}

/* ---------- Tabla de datos ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-100);
}
.table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  font-weight: 700;
  background: var(--paper-2);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Mapa y Street View, uno debajo del otro ---------- */
.mv {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.mv__block + .mv__block {
  border-top: 1px solid var(--ink-100);
}
.mv__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.mv__title svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.mv__panel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f2f6fa;
}
@media (max-width: 600px) {
  .mv__panel { aspect-ratio: 4 / 3; }
}
.mv__panel[hidden] { display: none; }

/* fachada del mapa */
.facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.75) 0 2px, transparent 2px) 0 0 / 110px 110px,
    linear-gradient(0deg, rgb(255 255 255 / 0.75) 0 2px, transparent 2px) 0 0 / 110px 110px,
    linear-gradient(114deg, transparent 44%, #e6edf4 44% 49%, transparent 49%),
    linear-gradient(28deg, transparent 60%, #e6edf4 60% 65%, transparent 65%),
    #f4f7fa;
  cursor: pointer;
}
.facade::before {
  /* pin */
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 10px 24px rgb(225 6 0 / 0.4);
}
.facade::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -145%);
}
.facade__cta {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink-900);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.facade__cta svg { width: 15px; height: 15px; }
.facade__note {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgb(255 255 255 / 0.94);
  border-radius: var(--r-sm);
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* fachada street view */
.facade--sv {
  background:
    linear-gradient(180deg, #cfe3f2 0 42%, #dfe8ee 42% 55%, #cfd6da 55% 100%);
  cursor: pointer;
}
.facade--sv::before,
.facade--sv::after { display: none; }
.facade--sv .sv-road {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 46%;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgb(255 255 255 / 0.9) 34px 54px, transparent 54px 88px) 0 46% / 100% 4px no-repeat,
    linear-gradient(180deg, #b9c0c5, #a8b0b6);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}
.facade--sv .sv-bldg {
  position: absolute;
  bottom: 46%;
  width: 22%;
  height: 34%;
  background: linear-gradient(160deg, #e9eef2, #d7dee4);
  border-radius: 3px 3px 0 0;
}
.facade--sv .sv-bldg:nth-child(1) { left: 2%; height: 28%; }
.facade--sv .sv-bldg:nth-child(2) { left: 26%; height: 40%; width: 18%; }
.facade--sv .sv-bldg:nth-child(3) { right: 4%; height: 32%; width: 26%; }
.facade--sv .sv-pegman {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  border: 3px solid var(--ink-900);
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .map-wide .canvas {
    aspect-ratio: 4 / 3;
  }
  .dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ============================================================
   Contenido ampliado de ficha
   ============================================================ */

/* Entradilla de sección y notas al pie del bloque */
.lead-sm {
  font-size: 0.92rem;
  color: var(--ink-500);
  max-width: 72ch;
  margin: 0 0 var(--s3);
}
.h3-sub {
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: var(--s5) 0 var(--s3);
}
.foot-note {
  font-size: 0.8rem;
  color: var(--ink-400);
  max-width: 78ch;
  margin: var(--s3) 0 0;
  line-height: 1.55;
}

/* Lista de servicios: variante compacta con descripción */
.svc-list--dense li {
  padding: 10px 12px;
  font-size: 0.88rem;
}
.svc-list--dense svg {
  color: var(--ink-400);
}

/* Tabla con scroll horizontal en móvil */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap .table {
  min-width: 420px;
}

/* Lista numerada de consejos */
.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .tips {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tips li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
}
.tips__n {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tips strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-900);
  margin-bottom: 3px;
}
.tips p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-500);
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  gap: var(--s2);
}
.faq__item {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 14px 46px 14px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-900);
  position: relative;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-400);
  line-height: 1;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__item summary:hover {
  color: var(--brand);
}
.faq__a {
  padding: 0 16px 16px;
}
.faq__a p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 72ch;
}

/* Artículos del blog */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.blog-list li {
  padding: 14px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: #fff;
}
.blog-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-900);
  line-height: 1.35;
  display: block;
}
.blog-list a:hover {
  color: var(--brand);
  text-decoration: none;
}
.blog-list p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-500);
}
.blog-list time {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---- mockups/ads.css ---- */
/* ============================================================
   CARFY 2027 — Huecos de publicidad
   Compartido por todas las maquetas.
   Regla de oro: la altura se reserva SIEMPRE, haya anuncio o no.
   ============================================================ */

.ad {
  margin-block: 26px;
  contain: layout paint; /* el anuncio no puede mover el resto */
}

.ad__tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400, #8697a8);
  margin-bottom: 6px;
}

.ad__slot {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgb(11 15 20 / 0.018) 8px 16px),
    var(--paper-2, #f5f7fa);
  border: 1px dashed var(--ink-200, #dde4eb);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  display: block;
}
/* El bloque adaptable de AdSense ocupa todo el ancho del hueco. */
.ad__slot > .adsbygoogle {
  width: 100%;
}

/* etiqueta de tamaño, solo en la maqueta */
.ad__slot::before {
  content: attr(data-fmt);
  display: block;
  padding: 8px 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-400, #8697a8);
  font-variant-numeric: tabular-nums;
}
/* Si hay anuncio dentro, la etiqueta de la maqueta sobra. */
.ad__slot:has(> .adsbygoogle)::before { content: none; }
.ad__slot:has(> .adsbygoogle) {
  background: none;
  border-color: transparent;
}

.ad--970x90 .ad__slot { min-height: 90px; }
.ad--970x250 .ad__slot { min-height: 250px; }
.ad--300x600 .ad__slot { min-height: 600px; }
.ad--320x100 .ad__slot { min-height: 100px; }
.ad--resp .ad__slot { min-height: 250px; }

/* En móvil los formatos grandes cambian: el hueco se reserva igual */
@media (max-width: 767px) {
  .ad--970x90 .ad__slot { min-height: 100px; }
  .ad--970x250 .ad__slot { min-height: 100px; }
  .ad--resp .ad__slot { min-height: 280px; }
  .ad--300x600 { display: none; }
}

/* ---- mockups/cmp.css ---- */
/* ============================================================
   CARFY — Banner de consentimiento (CMP propio)
   Se pinta solo si no hay decisión guardada. No bloquea el scroll.
   ============================================================ */

.cmp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 12px;
  animation: cmp-in 0.22s ease-out;
}
.cmp--out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
@keyframes cmp-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cmp__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: #0b0f14;
  color: #e6edf4;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgb(11 15 20 / 0.32);
}
.cmp__txt {
  margin: 0;
  flex: 1 1 340px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #c7d2dd;
}
.cmp__txt strong { color: #fff; }
.cmp__txt a { color: #ff8a80; text-decoration: underline; }

.cmp__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmp__btn {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.cmp__btn--ghost {
  background: transparent;
  border-color: #3a4653;
  color: #e6edf4;
}
.cmp__btn--ghost:hover { background: #151c25; }
.cmp__btn--primary {
  background: #e10600;
  color: #fff;
}
.cmp__btn--primary:hover { background: #c00500; }

@media (max-width: 600px) {
  .cmp { padding: 8px; }
  .cmp__inner { padding: 14px; border-radius: 10px; }
  .cmp__btns { width: 100%; }
  .cmp__btn { flex: 1; text-align: center; }
}
