.cms-static { max-width: 860px; margin: 0 auto 3rem; padding: 0 1.25rem; }   /* sin margen superior: el H1 queda a la misma altura que en /centros y en las parrillas (solo el padding-top de .page) */
.cms-static-blocks.page { max-width: 860px; padding: 0 1.25rem 3rem; }   /* ancho del contenido estatico (860px) + espaciado equilibrado: el hueco de arriba lo da el contenido, 3rem abajo como una pagina normal */
.page:has(+ .cms-static-blocks) { padding-bottom: 0; }
.page:has(+ .cms-static-blocks) .cms-static { margin-bottom: 2rem; }
.cms-static-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; line-height: 1.2; margin: .2rem 0 1.25rem; color: var(--text); }
@media (max-width: 640px) { .cms-static-title { font-size: 1.3rem; } }
.cms-static-lead { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: -.6rem 0 1.6rem; }

/* ── Error 404 ─────────────────────────────────────────────────────────── */
.e404 { padding-top: 1.5rem; }
.e404-box { max-width: 620px; margin: 0 auto; text-align: center; padding: 2.5rem 1rem 2rem; }
.e404-code { font-family: var(--font-head); font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: color-mix(in srgb, var(--ac) 18%, transparent); }
.e404-title { font-family: var(--font-head); font-size: 1.65rem; font-weight: 800; line-height: 1.2; margin: .4rem 0 .6rem; color: var(--text); }
.e404-text { font-size: .95rem; line-height: 1.55; color: var(--muted); margin: 0 auto 1.5rem; max-width: 46ch; }
.e404-search { display: flex; align-items: center; gap: .5rem; max-width: 420px; margin: 0 auto 1.25rem; padding: .35rem .35rem .35rem .8rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); }
.e404-search:focus-within { border-color: var(--ac); }
.e404-search svg { color: var(--muted); flex-shrink: 0; }
.e404-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--text); min-width: 0; }
.e404-search button { border: 0; border-radius: 9px; background: var(--ac); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; padding: .55rem 1rem; cursor: pointer; transition: filter .15s; }
.e404-search button:hover { filter: brightness(.94); }
.e404-btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.e404-btn { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.3rem; border-radius: 11px; border: 1.5px solid var(--border); font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--text); text-decoration: none; transition: border-color .15s, transform .12s; }
.e404-btn:hover { border-color: var(--ac); transform: translateY(-1px); }
.e404-btn--main { background: var(--ac); border-color: var(--ac); color: #fff; }
.e404-btn--main:hover { filter: brightness(.94); }
.e404-sug { margin-top: 1rem; }
.e404-sug-h { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 .9rem; text-align: center; }
@media (max-width: 640px) {
  .e404-box { padding: 1.75rem .5rem 1.5rem; }
  .e404-code { font-size: 3.4rem; }
  .e404-title { font-size: 1.35rem; }
}
.cms-static-content { font-size: 1rem; line-height: 1.7; color: var(--text); }
.cms-static-content h1, .cms-static-content h2, .cms-static-content h3, .cms-static-content h4, .cms-static-content h5, .cms-static-content h6, .cms-grid-text-inner h1, .cms-grid-text-inner h2, .cms-grid-text-inner h3, .cms-grid-text-inner h4, .cms-grid-text-inner h5, .cms-grid-text-inner h6, .pb-html-body h1, .pb-html-body h2, .pb-html-body h3, .pb-html-body h4, .pb-html-body h5, .pb-html-body h6 { font-family: var(--font-head); }   /* encabezados del contenido usan la tipografia de encabezados configurada */
.cms-static-content h2 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.cms-static-content h3 { font-size: 1.15rem; margin: 1.3rem 0 .5rem; }
.cms-static-content p { margin: 0 0 1rem; }
.cms-static-content ul { list-style: none; margin: .2rem 0 1rem; padding: 0; }
.cms-static-content ol { list-style: none; counter-reset: cms-ol; margin: .2rem 0 1rem; padding: 0; }
.cms-static-content ol > li { counter-increment: cms-ol; position: relative; padding-left: 2.3rem; }
.cms-static-content ol > li::before { content: counter(cms-ol); position: absolute; left: 0; top: .1em; min-width: 1.55em; height: 1.55em; box-sizing: border-box; padding: 0 .45em; display: inline-flex; align-items: center; justify-content: center; font-size: .78em; font-weight: 700; line-height: 1; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); border-radius: 999px; }
.cms-static-content li { margin: 0 0 .5rem; }
.cms-static-content ul > li { position: relative; padding-left: 1.6rem; }
.cms-static-content ul > li::before { content: ''; position: absolute; left: .5rem; top: .8em; width: .4em; height: .4em; border-right: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: translateY(-50%) rotate(-45deg); }
.cms-static-content ul ul { margin: .5rem 0 .2rem; }
.cms-static-content a { color: var(--ac); text-decoration: underline; }
.cms-static-content img { max-width: 100%; height: auto; border-radius: 10px; }
.cms-static-content .cms-ico { width: 1.15em; height: 1.15em; vertical-align: -.18em; display: inline-block; margin: 0 .12em; color: var(--ac); }
.cms-grid-text { margin: 1.6rem 0; }
.cms-grid-text.listing-seo-text { margin: 2rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.listing-seo-h1 { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--text); margin: .2rem 0 1rem; line-height: 1.2; }
@media (max-width: 640px) { .listing-seo-h1 { font-size: 1.3rem; } }
.centros-page { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }   /* mismo ancho que .cms-static (paginas estaticas) */
.centros-ca { margin: 0 0 1.9rem; }
.centros-ca-title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--text); margin: 0 0 .85rem; display: flex; align-items: center; gap: .55rem; padding-bottom: .45rem; border-bottom: 1px solid var(--border); }
.centros-ca-count { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--border); border-radius: 999px; padding: .08rem .55rem; }
.centros-grid { display: grid; gap: .55rem; }   /* columnas por grupo via inline pbBalancedCols, igual que el bloque de centros */
.centros-empty { color: var(--muted); font-size: .95rem; padding: 1rem 0; }
@media (max-width: 640px) { .centros-grid { grid-template-columns: 1fr !important; } .centros-ca-title { font-size: 1rem; } }
.cms-grid-text-inner { font-size: .95rem; line-height: 1.7; color: var(--muted, #475569); }
.cms-grid-text-inner h1, .cms-grid-text-inner h2 { font-size: 1.25rem; color: var(--text); margin: 1rem 0 .5rem; }
.cms-grid-text-inner h3 { font-size: 1.05rem; color: var(--text); margin: .9rem 0 .4rem; }
.cms-grid-text-inner p { margin: 0 0 .8rem; }
@media (max-width: 640px) { .cms-grid-text-inner, .cms-static-content { font-size: .85rem; line-height: 1.6; } .cms-grid-text-inner h1, .cms-grid-text-inner h2, .cms-static-content h1, .cms-static-content h2 { font-size: 1rem; } .cms-grid-text-inner h3, .cms-static-content h3 { font-size: .94rem; } }
.cms-grid-text-inner a { color: var(--ac); }
.cms-grid-text-inner ul { list-style: none; margin: .2rem 0 .95rem; padding: 0; }
.cms-grid-text-inner ol { margin: .2rem 0 .95rem 1.35rem; padding: 0; }
.cms-grid-text-inner li { margin: 0 0 .5rem; }
.cms-grid-text-inner ul > li { position: relative; padding-left: 1.6rem; }
.cms-grid-text-inner ul > li::before { content: ''; position: absolute; left: .5rem; top: .8em; width: .4em; height: .4em; border-right: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: translateY(-50%) rotate(-45deg); }
.cms-grid-text-inner ul ul { margin: .5rem 0 .2rem; }
.pb-html-body { font-size: .95rem; line-height: 1.7; color: var(--muted, #475569); }
.pb-html-body h1, .pb-html-body h2 { font-size: 1.25rem; color: var(--text); margin: 1rem 0 .5rem; }
.pb-html-body h3 { font-size: 1.05rem; color: var(--text); margin: .9rem 0 .4rem; }
.pb-html-body h4 { color: var(--text); margin: .8rem 0 .35rem; }
.pb-html-body p { margin: 0 0 .8rem; }
.pb-html-body a { color: var(--ac); }
.pb-html-body ul { list-style: none; margin: .2rem 0 .95rem; padding: 0; }
.pb-html-body ol { margin: .2rem 0 .95rem 1.35rem; padding: 0; }
.pb-html-body li { margin: 0 0 .5rem; }
.pb-html-body ul > li { position: relative; padding-left: 1.6rem; }
.pb-html-body ul > li::before { content: ''; position: absolute; left: .5rem; top: .8em; width: .4em; height: .4em; border-right: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: translateY(-50%) rotate(-45deg); }
.pb-html-body ul ul { margin: .5rem 0 .2rem; }
.pb-html-body img { max-width: 100%; height: auto; }
/* ── Tablas por defecto (look&feel web) en contenido estatico/page-builder ── */
.cms-static-content table, .pb-html-body table, .cms-grid-text-inner table {
  border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.2rem 0;
  font-size: .9rem; color: var(--text); background: var(--card);
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.cms-static-content th, .cms-static-content td,
.pb-html-body th, .pb-html-body td,
.cms-grid-text-inner th, .cms-grid-text-inner td {
  padding: .62rem .85rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border); line-height: 1.5;
}
.cms-static-content th, .pb-html-body th, .cms-grid-text-inner th {
  background: color-mix(in srgb, var(--ac) 8%, var(--card));
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; color: var(--text);
}
.cms-static-content td, .pb-html-body td, .cms-grid-text-inner td { font-variant-numeric: tabular-nums; }
.cms-static-content tr:last-child td, .cms-static-content tr:last-child th,
.pb-html-body tr:last-child td, .pb-html-body tr:last-child th,
.cms-grid-text-inner tr:last-child td, .cms-grid-text-inner tr:last-child th { border-bottom: 0; }
.cms-static-content tbody tr:hover td, .pb-html-body tbody tr:hover td, .cms-grid-text-inner tbody tr:hover td {
  background: color-mix(in srgb, var(--ac) 5%, transparent);
}
.cms-static-content table caption, .pb-html-body table caption, .cms-grid-text-inner table caption {
  caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; color: var(--text); margin-bottom: .5rem;
}
@media (max-width: 640px) {
  .cms-static-content table, .pb-html-body table, .cms-grid-text-inner table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) { .pb-html-body { font-size: .85rem; line-height: 1.6; } }
.wmenu { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.wmenu-link { color: var(--text); text-decoration: none; font-size: .9rem; }
.wmenu--align-left { align-items: flex-start; text-align: left; }
.wmenu--align-center { align-items: center; text-align: center; }
.wmenu--align-right { align-items: flex-end; text-align: right; }
.wmenu-link--badged { display: inline-flex; align-items: center; }
.wmenu-badge { position: relative; display: inline-block; background: var(--ac); color: #fff; font-size: .6rem; font-weight: 500; line-height: 1.2; padding: .22rem .42rem; border-radius: 4px; white-space: nowrap; letter-spacing: .02em; }
.wmenu-badge--right { margin-left: .55rem; }
.wmenu-badge--left  { margin-right: .55rem; }
.wmenu-badge::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); border: 4px solid transparent; }
.wmenu-badge--right::after { left: -7px; border-right-color: var(--ac); }
.wmenu-badge--left::after  { right: -7px; border-left-color: var(--ac); }
.wmenu-link:hover { color: var(--ac); }
/* Submenus en menus wmenu (footer/sidebar): desplegable de 1 nivel via toggle .open */
.wmenu-has-sub { display: flex; flex-direction: column; }
.wmenu-parent-row { display: inline-flex; align-items: center; gap: .1rem; }
.wmenu-caret { display: inline-flex; align-items: center; justify-content: center; padding: .2rem; background: transparent; border: 0; color: inherit; cursor: pointer; opacity: .75; }
.wmenu-caret:hover { opacity: 1; }
.wmenu-caret svg { transition: transform .15s; }
.wmenu-has-sub.open .wmenu-caret svg { transform: rotate(180deg); }
.wmenu-sub { display: none; flex-direction: column; gap: .3rem; margin: .3rem 0 .25rem .7rem; padding-left: .6rem; border-left: 1px solid var(--border, #e2e8f0); }
.wmenu-has-sub.open .wmenu-sub { display: flex; }
.wmenu-link--sub { font-size: .82rem; opacity: .9; }
.wmenu--above_grid, .wmenu--below_grid { margin: 1rem 0; padding: .5rem 0; }
.wmenu--sidebar { flex-direction: column; gap: .55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border, #e2e8f0); }
.wmenu--footer { margin-top: .6rem; }
.wmenu--footer .wmenu-link { font-size: .85rem; }
.wmenu--style-button .wmenu-link, .wmenu--style-pill .wmenu-link { display: inline-flex; align-items: center; padding: .38rem .85rem; border: 1.5px solid color-mix(in srgb, currentColor 15%, transparent); line-height: 1.2; }
.wmenu--style-button .wmenu-link { border-radius: 8px; }
.wmenu--style-pill .wmenu-link { border-radius: 999px; }
.wmenu--style-button .wmenu-link:hover, .wmenu--style-pill .wmenu-link:hover { border-color: currentColor; }
.wmenu--auto { display: inline-flex; flex-direction: column; gap: .35rem; vertical-align: top; margin-right: 2.6rem; margin-bottom: 1.1rem; }
.wmenu-title-ico { width: 1em; height: 1em; vertical-align: -0.125em; margin-right: .35em; display: inline-block; }
.wmenu--auto .wmenu-title, .wmenu--cols .wmenu-title, .wmenu--footer .wmenu-title { font-weight: 700; font-size: .98rem; opacity: .92; margin-bottom: .3rem; color: var(--ac); }
.wmenu--footer .wmenu-title { opacity: 1; font-weight: 500; }
.wmenu--cols { flex-direction: column; align-items: flex-start; }
.wmenu--cols .wmenu-cols { display: flex; flex-wrap: wrap; gap: .5rem 2.4rem; }
.wmenu--cols .wmenu-col { display: flex; flex-direction: column; gap: .5rem; }
.wmenu--cols1 .wmenu-cols { gap: .7rem; }
.wmenu-zone--footer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.2rem 2.6rem; }
.wmenu-zone--footer .wmenu--footer { flex-direction: column; margin: 0; }
.wmenu-break { flex-basis: 100%; width: 100%; height: 0; margin: 0; padding: 0; }
.wmenu-zone--footer + .wmenu-zone--footer { margin-top: 1.2rem; }
@media (max-width: 640px) {
  .wmenu--footer .wmenu-link, .site-subfooter .wmenu-link { font-size: .76rem; }
  .wmenu--footer .wmenu-title, .site-subfooter .wmenu-title { font-size: .84rem; }
  .site-subfooter .wmenu-link { font-size: .72rem; }
  .site-subfooter .wmenu-title { font-size: .8rem; }
  .wmenu-zone--footer { gap: 1rem 1.7rem; }
  .site-footer { padding-top: 1.4rem; }
  .footer-inner { gap: .55rem; }
  .site-subfooter-social { margin-top: .85rem; }
  .site-subfooter { margin-top: .95rem; }
  .site-subfooter-menus { margin-bottom: .5rem; justify-content: flex-start; gap: .8rem 1.8rem; }
  .subfooter-contact { margin-bottom: .55rem; }
}
.sticky-cta { display: none; }
@media (max-width: 768px) {
  body.has-sticky-cta { padding-bottom: 76px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--border); }
  .sticky-cta-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .12rem; padding: .5rem .2rem; border-radius: 11px; font-family: var(--font-head); font-size: .7rem; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; line-height: 1; }
  .sticky-cta-call { background: var(--bg); color: var(--text); }
  .sticky-cta-wa { background: #25D366; color: #fff; }
  .sticky-cta-info { background: var(--ac); color: #fff; }
  .sticky-cta-call { order: 1; } .sticky-cta-info { order: 2; } .sticky-cta-wa { order: 3; }
  .sticky-cta-call, .sticky-cta-wa { flex: 0 0 auto; width: 54px; padding: .5rem; }
  .sticky-cta-main { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: .7rem .5rem; }
}
