/* =========================================================================
   JLM Comunicación — Modernización de diseño (capa de overrides, la última).
   Aditiva y reversible: quitar el <link> de modernize.css para revertir.
   Marca: azul #5083C4, tinta #111318.
   ========================================================================= */

:root { --jlm-blue: #5083C4; --jlm-blue-d: #3f6ca8; --jlm-ink: #111318; }

/* -- Tipografía más contundente y actual -- */
.elementor-heading-title { font-weight: 800; letter-spacing: -0.022em; line-height: 1.08; }
.elementor-widget-heading h1.elementor-heading-title,
h1.elementor-heading-title { letter-spacing: -0.038em; }
.elementor-widget-text-editor, .elementor-widget-theme-post-content { line-height: 1.75; }

/* -- Botones modernos: redondeados, con peso y elevación (sin cambiar su color) -- */
.elementor-button, .elementor-cta__button {
  border-radius: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .012em;
  box-shadow: 0 6px 18px rgba(17,19,24,.10);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, background-color .2s, filter .2s !important;
}
.elementor-button:hover, .elementor-cta__button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 32px rgba(80,131,196,.30);
  filter: saturate(1.06);
}

/* -- Imágenes con esquinas modernas (fotos con más presencia) -- */
.elementor-widget-image img { border-radius: 14px; }
/* ...pero NUNCA el logo de la cabecera/pie ni iconos del menú (se recortarían) -- */
[data-elementor-type="header"] img,
[data-elementor-type="footer"] img,
.elementor-widget-theme-site-logo img,
.elementor-widget-image img.site-logo,
header img, .elementor-location-header img {
  border-radius: 0 !important;
}

/* -- Enlaces de contenido en azul de marca, con subrayado moderno -- */
.elementor-widget-text-editor a:not(.elementor-button),
.elementor-widget-theme-post-content a:not(.elementor-button) {
  color: var(--jlm-blue);
  text-decoration-thickness: .08em; text-underline-offset: .18em;
}

/* -- Campos de formulario modernos con foco azul -- */
.elementor-field-group .elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
  border-radius: 11px !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}
.elementor-field-group .elementor-field:focus {
  border-color: var(--jlm-blue) !important;
  box-shadow: 0 0 0 4px rgba(80,131,196,.16) !important;
  outline: none !important;
}

/* -- Más aire entre secciones (margen, sin tocar el padding interno) -- */
.elementor > .e-con + .e-con { margin-top: clamp(.4rem, 2.5vw, 2rem); }

/* -- Radio suave en contenedores con caja (solo se aprecia si tienen fondo) -- */
.e-con-boxed { border-radius: 16px; }

/* -- Enlaces del menú: subrayado animado moderno -- */
.elementor-nav-menu .elementor-item {
  position: relative;
  transition: color .18s ease;
}
.elementor-nav-menu .elementor-item::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--jlm-blue); border-radius: 2px;
  transition: right .28s cubic-bezier(.2,.7,.2,1);
}
.elementor-nav-menu .elementor-item:hover::after { right: 0; }
