/* ============================================================================
   LANDING MATRIX ENGINE — FRONTEND · TEMA SERVICIOSPROFESIONALES.CL
   Alineado al CSS global sp-* del sitio: Bebas Neue + Montserrat,
   rojo #e8041a, navy #0d2544, botones pill, sombras navy.
   ============================================================================ */

:root {
  /* Marca */
  --lme-primary:       #0d2544;   /* navy */
  --lme-primary-deep:  #081a33;   /* navy deep (fondos oscuros) */
  --lme-primary-soft:  rgba(13, 37, 68, .07);
  --lme-accent:        #e8041a;   /* rojo corporativo */
  --lme-accent-hover:  #c90318;
  --lme-whatsapp:      #08783f;
  --lme-check:         #25d366;

  /* Superficies */
  --lme-bg:            #f4f7fb;
  --lme-bg-soft:       #eef1f8;
  --lme-card-bg:       #ffffff;
  --lme-border:        #e4eaf3;

  /* Texto */
  --lme-text:          #1f2937;
  --lme-text-muted:    #46546a;
  --lme-text-invert:   #ffffff;

  /* Tipografía */
  --lme-headings:      "Bebas Neue", Impact, sans-serif;
  --lme-body:          "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Geometría */
  --lme-radius:        20px;
  --lme-wrap:          1200px;
  --lme-shadow:        0 10px 30px rgba(13, 37, 68, .11);
  --lme-info:          #0754a5;
  --lme-info-deep:     #073b75;
  --lme-info-soft:     #eef3f9;
  --lme-info-text:     #d9ebff;
  --lme-rating:        #ffb000;
  --lme-pill-bg:       #e8f2ff;
  --lme-pill-text:     #07478d;
  --lme-media-bg:      #edf3f8;
}

/* ---------- Layout base ---------- */
#lme-main { font-family: var(--lme-body); color: var(--lme-text); background: var(--lme-bg); }
.lme-wrap { max-width: var(--lme-wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.lme-section { padding: clamp(44px, 6vw, 76px) 0; }
.lme-section--soft:nth-of-type(even) { background: #ffffff; }

.lme-section-head { max-width: 880px; margin: 0 auto 30px; text-align: center; }
.lme-section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: .20em;
  text-transform: uppercase; color: var(--lme-accent); margin-bottom: 8px;
}
.lme-section-kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 999px;
  background: var(--lme-accent); flex-shrink: 0;
}
.lme-section-title {
  font-family: var(--lme-headings); font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 8px; line-height: 1.04; letter-spacing: .5px; color: var(--lme-primary);
}
.lme-section-sub { margin: 0 auto; color: var(--lme-text-muted); font-size: clamp(14px, 1.8vw, 16px); line-height: 1.7; }

/* ---------- Cards y grids ---------- */
.lme-card {
  background: var(--lme-card-bg); border: 1px solid var(--lme-border);
  border-radius: var(--lme-radius); padding: 24px; box-shadow: 0 4px 14px rgba(13, 37, 68, .08);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease;
}
.lme-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13, 37, 68, .10); }
.lme-card h3 { margin: 0 0 8px; font-size: 17px; font-family: var(--lme-body); font-weight: 900; letter-spacing: -.02em; color: var(--lme-primary); }
.lme-card p  { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--lme-text-muted); }
.lme-card p:last-child { margin-bottom: 0; }

.lme-grid-2, .lme-grid-3 { display: grid; gap: 16px; }
.lme-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lme-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .lme-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lme-grid-2, .lme-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Checks (problemas) ---------- */
.lme-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lme-checks li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; font-weight: 600; }
.lme-checks-icon {
  width: 21px; height: 21px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: rgba(13, 37, 68, .09); color: var(--lme-primary);
  font-size: 11px; font-weight: 900;
}

/* ---------- Proceso ---------- */
.lme-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .lme-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lme-steps { grid-template-columns: 1fr; } }
.lme-step {
  background: var(--lme-card-bg); border: 1px solid var(--lme-border);
  border-radius: var(--lme-radius); padding: 22px 18px;
}
.lme-step-label {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--lme-accent), var(--lme-primary));
  color: #fff; font-size: 13px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(232, 4, 26, .30);
}
.lme-step h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--lme-body); font-weight: 900; color: var(--lme-primary); letter-spacing: -.02em; }
.lme-step p  { margin: 0; font-size: 13.5px; color: var(--lme-text-muted); line-height: 1.6; }

/* ---------- Tags (otras comunas) ---------- */
.lme-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lme-tag a {
  display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--lme-border);
  border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--lme-primary); background: #fff; box-shadow: 0 2px 8px rgba(13, 37, 68, .06);
  transition: background .15s, border-color .15s, transform .15s;
}
.lme-tag a:hover, .lme-tag a:focus-visible {
  background: rgba(232, 4, 26, .08); border-color: rgba(232, 4, 26, .25); transform: translateY(-1px);
}

/* ---------- Cards de servicio (interlinking) ---------- */
.lme-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .lme-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .lme-services-grid { grid-template-columns: 1fr; } }

.lme-service-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--lme-card-bg); border: 1px solid var(--lme-border);
  border-radius: var(--lme-radius); overflow: hidden; box-shadow: 0 4px 14px rgba(13, 37, 68, .08);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease, border-color .24s;
}
.lme-service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; z-index: 1;
  opacity: 0; background: linear-gradient(90deg, var(--lme-accent), var(--lme-primary)); transition: opacity .24s;
}
.lme-service-card:hover, .lme-service-card:focus-visible {
  transform: translateY(-6px) scale(1.01); box-shadow: 0 28px 72px rgba(13, 37, 68, .19);
  border-color: rgba(13, 37, 68, .18);
}
.lme-service-card:hover::before { opacity: 1; }
.lme-service-media { aspect-ratio: 16/10; background: #e4e9f2; overflow: hidden; }
.lme-service-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.25, .46, .45, .94); }
.lme-service-card:hover .lme-service-media img { transform: scale(1.07); }
.lme-service-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lme-service-body h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-family: var(--lme-headings); line-height: 1.06; letter-spacing: .3px; color: var(--lme-primary); }
.lme-service-body p  { margin: 0; font-size: 13.5px; color: var(--lme-text-muted); line-height: 1.6; flex: 1; }
.lme-service-link { font-size: 13px; font-weight: 900; color: var(--lme-accent); margin-top: 4px; }

/* ---------- Hero ---------- */
.lme-hero { position: relative; min-height: 500px; display: flex; align-items: center; overflow: hidden; background: var(--lme-primary-deep); }
.lme-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .24;
}
.lme-hero-bg { position: absolute; inset: 0; }
.lme-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .30; display: block; }
.lme-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--lme-wrap); margin: 0 auto; padding: clamp(64px, 7vw, 92px) clamp(16px, 4vw, 40px); }
.lme-hero-content { max-width: 640px; color: var(--lme-text-invert); }
.lme-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase;
  color: #ff5b6c; margin-bottom: 13px;
}
.lme-hero-eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 999px; background: var(--lme-accent); flex-shrink: 0; }
.lme-hero-title {
  font-family: var(--lme-body); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.02; letter-spacing: -.04em;
  margin: 0 0 16px; text-shadow: 0 2px 0 rgba(0, 0, 0, .14);
}
.lme-hero-highlight {
  background: var(--lme-accent); color: #fff; padding: 2px 12px 4px;
  border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lme-hero-sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; font-weight: 600; opacity: .94; margin: 0 0 20px; }
.lme-hero-safety {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.55;
  background: rgba(232, 4, 26, .14); border: 1px solid rgba(232, 4, 26, .32);
}
.lme-hero-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.lme-hero-list li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.5; font-weight: 600; opacity: .94; }
.lme-hero-list li::before {
  content: "✓"; position: absolute; left: 0; top: .05em; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: var(--lme-whatsapp); font-size: 11px; font-weight: 900;
}
.lme-hero-fade { position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(180deg, transparent, var(--lme-bg)); z-index: 1; }

/* ---------- Botones (pill, estilo .boton del sitio) ---------- */
.lme-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lme-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--lme-body); font-size: 15px; line-height: 1; font-weight: 900; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lme-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .28), transparent 68%);
  transition: opacity .18s ease;
}
.lme-btn:hover, .lme-btn:focus-visible { transform: translateY(-2px); color: #fff; }
.lme-btn:hover::after { opacity: 1; }
.lme-btn:active { transform: translateY(0) scale(.98); }
.lme-btn--primary  { background: var(--lme-accent); color: #fff; box-shadow: 0 10px 26px rgba(232, 4, 26, .28); }
.lme-btn--primary:hover  { background: var(--lme-accent-hover); box-shadow: 0 14px 34px rgba(232, 4, 26, .34); }
.lme-btn--whatsapp { background: var(--lme-whatsapp); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .26); }
.lme-btn--whatsapp:hover { background: #066333; box-shadow: 0 14px 34px rgba(37, 211, 102, .32); }

/* ---------- Trust strip ---------- */
.lme-trust-strip { background: var(--lme-primary-deep); color: var(--lme-text-invert); padding: clamp(32px, 4vw, 44px) 0; }
.lme-trust-inner {
  max-width: var(--lme-wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
}
@media (max-width: 820px) { .lme-trust-inner { grid-template-columns: 1fr; } }
.lme-trust-title { font-family: var(--lme-headings); font-size: clamp(24px, 3vw, 32px); letter-spacing: .4px; margin: 0 0 8px; color: #fff; }
.lme-trust-sub   { margin: 0; font-size: 14px; opacity: .85; line-height: 1.65; }
.lme-trust-list  { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lme-trust-list li { position: relative; padding-left: 30px; font-size: 14px; font-weight: 600; opacity: .92; }
.lme-trust-list li::before {
  content: "✓"; position: absolute; left: 0; top: .02em; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--lme-whatsapp); font-size: 11px; font-weight: 900;
}

/* ---------- CTA final ---------- */
.lme-cta-final {
  position: relative; overflow: hidden;
  background: var(--lme-primary-deep); color: var(--lme-text-invert);
  border-radius: 28px; padding: clamp(30px, 4vw, 48px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
  box-shadow: 0 28px 72px rgba(13, 37, 68, .19);
}
.lme-cta-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 25% 20%, rgba(0, 174, 239, .14), transparent 42%),
              radial-gradient(circle at 80% 65%, rgba(232, 4, 26, .10), transparent 40%);
}
.lme-cta-final > * { position: relative; z-index: 1; }
.lme-cta-final.has-media { grid-template-columns: 1.3fr 1fr auto; }
@media (max-width: 900px) { .lme-cta-final, .lme-cta-final.has-media { grid-template-columns: 1fr; } }
.lme-cta-final h2 { font-family: var(--lme-headings); font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .4px; line-height: 1.04; margin: 0 0 10px; color: #fff; }
.lme-cta-final p  { margin: 0 0 20px; font-size: 15px; line-height: 1.6; opacity: .88; }
.lme-cta-helper h3 { font-family: var(--lme-body); font-weight: 900; font-size: 16px; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.lme-cta-helper ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; opacity: .92; }
.lme-cta-media img { max-width: 200px; border-radius: 16px; display: block; box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }

/* ---------- FAB WhatsApp ---------- */
.lme-fab-wa {
  position: fixed; right: 20px; bottom: 22px; z-index: 9999;
  width: 62px; height: 62px; border-radius: 999px; background: var(--lme-whatsapp);
  border: 2px solid rgba(255, 255, 255, .65);
  display: grid; place-items: center;
  box-shadow: 0 14px 36px rgba(37, 211, 102, .30), 0 4px 12px rgba(0, 0, 0, .26);
  transition: transform .2s ease;
}
.lme-fab-wa:hover, .lme-fab-wa:focus-visible { transform: scale(1.08) rotate(-4deg); }

/* ---------- Breadcrumbs ---------- */
.lme-breadcrumbs { padding-top: 14px; padding-bottom: 6px; }
.lme-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.lme-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.lme-breadcrumbs a, .lme-breadcrumbs span[aria-current] { font-weight: 800; color: var(--lme-text-muted); text-decoration: none; }
.lme-breadcrumbs a:hover { color: var(--lme-accent); }
.lme-crumb-sep { opacity: .4; }

/* ---------- Hub de comunas ---------- */
.lme-loc-links { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.9; }
.lme-loc-links a { color: var(--lme-primary); font-weight: 700; text-decoration: none; }
.lme-loc-links a:hover { color: var(--lme-accent); text-decoration: underline; }
.lme-more { opacity: .6; font-size: 12px; list-style: none; margin-left: -16px; }
.lme-loc-count { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--lme-accent); }

/* ---------- Accesibilidad ---------- */
:where(#lme-main) a:focus-visible, .lme-btn:focus-visible, .lme-fab-wa:focus-visible {
  outline: 3px solid rgba(0, 174, 239, .65); outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  #lme-main *, .lme-fab-wa, .lme-btn { transition: none !important; transform: none !important; animation: none !important; }
}

/* LME 1.2.0 — HERO OFICIAL, FULL WIDTH Y WCAG */
:root {
  --brand-primary: #e8041a;
  --brand-accent: #c90318;
  --brand-dark: #0d2544;
  --dt-primary: var(--brand-primary);
  --dt-accent: var(--brand-accent);
  --dt-dark: var(--brand-dark);
  --dt-text: #1f2937;
  --dt-body: #374151;
  --dt-muted: #596579;
  --dt-border: #d9e1ec;
  --dt-soft: #f4f7fb;
  --dt-headings: "Bebas Neue", Impact, sans-serif;
}

body.sp { margin: 0; overflow-x: hidden; }
body.sp #content,
body.sp .site-content,
body.sp .content-area,
body.sp .site-main,
body.sp .main-page-wrapper,
body.sp .entry-content,
body.sp .page-content,
body.sp .post-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.sp #lme-main {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

.lme-wrap { width: min(100%, var(--lme-wrap)); }
.lme-section:nth-of-type(even) { background: #fff; }
.lme-section:nth-of-type(odd) { background: var(--dt-soft); }

.dt-hero.lme-hero {
  min-height: 0;
  padding: 0;
  background: linear-gradient(115deg, #ffffff 0 58%, #edf3f8 100%);
  color: var(--dt-body);
  isolation: isolate;
}
.dt-hero.lme-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(13, 37, 68, .06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .3;
}
.dt-hero.lme-hero::after,
.dt-hero .lme-hero-fade,
.dt-hero .lme-hero-bg { display: none; }
.dt-hero .lme-hero-inner {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  padding: clamp(44px, 6vw, 78px) 0;
}
.dt-hero .lme-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.dt-hero .lme-hero-content { max-width: 720px; color: var(--dt-body); }
.dt-hero .lme-hero-eyebrow {
  margin: 0 0 14px;
  color: var(--dt-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dt-hero .lme-hero-title {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto);
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 10px 26px rgba(13, 37, 68, .2);
  font-family: var(--lme-body);
  font-size: 0;
  line-height: 1;
  text-transform: none;
  text-shadow: none;
}
.dt-hero .lme-hero-title > span {
  display: flex;
  align-items: center;
  min-height: clamp(58px, 5vw, 68px);
  padding: 9px clamp(18px, 2vw, 28px);
  color: #fff;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: .96;
  text-transform: uppercase;
  white-space: nowrap;
}
.dt-hero .lme-hero-title-red { background: var(--dt-primary); }
.dt-hero .lme-hero-title-navy { background: #031b33; border-radius: 0 10px 10px 0; }
.dt-hero .lme-hero-sub {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--dt-body);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.65;
  opacity: 1;
}
.dt-hero .lme-hero-list { color: var(--dt-body); }
.dt-hero .lme-hero-list li { opacity: 1; }
.dt-hero .lme-hero-list li::before { background: rgba(13, 37, 68, .1); }
.dt-hero .lme-hero-safety {
  color: #7f1421;
  background: #fff0f2;
  border-color: #eaa6ae;
}
.dt-hero .lme-hero-media {
  position: relative;
  min-height: 420px;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #e3ebf2, #fff);
  box-shadow: 0 28px 72px rgba(13, 37, 68, .18);
}
.dt-hero .lme-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}
.lme-hero-media-placeholder {
  min-height: 420px;
  background: linear-gradient(145deg, rgba(232,4,26,.12), rgba(13,37,68,.18));
}

.lme-service-media,
.lme-service-media--empty { aspect-ratio: 16 / 10; }
.lme-service-media--empty { background: linear-gradient(145deg, #e3ebf2, #f8fafc); }
.lme-service-media img { aspect-ratio: 16 / 10; }

.lme-breadcrumbs {
  width: min(100%, var(--lme-wrap));
  padding-top: 16px;
  padding-bottom: 12px;
  background: #fff;
}
.lme-breadcrumbs ol { gap: 7px; align-items: center; }
.lme-breadcrumbs a { color: #34435a; min-height: 44px; display: inline-flex; align-items: center; }
.lme-breadcrumbs span[aria-current] { color: var(--lme-primary); }
.lme-crumb-sep { color: var(--lme-accent); opacity: .8; }

.lme-btn,
.lme-tag a,
.lme-service-card { -webkit-tap-highlight-color: transparent; }
.lme-btn { min-height: 52px; }
.lme-tag a { min-height: 44px; }
:where(#lme-main) a:focus-visible,
.lme-btn:focus-visible,
.lme-fab-wa:focus-visible,
.lme-service-card:focus-visible {
  outline: 3px solid #0077b6;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .dt-hero .lme-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 28px; }
  .dt-hero .lme-hero-title > span { padding-inline: 15px; font-size: clamp(23px, 3.2vw, 32px); }
}
@media (max-width: 760px) {
  .dt-hero .lme-hero-inner { width: min(100% - 28px, 680px); padding: 30px 0 48px; }
  .dt-hero .lme-hero-grid { grid-template-columns: 1fr; }
  .dt-hero .lme-hero-media { order: -1; min-height: 250px; max-height: 360px; border-radius: 20px; }
  .dt-hero .lme-hero-media img { min-height: 250px; max-height: 360px; }
  .lme-hero-media-placeholder { min-height: 250px; }
  .dt-hero .lme-hero-content { text-align: center; }
  .dt-hero .lme-hero-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
    margin-inline: auto;
    overflow: hidden;
    border-radius: 12px;
  }
  .dt-hero .lme-hero-title > span {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding: 8px 12px;
    font-size: clamp(25px, 7.8vw, 38px);
    white-space: normal;
  }
  .dt-hero .lme-hero-title-red { border-radius: 12px 12px 0 0; }
  .dt-hero .lme-hero-title-navy { border-radius: 0 0 12px 12px; }
  .dt-hero .lme-hero-cta { justify-content: center; }
  .dt-hero .lme-hero-list { text-align: left; }
  .lme-fab-wa { width: 56px; height: 56px; right: 14px; bottom: 14px; }
}
@media (max-width: 430px) {
  .dt-hero .lme-hero-inner { width: calc(100% - 22px); }
  .dt-hero .lme-hero-cta { display: grid; }
  .dt-hero .lme-btn { width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #lme-main *, .lme-fab-wa { animation: none !important; transition-duration: .01ms !important; }
}
/* LME 1.3.0 — full bleed, contraste AA, alcance, precio y opiniones */
#lme-main,
#lme-main * { box-sizing: border-box; }
body.sp #lme-main {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
body.sp #lme-main > section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.sp #lme-main > .lme-section { color: var(--lme-text) !important; background-color: var(--lme-card-bg) !important; }
body.sp #lme-main > .lme-section:nth-of-type(even) { background-color: var(--lme-bg) !important; }
body.sp #lme-main > .lme-trust-strip { color: var(--lme-text-invert) !important; background-color: var(--lme-primary-deep) !important; }
body.sp #lme-main > .lme-proof-band { color: var(--lme-text-invert) !important; background-color: var(--lme-info) !important; }

.lme-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, var(--lme-wrap)); margin-inline: auto; }
.lme-proof-item { display: grid; align-content: center; min-height: 150px; padding: 24px 20px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.lme-proof-item:last-child { border-right: 0; }
.lme-proof-item strong { color: var(--lme-text-invert); font-size: clamp(40px, 5vw, 58px); line-height: 1; }
.lme-proof-item span { margin-top: 8px; color: var(--lme-text-invert); font-weight: 700; line-height: 1.35; }

.lme-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lme-scope-card.is-included { border-top: 4px solid var(--lme-whatsapp); }
.lme-scope-card.is-excluded { border-top: 4px solid var(--lme-accent); }
.lme-factor-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lme-factor-list li { min-width: 0; padding: 18px; border: 1px solid var(--lme-border); border-radius: 14px; background: var(--lme-bg); }
.lme-factor-list li > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; color: var(--lme-text-invert); background: var(--lme-primary); font-weight: 900; }
.lme-factor-list p { margin: 0; color: var(--lme-text); font-size: 13px; line-height: 1.55; }
.lme-local-context { max-width: 900px; margin-inline: auto; border-left: 5px solid var(--lme-info); }
.lme-local-context p { color: var(--lme-text); font-size: 16px; }

.lme-reviews-layout { display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); gap: 22px; }
.lme-rating-box { display: grid; place-items: center; align-content: center; min-height: 100%; padding: 30px 22px; border-radius: var(--lme-radius); color: var(--lme-text-invert); background: var(--lme-info); text-align: center; }
.lme-rating-box > strong { color: var(--lme-text-invert); font-size: clamp(54px, 7vw, 76px); line-height: 1; }
.lme-rating-box > span,
.lme-review-stars { color: var(--lme-rating); letter-spacing: .08em; }
.lme-rating-box p { color: var(--lme-text-invert); font-weight: 800; }
.lme-btn--light { min-height: 46px; border: 1px solid rgba(255,255,255,.45); color: var(--lme-text-invert); background: rgba(255,255,255,.14); }
.lme-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lme-review-card { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--lme-border); border-radius: var(--lme-radius); background: var(--lme-card-bg); }
.lme-review-card h3 { margin: 0 68px 2px 0; color: var(--lme-primary); }
.lme-review-card blockquote { margin: 10px 0 0; color: var(--lme-text); font-style: normal; }
.lme-review-meta { margin: 0; color: var(--lme-text-muted); font-size: 13px; }
.lme-review-stars { margin: 14px 0 0; }
.lme-review-source { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; color: var(--lme-pill-text); background: var(--lme-pill-bg); font-size: 11px; font-weight: 900; }

.dt-hero .lme-hero-media img { object-fit: contain; object-position: center; padding: clamp(10px, 2vw, 24px); background: var(--lme-media-bg); }

@media (max-width: 1000px) {
  .lme-factor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lme-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lme-proof-item:nth-child(2) { border-right: 0; }
  .lme-proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .lme-reviews-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dt-hero .lme-hero-media { order: initial; min-height: 220px; max-height: 280px; }
  .dt-hero .lme-hero-media img { min-height: 220px; max-height: 280px; }
}
@media (max-width: 580px) {
  .lme-proof-grid,
  .lme-scope-grid,
  .lme-factor-list,
  .lme-review-grid { grid-template-columns: 1fr; }
  .lme-proof-item { min-height: 126px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .lme-proof-item:last-child { border-bottom: 0; }
  .lme-review-card { padding: 22px 18px; }
}
@media(max-width:640px){#lme-main .lme-hero-content{order:0!important}#lme-main .lme-hero-media{order:1!important}}

/* LME 1.4.0 — integración visual y hero limpio */
#lme-main .dt-hero .lme-hero-media {
  overflow: visible !important;
  border-radius: 0 !important;
  background: var(--lme-card-bg) !important;
  box-shadow: none !important;
}
#lme-main .dt-hero .lme-hero-media img {
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  background: var(--lme-card-bg) !important;
}
.lme-proof-band { padding: clamp(52px,6vw,78px) 0; color: var(--lme-text); background: var(--lme-bg) !important; }
.lme-proof-inner { width: min(100% - 40px,var(--lme-wrap)); margin-inline: auto; }
.lme-proof-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.lme-proof-head .lme-section-kicker { display: inline-flex; }
.lme-proof-grid { gap: 16px; width: 100%; }
.lme-proof-item {
  min-height: 170px;
  padding: 26px 20px;
  border: 1px solid var(--lme-border) !important;
  border-radius: var(--lme-radius);
  color: var(--lme-text);
  background: var(--lme-card-bg);
  box-shadow: 0 8px 24px rgba(13,37,68,.06);
}
.lme-proof-item strong { color: var(--lme-info); }
.lme-proof-item span { color: var(--lme-text); }
.lme-proof-credentials { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:18px; padding:20px; border:1px solid var(--lme-border); border-radius:var(--lme-radius); background:var(--lme-card-bg); }
.lme-proof-credentials > strong { margin-right:auto; color:var(--lme-info); text-transform:uppercase; letter-spacing:.06em; font-size:13px; }
.lme-proof-pill { padding:9px 14px; border:1px solid var(--lme-border); border-radius:999px; color:var(--lme-primary); background:var(--lme-bg); font-size:13px; font-weight:800; }
.lme-decision-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.lme-decision-card { display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:start; }
.lme-decision-card > span { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--lme-text-invert); background:var(--lme-info); font-weight:900; }
.lme-decision-card h3 { margin:0 0 6px; }
.lme-decision-card p { margin:0; }
.lme-previsit { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:24px; align-items:start; }
.lme-previsit-note { padding:24px; border-radius:var(--lme-radius); color:var(--lme-text-invert); background:var(--lme-primary-deep); }
.lme-previsit-note h3,.lme-previsit-note p { color:var(--lme-text-invert); }
.lme-previsit-list { margin:0; padding:0; list-style:none; display:grid; gap:12px; }
.lme-previsit-list li { padding:16px 18px; border:1px solid var(--lme-border); border-radius:14px; background:var(--lme-card-bg); }
@media(max-width:760px){
  #lme-main .dt-hero .lme-hero-media { order:-1 !important; min-height:230px !important; max-height:320px !important; margin-bottom:8px; }
  #lme-main .dt-hero .lme-hero-media img { min-height:230px !important; max-height:320px !important; }
  #lme-main .dt-hero .lme-hero-content { order:0 !important; }
  .lme-decision-grid,.lme-previsit { grid-template-columns:1fr; }
}
@media(max-width:580px){
  .lme-proof-inner { width:calc(100% - 28px); }
  .lme-proof-grid { gap:12px; }
  .lme-proof-item { min-height:0; padding:22px 18px; border-bottom:1px solid var(--lme-border); }
  .lme-proof-credentials { align-items:stretch; text-align:center; }
  .lme-proof-credentials > strong,.lme-proof-pill { width:100%; margin-right:0; }
  .lme-decision-card { grid-template-columns:1fr; }
}
