/* =========================================================================
   Pegui — base del tema (tokens, reset, cabecera, pie, utilidades)
   Diseños 1a (catálogo limpio) y 1b (bloques de color)

   ESCRITO EN MOBILE-FIRST:
   los estilos base son los del móvil y se amplían con min-width.
     base            → móvil        (≤ 767 px)
     min-width 768   → tableta      (coincide con el rango de tableta de Elementor)
     min-width 1025  → escritorio   (coincide con el rango de escritorio de Elementor)
   Usar los mismos cortes que Elementor evita que sus reglas por dispositivo
   (más específicas) peleen con las del tema.
   ========================================================================= */

:root {
  /* Marca */
  --pg-blue: #1a23a6;
  --pg-cyan: #0879ce;
  --pg-ink: #0f0f0f;
  --pg-sky: #7fc4ff;
  --pg-sky-soft: #dff0ff;
  --pg-lavender: #d6dbff;
  --pg-whatsapp: #25d366;

  /* Superficies */
  --pg-white: #ffffff;
  --pg-surface: #f5f7fb;
  --pg-surface-alt: #eef1f8;
  --pg-border: #e6e8ee;
  --pg-border-strong: #d5d9e2;

  /* Texto */
  --pg-text: #3a3f4a;
  --pg-muted: #5b6170;
  --pg-muted-soft: #6b7180;
  --pg-on-dark: #b9bdc9;
  --pg-footer-text: #c9ccd6;

  /* Tipografía */
  --pg-font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pg-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Métricas — valores de móvil */
  --pg-shell: 1280px;
  --pg-gutter: 18px;
  --pg-radius: 10px;
  --pg-radius-lg: 14px;
  --pg-radius-pill: 999px;
  --pg-header-h: 66px;
  --pg-topbar-h: 34px;
  --pg-section-y: 44px;
}

@media (min-width: 768px) {
  :root { --pg-gutter: 28px; --pg-section-y: 56px; --pg-header-h: 76px; }
}

@media (min-width: 1025px) {
  :root { --pg-gutter: 48px; --pg-section-y: 72px; --pg-header-h: 84px; }
}

/* ---------- Reset ligero ---------- */

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

/*
 * «clip» y no «hidden»: evita el scroll horizontal que provoca el panel
 * lateral (fuera de pantalla a la derecha) sin convertir html/body en
 * contenedores de scroll, lo que rompería la cabecera sticky.
 */
html, body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--pg-white);
  color: var(--pg-ink);
  font-family: var(--pg-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pg-font-head);
  color: var(--pg-ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}

/* Tipografía fluida: el mínimo es el tamaño de móvil. */
h1 { font-size: clamp(30px, 7vw, 54px); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 700; line-height: 1.16; }
h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; color: var(--pg-text); }

a { color: var(--pg-blue); text-decoration: none; }
a:hover, a:focus { color: var(--pg-cyan); }

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

button { font: inherit; }

:focus-visible { outline: 3px solid var(--pg-cyan); outline-offset: 2px; }

.pg-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.pg-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--pg-blue); color: #fff; padding: 12px 18px; font-weight: 700;
}
.pg-skip-link:focus { left: 0; color: #fff; }

/* ---------- Contenedor ---------- */

.pg-shell {
  width: 100%;
  max-width: var(--pg-shell);
  margin-inline: auto;
  padding-inline: var(--pg-gutter);
}

/* Cuando el contenedor de Elementor ya limita el ancho. */
.pg-shell-off { width: 100%; }

.pg-section { padding-block: var(--pg-section-y); }

/* ---------- Tipos de texto reutilizables ---------- */

.pg-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-cyan);
  margin-bottom: 8px;
  display: block;
}

.pg-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pg-cyan);
}

.pg-lead { font-size: 15.5px; line-height: 1.55; color: var(--pg-text); }

.pg-link-arrow {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pg-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg-link-arrow::after { content: '→'; transition: transform .18s ease; }
.pg-link-arrow:hover::after { transform: translateX(4px); }

.pg-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.pg-section-head h2 { margin: 0; }

@media (min-width: 768px) {
  .pg-eyebrow { font-size: 12.5px; margin-bottom: 10px; }
  .pg-kicker { font-size: 11.5px; }
  .pg-lead { font-size: 17px; }
  .pg-link-arrow { font-size: 15px; }
  .pg-section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 26px;
  }
}

/* ---------- Botones ---------- */

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;           /* objetivo táctil cómodo en móvil */
  padding-inline: 20px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pg-btn:hover { transform: translateY(-1px); }

@media (min-width: 768px) {
  .pg-btn { min-height: 50px; padding-inline: 24px; white-space: nowrap; }
}

.pg-btn--primary { background: var(--pg-blue); color: #fff; }
.pg-btn--primary:hover { background: #141b86; color: #fff; }

.pg-btn--cyan { background: var(--pg-cyan); color: #fff; }
.pg-btn--cyan:hover { background: #0668b3; color: #fff; }

.pg-btn--ink { background: var(--pg-ink); color: #fff; }
.pg-btn--ink:hover { background: #262626; color: #fff; }

.pg-btn--outline { border-color: var(--pg-ink); color: var(--pg-ink); background: transparent; }
.pg-btn--outline:hover { background: var(--pg-ink); color: #fff; }

.pg-btn--light { background: #fff; color: var(--pg-blue); }
.pg-btn--light:hover { background: var(--pg-surface); color: var(--pg-blue); }

.pg-btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.pg-btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.pg-btn--whatsapp { background: var(--pg-whatsapp); color: var(--pg-ink); font-weight: 800; }
.pg-btn--whatsapp:hover { background: #1fbe5a; color: var(--pg-ink); }

.pg-btn--pill { border-radius: var(--pg-radius-pill); }
.pg-btn--sm { min-height: 40px; font-size: 14px; padding-inline: 18px; }
.pg-btn--lg { min-height: 56px; font-size: 16px; }
.pg-btn--block { width: 100%; }

.pg-btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pg-whatsapp); flex: none; }
.pg-btn--whatsapp .pg-btn__dot { background: var(--pg-ink); }

/* ---------- Chips / filtros ---------- */

.pg-chips {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  /* En móvil los filtros se deslizan en una sola línea: no roban altura. */
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-inline: calc(var(--pg-gutter) * -1);
  padding-inline: var(--pg-gutter);
  -webkit-overflow-scrolling: touch;
}
.pg-chips::-webkit-scrollbar { display: none; }

.pg-chip {
  flex: none;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-pill);
  padding: 9px 14px;
  color: var(--pg-ink);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pg-chip:hover { border-color: var(--pg-ink); }
.pg-chip.is-active { background: var(--pg-ink); color: #fff; border-color: var(--pg-ink); }

@media (min-width: 768px) {
  .pg-chips {
    flex-wrap: wrap;
    overflow: visible;
    font-size: 13px;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* =========================================================================
   CABECERA
   ========================================================================= */

.pg-header { position: relative; z-index: 50; background: #fff; }
.pg-header.is-sticky { position: sticky; top: 0; transition: box-shadow .2s ease; }
.pg-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 15, 15, .09); }
.admin-bar .pg-header.is-sticky { top: 46px; }

@media (min-width: 783px) {
  .admin-bar .pg-header.is-sticky { top: 32px; }
}

/* Barra superior (1a): oculta en móvil, aparece en tableta. */
.pg-topbar { display: none; }

.pg-topbar__segments { display: none; }
.pg-topbar__contact { display: flex; gap: 16px; align-items: center; }
.pg-topbar__contact a { color: #fff; }
.pg-topbar__contact a:hover { color: var(--pg-sky); }
.pg-topbar__lang { color: var(--pg-sky); font-weight: 600; }

@media (min-width: 768px) {
  .pg-topbar {
    display: flex;
    align-items: center;
    background: var(--pg-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    min-height: var(--pg-topbar-h);
  }
  .pg-topbar .pg-shell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    min-height: var(--pg-topbar-h);
  }
  .pg-topbar__contact { gap: 22px; }
}

@media (min-width: 1025px) {
  .pg-topbar .pg-shell { justify-content: space-between; }
  .pg-topbar__segments {
    display: flex;
    gap: 22px;
    opacity: .85;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pg-topbar__segments a { color: #fff; }
  .pg-topbar__segments a:hover { color: var(--pg-sky); }
}

/* Barra principal */
.pg-bar { border-bottom: 1px solid var(--pg-border); }
.pg-bar .pg-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--pg-header-h);
}

.pg-logo { display: flex; align-items: center; flex: none; }
/* El selector doble gana a `.elementor img { height:auto }` si la cabecera se
   construye con Elementor Pro. */
a.pg-logo img, span.pg-logo img { height: 38px; width: auto; object-fit: contain; }
.pg-logo .pg-logo__text { font-family: var(--pg-font-head); font-weight: 800; font-size: 22px; color: var(--pg-blue); }

/* Navegación: en móvil vive en el panel lateral. */
.pg-nav { display: none; }
.pg-search { display: none; }

.pg-bar__actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pg-bar__actions .pg-btn { display: none; }

.pg-burger {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  color: inherit;
}
.pg-burger span {
  display: block; width: 22px; height: 2px; background: currentColor;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.pg-burger span::before, .pg-burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.pg-burger span::before { top: -7px; }
.pg-burger span::after { top: 7px; }
.pg-burger[aria-expanded="true"] span { background: transparent; }
.pg-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.pg-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 768px) {
  a.pg-logo img, span.pg-logo img { height: 44px; }
  .pg-bar .pg-shell { gap: 20px; }
  .pg-bar__actions { gap: 10px; }
  .pg-bar__actions .pg-btn { display: inline-flex; }
}

@media (min-width: 1025px) {
  a.pg-logo img, span.pg-logo img { height: 52px; }
  .pg-logo .pg-logo__text { font-size: 24px; }
  .pg-bar .pg-shell { gap: 24px; }
  .pg-burger { display: none; }

  .pg-nav { display: flex; }
  .pg-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
  .pg-nav li { position: relative; }
  .pg-nav a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-ink);
    padding-block: 30px;
    border-bottom: 2px solid transparent;
  }
  .pg-nav a:hover { color: var(--pg-blue); }
  .pg-nav .current-menu-item > a,
  .pg-nav .current_page_item > a,
  .pg-nav .current-menu-ancestor > a {
    color: var(--pg-blue);
    border-bottom-color: var(--pg-blue);
  }

  .pg-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    box-shadow: 0 16px 40px rgba(15,15,15,.12);
    padding: 8px 0;
    flex-direction: column;
    z-index: 60;
  }
  .pg-nav li:hover > .sub-menu,
  .pg-nav li:focus-within > .sub-menu { display: flex; }
  .pg-nav .sub-menu a { padding: 10px 20px; border: 0; white-space: normal; }
  .pg-nav .sub-menu a:hover { background: var(--pg-surface); }

  .pg-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pg-border-strong);
    border-radius: var(--pg-radius-pill);
    padding-inline: 14px;
    height: 40px;
    width: 160px;
    background: #fff;
  }
  .pg-search input {
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 13px; color: var(--pg-ink); width: 100%;
  }
  .pg-search input::placeholder { color: #7a8090; }
  .pg-search__icon { width: 15px; height: 15px; flex: none; color: #7a8090; }
}

@media (min-width: 1340px) {
  .pg-nav ul { gap: 24px; }
  .pg-search { width: 200px; }
  .pg-bar .pg-shell { gap: 40px; }
}

/* El buscador del panel lateral sí se muestra en móvil. */
.pg-drawer .pg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-pill);
  padding-inline: 16px;
  background: #fff;
}
.pg-drawer .pg-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; width: 100%; }
.pg-drawer .pg-search__icon { width: 16px; height: 16px; flex: none; color: #7a8090; }

/* ---------- Variante 1b: cabecera azul ---------- */

.pg-header--1b { background: var(--pg-blue); color: #fff; }
.pg-header--1b .pg-bar { border-bottom: 0; }
.pg-header--1b .pg-logo { background: #fff; border-radius: 6px; padding: 4px 8px; }
.pg-header--1b .pg-logo img { height: 32px; }
.pg-header--1b .pg-burger { color: #fff; }
.pg-header--1b .pg-topbar { background: #141b86; }

@media (min-width: 768px) {
  .pg-header--1b .pg-logo { border-radius: 8px; padding: 6px 12px; }
  .pg-header--1b .pg-logo img { height: 38px; }
}

@media (min-width: 1025px) {
  .pg-header--1b .pg-bar .pg-shell { min-height: 88px; }
  .pg-header--1b .pg-logo img { height: 42px; }
  .pg-header--1b .pg-nav a { color: var(--pg-lavender); padding-block: 12px; border: 0; font-size: 14.5px; }
  .pg-header--1b .pg-nav a:hover { color: #fff; }
  .pg-header--1b .pg-nav .current-menu-item > a,
  .pg-header--1b .pg-nav .current_page_item > a { color: #fff; }
  .pg-header--1b .pg-nav .sub-menu a { color: var(--pg-ink); }
  .pg-header--1b .pg-nav .sub-menu a:hover { color: var(--pg-blue); }
}

/* ---------- Panel lateral móvil ---------- */

.pg-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s ease, visibility .28s ease;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -20px 0 60px rgba(15,15,15,.18);
}
.pg-drawer:not(.is-open) { visibility: hidden; }
.pg-drawer.is-open { transform: translateX(0); visibility: visible; }

.pg-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pg-drawer__close {
  background: transparent; border: 0; font-size: 30px; line-height: 1;
  cursor: pointer; color: var(--pg-ink); width: 44px; height: 44px;
}
a.pg-logo--drawer img, span.pg-logo--drawer img { height: 36px; }
.pg-drawer ul { list-style: none; margin: 0 0 16px; padding: 0; }
.pg-drawer .menu > li > a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--pg-border);
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--pg-ink);
}
.pg-drawer .menu--segments > li > a {
  font-family: var(--pg-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--pg-muted);
  padding: 10px 0;
  border-bottom: 0;
}
.pg-drawer .sub-menu { margin: 0 0 8px 12px; }
.pg-drawer .sub-menu a { display: block; padding: 9px 0; font-size: 14.5px; color: var(--pg-muted); font-weight: 600; }
.pg-drawer__search { margin-bottom: 18px; }
.pg-drawer__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; }

.pg-overlay {
  position: fixed; inset: 0; background: rgba(15,15,15,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  z-index: 150;
}
.pg-overlay.is-open { opacity: 1; visibility: visible; }

body.pg-no-scroll { overflow: hidden; }

@media (min-width: 1025px) {
  /* Con navegación visible el panel no hace falta. */
  .pg-drawer, .pg-overlay { display: none; }
}

/* =========================================================================
   PIE DE PÁGINA
   ========================================================================= */

.pg-footer--1a {
  background: var(--pg-ink);
  color: var(--pg-footer-text);
  padding-block: 40px 28px;
  font-size: 13.5px;
  line-height: 1.7;
}
.pg-footer--1a .pg-footer__grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.pg-footer--1a .pg-logo img { height: 40px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.pg-footer--1a .pg-logo__text { color: #fff; }
.pg-footer--1a b, .pg-footer--1a strong { color: #fff; display: block; margin-bottom: 6px; }
.pg-footer--1a a { color: var(--pg-footer-text); }
.pg-footer--1a a:hover { color: #fff; }
.pg-footer--1a ul { list-style: none; margin: 0; padding: 0; }

.pg-footer__legal {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px; color: #8b8f9b;
}

@media (min-width: 768px) {
  .pg-footer--1a { padding-block: 48px 32px; }
  .pg-footer--1a .pg-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pg-footer__legal { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding-top: 20px; }
}

@media (min-width: 1025px) {
  .pg-footer--1a .pg-logo img { height: 44px; }
  .pg-footer--1a .pg-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}

.pg-footer--1b {
  background: var(--pg-blue);
  color: var(--pg-lavender);
  padding-block: 28px;
  font-size: 13.5px;
}
.pg-footer--1b .pg-shell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.pg-footer--1b .pg-footer__logo { background: #fff; border-radius: 8px; padding: 6px 12px; }
.pg-footer--1b .pg-footer__logo img { height: 34px; width: auto; }
.pg-footer--1b .pg-footer__meta { display: flex; flex-direction: column; gap: 8px; }
.pg-footer--1b .pg-footer__social { display: flex; gap: 16px; color: #fff; font-weight: 700; }
.pg-footer--1b a { color: inherit; }
.pg-footer--1b a:hover { color: #fff; }

@media (min-width: 1025px) {
  .pg-footer--1b { padding-block: 40px; }
  .pg-footer--1b .pg-shell { flex-direction: row; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
  .pg-footer--1b .pg-footer__meta { flex-direction: row; gap: 28px; flex-wrap: wrap; }
  .pg-footer--1b .pg-footer__logo img { height: 36px; }
}

/* =========================================================================
   ACCIONES FLOTANTES (protagonistas en móvil)
   ========================================================================= */

.pg-whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 82px;              /* por encima de la barra fija inferior */
  z-index: 120;
  background: var(--pg-whatsapp);
  color: var(--pg-ink);
  border-radius: var(--pg-radius-pill);
  padding: 14px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.pg-whatsapp-float:hover { background: #1fbe5a; color: var(--pg-ink); transform: translateY(-2px); }
.pg-whatsapp-float svg { width: 22px; height: 22px; flex: none; }
.pg-whatsapp-float--compact .pg-whatsapp-float__label { display: none; }

@media (min-width: 768px) {
  .pg-whatsapp-float {
    right: 28px;
    bottom: 28px;
    padding: 14px 22px 14px 16px;
    font-size: 15px;
  }
  .pg-whatsapp-float svg { width: 20px; height: 20px; }
  .pg-whatsapp-float--compact .pg-whatsapp-float__label { display: inline; }
}

/* Barra fija inferior: solo móvil. */
.pg-mobile-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--pg-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 130;
}
.pg-mobile-bar .pg-btn { min-height: 44px; font-size: 14px; padding-inline: 12px; }
body.pg-has-mobile-bar { padding-bottom: 76px; }

@media (min-width: 768px) {
  .pg-mobile-bar { display: none; }
  body.pg-has-mobile-bar { padding-bottom: 0; }
}

/* =========================================================================
   CONTENIDO INTERIOR (páginas y entradas sin Elementor)
   ========================================================================= */

.pg-page-hero {
  background: var(--pg-surface);
  border-bottom: 1px solid var(--pg-border);
  padding-block: 32px;
}
.pg-page-hero h1 { margin: 0; }
.pg-page-hero .pg-breadcrumb { font-size: 13px; color: var(--pg-muted); margin-bottom: 10px; }

.pg-entry { padding-block: var(--pg-section-y); }
.pg-entry__content { max-width: 760px; }
.pg-entry .pg-entry__content img { border-radius: var(--pg-radius); }
.pg-entry__content h2 { margin-top: 1.6em; }
.pg-entry__content ul, .pg-entry__content ol { color: var(--pg-text); padding-left: 1.2em; }
.pg-entry__content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--pg-blue); color: var(--pg-ink);
  font-size: 17px;
}

.pg-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pg-card-post {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.pg-cards .pg-card-post img { width: 100%; height: 190px; object-fit: cover; }
.pg-card-post__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pg-card-post__body h3 { margin: 0; font-size: 18px; }
.pg-card-post__meta { font-size: 12.5px; color: var(--pg-muted); }

.pg-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pg-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding-inline: 12px;
  border: 1px solid var(--pg-border-strong); border-radius: 6px;
  font-weight: 700; color: var(--pg-ink);
}
.pg-pagination .page-numbers.current,
.pg-pagination .page-numbers:hover { background: var(--pg-ink); color: #fff; border-color: var(--pg-ink); }

.pg-404 { text-align: center; padding-block: 64px; }
.pg-404 .pg-404__code { font-family: var(--pg-font-head); font-size: 72px; font-weight: 800; color: var(--pg-blue); line-height: 1; }

@media (min-width: 768px) {
  .pg-page-hero { padding-block: 56px; }
  .pg-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .pg-entry__content blockquote { font-size: 18px; padding-left: 22px; }
  .pg-404 { padding-block: 100px; }
  .pg-404 .pg-404__code { font-size: 96px; }
}

/* =========================================================================
   COMPATIBILIDAD ELEMENTOR
   ========================================================================= */

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con { --container-max-width: var(--pg-shell); }

body.elementor-page .pg-entry { padding-block: 0; }
body.elementor-page .pg-entry__content { max-width: none; }

.elementor-widget-container > .pg-widget { width: 100%; }

.elementor-editor-active .pg-widget--bleed { overflow: visible; }
