/* =====================================================
   PGS Comercial — Theme Stylesheet
   Sistema: Navy + Crema + Rojo PGS refinado · Serif Fraunces + Sans Inter
   Mobile-first · Anti-IA · Premium institucional
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --pgs-navy: #0A1F33;
  --pgs-navy-700: #122B45;
  --pgs-navy-500: #1C3D5A;
  --pgs-cream: #EEECE7;        /* gris cálido claro — paper warm */
  --pgs-cream-dark: #E4E2DD;   /* gris medio para secciones diferenciadas */
  --pgs-ink: #1A1A1A;
  --pgs-ink-soft: #4B5563;
  --pgs-line: #D4D2CD;
  --pgs-red: #C4211A;        /* PGS oficial */
  --pgs-red-700: #9E1A15;    /* hover/pressed */
  --pgs-accent: #C2B280;     /* dorado champagne neutro */
  --pgs-white: #FFFFFF;

  --pgs-radius: 0px;
  --pgs-radius-soft: 4px;

  --pgs-container: 1280px;
  --pgs-gutter: clamp(20px, 4vw, 48px);
  --pgs-section-pad: clamp(72px, 10vw, 140px);

  /* Tipografía: Arial — system font, sin Google Fonts */
  --pgs-sans: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --pgs-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --pgs-mono: Arial, 'Helvetica Neue', Helvetica, sans-serif; /* mantenemos coherencia visual */
  --pgs-serif: var(--pgs-sans);

  --pgs-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pgs-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--pgs-ink);
  background: var(--pgs-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum"; /* tabular numbers cuando estén disponibles */
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.pgs-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pgs-navy); color: #fff; padding: 12px 16px; z-index: 9999;
}
.pgs-skip:focus { left: 16px; top: 16px; }

/* ---------- Container ---------- */
.pgs-container {
  width: 100%;
  max-width: var(--pgs-container);
  margin: 0 auto;
  padding-left: var(--pgs-gutter);
  padding-right: var(--pgs-gutter);
}

/* ---------- Tipografía base ---------- */
.pgs-eyebrow {
  font-family: var(--pgs-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pgs-red);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pgs-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.pgs-eyebrow--light { color: var(--pgs-accent); }

.pgs-h2 {
  font-family: var(--pgs-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--pgs-navy);
  margin: 0 0 24px;
}
.pgs-h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--pgs-red);
}
.pgs-h2--light { color: var(--pgs-cream); }
.pgs-h2--quote { font-weight: 400; }

.pgs-section-head { max-width: 720px; margin: 0 0 64px; }
.pgs-section-head__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--pgs-ink-soft);
  margin: 0;
  line-height: 1.5;
  max-width: 560px;
}
.pgs-section-head--inverse .pgs-eyebrow { color: var(--pgs-accent); }
.pgs-section-head--inverse .pgs-h2 { color: var(--pgs-cream); }
.pgs-section-head--inverse .pgs-section-head__lead { color: rgba(245, 241, 234, 0.65); }

/* ---------- Botones ---------- */
.pgs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pgs-navy);
  padding: 13px 22px;
  border-radius: var(--pgs-radius);
  font-family: var(--pgs-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: background .2s var(--pgs-ease), color .2s var(--pgs-ease), border-color .2s var(--pgs-ease);
  background: transparent;
  color: var(--pgs-navy);
}
.pgs-btn--lg { padding: 16px 26px; font-size: 14px; }
.pgs-btn--primary {
  background: var(--pgs-red);
  border-color: var(--pgs-red);
  color: var(--pgs-cream);
}
.pgs-btn--primary:hover { background: var(--pgs-red-700); border-color: var(--pgs-red-700); }
.pgs-btn--ghost { background: transparent; }
.pgs-btn--ghost:hover { background: var(--pgs-navy); color: var(--pgs-cream); }

.pgs-linklike {
  background: none; border: 0; padding: 0; color: inherit;
  text-decoration: none; cursor: pointer; text-align: left;
}
.pgs-linklike:hover { color: var(--pgs-red); }

/* ===========================================================
   HEADER
   =========================================================== */
.pgs-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pgs-cream);
  border-bottom: 1px solid var(--pgs-line);
}
.pgs-topbar {
  background: var(--pgs-navy);
  color: rgba(245, 241, 234, 0.78);
  font-family: var(--pgs-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.pgs-topbar__inner {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  padding-top: 9px; padding-bottom: 9px;
  flex-wrap: wrap;
  text-align: center;
}
.pgs-topbar a { color: inherit; text-decoration: none; }
.pgs-topbar a:hover { color: var(--pgs-cream); }
.pgs-topbar__sep { margin: 0 6px; opacity: .35; }
.pgs-topbar__contact { display: inline-flex; align-items: center; gap: 4px; }
.pgs-topbar__loc { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pgs-topbar__loc { display: none; }
  .pgs-topbar__sep { display: none; }
  .pgs-topbar__contact { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
}

.pgs-nav__inner {
  display: flex; align-items: center; gap: 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.pgs-logo {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--pgs-navy);
}
.pgs-logo__mark {
  font-family: var(--pgs-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--pgs-red);
}
/* Logo PNG oficial — header (sobre crema) */
.pgs-logo__img {
  height: 36px; width: auto; display: block;
}
/* Logo PNG oficial — footer (sobre navy): convierte el rojo a blanco con filtros */
.pgs-footer__logo-img {
  height: 34px; width: auto; display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}
/* Custom logo cargado por el usuario desde Apariencia → Personalizar → Identidad */
.custom-logo-link { display: block; }
.custom-logo { height: 44px !important; width: auto !important; max-width: 200px; display: block; }
.pgs-logo:has(.custom-logo-link) .pgs-logo__sub { display: none; }
.pgs-logo__sub {
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pgs-navy);
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid var(--pgs-line);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.pgs-nav__menu {
  display: flex; gap: 32px; margin-left: auto;
}
.pgs-nav__menu a {
  text-decoration: none; color: var(--pgs-navy);
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  position: relative; padding: 6px 0;
  transition: color .2s var(--pgs-ease);
}
.pgs-nav__menu a:hover { color: var(--pgs-red); }
.pgs-nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--pgs-red);
  transition: width .25s var(--pgs-ease);
}
.pgs-nav__menu a:hover::after { width: 100%; }
.pgs-nav__ctas { display: flex; gap: 8px; }
.pgs-nav__toggle {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  margin-left: auto;
}
.pgs-nav__toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--pgs-navy);
  transition: transform .25s var(--pgs-ease), opacity .2s;
}
.pgs-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.pgs-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pgs-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .pgs-nav__menu, .pgs-nav__ctas { display: none; }
  .pgs-nav__toggle { display: flex; margin-left: auto; }
  .pgs-nav__inner { position: relative; }
  .pgs-header.is-open .pgs-nav__menu,
  .pgs-header.is-open .pgs-nav__ctas {
    display: flex; flex-direction: column;
    width: 100%; gap: 8px;
    position: static;
    background: var(--pgs-cream);
    padding-left: var(--pgs-gutter);
    padding-right: var(--pgs-gutter);
  }
  .pgs-header.is-open .pgs-nav__menu {
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid var(--pgs-line);
    order: 2;
  }
  .pgs-header.is-open .pgs-nav__menu a {
    font-size: 17px;
    font-family: var(--pgs-sans);
    font-weight: 500;
    padding: 8px 0;
  }
  .pgs-header.is-open .pgs-nav__menu a::after { display: none; }
  .pgs-header.is-open .pgs-nav__ctas {
    padding-top: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pgs-line);
    order: 3;
    gap: 10px;
  }
  .pgs-header.is-open .pgs-nav__ctas .pgs-btn {
    justify-content: center;
    padding: 14px 20px;
    width: 100%;
  }
  .pgs-header.is-open .pgs-nav__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .pgs-header.is-open .pgs-logo,
  .pgs-header.is-open .pgs-nav__toggle { order: 1; }
}

/* ===========================================================
   HERO
   =========================================================== */
.pgs-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 80px);
  overflow: hidden;
}
.pgs-hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 980px) {
  .pgs-hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}
.pgs-hero__copy { max-width: 620px; }
.pgs-hero__title {
  font-family: var(--pgs-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--pgs-navy);
  margin: 0 0 28px;
}
.pgs-hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--pgs-navy);
  position: relative;
}
.pgs-hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 3px;
  background: var(--pgs-red);
}
.pgs-hero__sub {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--pgs-ink-soft);
  line-height: 1.5;
  margin: 0 0 36px;
  max-width: 500px;
}
.pgs-hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.pgs-hero__meta {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--pgs-line);
  padding-top: 24px;
}
.pgs-hero__meta div { display: flex; flex-direction: column; gap: 6px; }
.pgs-hero__meta-k {
  font-family: var(--pgs-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--pgs-ink-soft);
}
.pgs-hero__meta-v {
  font-family: var(--pgs-sans);
  font-size: 15px;
  color: var(--pgs-navy);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pgs-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--pgs-navy);
  overflow: hidden;
}
.pgs-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}
.pgs-hero__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--pgs-navy) 0%, var(--pgs-navy-500) 100%);
}
.pgs-hero__caption {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; align-items: baseline; gap: 14px;
  color: var(--pgs-cream); padding-top: 14px;
  border-top: 1px solid rgba(245, 241, 234, 0.3);
}
.pgs-hero__caption-num {
  font-family: var(--pgs-mono); font-size: 11px; font-weight: 500;
  color: var(--pgs-accent); letter-spacing: .1em;
}
.pgs-hero__caption-txt {
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245, 241, 234, 0.78);
}

.pgs-hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--pgs-line);
}

/* ===========================================================
   STATS
   =========================================================== */
.pgs-stats {
  background: var(--pgs-navy);
  color: var(--pgs-cream);
  padding: clamp(56px, 6vw, 80px) 0;
}
.pgs-stats__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.65);
  margin-bottom: 4px;
}
.pgs-stats__tag { color: var(--pgs-accent); }
.pgs-stats__year { font-variant-numeric: tabular-nums; }
.pgs-stats__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  padding-top: 40px;
}
@media (min-width: 768px) {
  .pgs-stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.pgs-stat {
  display: flex; flex-direction: column; gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(245, 241, 234, 0.18);
}
.pgs-stat__num {
  font-family: var(--pgs-sans);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 0.95;
  color: var(--pgs-cream);
  letter-spacing: -0.04em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.pgs-stat__label {
  margin: 0;
  font-family: var(--pgs-mono);
  font-size: 10px;
  color: rgba(245, 241, 234, 0.65);
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1.4;
}

/* ===========================================================
   SERVICIOS
   =========================================================== */
.pgs-servicios { padding: var(--pgs-section-pad) 0; }
.pgs-servicios__grid {
  display: grid; gap: 1px;
  background: var(--pgs-line);
  border: 1px solid var(--pgs-line);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pgs-servicios__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pgs-servicios__grid { grid-template-columns: repeat(4, 1fr); } }
.pgs-servicio {
  background: var(--pgs-cream);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .3s var(--pgs-ease);
}
.pgs-servicio:hover { background: #FFFCF5; }
.pgs-servicio__icon {
  width: 44px; height: 44px;
  color: var(--pgs-red);
  margin-bottom: 32px;
}
.pgs-servicio__icon svg { width: 100%; height: 100%; }
.pgs-servicio__num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--pgs-mono); font-size: 11px;
  color: var(--pgs-ink-soft);
  letter-spacing: .1em;
}
.pgs-servicio__title {
  font-family: var(--pgs-sans);
  font-weight: 500; font-size: 19px; line-height: 1.25;
  color: var(--pgs-navy); margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.pgs-servicio__desc {
  margin: 0; color: var(--pgs-ink-soft); font-size: 14px; line-height: 1.55;
}

/* ===========================================================
   PROPIEDADES (BENTO)
   =========================================================== */
.pgs-propiedades {
  background: var(--pgs-navy);
  color: var(--pgs-cream);
  padding: var(--pgs-section-pad) 0;
}
.pgs-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
@media (min-width: 768px) {
  .pgs-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
}
@media (min-width: 1100px) {
  .pgs-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; }
}
.pgs-bento__item {
  position: relative; overflow: hidden;
  background: var(--pgs-navy-500);
  grid-column: span 1; grid-row: span 1;
}
@media (min-width: 768px) {
  .pgs-bento__item--md { grid-column: span 2; grid-row: span 1; }
  .pgs-bento__item--lg { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) {
  .pgs-bento__item--sm { grid-column: span 2; }
  .pgs-bento__item--md { grid-column: span 3; }
  .pgs-bento__item--lg { grid-column: span 3; grid-row: span 2; }
}
.pgs-bento__link { display: block; height: 100%; text-decoration: none; color: inherit; }
.pgs-bento__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--pgs-navy-700);
  transition: transform .8s var(--pgs-ease);
  filter: saturate(.85);
}
.pgs-bento__item:hover .pgs-bento__img { transform: scale(1.04); }
.pgs-bento__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 31, 51, 0.85) 70%);
  color: var(--pgs-cream);
}
.pgs-bento__title {
  margin: 0;
  font-family: var(--pgs-sans);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pgs-bento__city {
  margin: 6px 0 0;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pgs-accent);
}

.pgs-empty {
  background: var(--pgs-navy-700);
  padding: 32px; color: var(--pgs-cream);
}

/* ===========================================================
   SOBRE
   =========================================================== */
.pgs-sobre {
  padding: var(--pgs-section-pad) 0;
  background: var(--pgs-cream);
}
.pgs-sobre__grid {
  display: grid; gap: clamp(40px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .pgs-sobre__grid { grid-template-columns: 0.85fr 1fr; }
}
.pgs-sobre__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--pgs-navy);
  overflow: hidden;
}
.pgs-sobre__media img { width: 100%; height: 100%; object-fit: cover; }
.pgs-sobre__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--pgs-navy) 0%, var(--pgs-navy-500) 100%);
}
.pgs-sobre__badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--pgs-cream); color: var(--pgs-navy);
  padding: 8px 14px;
  font-family: var(--pgs-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.pgs-prose { color: var(--pgs-ink-soft); font-size: 16px; line-height: 1.7; max-width: 540px; }
.pgs-prose p { margin: 0 0 16px; }

/* ===========================================================
   GALERÍA
   =========================================================== */
.pgs-galeria {
  padding: var(--pgs-section-pad) 0;
  background: var(--pgs-cream-dark);
}
.pgs-galeria__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
@media (min-width: 768px) {
  .pgs-galeria__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
}
.pgs-galeria__cell { margin: 0; overflow: hidden; }
.pgs-galeria__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--pgs-ease); }
.pgs-galeria__cell:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
  .pgs-galeria__cell--1 { grid-column: span 2; grid-row: span 2; }
  .pgs-galeria__cell--4 { grid-row: span 2; }
  .pgs-galeria__cell--6 { grid-column: span 2; }
}

/* ===========================================================
   CTA TRABAJÁ
   =========================================================== */
.pgs-cta-trabaja {
  background: var(--pgs-navy);
  color: var(--pgs-cream);
  padding: clamp(56px, 8vw, 96px) 0;
}
.pgs-cta-trabaja__inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .pgs-cta-trabaja__inner { grid-template-columns: 1.5fr 1fr; }
  .pgs-cta-trabaja__actions { justify-self: end; }
}
.pgs-cta-trabaja__lead {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(245, 241, 234, 0.78);
  max-width: 540px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.pgs-footer {
  background: var(--pgs-navy);
  color: rgba(245, 241, 234, 0.85);
  padding: clamp(56px, 8vw, 88px) 0 0;
  border-top: 1px solid var(--pgs-navy-500);
}
.pgs-footer__grid {
  display: grid;
  gap: 48px 32px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--pgs-navy-500);
}
@media (min-width: 768px) {
  .pgs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.pgs-footer__brand .pgs-logo__mark { color: var(--pgs-cream); }
.pgs-footer__brand .pgs-logo__sub { color: rgba(245, 241, 234, 0.7); }
.pgs-footer__logo { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.pgs-footer__tagline { font-size: 14px; max-width: 320px; margin: 0 0 24px; color: rgba(245, 241, 234, 0.7); }

.pgs-footer__social { margin-top: 20px; }
.pgs-footer__social-label {
  display: block;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pgs-accent);
  margin-bottom: 12px;
}
.pgs-footer__social-icons { display: flex; gap: 10px; }
.pgs-footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--pgs-cream);
  border: 1px solid rgba(245, 241, 234, 0.25);
  transition: background .2s var(--pgs-ease), color .2s var(--pgs-ease), border-color .2s var(--pgs-ease);
}
.pgs-footer__social-icons a:hover {
  background: var(--pgs-cream);
  color: var(--pgs-navy);
  border-color: var(--pgs-cream);
}
.pgs-footer__h {
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pgs-accent);
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pgs-navy-500);
}
.pgs-footer ul { list-style: none; padding: 0; margin: 0; }
.pgs-footer li { margin: 0 0 12px; font-size: 13px; letter-spacing: -0.005em; }
.pgs-footer a, .pgs-footer button { color: rgba(245, 241, 234, 0.85); text-decoration: none; }
.pgs-footer a:hover, .pgs-footer button:hover { color: var(--pgs-accent); }
.pgs-footer address { font-style: normal; font-size: 14px; line-height: 1.65; color: rgba(245, 241, 234, 0.85); }
.pgs-footer__bottom { padding: 24px 0; }
.pgs-footer__bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}
.pgs-footer__bottom-inner p { margin: 0; }
.pgs-footer__bottom-inner a { color: var(--pgs-cream); border-bottom: 1px solid rgba(245, 241, 234, 0.3); }

/* ===========================================================
   MODAL TRABAJÁ
   =========================================================== */
.pgs-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.pgs-modal[hidden] { display: none; }
.pgs-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 31, 51, 0.72);
  backdrop-filter: blur(4px);
  animation: pgs-fade .25s var(--pgs-ease);
}
.pgs-modal__panel {
  position: relative;
  width: min(620px, 100% - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--pgs-cream);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px);
  animation: pgs-rise .35s var(--pgs-ease);
}
.pgs-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: transparent; border: 0; color: var(--pgs-navy);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s var(--pgs-ease);
}
.pgs-modal__close:hover { background: var(--pgs-cream-dark); }
.pgs-modal__head { margin-bottom: 28px; }
.pgs-modal__head h2 {
  font-family: var(--pgs-display);
  font-weight: 500; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--pgs-navy); margin: 0 0 12px;
}
.pgs-modal__lead { color: var(--pgs-ink-soft); font-size: 15px; margin: 0; }
.pgs-modal__body input[type="text"],
.pgs-modal__body input[type="email"],
.pgs-modal__body input[type="tel"],
.pgs-modal__body input[type="url"],
.pgs-modal__body input[type="file"],
.pgs-modal__body select,
.pgs-modal__body textarea {
  width: 100%;
  background: var(--pgs-white);
  border: 1px solid var(--pgs-line);
  padding: 12px 14px;
  font-family: var(--pgs-sans); font-size: 15px; color: var(--pgs-ink);
  margin-top: 6px; border-radius: 0;
}
.pgs-modal__body label { font-size: 13px; color: var(--pgs-ink-soft); display: block; margin-bottom: 14px; }
.pgs-modal__body .wpcf7-submit, .pgs-modal__body button[type="submit"] {
  background: var(--pgs-red); border: 1px solid var(--pgs-red);
  color: var(--pgs-cream); padding: 14px 24px; font-weight: 500; font-size: 15px;
  cursor: pointer; transition: background .2s var(--pgs-ease);
}
.pgs-modal__body .wpcf7-submit:hover { background: var(--pgs-red-700); border-color: var(--pgs-red-700); }

@keyframes pgs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgs-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Body lock cuando modal abierto ---------- */
body.pgs-modal-open { overflow: hidden; }

/* ---------- Fallback 404 ---------- */
.pgs-fallback { padding: 120px 0; text-align: center; }
.pgs-fallback h1 { font-family: var(--pgs-sans); font-weight: 500; font-size: 48px; margin: 16px 0; color: var(--pgs-navy); letter-spacing: -0.03em; }

/* ===========================================================
   ACTIVOS — header con CTA + slider
   =========================================================== */
.pgs-section-head--with-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  flex-wrap: wrap;
}
.pgs-section-head--with-cta > div { max-width: 720px; flex: 1 1 480px; }

.pgs-btn--inverse {
  border-color: rgba(245, 241, 234, 0.45);
  color: var(--pgs-cream);
}
.pgs-btn--inverse:hover {
  background: var(--pgs-cream);
  border-color: var(--pgs-cream);
  color: var(--pgs-navy);
}

/* Marquee auto-scroll (logos clonados para loop infinito) */
.pgs-marquee {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  /* Sin mask: las marcas entran y salen completas (cleaner). */
}
/* Importante: si el marquee tuvo data-pgs-anim, igual queda visible.
   El fade-in queda anulado para evitar que la animación corra "vacía". */
.pgs-marquee[data-pgs-anim],
body.pgs-anim-ready .pgs-marquee[data-pgs-anim]:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}
.pgs-marquee__track {
  display: flex;
  gap: 0; /* gap llevado a margin-right de cada slide para evitar drift subpíxel */
  width: max-content;
  animation: pgs-marquee 28s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pgs-marquee:hover .pgs-marquee__track,
.pgs-marquee:focus-within .pgs-marquee__track { animation-play-state: paused; }

.pgs-marquee .pgs-activo--slide {
  flex: 0 0 200px;
  margin-right: 14px;
  background: var(--pgs-navy-500);
  display: flex; flex-direction: column;
}
@media (min-width: 640px)  { .pgs-marquee .pgs-activo--slide { flex-basis: 240px; } }
@media (min-width: 980px)  { .pgs-marquee .pgs-activo--slide { flex-basis: 280px; } }

/* Con margin-right en cada slide, el track entero = 2N slots, donde 1 slot = ancho + gap.
   El loop seamless es exactamente -50% del track sin offsets fraccionales. */
@keyframes pgs-marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* En mobile: animación un toque más rápida para sensación de fluidez */
@media (max-width: 768px) {
  .pgs-marquee__track { animation-duration: 22s; }
}

@media (prefers-reduced-motion: reduce) {
  .pgs-marquee__track { animation: none; }
}

.pgs-slider {
  position: relative;
  margin-top: 8px;
}
.pgs-slider__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 241, 234, 0.25) transparent;
}
.pgs-slider__track::-webkit-scrollbar { height: 4px; }
.pgs-slider__track::-webkit-scrollbar-thumb { background: rgba(245, 241, 234, 0.25); }
.pgs-slider__track::-webkit-scrollbar-track { background: transparent; }

.pgs-activo--slide {
  flex: 0 0 calc((100% - 14px) / 2);
  scroll-snap-align: start;
  background: var(--pgs-navy-500);
  display: flex; flex-direction: column;
}
@media (min-width: 700px)  { .pgs-activo--slide { flex-basis: calc((100% - 28px) / 3); } }
@media (min-width: 980px)  { .pgs-activo--slide { flex-basis: calc((100% - 42px) / 4); } }
@media (min-width: 1200px) { .pgs-activo--slide { flex-basis: calc((100% - 56px) / 5); } }

.pgs-slider__nav {
  display: flex; gap: 8px;
  margin-top: 4px;
  justify-content: flex-end;
}
.pgs-slider__btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.35);
  color: var(--pgs-cream);
  cursor: pointer;
  transition: background .2s var(--pgs-ease), border-color .2s var(--pgs-ease);
}
.pgs-slider__btn:hover {
  background: var(--pgs-cream);
  color: var(--pgs-navy);
  border-color: var(--pgs-cream);
}
.pgs-slider__btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ===========================================================
   PAGE HEAD (encabezado de páginas internas)
   =========================================================== */
.pgs-page-head {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: var(--pgs-cream);
  border-bottom: 1px solid var(--pgs-line);
}
.pgs-breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pgs-ink-soft);
  margin-bottom: 32px;
}
.pgs-breadcrumb a { color: var(--pgs-red); text-decoration: none; }
.pgs-breadcrumb a:hover { color: var(--pgs-navy); }
.pgs-page-head__title {
  font-family: var(--pgs-display);
  font-weight: 500; font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--pgs-navy); margin: 0 0 24px;
}
.pgs-page-head__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--pgs-ink-soft); line-height: 1.55;
  max-width: 620px; margin: 0 0 48px;
}
.pgs-page-head__meta {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, auto);
  border-top: 1px solid var(--pgs-line); padding-top: 24px;
  margin: 0; max-width: 620px;
}
.pgs-page-head__meta dt {
  font-family: var(--pgs-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--pgs-ink-soft); margin: 0 0 6px;
}
.pgs-page-head__meta dd {
  margin: 0; font-size: 22px; font-weight: 500;
  color: var(--pgs-navy); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Page activos: no necesita padding-top extra ni eyebrow */
.pgs-activos--page { padding-top: clamp(40px, 5vw, 56px); }
.pgs-activos--page .pgs-section-head { display: none; }

/* ===========================================================
   ACTIVOS ADMINISTRADOS (página dedicada — grid full)
   =========================================================== */
.pgs-activos {
  background: var(--pgs-navy);
  color: var(--pgs-cream);
  padding: var(--pgs-section-pad) 0;
}
.pgs-activos__group { margin-top: 56px; }
.pgs-activos__group:first-of-type { margin-top: 8px; }
.pgs-activos__group-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.18);
  margin-bottom: 24px;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pgs-activos__group-tag { color: var(--pgs-accent); }
.pgs-activos__group-count { color: rgba(245, 241, 234, 0.6); font-variant-numeric: tabular-nums; }

.pgs-activos__grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(245, 241, 234, 0.08);
  border: 1px solid rgba(245, 241, 234, 0.08);
}
@media (min-width: 640px) { .pgs-activos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .pgs-activos__grid { grid-template-columns: repeat(5, 1fr); } }

.pgs-activo {
  background: var(--pgs-navy);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background .2s var(--pgs-ease);
}
.pgs-activo:hover { background: var(--pgs-navy-700); }
.pgs-activo__media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 22px;
  background: #fff;
  position: relative;
}
.pgs-activo__media:empty::after {
  content: "Logo pendiente";
  font-family: var(--pgs-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(10, 31, 51, 0.32);
}
.pgs-activo__media img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.pgs-activo__placeholder {
  font-family: var(--pgs-sans);
  font-weight: 700; font-size: 12px;
  color: var(--pgs-navy);
  text-align: center;
  letter-spacing: -0.01em;
}
.pgs-activo__meta {
  padding: 14px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
}
.pgs-activo__name {
  font-size: 13px; font-weight: 500; color: var(--pgs-cream);
  letter-spacing: -0.01em; line-height: 1.25;
}
.pgs-activo__city {
  font-family: var(--pgs-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(245, 241, 234, 0.55);
}

/* ===========================================================
   COBERTURA NACIONAL
   =========================================================== */
.pgs-cobertura {
  background: var(--pgs-cream-dark);
  padding: var(--pgs-section-pad) 0;
}
.pgs-cobertura__grid {
  display: grid; gap: clamp(40px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .pgs-cobertura__grid { grid-template-columns: 1.1fr 1fr; }
}
.pgs-cobertura__body {
  font-size: 16px; line-height: 1.65; color: var(--pgs-ink-soft);
  margin: 0; max-width: 540px;
}
.pgs-cobertura__map {
  position: relative;
  width: fit-content;
  max-width: 420px;
  margin-left: auto;
}
.pgs-cobertura__map-svg,
.pgs-cobertura__map-img {
  width: 100%; max-width: 420px; height: auto; display: block;
}
.pgs-cobertura__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--pgs-line);
}
@media (min-width: 640px) { .pgs-cobertura__list { grid-template-columns: repeat(3, 1fr); } }
.pgs-cobertura__list li {
  padding: 18px 0;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--pgs-line);
}
.pgs-cobertura__list-num {
  font-family: var(--pgs-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--pgs-red);
  font-variant-numeric: tabular-nums;
}
.pgs-cobertura__list-name {
  font-size: 15px; font-weight: 500; color: var(--pgs-navy);
  letter-spacing: -0.01em;
}

/* ===========================================================
   MISIÓN / VISIÓN — 2 cards
   =========================================================== */
.pgs-mv { background: var(--pgs-cream); padding: var(--pgs-section-pad) 0 calc(var(--pgs-section-pad) / 2); }
.pgs-mv__grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .pgs-mv__grid { grid-template-columns: 1fr 1fr; }
}
.pgs-mv__card {
  padding: clamp(28px, 3vw, 48px);
  background: var(--pgs-cream-dark);
  border-top: 2px solid var(--pgs-red);
}
.pgs-mv__tag {
  display: inline-block;
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pgs-red); margin-bottom: 20px;
}
.pgs-mv__title {
  font-family: var(--pgs-display);
  font-weight: 500; font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--pgs-navy); margin: 0 0 16px;
}
.pgs-mv__body { font-size: 15px; line-height: 1.65; color: var(--pgs-ink-soft); margin: 0; }

/* ===========================================================
   VALORES — 7 entradas grid
   =========================================================== */
.pgs-valores { background: var(--pgs-cream); padding: calc(var(--pgs-section-pad) / 2) 0 var(--pgs-section-pad); }
.pgs-valores__grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--pgs-line);
  border-left: 1px solid var(--pgs-line);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pgs-valores__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pgs-valores__grid { grid-template-columns: repeat(4, 1fr); } }
.pgs-valor {
  background: var(--pgs-cream);
  border-right: 1px solid var(--pgs-line);
  border-bottom: 1px solid var(--pgs-line);
  padding: 28px 28px 32px;
  position: relative;
  min-height: 200px;
}
.pgs-valor__num {
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .2em;
  color: var(--pgs-red);
  position: absolute; top: 20px; right: 24px;
}
.pgs-valor__title {
  margin: 0 0 12px;
  font-family: var(--pgs-display);
  font-size: 18px; font-weight: 500;
  color: var(--pgs-navy);
  letter-spacing: -0.02em;
  padding-top: 28px;
  border-top: 1px solid var(--pgs-line);
}
.pgs-valor__desc { margin: 0; font-size: 13px; color: var(--pgs-ink-soft); line-height: 1.55; }

/* Empresas que confían en nosotros */
.pgs-confian { background: var(--pgs-cream); padding: var(--pgs-section-pad) 0; }
.pgs-confian__grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--pgs-line);
  border-left: 1px solid var(--pgs-line);
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}
@media (min-width: 640px) { .pgs-confian__grid { grid-template-columns: repeat(3, 1fr); } }
.pgs-confian__item {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-right: 1px solid var(--pgs-line);
  border-bottom: 1px solid var(--pgs-line);
  padding: 30px 24px;
  min-height: 130px;
}
.pgs-confian__item img {
  max-width: 160px; max-height: 66px;
  width: auto; height: auto;
  object-fit: contain;
}

/* ===========================================================
   CONTACTO
   =========================================================== */
.pgs-contacto {
  background: var(--pgs-cream-dark);
  padding: var(--pgs-section-pad) 0;
}
.pgs-contacto__grid {
  display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pgs-contacto__grid { grid-template-columns: 0.9fr 1fr; }
}
.pgs-contacto__lead {
  font-size: 16px; color: var(--pgs-ink-soft); line-height: 1.6;
  margin: 0 0 36px; max-width: 480px;
}
.pgs-contacto__info {
  margin: 0; display: grid; gap: 24px;
  border-top: 1px solid var(--pgs-line); padding-top: 32px;
}
.pgs-contacto__info > div { display: flex; flex-direction: column; gap: 6px; }
.pgs-contacto__info dt {
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pgs-red); margin: 0;
}
.pgs-contacto__info dd {
  margin: 0; font-size: 15px; color: var(--pgs-navy); font-weight: 500;
  letter-spacing: -0.01em;
}
.pgs-contacto__info a { color: inherit; text-decoration: none; }
.pgs-contacto__info a:hover { color: var(--pgs-red); }
.pgs-contacto__form {
  background: var(--pgs-cream);
  padding: clamp(28px, 3vw, 40px);
  border-top: 2px solid var(--pgs-navy);
}
.pgs-contacto__fallback label {
  display: block; margin-bottom: 16px;
  font-family: var(--pgs-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pgs-ink-soft);
}
.pgs-contacto__fallback input,
.pgs-contacto__fallback textarea {
  display: block; width: 100%;
  margin-top: 6px;
  background: var(--pgs-cream);
  border: 0; border-bottom: 1px solid var(--pgs-line);
  padding: 10px 0;
  font-family: var(--pgs-sans);
  font-size: 15px; color: var(--pgs-navy);
  border-radius: 0;
  letter-spacing: -0.01em;
}
.pgs-contacto__fallback input:focus,
.pgs-contacto__fallback textarea:focus { border-bottom-color: var(--pgs-red); outline: none; }
.pgs-contacto__fallback button { margin-top: 12px; }

/* ===========================================================
   CF7 — estilos para el formulario en sección Contacto
   =========================================================== */
.pgs-contacto__form .wpcf7-form p { margin: 0 0 16px; }
.pgs-contacto__form .wpcf7-form label {
  display: block;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pgs-ink-soft);
  font-weight: 500;
}
.pgs-contacto__form .wpcf7-form input[type="text"],
.pgs-contacto__form .wpcf7-form input[type="email"],
.pgs-contacto__form .wpcf7-form input[type="tel"],
.pgs-contacto__form .wpcf7-form input[type="url"],
.pgs-contacto__form .wpcf7-form select,
.pgs-contacto__form .wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--pgs-cream);
  border: 0;
  border-bottom: 1px solid var(--pgs-line);
  padding: 10px 0;
  font-family: var(--pgs-sans);
  font-size: 15px;
  color: var(--pgs-navy);
  border-radius: 0;
  letter-spacing: -0.01em;
  box-shadow: none;
}
.pgs-contacto__form .wpcf7-form input:focus,
.pgs-contacto__form .wpcf7-form select:focus,
.pgs-contacto__form .wpcf7-form textarea:focus {
  border-bottom-color: var(--pgs-red);
  outline: none;
}
.pgs-contacto__form .wpcf7-form .wpcf7-submit,
.pgs-contacto__form .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pgs-red);
  border: 1px solid var(--pgs-red);
  color: var(--pgs-cream);
  padding: 14px 26px;
  font-family: var(--pgs-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 0;
  cursor: pointer;
  margin-top: 12px;
  width: auto;
  transition: background .2s var(--pgs-ease), border-color .2s var(--pgs-ease);
}
.pgs-contacto__form .wpcf7-form .wpcf7-submit:hover,
.pgs-contacto__form .wpcf7-form input[type="submit"]:hover {
  background: var(--pgs-red-700);
  border-color: var(--pgs-red-700);
}
.pgs-contacto__form .wpcf7-not-valid-tip {
  font-family: var(--pgs-sans);
  color: var(--pgs-red);
  font-size: 12px;
  margin-top: 4px;
}
.pgs-contacto__form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--pgs-line);
  background: var(--pgs-cream);
  color: var(--pgs-navy);
}

/* ===========================================================
   CF7 — estilos para el formulario en el modal "Trabaja con nosotros"
   =========================================================== */
.pgs-modal__body .wpcf7-form p { margin: 0 0 14px; }
.pgs-modal__body .wpcf7-form label {
  display: block;
  font-family: var(--pgs-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pgs-ink-soft);
  font-weight: 500;
  margin-bottom: 0;
}
.pgs-modal__body .wpcf7-form input[type="text"],
.pgs-modal__body .wpcf7-form input[type="email"],
.pgs-modal__body .wpcf7-form input[type="tel"],
.pgs-modal__body .wpcf7-form input[type="url"],
.pgs-modal__body .wpcf7-form input[type="file"],
.pgs-modal__body .wpcf7-form select,
.pgs-modal__body .wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--pgs-white);
  border: 1px solid var(--pgs-line);
  padding: 12px 14px;
  font-family: var(--pgs-sans);
  font-size: 15px;
  color: var(--pgs-ink);
  border-radius: 0;
}
.pgs-modal__body .wpcf7-form input:focus,
.pgs-modal__body .wpcf7-form select:focus,
.pgs-modal__body .wpcf7-form textarea:focus {
  border-color: var(--pgs-red);
  outline: none;
}
.pgs-modal__body .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  font-family: var(--pgs-sans);
  font-size: 13px;
  color: var(--pgs-ink-soft);
}
.pgs-modal__body .wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
  font-family: var(--pgs-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--pgs-ink-soft);
}
.pgs-modal__body .wpcf7-form .wpcf7-submit,
.pgs-modal__body .wpcf7-form input[type="submit"] {
  background: var(--pgs-red);
  border: 1px solid var(--pgs-red);
  color: var(--pgs-cream);
  padding: 14px 24px;
  font-family: var(--pgs-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: background .2s var(--pgs-ease);
}
.pgs-modal__body .wpcf7-form .wpcf7-submit:hover {
  background: var(--pgs-red-700);
  border-color: var(--pgs-red-700);
}
.pgs-modal__body .wpcf7-not-valid-tip {
  color: var(--pgs-red);
  font-size: 12px;
  margin-top: 4px;
}
.pgs-modal__body .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--pgs-line);
  background: var(--pgs-cream-dark);
  color: var(--pgs-navy);
}

/* Drag & Drop file uploader — herencia visual del theme */
.codedropz-upload-handler {
  background: var(--pgs-cream-dark) !important;
  border: 1px dashed var(--pgs-line) !important;
  border-radius: 0 !important;
  font-family: var(--pgs-sans) !important;
}
.codedropz-upload-inner h3 {
  font-family: var(--pgs-sans) !important;
  color: var(--pgs-navy) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}
.codedropz-btn-wrap a.cd-upload-btn {
  background: var(--pgs-navy) !important;
  color: var(--pgs-cream) !important;
  border-radius: 0 !important;
  font-family: var(--pgs-sans) !important;
}
.codedropz-btn-wrap a.cd-upload-btn:hover { background: var(--pgs-navy-500) !important; }

/* ===========================================================
   ANIMACIONES — fade+slide on scroll, hero underline, map pulses
   =========================================================== */

/* Fade + slide up al entrar al viewport
 * Importante: solo aplicamos opacity:0 si el body tiene .pgs-anim-ready
 * (lo agrega el JS cuando el observer está listo). Si el JS falla, el
 * contenido se muestra normalmente sin animación.
 */
body.pgs-anim-ready [data-pgs-anim]:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}
[data-pgs-anim] {
  transition: opacity .8s var(--pgs-ease), transform .8s var(--pgs-ease);
  will-change: opacity, transform;
}
[data-pgs-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-pgs-anim-delay="100"] { transition-delay: .1s; }
[data-pgs-anim-delay="200"] { transition-delay: .2s; }
[data-pgs-anim-delay="300"] { transition-delay: .3s; }
[data-pgs-anim-delay="400"] { transition-delay: .4s; }
[data-pgs-anim-delay="500"] { transition-delay: .5s; }

/* Hero underline animado — se "dibuja" de izquierda a derecha */
.pgs-hero__title em::after {
  right: auto;
  width: 0;
  transition: width 1s var(--pgs-ease) .4s;
}
.pgs-hero.is-loaded .pgs-hero__title em::after {
  width: 100%;
}

/* Contador de stats: ocultos a nivel transform pero visibles */
.pgs-stat__num[data-count] { display: inline-block; }

/* Mapa: overlay con puntos pulsantes */
.pgs-cobertura__map { position: relative; }
.pgs-cobertura__pulses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}
.pgs-pulse {
  position: absolute;
  width: 16px; height: 16px;
  margin-left: -8px; margin-top: -8px;
}
.pgs-pulse::before,
.pgs-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pgs-red);
}
.pgs-pulse::before {
  /* punto sólido central */
  width: 6px; height: 6px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.pgs-pulse::after {
  /* anillo expansivo */
  border: 2px solid var(--pgs-red);
  background: transparent;
  animation: pgs-pulse 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  opacity: 0;
}
@keyframes pgs-pulse {
  0%   { transform: scale(0.4); opacity: .9; }
  70%  { transform: scale(2.2); opacity: 0;  }
  100% { transform: scale(2.2); opacity: 0;  }
}
/* stagger por punto */
.pgs-pulse:nth-child(1) ::after, .pgs-pulse:nth-child(1)::after { animation-delay: 0s; }
.pgs-pulse:nth-child(2)::after { animation-delay: .25s; }
.pgs-pulse:nth-child(3)::after { animation-delay: .5s; }
.pgs-pulse:nth-child(4)::after { animation-delay: .75s; }
.pgs-pulse:nth-child(5)::after { animation-delay: 1.0s; }
.pgs-pulse:nth-child(6)::after { animation-delay: 1.25s; }
.pgs-pulse:nth-child(7)::after { animation-delay: 1.5s; }
.pgs-pulse:nth-child(8)::after { animation-delay: 1.75s; }
.pgs-pulse:nth-child(9)::after { animation-delay: 2.0s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-pgs-anim] { opacity: 1; transform: none; }
  .pgs-hero__title em::after { width: 100%; }
  .pgs-pulse::after { display: none; }
}
