/* Mediterráneo · Estilos por bloque
   Un comentario por bloque. El CSS de cada bloque se concentra aquí
   (aunque el markup lo emite su template.php individual).
   Orden alfabético para facilitar edición. */


/* ═══════════════════════════════════════
   UTILIDADES COMPARTIDAS · titulares de sección
   Tamaño unificado para todos los titulares de bloque, para que
   "Hay cosas que no se improvisan", "Todo lo que tu comunidad necesita",
   "Tres caminos para crecer juntos" y "Lo que presidentes como tú nos
   preguntan" tengan exactamente la misma jerarquía visual.
   Ajustado el 2026-04-24 a petición de Carlos.
   ═══════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.1;
  font-weight: 400;
  margin: 0;
}


/* ═══════════════════════════════════════
   BLOQUE · md-hero-video
   Hero con vídeo o imagen de fondo + titular serif.
   ═══════════════════════════════════════ */
.md-hero {
  position: relative;
  min-height: 44vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 60px 24px 80px;
}
.md-hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.md-hero-media video,
.md-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.md-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,30,50,0.45) 0%, rgba(10,30,50,0.7) 100%);
}
.md-hero-inner { position: relative; z-index: 1; max-width: 920px; }
.md-hero-rule { width: 60px; height: 1px; background: rgba(255,255,255,0.5); margin: 0 auto; }
.md-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 36px 0;
  color: #fff;
}
.md-hero-title em { font-style: italic; font-weight: 300; color: var(--brand-sky); }
/* Subtítulo + botón "Ver vídeo" en línea (cae debajo en pantallas pequeñas) */
.md-hero-sub-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.md-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* CTA "Ver vídeo" — pill discreto inline tras el subtítulo */
.md-hero-play {
  /* Reset del estilo nativo de <button> en Safari/iOS — sin esto sale como
     push-button blanco con icono y texto apilados. Chrome lo ignora, Safari NO. */
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.md-hero-play:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}
.md-hero-play:active { transform: translateY(0); }
.md-hero-play:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}
.md-hero-play-icon { width: 16px; height: 16px; display: inline-flex; }
.md-hero-play-icon svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════
   LIGHTBOX · vídeo modal (cualquier bloque que dispare data-video-modal)
   ═══════════════════════════════════════ */
.md-video-modal {
  position: fixed; inset: 0;
  background: rgba(6, 20, 33, 0.92);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.md-video-modal[hidden] { display: none; }
.md-video-modal.is-open { opacity: 1; }
.md-video-modal-frame {
  width: 100%; max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.md-video-modal-frame video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}
.md-video-modal-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 26px; font-weight: 300; line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.md-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.md-video-modal-close:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .md-video-modal { padding: 0; }
  .md-video-modal-frame { border-radius: 0; }
  .md-video-modal-close { top: 14px; right: 14px; }
}


/* ═══════════════════════════════════════
   BLOQUE · md-intro-stats
   ═══════════════════════════════════════ */
.md-intro { padding: 140px 24px 120px; background: var(--bg); }
.md-intro-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 100px; align-items: start;
}
.md-intro-text h2 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.md-intro-text p {
  font-size: 18px; line-height: 1.7; color: var(--ink-soft);
  margin-bottom: 20px; max-width: 580px;
}
.md-intro-text p strong { color: var(--ink); font-weight: 600; }
.md-intro-services { list-style: none; margin-top: 32px; display: grid; gap: 10px; }
.md-intro-services li {
  position: relative; padding-left: 24px;
  font-size: 16px; color: var(--ink);
}
.md-intro-services li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; background: var(--brand);
}
.md-stats-col { display: grid; gap: 48px; padding-top: 32px; }
.md-stat { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.md-stat:last-child { border-bottom: none; padding-bottom: 0; }
.md-stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--brand);
}
.md-stat-num .sign { font-size: 0.6em; vertical-align: 0.25em; margin-right: 4px; opacity: 0.85; }
.md-stat-lbl {
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-top: 12px;
}


/* ═══════════════════════════════════════
   BLOQUE · md-recognitions
   ═══════════════════════════════════════ */
.md-recog {
  padding: 50px 24px 60px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.md-recog-inner { max-width: var(--maxw); margin: 0 auto; }
.md-recog-head { text-align: center; margin-bottom: 36px; }
.md-recog-eyebrow {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
}
.md-recog-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
  align-items: center;
}
.md-recog-item {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 10px; text-align: center;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--t-slow);
  min-height: 74px;
  border-right: 1px solid var(--line);
}
.md-recog-item:last-child { border-right: none; }
.md-recog-item:hover { filter: grayscale(0) opacity(1); }
.md-recog-mark {
  font-family: var(--font-display);
  font-size: 14px; color: var(--ink);
  line-height: 1.2; font-weight: 500;
  letter-spacing: -0.01em;
}
.md-recog-mark small {
  display: block; font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-mute); margin-top: 4px;
  text-transform: uppercase; font-weight: 500;
}


/* ═══════════════════════════════════════
   BLOQUE · md-banner-60
   ═══════════════════════════════════════ */
.md-banner60 {
  background: var(--bg-dark);
  color: #fff;
  padding: 110px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.md-banner60::before, .md-banner60::after {
  position: absolute; top: 50%;
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 300px);
  color: rgba(0,122,201,0.06);
  letter-spacing: -0.05em;
  transform: translateY(-50%);
  pointer-events: none;
}
.md-banner60::before { content: "1964"; left: -20px; }
.md-banner60::after  { content: "2026"; right: -20px; }
.md-banner60-eyebrow {
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-sky);
  margin-bottom: 28px; position: relative; z-index: 1;
}
.md-banner60 h2 {
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 840px; margin: 0 auto 20px;
  position: relative; z-index: 1; color: #fff;
}
.md-banner60 h2 em { color: var(--brand-sky); }
.md-banner60 p {
  color: rgba(255,255,255,0.72);
  font-size: 18px; max-width: 560px; margin: 0 auto 44px;
  position: relative; z-index: 1;
}
.md-banner60 .btn { position: relative; z-index: 1; }


/* ═══════════════════════════════════════
   BLOQUE · md-pillars-3
   ═══════════════════════════════════════ */
.md-pillars { padding: 80px 24px; background: var(--bg); }
.md-pillars-inner { max-width: var(--maxw); margin: 0 auto; }
.md-pillars-head { text-align: center; margin-bottom: 56px; max-width: 680px; margin-left: auto; margin-right: auto; }
.md-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.md-pillar {
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
.md-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,122,201,0.25);
  border-color: var(--brand-tint-2);
}
.md-pillar-num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--brand);
  font-weight: 500; letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.md-pillar h3 { font-size: 30px; margin-bottom: 18px; }
.md-pillar p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }


/* Placeholder usado por los render en estado vacío (admin preview) */
.md-block-placeholder {
  padding: 60px 24px; text-align: center;
  background: var(--bg-alt); color: var(--ink-mute);
  font-family: var(--font-display); font-style: italic;
}


/* ═══════════════════════════════════════
   BLOQUE · md-community-finder
   Buscador typeahead + mapa interactivo.
   ═══════════════════════════════════════ */
.quote-finder, .md-finder {
  padding: 40px 24px 120px;
  background: var(--bg);
}
.qf-inner { max-width: var(--maxw); margin: 0 auto; }
.qf-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.qf-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--ink);
}
.qf-header h2 em { color: var(--brand); font-style: italic; }
.qf-header p {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.6;
}

.qf-tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 122, 201, 0.22);
  display: grid;
  grid-template-columns: 5fr 6fr;
  overflow: hidden;
}
.qf-search {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 540px;
}
/* Formulario de búsqueda — orden vertical:
   1) Fila CP + Nº Portal
   2) Instrucciones (qf-hint)
   3) Dirección a ancho completo
   4) Botón Buscar a ancho completo */
.qf-form { margin: 0; display: flex; flex-direction: column; gap: 14px; }

.qf-fields-top {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: end;
}

/* Compatibilidad: si en algún sitio quedara la clase antigua .qf-fields,
   no rompe — la mostramos en columna. */
.qf-fields {
  display: grid;
  grid-template-columns: 110px 90px 1fr auto;
  gap: 12px;
  align-items: end;
}
.qf-field { min-width: 0; }
.qf-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
  padding-left: 2px;
}
.qf-field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.qf-field input::placeholder { color: var(--ink-mute); opacity: 0.55; }
.qf-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,201,0.12);
}
.qf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 0 20px;
  height: 46px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.qf-submit:hover:not(:disabled) {
  background: var(--brand-dark, #0062a6);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0,122,201,0.45);
}
.qf-submit:disabled {
  background: var(--brand);
  color: #fff;
  opacity: 0.55;
  cursor: not-allowed;
}
.qf-submit svg { width: 16px; height: 16px; }
.qf-submit-full {
  width: 100%;
  margin-top: 4px;
}

/* Responsive · móvil: apilamos */
@media (max-width: 640px) {
  .qf-fields {
    grid-template-columns: 1fr 1fr;
  }
  .qf-field-dir { grid-column: 1 / -1; }
  .qf-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.qf-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding-left: 4px;
}
.qf-hint .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #2ecc71;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.18);
}

.qf-results {
  margin-top: 24px;
  flex: 1;
  overflow-y: auto;
  display: grid; gap: 4px;
  max-height: 420px;
}
.qf-result {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qf-result:hover { background: var(--bg-alt); }
.qf-result.active { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.qf-result-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qf-result-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.qf-result-arrow { color: var(--brand); opacity: 0; transition: opacity .2s, transform .2s; }
.qf-result:hover .qf-result-arrow, .qf-result.active .qf-result-arrow { opacity: 1; transform: translateX(3px); }
.qf-result-meta { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.qf-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
}
.qf-empty a { color: var(--brand); font-weight: 500; }

.qf-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.qf-selected { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.qf-selected strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }

/* ═══════════════════════════════════════
   Panel derecho — swap entre MAPA y FORMULARIO DE LEAD
   ═══════════════════════════════════════ */
.qf-right {
  position: relative;
  background: #f6f9fc;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

/* ── MAPA SVG (tile map de España por densidad de comunidades) ── */
.qf-map-wrap {
  flex: 1;
  position: relative;
  padding: 60px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.qf-map-wrap[hidden] { display: none; }

.qf-map-card {
  position: absolute;
  top: 20px; left: 20px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  border: 1px solid rgba(0,122,201,0.12);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  z-index: 2;
}
.qf-map-card .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.18);
}
.qf-map-card strong {
  color: var(--ink); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 11px;
}
.qf-map-card span {
  color: var(--ink-soft);
  font-size: 11px;
}

/* Imagen estática del mapa de cobertura (decisión 2026-04-24).
   Ocupa todo el ancho disponible, mantiene proporción y se centra. */
.qf-map-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 24px auto 0;
  border-radius: 8px;
}

/* SVG tile map antiguo — oculto. Si en el futuro se reactiva, basta con
   quitar el atributo `hidden` del <svg> en el template. */
.qf-map-svg[hidden] { display: none; }
.qf-map-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin-top: 24px;
}
.qf-map-svg rect[id^="prov-"] {
  rx: 3; ry: 3;
  fill: #e2e8f0;                   /* default gris (sin datos) */
  stroke: #ffffff;
  stroke-width: 2;
  transition: fill .25s ease;
}
/* Escalado azul por densidad de comunidades */
.qf-map-svg rect.lvl-0 { fill: #e2e8f0; }                /* gris — 0 */
.qf-map-svg rect.lvl-1 { fill: #bfdbfe; }                /* 1-50 */
.qf-map-svg rect.lvl-2 { fill: #60a5fa; }                /* 51-200 */
.qf-map-svg rect.lvl-3 { fill: #1d4ed8; }                /* 201-500 */
.qf-map-svg rect.lvl-4 { fill: #0a2540; }                /* 500+ */

/* Leyenda de la escala */
.qf-map-legend {
  display: flex; align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-soft);
  padding-top: 12px;
}
.qf-map-legend .lg-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.qf-map-legend .lg-scale {
  display: inline-flex; gap: 3px;
}
.qf-map-legend .lg-sw {
  width: 14px; height: 14px; border-radius: 2px;
  display: inline-block;
}
.qf-map-legend .lg-sw.lvl-0 { background: #e2e8f0; }
.qf-map-legend .lg-sw.lvl-1 { background: #bfdbfe; }
.qf-map-legend .lg-sw.lvl-2 { background: #60a5fa; }
.qf-map-legend .lg-sw.lvl-3 { background: #1d4ed8; }
.qf-map-legend .lg-sw.lvl-4 { background: #0a2540; }
.qf-map-legend .lg-range { color: var(--ink-mute); }


/* ── FORMULARIO DE LEAD (swap con el mapa) ── */
.qf-lead-wrap {
  flex: 1;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.qf-lead-wrap[hidden] { display: none; }

.qf-lead-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.qf-lead-back:hover { color: var(--brand); background: var(--brand-tint); }
.qf-lead-back svg { width: 14px; height: 14px; }

.qf-lead-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 6px;
}
.qf-lead-sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}
.qf-lead-sub strong { color: var(--ink); font-weight: 500; }

.qf-lead-form { display: flex; flex-direction: column; gap: 16px; }
.qf-lead-field { display: flex; flex-direction: column; }
.qf-lead-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.qf-lead-field label .req { color: var(--brand); }
.qf-lead-field input {
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.qf-lead-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,201,0.12);
}

.qf-lead-check {
  display: flex; align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.qf-lead-check input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.qf-lead-check label { cursor: pointer; }
.qf-lead-check a { color: var(--brand); text-decoration: underline; }

.qf-lead-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 13px 20px;
}
.qf-lead-submit:disabled {
  opacity: .6; cursor: not-allowed;
}

.qf-lead-error {
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

/* Estado de éxito tras enviar */
.qf-lead-done {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.qf-lead-done[hidden] { display: none; }
.qf-lead-done-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.qf-lead-done-mark svg { width: 44px; height: 44px; }
.qf-lead-done h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.qf-lead-done p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 320px;
}

.qf-foot {
  margin-top: 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  display: flex; gap: 16px;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════
   BLOQUE · md-canal-presidente
   ═══════════════════════════════════════ */
.canal {
  background: #000;
  color: #fff;
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.canal-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 85% 25%, rgba(0,122,201,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(0,122,201,0.08), transparent 60%);
}
.canal-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.canal-text .eyebrow { color: var(--brand-sky); }
.canal-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.canal-text h2 em { color: #4fb0ea; font-style: italic; font-weight: 300; }
.canal-text p.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 44px;
}
.canal-text p.lead strong { color: #fff; font-weight: 500; }

.canal-benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
  margin-bottom: 48px;
  max-width: 540px;
}
.canal-benefit {
  padding-left: 20px;
  border-left: 1px solid rgba(0,122,201,0.45);
}
.canal-benefit h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: #4fb0ea;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.canal-benefit p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
}
.canal-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.canal-cta .btn { background: var(--brand); color: #fff; }
.canal-cta .btn:hover { background: var(--brand-dark); box-shadow: 0 10px 30px -10px rgba(0,122,201,0.55); }
.canal-cta .btn.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.canal-cta .btn.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.canal-note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  display: flex; align-items: center; gap: 10px;
}
.canal-note::before {
  content: "✓";
  color: #4fb0ea;
  font-weight: 700;
  font-size: 15px;
}

/* Auth card (fondo azul de marca) */
.canal-auth {
  position: relative;
  background: linear-gradient(135deg, #005a9a 0%, #007AC9 60%, #0b8adb 100%);
  border: 1px solid #004f88;
  border-radius: 22px;
  padding: 38px 36px 32px;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 100px -30px rgba(0,122,201,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: hidden;
  color: #fff;
}
.canal-auth::before {
  content: "";
  position: absolute;
  top: -40%; right: -25%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.canal-auth::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -20%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.canal-auth-brand {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.canal-auth-brand::before {
  content: "";
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.7);
}
.auth-tabs {
  position: relative;
  display: flex;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: none; cursor: pointer;
  letter-spacing: -0.005em;
}
.auth-tab:hover { color: #fff; }
.auth-tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2), inset 0 -1px 0 rgba(0,0,0,0.06);
}
.auth-form { display: none; position: relative; }
.auth-form.active { display: block; }
.auth-head { margin-bottom: 24px; }
.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.auth-sub { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 7px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
}
.auth-field input::placeholder { color: rgba(255,255,255,0.4); }
.auth-field input:hover { border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.28); }
.auth-field input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}
.auth-consent {
  margin: 18px 0;
  display: grid; gap: 11px;
  padding: 15px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.auth-consent label {
  display: flex; gap: 10px; align-items: start;
  font-size: 12px; color: rgba(255,255,255,0.85);
  line-height: 1.5; cursor: pointer;
}
.auth-consent input { margin-top: 2px; accent-color: #fff; flex-shrink: 0; }
.auth-consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.auth-consent .req { display: inline-block; color: #fff; font-weight: 700; margin-left: 4px; }
.auth-consent .opt {
  display: inline-block;
  font-size: 10px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-left: 4px;
}
.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 6px 0 18px;
  font-size: 13px;
}
.auth-remember { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); cursor: pointer; }
.auth-remember input { accent-color: #fff; }
.auth-forgot {
  color: #fff; font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.4);
}
.auth-forgot:hover { text-decoration-color: #fff; }
.auth-submit {
  width: 100%;
  padding: 14px;
  background: #fff; color: var(--brand);
  border: none; border-radius: 12px;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.005em;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35), inset 0 -1px 0 rgba(0,0,0,0.04);
}
.auth-submit:hover {
  background: #fff; color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.45);
}
.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.auth-foot a {
  color: #fff; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.4);
}
/* Mensaje de error del formulario Canal Presidente */
.auth-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}


/* ═══════════════════════════════════════
   BLOQUE · md-services-grid
   ═══════════════════════════════════════ */
.more-services {
  padding: 140px 24px 160px;
  background: var(--bg-alt);
}
.ms-inner { max-width: var(--maxw); margin: 0 auto; }
.ms-header { margin-bottom: 64px; }

/* Layout flexible: con 9 cards el grid queda 3×3 perfecto;
   con otros números, las cards de la fila incompleta se centran. */
.ms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.svc-card {
  /* 3 cards por fila en desktop con 24px de gap (2 gaps × 24 = 48) */
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 260px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 30px;
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0,122,201,0.22);
}
.svc-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 28px;
}
.svc-icon svg { width: 22px; height: 22px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--ink);
}
.svc-card p {
  font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 22px;
  flex: 1;
}
.svc-link {
  font-size: 14px; font-weight: 500; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-link::after { content: "→"; transition: transform .2s; }
.svc-card:hover .svc-link::after { transform: translateX(4px); }


/* ═══════════════════════════════════════
   BLOQUE · md-join-3
   ═══════════════════════════════════════ */
.join {
  padding: 140px 24px;
  background: var(--bg);
}
.join-inner { max-width: var(--maxw); margin: 0 auto; }
.join-header { text-align: center; margin-bottom: 80px; max-width: 780px; margin-left: auto; margin-right: auto; }
.join-header .section-title {
  margin-bottom: 24px;
  text-wrap: balance;
}
.join-header .section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.join-card {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 56px 40px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.join-card:nth-child(1) {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.join-card:nth-child(2) { background: var(--bg-dark); }
.join-card:nth-child(3) {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.join-card:nth-child(3) .join-pre { color: var(--brand); }
.join-card:nth-child(3) h3 { color: var(--ink); }
.join-card:nth-child(3) a.cta { color: var(--brand); border-bottom-color: rgba(0,122,201,0.4); }
.join-card:nth-child(3) a.cta:hover { border-color: var(--brand); }
.join-card:hover { transform: translateY(-6px); }
.join-pre {
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.join-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 28px;
}
.join-card a.cta {
  font-size: 14px; font-weight: 500;
  color: #fff; display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  transition: border-color .2s, gap .2s;
}
.join-card a.cta:hover { border-color: #fff; gap: 12px; }


/* ═══════════════════════════════════════
   BLOQUE · md-faq
   ═══════════════════════════════════════ */
.faq {
  padding: 110px 24px 120px;
  background: var(--bg);
}
.faq-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head .section-title {
  margin-top: 20px;
}
.faq-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin: 20px 0 24px;
  max-width: 340px;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 26px 48px 26px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 28px;
  color: var(--brand);
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand); }
.faq-item .ans {
  padding: 0 48px 30px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  max-width: 680px;
}
.faq-item .ans strong { color: var(--ink); font-weight: 600; }
.faq-item .ans a { color: var(--brand); text-decoration: underline; }


/* ═══════════════════════════════════════
   BLOQUE · md-news-latest
   ═══════════════════════════════════════ */
.news {
  padding: 140px 24px;
  background: var(--bg-alt);
}
.news-inner { max-width: var(--maxw); margin: 0 auto; }
.news-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 60px; gap: 40px; flex-wrap: wrap;
}
.news-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--line);
  display: block;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0,122,201,0.2);
  border-color: var(--brand-tint-2);
}
.news-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--brand-tint-2) 100%);
}
.news-card:nth-child(2) .news-img { background: linear-gradient(135deg, var(--brand-tint-2) 0%, var(--brand-70) 100%); }
.news-card:nth-child(3) .news-img { background: linear-gradient(135deg, #dfe8ef 0%, #9db6c8 100%); }
.news-body { padding: 28px 28px 32px; }
.news-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.news-meta .tag {
  padding: 4px 10px; background: var(--brand-tint);
  border-radius: 999px; color: var(--brand);
  font-weight: 500;
}
.news-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--ink);
}
.news-card .read {
  font-size: 14px; color: var(--brand);
  font-weight: 500;
}


/* ═══════════════════════════════════════
   BLOQUE · md-contact-form
   ═══════════════════════════════════════ */
.contact {
  padding: 140px 24px 120px;
  background: var(--bg);
}
.contact-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: stretch;
}
/* Columna izquierda como flex column para poder centrar la card del
   chatbot en el espacio sobrante respecto a la altura del formulario. */
.contact-text {
  display: flex;
  flex-direction: column;
}
.contact-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--ink);
}
.contact-text h2 em { color: var(--brand); font-style: italic; }
.contact-text p {
  color: var(--ink-soft); font-size: 17px;
  line-height: 1.65; max-width: 440px;
  margin-bottom: 32px;
}
.contact-info {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.contact-info dl {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 18px 20px;
  font-size: 15px;
}
.contact-info dt {
  color: var(--ink-mute); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 2px;
}
.contact-info dd { color: var(--ink); }
.contact-info a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.contact-info a:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* Card del agente conversacional — debajo de los datos de contacto.
   El botón dispara el evento 'md:open-chat' que el widget escuchará
   cuando esté integrado en el sitio. Hasta entonces app.js muestra alert.
   margin: auto 0 → centra la card verticalmente en el espacio sobrante
   de la columna izquierda respecto a la altura del formulario. */
.contact-chatbot {
  margin: 24px 0 0;
  padding: 24px 26px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-tint) 0%, #ffffff 70%);
  border: 1px solid #d6e8f7;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color .25s, box-shadow .25s;
}
.contact-chatbot:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 32px -16px rgba(0,122,201,.35);
}
.contact-chatbot-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark, #0062a6) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,122,201,.5);
  position: relative;
}
.contact-chatbot-icon svg { width: 26px; height: 26px; }
.contact-chatbot-icon::after {
  content: '';
  position: absolute;
  bottom: -3px; right: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #fff;
}
.contact-chatbot-text { min-width: 0; }
.contact-chatbot-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.contact-chatbot-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.contact-chatbot-copy {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.contact-chatbot-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s, gap .2s;
}
.contact-chatbot-cta:hover {
  background: var(--brand-dark, #0062a6);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0,122,201,.55);
  gap: 12px;
}
.contact-chatbot-cta svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .contact-chatbot {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
    margin-top: 32px;       /* separación del bloque HORARIO superior */
    margin-bottom: 0;        /* anula el margin: auto 0 del centrado desktop */
  }
  .contact-chatbot-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
  }
  .contact-chatbot-icon svg { width: 22px; height: 22px; }
  .contact-chatbot-icon::after {
    width: 12px; height: 12px;
    bottom: -2px; right: -2px;
    border-width: 2px;
  }
  .contact-chatbot-eyebrow {
    font-size: 9.5px;
    margin-bottom: 6px;
  }
  .contact-chatbot-title {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .contact-chatbot-copy { font-size: 13px; line-height: 1.5; }
  .contact-chatbot-cta {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 12px 20px;
    width: 100%;
    margin-top: 4px;
  }
}

/* ─────────────────────────────────────────────
 *  Card del agente CONVERSACIONAL DE VOZ (ElevenLabs Conv AI)
 *  Aparece sólo en la home, JUSTO DEBAJO del subtítulo y antes de los datos
 *  de contacto. Visualmente IDÉNTICA al chatbot escrito (.contact-chatbot)
 *  para mantener coherencia: mismo fondo, mismo tamaño, misma estructura.
 *  Lo único que cambia: el icono (micrófono) y el texto del CTA.
 * ───────────────────────────────────────────── */
.contact-voice-agent {
  cursor: pointer;
  margin: 24px 0 0;
  padding: 24px 26px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-tint) 0%, #ffffff 70%);
  border: 1px solid #d6e8f7;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color .25s, box-shadow .25s;
}
/* IMPORTANTE: no usar transform aquí · el widget de ElevenLabs renderiza
   su modal con position:fixed y cualquier transform en un ancestro crea
   un "containing block" que atrapa el modal dentro del área de la card.
   Por eso el efecto de elevación lo damos sólo con shadow + border. */
.contact-voice-agent:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 40px -16px rgba(0,122,201,.4);
}
.contact-voice-agent:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.contact-voice-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark, #0062a6) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,122,201,.5);
  position: relative;
}
.contact-voice-icon svg { width: 26px; height: 26px; }
.contact-voice-icon::after {
  content: '';
  position: absolute;
  bottom: -3px; right: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #fff;
  animation: voicePulse 2s ease-in-out infinite;
  transition: background .25s;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
@keyframes voicePulseActive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  50%      { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
@keyframes voicePulseConnecting {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
/* Estados — controlados por app.js mediante data-state en la card */
.contact-voice-agent[data-state="connecting"] .contact-voice-icon::after {
  background: #f59e0b;
  animation: voicePulseConnecting 1s ease-in-out infinite;
}
.contact-voice-agent[data-state="active"] .contact-voice-icon::after {
  background: #ef4444;
  animation: voicePulseActive 1.2s ease-in-out infinite;
}
/* Cuando el agente habla, el icono se ilumina ligeramente */
.contact-voice-agent[data-state="active"][data-mode="speaking"] .contact-voice-icon {
  box-shadow: 0 6px 20px -2px rgba(0,122,201,.7);
}
.contact-voice-agent[data-state="connecting"] {
  cursor: progress;
}
.contact-voice-text { min-width: 0; }
.contact-voice-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.contact-voice-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.contact-voice-copy {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.contact-voice-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, gap .2s;
}
.contact-voice-agent:hover .contact-voice-cta {
  background: var(--brand-dark, #0062a6);
  gap: 12px;
}
.contact-voice-cta svg { width: 14px; height: 14px; }
/* ─────────────────────────────────────────────
 *  Lila card como ÚNICA UI · widget ElevenLabs invisible siempre
 *  ─────────────────────────────────────────────
 *  IDLE   → pill azul «Hablar»
 *  ACTIVE → pill rojo «Colgar» (mismo botón, cambia de color y texto)
 *  El widget de ElevenLabs vive en el DOM clip-eado a 1px — invisible al
 *  usuario, pero técnicamente "visible" para que el AudioContext pueda
 *  inicializarse y reproducir el audio. Toda la UX vive en la lila card. */
.contact-voice-agent {
  position: relative;
}
.contact-voice-agent .md-voice-mount {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  pointer-events: none;
  inset: 0;
}
/* ACTIVE: el pill CTA pasa a rojo "Colgar" (el texto lo cambia app.js) */
.contact-voice-agent[data-state="active"] .contact-voice-cta {
  background: #ef4444;
}
.contact-voice-agent[data-state="active"]:hover .contact-voice-cta {
  background: #dc2626;
}
/* ACTIVE: el dot del icono pulsa rojo en lugar de verde */
.contact-voice-agent[data-state="active"] .contact-voice-icon::after {
  background: #ef4444;
  animation: voicePulseActive 1.2s ease-in-out infinite;
}
/* CONNECTING: dot naranja, pill mantiene su color con el texto "Conectando…" */
.contact-voice-agent[data-state="connecting"] .contact-voice-cta {
  background: var(--brand);
  opacity: 0.85;
  cursor: progress;
}
.contact-voice-agent[data-state="connecting"] .contact-voice-icon::after {
  background: #f59e0b;
  animation: voicePulseConnecting 1s ease-in-out infinite;
}

@media (max-width: 720px) {
  .contact-voice-agent {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
    margin-top: 24px;
  }
  .contact-voice-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
  }
  .contact-voice-icon svg { width: 22px; height: 22px; }
  .contact-voice-icon::after {
    width: 12px; height: 12px;
    bottom: -2px; right: -2px;
    border-width: 2px;
  }
  .contact-voice-eyebrow { font-size: 9.5px; margin-bottom: 6px; }
  .contact-voice-title   { font-size: 17px; margin-bottom: 6px; }
  .contact-voice-copy    { font-size: 13px; line-height: 1.5; }
  .contact-voice-cta {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 12px 20px;
    width: 100%;
    margin-top: 4px;
  }
}

.contact-form-wrap { /* contenedor del shortcode de Fluent Forms */
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  border: 1px solid var(--line);
}

/* Sobrescribir el botón submit por defecto de Fluent Forms.
   Sin estos estilos hereda gris/negro. !important porque el plugin
   los inyecta con alta especificidad desde su propio CSS. */
.contact-form-wrap .ff-btn.ff-btn-submit,
.contact-form-wrap button.ff-btn-submit {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.contact-form-wrap .ff-btn.ff-btn-submit:hover,
.contact-form-wrap button.ff-btn-submit:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(0,122,201,0.45);
}


/* ═══════════════════════════════════════
   BLOQUE · md-hub-cards
   Hub editorial reutilizable: usado en /conocenos/ y futuras hubs.
   ═══════════════════════════════════════ */
.hub-cards {
  padding: 140px 24px 160px;
  background: var(--bg);
}
.hc-inner { max-width: var(--maxw); margin: 0 auto; }

.hc-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hc-header .eyebrow { display: inline-block; margin-bottom: 18px; }
.hc-header .section-title {
  margin-bottom: 24px;
  text-wrap: balance;
}
.hc-lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
}

/* Grid base — 3 columnas en desktop, 2 en tablet, 1 en mobile.
   Las cards de la última fila incompleta se centran (mismo patrón que .ms-grid). */
.hc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.hc-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  min-height: 260px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.hc-card[href]:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 24px 50px -22px rgba(0,122,201,0.18);
}

.hc-card-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.hc-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--ink);
}
.hc-card-copy {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}
.hc-card-link {
  font-size: 14px; font-weight: 500;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  transition: gap .2s;
}
.hc-card[href]:hover .hc-card-link { gap: 10px; }


/* ═══════════════════════════════════════
   RESPONSIVE — ajustes comunes
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .qf-tool { grid-template-columns: 1fr; }
  .qf-search { border-right: none; border-bottom: 1px solid var(--line); min-height: auto; }
  .qf-map { min-height: 380px; }
  .canal-inner { grid-template-columns: 1fr; gap: 60px; }
  .canal-benefits { grid-template-columns: 1fr; max-width: none; }
  .ms-grid { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .hc-card { flex: 0 0 calc((100% - 24px) / 2); }
  .hub-cards { padding: 100px 24px 120px; }
  .hc-header { margin-bottom: 56px; }
}

@media (max-width: 600px) {
  .hc-card { flex: 0 0 100%; min-width: 0; }
}


/* ═══════════════════════════════════════
   PÁGINAS EDITORIALES (page.php)
   Wrapper para páginas estándar como /proposito/, /historia/, etc.
   Estructura: el wrapper se alinea con el header del sitio
   (max-width 1220, padding lateral 28). Dentro, el contenido
   editorial fluye flush-left con max-width de lectura, evitando el
   zigzag de centrar cada elemento por separado. Los bloques propios
   del tema (md-*) siguen full-width sin afectarse.
   ═══════════════════════════════════════ */

.page-article {
  max-width: var(--maxw);     /* 1220px, mismo que .site-nav-inner */
  margin: 0 auto;
  padding: 0 28px;            /* alineado con el padding del header */
  background: var(--bg);
}

/* Header automático: solo aparece si la página no define su propio H1.
   Lleva eyebrow + título grande + separador editorial. */
.page-article-head {
  padding: 120px 0 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}
.page-article-head .eyebrow {
  margin-bottom: 14px;
}
.page-article-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

/* Bloques nativos: ancho de lectura, alineados al borde izquierdo
   del wrapper para que el conjunto respete una sola rejilla. */
.page-article > p,
.page-article > h1,
.page-article > h2,
.page-article > h3,
.page-article > h4,
.page-article > ul,
.page-article > ol,
.page-article > .wp-block-quote,
.page-article > .wp-block-separator {
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

/* Listas editoriales */
.page-article > ul,
.page-article > ol {
  padding-left: 24px;
  margin: 0 0 28px;
}
.page-article > ul li,
.page-article > ol li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 10px;
  padding-left: 6px;
}
.page-article > ul li::marker {
  color: var(--brand);
}
.page-article > ol li::marker {
  color: var(--brand);
  font-weight: 500;
}

/* Las columnas ocupan todo el ancho del wrapper para respirar. */
.page-article > .wp-block-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  margin-bottom: 56px;
}

/* Aire arriba si la página define su propio H1 (caso Conócenos):
   sin .page-article-head antes, el primer hijo necesita su propio padding. */
.page-article > h1:first-child,
.page-article > h2:first-child,
.page-article > p:first-child {
  margin-top: 120px;
}
.page-article > p:last-child,
.page-article > h2:last-child,
.page-article > ul:last-child,
.page-article > ol:last-child,
.page-article > .wp-block-columns:last-child {
  margin-bottom: 140px;
}

/* Cuando hay header automático, el primer bloque del contenido va pegado al separador */
.page-article-head + h2,
.page-article-head + p,
.page-article-head + ul,
.page-article-head + ol {
  margin-top: 0 !important;
}

/* Tipografía editorial */
.page-article > h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-article > h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 56px;
  margin-bottom: 28px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-article > h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 18px;
}
.page-article > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 22px;
  color: var(--ink-2);
}
.page-article > p.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.page-article > p.lead strong {
  color: var(--ink);
  font-weight: 600;
}
.page-article > p.eyebrow {
  /* la regla global .eyebrow ya pinta el estilo,
     aquí sólo ajustamos el reset de margen del p */
  margin-bottom: 28px;
}

/* Separator editorial */
.page-article > .wp-block-separator {
  border: none;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  margin-bottom: 80px;
  height: 0;
}

/* Quote editorial */
.page-article .wp-block-quote {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 24px;
  margin-bottom: 24px;
  background: transparent;
}
.page-article .wp-block-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-article .wp-block-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* Bloques dentro de columnas */
.page-article .wp-block-column h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.page-article .wp-block-column p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.page-article .wp-block-column .wp-block-quote p {
  font-size: 17px;
}

/* Enlaces dentro del contenido editorial */
.page-article a {
  color: var(--brand);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base, 0.2s ease), color var(--t-base, 0.2s ease);
}
.page-article a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

/* Responsive */
@media (max-width: 900px) {
  .page-article > .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .page-article > h1:first-child,
  .page-article > h2:first-child,
  .page-article > p:first-child {
    margin-top: 80px;
  }
  .page-article > p:last-child,
  .page-article > .wp-block-columns:last-child {
    margin-bottom: 100px;
  }
  .page-article > .wp-block-separator {
    margin-top: 56px;
    margin-bottom: 56px;
  }
}


/* ═══════════════════════════════════════
   BLOQUE · md-oficinas-list
   Listado de oficinas con búsqueda + filtro por región.
   ═══════════════════════════════════════ */
.oficinas-list {
  padding: 100px 24px 140px;
  background: var(--bg);
}
.ofl-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.ofl-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ofl-header .eyebrow { display: inline-block; margin-bottom: 18px; }
.ofl-header .section-title {
  margin-bottom: 22px;
  text-wrap: balance;
}
.ofl-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 620px;
}

/* Toolbar: buscador + chips */
.ofl-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.ofl-search {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ofl-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,122,201,0.12);
}
.ofl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ofl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.ofl-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.ofl-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.ofl-chip-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: inherit;
}
.ofl-chip.is-active .ofl-chip-count {
  background: rgba(255,255,255,0.22);
}

/* Empty state */
.ofl-empty {
  text-align: center;
  color: var(--ink-mute);
  font-size: 15px;
  padding: 40px 0;
}

/* Grid de tarjetas */
.ofl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ofl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ofl-card:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(0,122,201,0.18);
  transform: translateY(-2px);
}

.ofl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.ofl-card-city {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.ofl-card-region {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.ofl-card-addr {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px;
  min-height: 44px;
}
.ofl-card-addr strong {
  color: var(--ink-2);
  font-weight: 600;
}

.ofl-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ofl-card-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  color: var(--brand);
  transition: color .15s;
}
.ofl-card-link:hover { color: var(--brand-dark); }
.ofl-card-link-label {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ofl-card-link-value {
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 700px) {
  .oficinas-list { padding: 80px 24px 100px; }
  .ofl-grid { grid-template-columns: 1fr; }
  .ofl-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* ═══════════════════════════════════════
   LANDING DE SERVICIO (page-servicio.php)
   Estructura común para /administracion/, /consultoria/, /seguros/,
   /energia/, /mantenimiento/. Variable --svc-hue se redefine por
   servicio en .svc-administracion etc.
   ═══════════════════════════════════════ */

.svc-landing {
  --svc-hue: var(--brand);
  --svc-hue-soft: var(--brand-tint);
}
.svc-landing.svc-administracion { --svc-hue: #007AC9; --svc-hue-soft: #e6f2fb; }
.svc-landing.svc-consultoria    { --svc-hue: #1d5a8a; --svc-hue-soft: #e4edf5; }
.svc-landing.svc-seguros        { --svc-hue: #0a8edb; --svc-hue-soft: #d9ecf8; }
.svc-landing.svc-energia        { --svc-hue: #0087b8; --svc-hue-soft: #d7edf5; }
.svc-landing.svc-mantenimiento  { --svc-hue: #004f88; --svc-hue-soft: #d4e3ed; }
/* Proveedores · B2B partnership landing (Sprint Proveedores · 11 may 2026) */
.svc-landing.svc-proveedores    { --svc-hue: #1B6FCA; --svc-hue-soft: #e3effa; }

/* Tipografía editorial reutilizable dentro de la landing */
.svc-landing .section-title em { color: var(--brand); font-style: italic; }
.svc-landing .section-sub { font-size: 18px; color: var(--ink-soft); margin-top: 20px; line-height: 1.6; }

/* HERO */
.svc-hero {
  padding: 100px 24px 90px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, var(--svc-hue-soft), transparent 60%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  position: relative; overflow: hidden;
}
.svc-hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 70px; align-items: center;
}
.breadcrumb {
  font-size: 13px; color: var(--ink-mute);
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 18px;
}
.breadcrumb a { transition: color .2s; color: inherit; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--ink); }
.breadcrumb .sep { color: var(--line); }

.svc-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.svc-h1 em { color: var(--brand); font-style: italic; font-weight: 400; }
.svc-hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.svc-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.svc-hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--svc-hue-soft) 0%, #ffffff 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.svc-hero-visual .icon-big {
  width: 120px; height: 120px;
  color: var(--svc-hue);
  stroke-width: 1; fill: none; stroke: currentColor;
  opacity: 0.65;
}
.svc-hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(0,122,201,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,122,201,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

/* Variante con foto real (no icono SVG genérico).
   Quita gradient + grid + flex-center y ajusta proporciones para que la
   imagen ocupe todo el contenedor con esquinas redondeadas. */
.svc-hero-visual.svc-hero-visual--photo {
  background: none;
  border: none;
  display: block;
  min-height: 0;
  aspect-ratio: 3 / 2;             /* mantiene la proporción nativa de la foto, sin recortes */
  border-radius: var(--r-lg);      /* redondea el contenedor */
  overflow: hidden;                /* clip de la imagen al border-radius del contenedor */
}
.svc-hero-visual.svc-hero-visual--photo::before { display: none; }
.svc-hero-figure {
  margin: 0; height: 100%; width: 100%;
  display: block;
  /* Sombra sutil que hace flotar la foto sobre el fondo del hero,
     necesaria para que cualquier foto (incluso las de tonos pastel/claros
     como la de seguros) se distinga del gradient blanco-azul de la sección. */
  box-shadow:
    0 1px 3px rgba(15, 30, 50, 0.06),
    0 8px 32px rgba(15, 30, 50, 0.10);
}
.svc-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;          /* hereda el redondeo del contenedor para asegurar clip */
}

/* Cuando hay foto, la columna derecha gana algo de peso visual para equilibrar
   con el bloque de texto a la izquierda. Solo aplica al hero con foto, así no
   afecta a las landings que aún usan icono SVG. */
.svc-hero:has(.svc-hero-visual--photo) .svc-hero-inner {
  grid-template-columns: 1fr 1.05fr;
}

/* 3 DIFERENCIADORES */
.diff {
  padding: 70px 24px 80px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diff-inner { max-width: var(--maxw); margin: 0 auto; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.diff-card { padding-right: 20px; }
.diff-num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--svc-hue);
  font-weight: 500; letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.diff-card h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.diff-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* QUÉ INCLUYE */
.includes { padding: 110px 24px; background: var(--bg); }
.includes-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.includes-head .section-title { margin-top: 18px; font-size: clamp(32px, 3.8vw, 50px); text-wrap: balance; }
.includes-head p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 340px; }
.inc-groups { display: grid; gap: 40px; }
.inc-group h4 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.inc-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.inc-list li {
  position: relative; padding-left: 24px;
  font-size: 15px; color: var(--ink); line-height: 1.45;
}
.inc-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 1px; background: var(--svc-hue);
}

/* CÓMO TRABAJAMOS */
.how { padding: 110px 24px; background: var(--bg-alt); }
.how-inner { max-width: var(--maxw); margin: 0 auto; }
.how-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.how-head .section-title { text-wrap: balance; }
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.how-step {
  background: #fff;
  padding: 36px 28px 32px;
  border-radius: var(--r-lg);
  position: relative;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,122,201,0.18);
  border-color: var(--brand-tint-2);
}
.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--svc-hue);
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.how-step h4 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 20px;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.how-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* NÚMEROS DEL SERVICIO */
.svc-stats {
  padding: 90px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  align-items: end;
}
.svc-stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--svc-hue);
}
.svc-stat-lbl {
  font-size: 13px; color: var(--ink-mute);
  margin-top: 12px; line-height: 1.5;
  max-width: 220px;
}

/* PARA QUIÉN ES */
.audience { padding: 110px 24px; background: var(--bg); }
.audience-inner { max-width: var(--maxw); margin: 0 auto; }
.audience-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.audience-head .section-title { text-wrap: balance; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 40px 36px 36px;
  display: flex; flex-direction: column; min-height: 300px;
  transition: transform .3s, background .3s;
}
.aud-card:hover { transform: translateY(-4px); background: var(--brand-tint); }
.aud-pre {
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--svc-hue);
  font-weight: 500; margin-bottom: 14px;
}
.aud-card h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 22px;
  color: var(--ink); line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -0.015em;
}
.aud-card p {
  font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 24px; flex: 1;
}
.aud-card a {
  font-size: 14px; color: var(--brand);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.aud-card a::after { content: "→"; transition: transform .2s; }
.aud-card:hover a::after { transform: translateX(3px); }

/* TESTIMONIO */
.svc-testimonial {
  padding: 120px 24px;
  background: var(--bg-dark);
  color: #fff;
  position: relative; overflow: hidden;
}
.svc-testimonial::before {
  content: "\201D";
  position: absolute;
  top: 10px; left: 5%;
  font-family: var(--font-display);
  font-size: 380px;
  color: rgba(0,122,201,0.06);
  line-height: 1;
  pointer-events: none;
}
.svc-testimonial-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.svc-testimonial .eyebrow { color: #9ec8ea; }
.svc-testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25; letter-spacing: -0.02em;
  color: #fff;
  margin: 20px 0 32px;
}
.svc-testimonial blockquote em { color: #9ec8ea; }
.svc-testimonial cite {
  font-style: normal; display: block;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.svc-testimonial cite strong {
  color: #fff; font-weight: 500;
  display: block; margin-bottom: 4px; font-size: 16px;
}

/* FAQ DE SERVICIO */
.svc-faq { padding: 110px 24px 120px; background: var(--bg); }
.svc-faq-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.svc-faq-head { position: sticky; top: 100px; }
.svc-faq-head .section-title { margin-top: 20px; font-size: clamp(32px, 3.8vw, 50px); text-wrap: balance; }
.svc-faq-head p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 20px 0 24px; max-width: 340px; }
.svc-faq-list { border-top: 1px solid var(--line); }
.svc-faq-item { border-bottom: 1px solid var(--line); }
.svc-faq-item summary {
  padding: 26px 48px 26px 0;
  cursor: pointer; list-style: none;
  position: relative; transition: color .2s;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink); line-height: 1.3;
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-item summary::after {
  content: "+"; position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  font-weight: 300; font-size: 28px;
  color: var(--brand); line-height: 1;
  transition: transform .3s;
}
.svc-faq-item[open] summary::after { content: "−"; }
.svc-faq-item summary:hover { color: var(--brand); }
.svc-faq-item .ans {
  padding: 0 48px 30px 0;
  color: var(--ink-soft);
  font-size: 16px; line-height: 1.75;
  max-width: 680px;
  animation: svcFaqIn .35s ease;
}
@keyframes svcFaqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.svc-faq-item .ans strong { color: var(--ink); font-weight: 600; }
.svc-faq-item .ans a { color: var(--brand); text-decoration: underline; }

/* PLATAFORMA (cross-sell) */
.platform-strip { padding: 90px 24px; background: var(--bg-alt); }
.platform-strip-inner { max-width: var(--maxw); margin: 0 auto; }
.platform-strip-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.platform-strip-head .section-title { text-wrap: balance; }
.platform-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ps-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 22px;
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 130px;
}
.ps-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -20px rgba(0,122,201,0.2);
}
.ps-ico {
  width: 28px; height: 28px;
  color: var(--brand);
  stroke-width: 1.6; fill: none; stroke: currentColor;
  margin-bottom: 4px;
}
.ps-card h5 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 17px;
  color: var(--ink); letter-spacing: -0.01em;
}
.ps-card p { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.ps-card span {
  margin-top: auto;
  font-size: 13px; color: var(--brand); font-weight: 500;
}

/* CTA FINAL */
.svc-cta {
  padding: 130px 24px 140px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--svc-hue-soft) 100%);
}
.svc-cta-inner { max-width: 700px; margin: 0 auto; }
.svc-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.svc-cta h2 em { color: var(--brand); font-style: italic; }
.svc-cta p {
  font-size: 18px; color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.svc-cta .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* RESPONSIVE landing */
@media (max-width: 960px) {
  /* Doble selector para ganar a la regla con :has() de mayor especificidad
     que está fuera del media query (.svc-hero:has(.svc-hero-visual--photo)
     .svc-hero-inner { grid-template-columns: 1fr 1.05fr; }). Sin esto, en
     móvil la foto queda apretujada como un puntito a la derecha del texto
     en lugar de bajar a una segunda fila. */
  .svc-hero-inner,
  .svc-hero:has(.svc-hero-visual--photo) .svc-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .svc-hero-visual { min-height: 220px; }
  .svc-hero-visual.svc-hero-visual--photo { aspect-ratio: 16 / 10; min-height: 0; }
  .diff-grid { grid-template-columns: 1fr; gap: 32px; }
  .includes-inner { grid-template-columns: 1fr; gap: 40px; }
  .inc-list { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .svc-stats-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .audience-grid { grid-template-columns: 1fr; }
  .svc-faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .svc-faq-head { position: static; }
  .platform-strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
  .svc-stats-inner { grid-template-columns: 1fr; gap: 28px; }
}


/* ═══════════════════════════════════════
   LANDING /homes/ — secciones específicas
   Reutiliza .svc-hero, .diff, .how, .audience, .svc-faq, .platform-strip,
   .svc-cta y .breadcrumb del patrón de las 5 landings de servicio.
   Añade: tarifas (.pricing/.price-card), por qué (.why-mh) y form de
   captación (.lead-form).
   ═══════════════════════════════════════ */

/* TARIFAS */
.svc-landing .pricing { padding: 110px 24px; background: var(--bg); }
.svc-landing .pricing-inner { max-width: var(--maxw); margin: 0 auto; }
.svc-landing .pricing-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.svc-landing .pricing-head .section-title { text-wrap: balance; }
.svc-landing .pricing-head p { font-size: 17px; color: var(--ink-soft); margin-top: 18px; }
.svc-landing .pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch;
}
.svc-landing .price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.svc-landing .price-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 30px 60px -30px rgba(0,122,201,0.2);
}
.svc-landing .price-card.featured { border-color: var(--brand); }
.svc-landing .price-card.featured::before {
  content: "Recomendado para agencias";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.svc-landing .price-tier {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.svc-landing .price-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 56px); font-weight: 400;
  color: var(--ink); line-height: 1;
  margin-bottom: 6px; letter-spacing: -0.03em;
}
.svc-landing .price-suffix { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.svc-landing .price-suffix strong { color: var(--ink); font-weight: 500; }
.svc-landing .price-target {
  font-size: 15px; color: var(--ink); font-weight: 500;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.svc-landing .price-features { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.svc-landing .price-features li {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.svc-landing .price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 600;
}
.svc-landing .price-cta { margin-top: auto; }
.svc-landing .price-cta .btn { width: 100%; justify-content: center; }
.svc-landing .pricing-foot { text-align: center; margin-top: 32px; font-size: 13px; color: var(--ink-mute); }

/* POR QUÉ MEDITERRÁNEO HOMES */
.svc-landing .why-mh { padding: 110px 24px; background: var(--bg); border-top: 1px solid var(--line); }
.svc-landing .why-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start;
}
.svc-landing .why-head .section-title {
  font-size: clamp(32px, 3.8vw, 50px); margin-top: 18px;
  text-wrap: balance;
}
.svc-landing .why-head p {
  font-size: 16px; color: var(--ink-soft);
  line-height: 1.65; margin-top: 18px; max-width: 340px;
}
.svc-landing .why-list { display: grid; gap: 36px; }
.svc-landing .why-item h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; margin-bottom: 8px; letter-spacing: -0.015em;
  color: var(--ink);
}
.svc-landing .why-item p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

/* FORM DE LEAD EN CTA */
.svc-landing .lead-form {
  display: grid; gap: 14px; max-width: 480px;
  margin: 0 auto; text-align: left;
}
.svc-landing .lead-form .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.svc-landing .lead-form input,
.svc-landing .lead-form select {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; font-family: inherit;
  font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.svc-landing .lead-form input:focus,
.svc-landing .lead-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,122,201,0.12);
}
.svc-landing .lead-form .check {
  font-size: 13px; color: var(--ink-soft);
  display: flex; align-items: flex-start;
  gap: 10px; line-height: 1.5; padding: 0 4px;
}
.svc-landing .lead-form .check input { width: auto; margin-top: 4px; flex-shrink: 0; }
.svc-landing .lead-form button { margin-top: 8px; width: 100%; justify-content: center; }

/* Responsive específico /homes/ */
@media (max-width: 960px) {
  .svc-landing .pricing-grid { grid-template-columns: 1fr; }
  .svc-landing .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .svc-landing .lead-form .row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE MÓVIL · fixes auditoría 26/04/2026
   Cubre los 10 fixes priorizados del documento auditoria-movil.md
   excepto el #1 (menú hamburguesa, vive en base.css junto al header).
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Fix #3 — Inputs a 16px mínimo para evitar zoom automático en iOS Safari.
     ALTAMENTE IMPORTANTE: cualquier input/select/textarea con font < 16px
     dispara el zoom al recibir focus, y queda fijo. */
  input,
  select,
  textarea,
  .ff-input,
  .ofl-search,
  .lead-form input,
  .lead-form select,
  .auth-field input {
    font-size: 16px !important;
  }

  /* Fix #2 — Hit targets a 44px mínimo (HIG Apple / Material).
     Aplicamos a enlaces, botones y summary que NO sean .btn (los .btn ya
     tienen padding amplio). El min-height en flex no expande la línea
     natural; se centra el contenido vertically para mantener tipografía. */
  .footer-col li a,
  .ofl-chip,
  .site-lang a,
  .aud-card a,
  .price-cta a,
  .svc-faq-item summary,
  .footer-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col li {
    min-height: 44px;
    display: flex;
    align-items: center;
  }


  /* Fix #4 — Hero del home: apilar grid + reducir tipografía */
  .md-hero { padding: 70px 24px 60px !important; }
  .md-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .md-hero-title {
    font-size: clamp(34px, 8vw, 48px) !important;
    line-height: 1.05 !important;
  }
  .md-hero-sub { font-size: 16px !important; }
  .md-hero-rule { width: 60px !important; }
  .md-hero-media { min-height: 240px !important; }


  /* Fix #5 — Bloque Pilares: 3 columnas → 1 en móvil */
  .md-pillars { padding: 70px 24px 80px !important; }
  .md-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .md-pillars-head { margin-bottom: 40px !important; text-align: center; }
  .md-pillar { padding: 28px 24px !important; }


  /* Fix #6 — Reconocimientos: 7 columnas imposibles → scroll horizontal con snap */
  .md-recog { padding: 56px 0 60px !important; }
  .md-recog-head { padding: 0 24px; text-align: center; margin-bottom: 32px; }
  .md-recog-row {
    grid-template-columns: none !important;
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px !important;
    padding: 0 24px 12px !important;
    -webkit-overflow-scrolling: touch;
  }
  .md-recog-row::-webkit-scrollbar { height: 4px; }
  .md-recog-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
  .md-recog-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }


  /* Fix #7 — Banner 60 años: ajustes verticales + tipografía */
  .md-banner60 { padding: 80px 24px 80px !important; }
  .md-banner60-eyebrow { margin-bottom: 16px !important; }


  /* Fix #8 — Padding vertical de secciones reducido en móvil
     De 110-140px desktop bajamos a 70-80px en móvil. */
  .md-intro { padding: 70px 24px 80px !important; }
  .md-intro-inner { grid-template-columns: 1fr !important; gap: 48px !important; }
  .canal { padding: 70px 24px 80px !important; }
  .more-services { padding: 80px 24px 90px !important; }
  .join { padding: 80px 24px 90px !important; }
  .faq { padding: 70px 24px 80px !important; }
  .news-latest, .news { padding: 70px 24px 80px !important; }
  .contact { padding: 70px 24px 80px !important; }
  .hub-cards { padding: 70px 24px 80px !important; }

  /* Páginas editoriales (page.php) reducir padding superior automático */
  .page-article-head { padding: 80px 0 40px !important; margin-bottom: 40px !important; }
  .page-article > h1:first-child,
  .page-article > h2:first-child,
  .page-article > p:first-child { margin-top: 80px !important; }


  /* Fix #9 — Chips de /oficinas/: scroll horizontal con snap */
  .ofl-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .ofl-chips::-webkit-scrollbar { height: 4px; }
  .ofl-chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
  .ofl-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
  }


  /* Fix #10 — Forms de Canal Presidente / auth: apilar campos y tabs */
  .canal-inner { grid-template-columns: 1fr !important; gap: 48px !important; }
  .canal-auth, .canal-auth-brand { padding: 28px !important; }
  .auth-form { padding: 0 !important; }
  .auth-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .auth-tab { font-size: 13px; padding: 10px 12px; }
  .auth-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .auth-field input { padding: 14px 16px !important; }
  .auth-submit { width: 100%; padding: 14px 24px !important; font-size: 16px !important; }


  /* Cross-sell de las landings: 4 columnas → 2 → 1 */
  .platform-strip-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }


  /* Stats del bloque del home: 4 columnas → 2 */
  .md-stat-row { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }


  /* Bloques editoriales tipográficos: reducir tamaños */
  .section-title { font-size: clamp(28px, 6vw, 38px) !important; }
}


@media (max-width: 480px) {
  /* Móvil pequeño (iPhone SE / 5/8) */
  .md-hero-title { font-size: clamp(30px, 9vw, 40px) !important; }
  .platform-strip-grid { grid-template-columns: 1fr !important; }
  .md-stat-row { grid-template-columns: 1fr !important; }
  .md-recog-item { flex: 0 0 130px; }
}


/* ═══════════════════════════════════════════════════════════════
   WIDGET DE CHAT — asistente conversacional
   Botón flotante (FAB) abajo derecha + panel deslizante.
   ═══════════════════════════════════════════════════════════════ */

.md-chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(0,122,201,0.5);
  z-index: 998;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.md-chat-fab:hover {
  background: var(--brand-dark, #005a9a);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 40px -10px rgba(0,122,201,0.6);
}
.md-chat-fab svg { width: 26px; height: 26px; }
.md-chat-fab-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(0,122,201,0.4);
  animation: md-chat-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes md-chat-pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  70%  { transform: scale(1.3);  opacity: 0; }
  100% { transform: scale(1.3);  opacity: 0; }
}

/* Panel del chat */
.md-chat-panel {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.25), 0 10px 30px -10px rgba(0,122,201,0.2);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .2s, transform .2s;
}
.md-chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.md-chat-panel[hidden] { display: none; }

.md-chat-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, var(--brand-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.md-chat-eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.md-chat-head h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0; line-height: 1.2;
}
.md-chat-close {
  background: var(--bg-alt); border: 0;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 1;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.md-chat-close:hover { background: var(--line); }

.md-chat-body {
  flex: 1; overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.md-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: md-chat-bubble-in .2s ease-out;
}
@keyframes md-chat-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.md-chat-bubble--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.md-chat-bubble--assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.md-chat-bubble--assistant strong { color: var(--ink); font-weight: 600; }

/* Indicador "pensando..." */
.md-chat-bubble--thinking {
  display: flex; gap: 4px;
  padding: 14px 16px;
}
.md-chat-bubble--thinking span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: md-chat-think 1.2s infinite ease-in-out;
}
.md-chat-bubble--thinking span:nth-child(2) { animation-delay: 0.15s; }
.md-chat-bubble--thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes md-chat-think {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Form */
.md-chat-form {
  display: flex; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.md-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.md-chat-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,122,201,0.12);
}
.md-chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.md-chat-send:hover { background: var(--brand-dark, #005a9a); transform: scale(1.05); }
.md-chat-send svg { width: 18px; height: 18px; }

.md-chat-disclaimer {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  padding: 0 18px 14px;
  margin: 0;
  line-height: 1.4;
  background: #fff;
  flex-shrink: 0;
}

/* Mobile: panel ocupa toda la pantalla */
@media (max-width: 768px) {
  .md-chat-fab {
    bottom: 16px; right: 16px;
    width: 54px; height: 54px;
  }
  .md-chat-fab svg { width: 22px; height: 22px; }
  .md-chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .md-chat-input { font-size: 16px !important; }
}

/* ═══════════════════════════════════════
   BLOQUE · pv-landing (landing Proveedores)
   Migrado desde el snippet HTML auto-contenido.
   Todas las reglas están scopeadas con .pv-landing.
   ═══════════════════════════════════════ */
.pv-landing {
  --pv-hue: #1B6FCA;
  --pv-hue-soft: #e3effa;
  --pv-hue-dark: #0d2a52;
  --pv-ink: #0F172A;
  --pv-ink-soft: #475569;
  --pv-line: #E2E8F0;
  --pv-bg-soft: #F8FAFC;
}
.pv-landing { color: var(--pv-ink); line-height: 1.6; }
.pv-landing * { box-sizing: border-box; }
.pv-landing .pv-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.pv-landing a { color: inherit; text-decoration: none; }
.pv-landing .pv-svg { width: 100%; height: 100%; stroke-width: 1.5; fill: none; stroke: currentColor; }

.pv-landing .pv-hero {
  background: radial-gradient(ellipse 60% 50% at 80% 30%, var(--pv-hue-soft), transparent 60%), #fff;
  padding: 80px 0 96px;
}
.pv-landing .pv-hero-inner { max-width: 820px; text-align: center; margin: 0 auto; }
.pv-landing .pv-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px; font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 24px;
}
.pv-landing .pv-h1 em { color: var(--pv-hue); font-style: italic; font-weight: 400; }
.pv-landing .pv-hero-sub {
  font-size: 19px; color: var(--pv-ink-soft); line-height: 1.55;
  margin: 0 auto 36px; max-width: 680px;
}
.pv-landing .pv-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pv-landing .pv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.15s; font-family: inherit;
}
.pv-landing .pv-btn-primary { background: var(--pv-hue); color: #fff; }
.pv-landing .pv-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(27, 111, 202, 0.25); color: #fff; }
.pv-landing .pv-btn-outline { background: transparent; color: var(--pv-hue); border: 1.5px solid var(--pv-hue); }
.pv-landing .pv-btn-outline:hover { background: var(--pv-hue-soft); color: var(--pv-hue); }
.pv-landing .pv-btn-white { background: #fff; color: var(--pv-hue); }
.pv-landing .pv-btn-white:hover { transform: translateY(-1px); color: var(--pv-hue); }

.pv-landing .pv-stats { background: var(--pv-bg-soft); padding: 64px 0; border-top: 1px solid var(--pv-line); border-bottom: 1px solid var(--pv-line); }
.pv-landing .pv-stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.pv-landing .pv-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px; font-weight: 500; color: var(--pv-hue);
  line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em;
}
.pv-landing .pv-stat-lbl { font-size: 15px; color: var(--pv-ink-soft); letter-spacing: 0.02em; }

.pv-landing .pv-section { padding: 96px 0; }
.pv-landing .pv-section-soft { background: var(--pv-bg-soft); }
.pv-landing .pv-section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.pv-landing .pv-section-eyebrow {
  font-size: 13px; color: var(--pv-hue); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.pv-landing .pv-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 44px; font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.1; margin: 0; color: var(--pv-ink);
}
.pv-landing .pv-section-title em { color: var(--pv-hue); font-style: italic; font-weight: 400; }
.pv-landing .pv-section-sub { font-size: 18px; color: var(--pv-ink-soft); margin-top: 20px; line-height: 1.6; }

.pv-landing .pv-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pv-landing .pv-card {
  background: #fff; border: 1px solid var(--pv-line);
  border-radius: 20px; padding: 32px 28px; transition: all 0.2s;
}
.pv-landing .pv-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); border-color: var(--pv-hue-soft); }
.pv-landing .pv-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--pv-hue-soft); color: var(--pv-hue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pv-landing .pv-card-icon svg { width: 24px; height: 24px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.pv-landing .pv-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 500; margin: 0 0 12px; line-height: 1.25; color: var(--pv-ink);
}
.pv-landing .pv-card p { font-size: 15px; color: var(--pv-ink-soft); line-height: 1.6; margin: 0; }

.pv-landing .pv-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pv-landing .pv-how-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px; font-weight: 500; color: var(--pv-hue);
  line-height: 1; margin-bottom: 16px; letter-spacing: -0.02em;
}
.pv-landing .pv-how-step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 500; margin: 0 0 10px; line-height: 1.25; color: var(--pv-ink);
}
.pv-landing .pv-how-step p { font-size: 15px; color: var(--pv-ink-soft); line-height: 1.6; margin: 0; }

.pv-landing .pv-benefit {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 48px 0;
}
.pv-landing .pv-benefit + .pv-benefit { border-top: 1px solid var(--pv-line); }
.pv-landing .pv-benefit-visual {
  aspect-ratio: 1.4; border-radius: 20px;
  background: linear-gradient(135deg, var(--pv-hue-soft) 0%, #fff 100%);
  border: 1px solid var(--pv-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
}
.pv-landing .pv-benefit-visual .pv-icon-box {
  width: 80px; height: 80px; background: var(--pv-hue); color: #fff;
  border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pv-landing .pv-benefit-visual .pv-icon-box svg { width: 40px; height: 40px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.pv-landing .pv-benefit-visual .pv-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px; font-weight: 500; color: var(--pv-hue);
}
.pv-landing .pv-benefit-visual .pv-sublabel { font-size: 14px; color: var(--pv-ink-soft); margin-top: 4px; }
.pv-landing .pv-benefit h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px; font-weight: 500; margin: 0 0 16px;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--pv-ink);
}
.pv-landing .pv-benefit > div > p { font-size: 17px; color: var(--pv-ink-soft); line-height: 1.65; margin: 0 0 24px; }
.pv-landing .pv-benefit ul { list-style: none; padding: 0; margin: 0; }
.pv-landing .pv-benefit li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--pv-ink); }
.pv-landing .pv-benefit li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--pv-hue); stroke-width: 2; fill: none; stroke: currentColor; margin-top: 2px; }

.pv-landing .pv-verifactu {
  background: linear-gradient(135deg, var(--pv-hue-dark) 0%, var(--pv-hue) 100%);
  color: #fff; padding: 96px 0;
}
.pv-landing .pv-verifactu .pv-section-eyebrow { color: rgba(255,255,255,0.7); }
.pv-landing .pv-verifactu .pv-section-title { color: #fff; }
.pv-landing .pv-verifactu .pv-section-sub { color: rgba(255,255,255,0.85); }
.pv-landing .pv-verifactu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-landing .pv-verifactu-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px; padding: 28px; backdrop-filter: blur(8px);
}
.pv-landing .pv-verifactu-card .pv-vicon { width: 40px; height: 40px; color: #fff; margin-bottom: 16px; }
.pv-landing .pv-verifactu-card .pv-vicon svg { width: 100%; height: 100%; stroke-width: 1.5; fill: none; stroke: currentColor; }
.pv-landing .pv-verifactu-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 500; margin: 0 0 8px; line-height: 1.25; color: #fff; }
.pv-landing .pv-verifactu-card p { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.55; margin: 0; }

.pv-landing .pv-timeline {
  background: #fff; border-radius: 24px; padding: 48px 40px; margin-top: 56px;
  color: var(--pv-ink); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}
.pv-landing .pv-timeline-head { text-align: center; margin-bottom: 40px; }
.pv-landing .pv-timeline-head h3 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--pv-ink); }
.pv-landing .pv-timeline-head p { color: var(--pv-ink-soft); font-size: 16px; margin: 0 auto; max-width: 580px; }
.pv-landing .pv-timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 720px; margin: 0 auto; }
.pv-landing .pv-timeline-item { text-align: center; }
.pv-landing .pv-timeline-date { font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 500; color: var(--pv-hue); letter-spacing: -0.02em; margin-bottom: 8px; }
.pv-landing .pv-timeline-label { font-size: 16px; font-weight: 500; color: var(--pv-ink); }
.pv-landing .pv-timeline-rule { width: 48px; height: 2px; background: var(--pv-hue-soft); margin: 16px auto 0; border-radius: 2px; }
.pv-landing .pv-timeline-cta { text-align: center; margin-top: 40px; }

.pv-landing .pv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: flex-start; }
.pv-landing .pv-form { background: #fff; border: 1px solid var(--pv-line); border-radius: 24px; padding: 40px; }
.pv-landing .pv-form h3 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 28px; color: var(--pv-ink); }
.pv-landing .pv-field { margin-bottom: 20px; }
.pv-landing .pv-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--pv-ink); }
.pv-landing .pv-field input, .pv-landing .pv-field select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--pv-line);
  border-radius: 10px; font-family: inherit; font-size: 15px;
  background: #fff; transition: border-color 0.15s; color: var(--pv-ink);
}
.pv-landing .pv-field input:focus, .pv-landing .pv-field select:focus { outline: none; border-color: var(--pv-hue); }
.pv-landing .pv-checks { margin: 28px 0; }
.pv-landing .pv-check {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  font-size: 14px; color: var(--pv-ink-soft); line-height: 1.5;
}
.pv-landing .pv-check input { width: 18px; height: 18px; accent-color: var(--pv-hue); flex-shrink: 0; margin-top: 2px; }
.pv-landing .pv-check a { color: var(--pv-hue); font-weight: 500; }
.pv-landing .pv-form .pv-btn-submit { width: 100%; justify-content: center; padding: 16px 28px; }

.pv-landing .pv-form-side { display: flex; flex-direction: column; gap: 16px; }
.pv-landing .pv-contact-card {
  background: #fff; border: 1px solid var(--pv-line); border-radius: 18px;
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.pv-landing .pv-contact-card .pv-cicon {
  width: 40px; height: 40px; background: var(--pv-hue-soft); color: var(--pv-hue);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pv-landing .pv-contact-card .pv-cicon svg { width: 20px; height: 20px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.pv-landing .pv-contact-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--pv-ink); }
.pv-landing .pv-contact-card .pv-value { font-size: 15px; color: var(--pv-ink-soft); margin: 0; }
.pv-landing .pv-contact-card .pv-hint { font-size: 13px; color: var(--pv-ink-soft); margin: 4px 0 0; opacity: 0.7; }

.pv-landing .pv-includes { background: var(--pv-bg-soft); border: 1px solid var(--pv-line); border-radius: 18px; padding: 24px; }
.pv-landing .pv-includes h4 { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 500; margin: 0 0 16px; color: var(--pv-ink); }
.pv-landing .pv-includes ul { list-style: none; padding: 0; margin: 0; }
.pv-landing .pv-includes li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; color: var(--pv-ink-soft); }
.pv-landing .pv-includes li svg { width: 18px; height: 18px; color: var(--pv-hue); stroke-width: 2; fill: none; stroke: currentColor; flex-shrink: 0; margin-top: 2px; }

.pv-landing .pv-cta-final { padding: 96px 0; }
.pv-landing .pv-cta-final-inner {
  background: linear-gradient(135deg, var(--pv-hue-dark) 0%, var(--pv-hue) 60%, #2386db 100%);
  border-radius: 28px; padding: 80px 56px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.pv-landing .pv-cta-final-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 32px 32px; opacity: 0.5;
}
.pv-landing .pv-cta-final h2 {
  position: relative; font-family: 'Fraunces', Georgia, serif;
  font-size: 56px; font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 20px; color: #fff;
}
.pv-landing .pv-cta-final p {
  position: relative; font-size: 19px; color: rgba(255, 255, 255, 0.9);
  line-height: 1.55; max-width: 640px; margin: 0 auto 36px;
}
.pv-landing .pv-cta-final .pv-btn { position: relative; }

.pv-landing .pv-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1020px; margin: 0 auto; }
.pv-landing .pv-faq-item { background: #fff; border: 1px solid var(--pv-line); border-radius: 14px; overflow: hidden; }
.pv-landing .pv-faq-item summary {
  padding: 22px 24px; cursor: pointer; font-weight: 500; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--pv-ink);
}
.pv-landing .pv-faq-item summary::-webkit-details-marker { display: none; }
.pv-landing .pv-faq-item summary::after { content: '+'; color: var(--pv-hue); font-size: 22px; transition: transform 0.2s; flex-shrink: 0; }
.pv-landing .pv-faq-item[open] summary::after { transform: rotate(45deg); }
.pv-landing .pv-faq-item .pv-faq-body { padding: 0 24px 22px; color: var(--pv-ink-soft); line-height: 1.65; font-size: 14.5px; }

@media (max-width: 880px) {
  .pv-landing .pv-h1 { font-size: 44px; }
  .pv-landing .pv-stats-inner { grid-template-columns: 1fr; gap: 32px; }
  .pv-landing .pv-feat-grid { grid-template-columns: 1fr; }
  .pv-landing .pv-how-grid { grid-template-columns: 1fr 1fr; }
  .pv-landing .pv-benefit { grid-template-columns: 1fr; gap: 32px; }
  .pv-landing .pv-verifactu-grid { grid-template-columns: 1fr; }
  .pv-landing .pv-timeline-grid { grid-template-columns: 1fr; gap: 32px; }
  .pv-landing .pv-section-title, .pv-landing .pv-cta-final h2 { font-size: 36px; }
  .pv-landing .pv-form-grid { grid-template-columns: 1fr; }
  .pv-landing .pv-faq-grid { grid-template-columns: 1fr; }
}
