/* ==========================================================================
   Rediseño editorial · pablomoranabogados.com
   Capa visual (solo CSS) encima de Astra + Elementor + mu-plugins pma-*.
   No oculta texto ni enlaces. Para quitarla: borrar wp-content/mu-plugins/zz-rediseno.php
   Marfil #f6f2ea · superficie #fffdf9 · línea #e4dccd · texto #24221f / #5d574e
   Acento granate #6b2a35 · tinta #2a1a1e · Newsreader + Public Sans
   ========================================================================== */

:root,
body.elementor-kit-23 {
  --rd-bg: #f6f2ea;
  --rd-sf: #fffdf9;
  --rd-ln: #e4dccd;
  --rd-tx: #24221f;
  --rd-tx2: #5d574e;
  --rd-ac: #6b2a35;
  --rd-ac2: #561f29;
  --rd-ink: #2a1a1e;
  --rd-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --rd-sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Paleta global de Astra / Elementor -> sistema editorial */
  --ast-global-color-0: #6b2a35;
  --ast-global-color-1: #561f29;
  --ast-global-color-2: #24221f;
  --ast-global-color-3: #24221f;
  --ast-global-color-4: #f6f2ea;
  --ast-global-color-7: #5d574e;
  --ast-global-color-8: #f6f2ea;
  --e-global-color-astglobalcolor0: #6b2a35;
  --e-global-color-astglobalcolor1: #561f29;
  --e-global-color-astglobalcolor2: #24221f;
  --e-global-color-astglobalcolor3: #24221f;
  --e-global-color-astglobalcolor4: #f6f2ea;
  --e-global-color-astglobalcolor7: #5d574e;
  --e-global-color-astglobalcolor8: #f6f2ea;
  --e-global-color-primary: #6b2a35;
  --e-global-color-secondary: #5d574e;
  --e-global-color-text: #24221f;
  --e-global-color-accent: #6b2a35;
  --e-global-typography-primary-font-family: "Newsreader";
  --e-global-typography-secondary-font-family: "Newsreader";
  --e-global-typography-text-font-family: "Public Sans";
  --e-global-typography-accent-font-family: "Public Sans";
}

/* ---------- Base ---------- */
html body,
body.ast-separate-container,
body .site,
body #page,
body .site-content {
  background-color: var(--rd-bg);
}
body,
body button,
body input,
body select,
body textarea,
body .elementor-widget-text-editor,
body .elementor-icon-box-description,
body .elementor-widget-icon-list .elementor-icon-list-text {
  font-family: var(--rd-sans);
  color: var(--rd-tx);
}
body { font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body p, body li { line-height: 1.65; }
body .elementor-widget-text-editor { font-size: 17px; line-height: 1.65; }
body .elementor-widget-text-editor p { line-height: 1.65; }

/* Titulares: Newsreader */
body h1, body h2, body h3, body h4, body h5, body h6,
body .entry-title,
body .elementor-heading-title,
body .elementor-icon-box-title,
body .widget-title {
  font-family: var(--rd-serif);
  font-weight: 500;
  color: var(--rd-tx);
  letter-spacing: -0.005em;
  text-shadow: none;
}
body h1, body .elementor-widget-heading h1.elementor-heading-title { font-weight: 500; line-height: 1.12; }
body h2, body .elementor-widget-heading h2.elementor-heading-title { line-height: 1.2; }
body h3, body h4 { line-height: 1.28; }
body h1 em, body h2 em, body h3 em { font-style: italic; color: var(--rd-ac); }

/* Enlaces */
body a { color: var(--rd-ac); text-underline-offset: 3px; text-decoration-thickness: 1px; }
body a:hover, body a:focus { color: var(--rd-ac2); }
body .entry-content a:not(.elementor-button):not([class*="button"]),
body .elementor-widget-text-editor a { text-decoration: underline; text-decoration-color: rgba(107, 42, 53, .35); }
body .entry-content a:not(.elementor-button):hover,
body .elementor-widget-text-editor a:hover { text-decoration-color: currentColor; }
body ::selection { background: var(--rd-ac); color: #fff; }

/* ---------- Botones ---------- */
body .elementor-button,
body a.elementor-button,
body .ast-button,
body .button,
body button:not(.menu-toggle):not(.hfe-nav-menu__toggle):not([class*="joinchat"]):not(.ast-search-menu-icon),
body input[type="submit"],
body input[type="button"],
body .wpcf7-submit,
body .wp-block-button__link {
  background: var(--rd-ac) !important;
  background-image: none !important;
  border: 1px solid var(--rd-ac) !important;
  color: #fff !important;
  fill: #fff !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: var(--rd-sans) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  padding: 13px 24px !important;
  line-height: 1.3 !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body .elementor-button:hover,
body .elementor-button:focus,
body .ast-button:hover,
body .button:hover,
body input[type="submit"]:hover,
body .wpcf7-submit:hover,
body .wp-block-button__link:hover {
  background: var(--rd-ac2) !important;
  border-color: var(--rd-ac2) !important;
  color: #fff !important;
}
body .elementor-button .elementor-button-text { color: inherit !important; }

/* ---------- Cabecera (Elementor Header & Footer, plantilla 1586) ---------- */
body #masthead { background: var(--rd-sf); border-bottom: 1px solid var(--rd-ln); }
body .elementor-1586 .elementor-element.elementor-element-73c3e2a:not(.elementor-motion-effects-element-type-background),
body .elementor-1586 .elementor-element.elementor-element-67e8003:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
body .elementor-1586 .elementor-element.elementor-element-b2fde74:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap {
  background-color: var(--rd-bg) !important;
}
body .elementor-1586 .elementor-element.elementor-element-73c3e2a { border-bottom: 1px solid var(--rd-ln); }
body .elementor-1586 .elementor-element.elementor-element-73c3e2a > .elementor-container { min-height: 0; }
/* El logo es un PNG opaco blanco-sobre-negro: se invierte y se funde con el marfil */
body #masthead .hfe-site-logo-img {
  filter: invert(1);
  mix-blend-mode: multiply;
  max-height: 92px;
  width: auto !important;
}
body #masthead .hfe-site-logo img { max-width: 100%; }
/* Botón de teléfono de la cabecera: secundario (borde fino) */
body #masthead .elementor-element-b8d4260 .elementor-button {
  background: transparent !important;
  color: var(--rd-ac) !important;
  border: 1px solid var(--rd-ac) !important;
}
body #masthead .elementor-element-b8d4260 .elementor-button:hover {
  background: var(--rd-ac) !important;
  color: #fff !important;
}
/* Barra de menú */
body .elementor-1586 .elementor-element.elementor-element-114d058:not(.elementor-motion-effects-element-type-background),
body .elementor-1586 .elementor-element.elementor-element-e3594e1:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap {
  background-color: var(--rd-sf) !important;
}
body #masthead .hfe-nav-menu a.hfe-menu-item,
body #masthead .hfe-nav-menu a.hfe-sub-menu-item,
body #masthead .hfe-nav-menu .menu-item a {
  font-family: var(--rd-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--rd-tx) !important;
  letter-spacing: .01em;
  text-transform: none !important;
}
body #masthead .hfe-nav-menu > li > a.hfe-menu-item {
  position: relative;
  background: transparent !important;
}
body #masthead .hfe-nav-menu > li > a.hfe-menu-item::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 8px;
  height: 1px;
  background: var(--rd-ac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
body #masthead .hfe-nav-menu > li > a.hfe-menu-item:hover,
body #masthead .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item,
body #masthead .hfe-nav-menu > li.current-menu-ancestor > a.hfe-menu-item,
body #masthead .hfe-nav-menu .menu-item a:hover {
  color: var(--rd-ac) !important;
}
body #masthead .hfe-nav-menu > li > a.hfe-menu-item:hover::after,
body #masthead .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item::after,
body #masthead .hfe-nav-menu > li.current-menu-ancestor > a.hfe-menu-item::after { transform: scaleX(1); }
body #masthead .hfe-nav-menu .sub-menu {
  background: var(--rd-sf) !important;
  border: 1px solid var(--rd-ln) !important;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(36, 34, 31, .06) !important;
}
body #masthead .hfe-nav-menu .sub-menu a { border-bottom: 1px solid var(--rd-ln) !important; background: transparent !important; }
body #masthead .hfe-nav-menu__toggle,
body #masthead .hfe-nav-menu-icon { color: var(--rd-tx) !important; border-color: var(--rd-ln) !important; }
body #masthead .hfe-nav-menu-icon svg { fill: var(--rd-tx) !important; }
body #masthead nav.hfe-dropdown { background: var(--rd-sf) !important; border-top: 1px solid var(--rd-ln); }
body #masthead nav.hfe-dropdown .menu-item a { border-bottom: 1px solid var(--rd-ln) !important; background: transparent !important; }

/* Cabecera que encoge (clase añadida por capa.js) */
body #masthead .elementor-element-73c3e2a > .elementor-container,
body #masthead .hfe-site-logo-img { transition: padding .25s ease, max-height .25s ease; }
body.rd-scrolled #masthead .hfe-site-logo-img { max-height: 64px; }

/* ---------- Secciones de Elementor ---------- */
body .elementor-section:not(.pma-hero) { border-color: var(--rd-ln); }
/* Fondos blancos fijos de la portada -> superficie marfil clara */
body .elementor-19 .elementor-element.elementor-element-124b894:not(.elementor-motion-effects-element-type-background),
body .elementor-19 .elementor-element.elementor-element-5b314ef:not(.elementor-motion-effects-element-type-background) {
  background-color: var(--rd-sf) !important;
}
/* Imágenes: sin sombras grandes, esquinas finas */
body .elementor-widget-image img,
body .elementor-image img,
body .entry-content img,
body .ast-single-post-featured-section img,
body .post-thumb img {
  border-radius: 2px !important;
  box-shadow: none !important;
}
body .elementor-widget-image img { outline: 1px solid var(--rd-ln); outline-offset: -1px; }

/* Etiquetas pequeñas: textos destacados en color (antes azul) -> granate */
body .elementor-19 .elementor-element.elementor-element-2d2eb53 { color: var(--rd-ac) !important; font-weight: 600; }
body .elementor-widget-text-editor strong { color: inherit; }
body .elementor-widget-text-editor[style*="color"],
body .elementor-widget-text-editor p[style*="#084"],
body .elementor-widget-text-editor span[style*="#084"],
body .elementor-widget-text-editor span[style*="rgb(8, 74"] { color: var(--rd-ac) !important; }

/* ---------- Portada ---------- */
/* Héroe: velo marfil para que el titular se lea, sin degradados llamativos */
body .elementor-19 .elementor-element.elementor-element-8d83d04 { position: relative; }
body .elementor-19 .elementor-element.elementor-element-8d83d04 > .elementor-container { position: relative; z-index: 1; }
body .elementor-19 .elementor-element.elementor-element-8d83d04::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(246, 242, 234, 0) 0%, rgba(246, 242, 234, .25) 38%, rgba(246, 242, 234, .9) 58%, rgba(246, 242, 234, .94) 100%) !important;
  opacity: 1 !important;
}
body .elementor-19 .elementor-element-8d83d04 .elementor-heading-title {
  font-size: clamp(40px, 5vw, 68px) !important;
  line-height: 1.06 !important;
  font-weight: 500 !important;
  color: var(--rd-tx) !important;
  letter-spacing: -0.015em !important;
}
body .elementor-19 .elementor-element-8d83d04 .elementor-widget-text-editor,
body .elementor-19 .elementor-element-8d83d04 .elementor-widget-text-editor p {
  font-size: 19px !important;
  font-weight: 400 !important;
  color: var(--rd-tx2) !important;
  text-align: left !important;
  line-height: 1.55 !important;
}

/* Iconos de "¿Por qué elegirnos?": sin círculo azul, sello cuadrado fino */
body .elementor-widget-icon-box .elementor-icon,
body .elementor-view-stacked .elementor-icon,
body .elementor-19 .elementor-view-stacked .elementor-icon {
  background-color: transparent !important;
  color: var(--rd-ac) !important;
  fill: var(--rd-ac) !important;
  border: 1px solid var(--rd-ln) !important;
  border-radius: 2px !important;
}
body .elementor-view-stacked .elementor-icon svg,
body .elementor-view-stacked .elementor-icon i { color: var(--rd-ac) !important; fill: var(--rd-ac) !important; }
body .elementor-widget-icon-box .elementor-icon-box-title,
body .elementor-widget-icon-box .elementor-icon-box-title a {
  font-family: var(--rd-serif) !important;
  font-weight: 500 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  letter-spacing: .01em !important;
  color: var(--rd-tx) !important;
}
body .elementor-widget-icon-box .elementor-icon-box-description {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--rd-tx2) !important;
}
body .elementor-19 .elementor-inner-section .elementor-widget-icon-box > .elementor-widget-container {
  background: var(--rd-sf);
  border: 1px solid var(--rd-ln);
  border-radius: 2px;
  padding: 26px 24px 22px;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
body .elementor-19 .elementor-inner-section .elementor-widget-icon-box > .elementor-widget-container:hover {
  border-color: var(--rd-ac);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  body .elementor-19 .elementor-inner-section .elementor-widget-icon-box,
  body .elementor-19 .elementor-inner-section .elementor-widget-wrap { height: 100%; }
}

/* Bloque "Asesoría de empresas" con foto de fondo: velo marfil, sin texto azul */
body .elementor-19 .elementor-element.elementor-element-cf92189 > .elementor-background-overlay {
  background-image: none !important;
  background-color: var(--rd-bg) !important;
  opacity: .88 !important;
}
body .elementor-19 .elementor-element-cf92189 h3,
body .elementor-19 .elementor-element-cf92189 .elementor-widget-text-editor,
body .elementor-19 .elementor-element-cf92189 .elementor-widget-text-editor * {
  color: var(--rd-tx2) !important;
  text-shadow: none !important;
}

/* Títulos de sección en mayúsculas (texto original): versalitas sobrias */
body .elementor-19 .elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(30px, 3.2vw, 42px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
}
body .elementor-19 .elementor-element-8225f05 h2.elementor-heading-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
}

/* ---------- Tarjetas de los mu-plugins (estilos en línea) ---------- */
body a[style*="border:1px solid #dfe3e8"] {
  background: var(--rd-sf) !important;
  border: 1px solid var(--rd-ln) !important;
  border-radius: 2px !important;
  color: var(--rd-tx) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
body a[style*="border:1px solid #dfe3e8"]:hover {
  border-color: var(--rd-ac) !important;
  transform: translateY(-2px);
}
body a[style*="border:1px solid #dfe3e8"] strong,
body a[style*="border:1px solid #dfe3e8"] > span[style*="font-weight:600"] {
  font-family: var(--rd-serif) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  color: var(--rd-tx) !important;
}
body a[style*="border:1px solid #dfe3e8"]:hover strong { color: var(--rd-ac) !important; }
body a[style*="border:1px solid #dfe3e8"] span[style*="opacity:.8"] {
  font-family: var(--rd-sans);
  color: var(--rd-tx2) !important;
  opacity: 1 !important;
  font-size: 15px !important;
}
body a[style*="border:1px solid #dfe3e8"] span[style*="text-transform:uppercase"] {
  color: var(--rd-ac) !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .14em !important;
}
body a[style*="border:1px solid #dfe3e8"] img { border-radius: 2px !important; outline: none; }

/* Chips de categorías del blog (pma-typography) */
body .pma-chips a {
  border: 1px solid var(--rd-ln);
  border-radius: 2px;
  background: var(--rd-sf);
  color: var(--rd-tx);
  font-size: 14px;
  text-decoration: none !important;
}
body .pma-chips a:hover { border-color: var(--rd-ac); color: var(--rd-ac); }
body .pma-chips .on a { background: var(--rd-ac); border-color: var(--rd-ac); color: #fff; }

/* Índice de contenidos (pma-single-post) */
body .pma-toc {
  background: var(--rd-sf);
  border: 1px solid var(--rd-ln);
  border-left: 2px solid var(--rd-ac);
  border-radius: 2px;
  padding: 18px 22px 16px;
}
body .pma-toc-t {
  font-family: var(--rd-sans);
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rd-ac) !important;
}
body .pma-toc a { color: var(--rd-tx); text-decoration: none !important; }
body .pma-toc a:hover { color: var(--rd-ac); }

/* Aviso de servicio al final de las entradas (pma-related-posts) */
body .entry-content p[style*="border-left:4px solid #4175fc"] {
  background: var(--rd-sf) !important;
  border: 1px solid var(--rd-ln) !important;
  border-left: 2px solid var(--rd-ac) !important;
  border-radius: 2px !important;
}
body .pma-related { border-top: 1px solid var(--rd-ln) !important; }
body .pma-related h3 { font-size: 26px; }


/* Calculadoras y accesos a herramientas (pma-calculadoras) */
html body .pma-calc { background: var(--rd-sf); border: 1px solid var(--rd-ln); border-radius: 2px; }
html body .pma-calc .pma-btn { background: var(--rd-ac); border-radius: 2px; font-weight: 600; }
html body .pma-calc .pma-btn:hover, html body .pma-calc .pma-btn:focus { background: var(--rd-ac2); }
html body .pma-calc .pma-result { border: 1px solid var(--rd-ln); border-left: 2px solid var(--rd-ac); border-radius: 2px; background: #fff; }
html body .pma-calc .pma-grid .big strong { color: var(--rd-ac); font-family: var(--rd-serif); font-weight: 600; }
html body .pma-tools a.pma-tool { background: var(--rd-sf); border: 1px solid var(--rd-ln); border-top: 2px solid var(--rd-ac); border-radius: 2px; box-shadow: none; color: var(--rd-tx); text-decoration: none !important; transition: border-color .2s ease, transform .2s ease; }
html body .pma-tools a.pma-tool:hover { border-color: var(--rd-ac); box-shadow: none; transform: translateY(-2px); }
html body .pma-tools .pma-tool-k { color: var(--rd-ac); font-size: 12px; letter-spacing: .14em; font-weight: 600; }
html body .pma-tools .pma-tool strong { font-family: var(--rd-serif); font-weight: 500; font-size: 21px; }
html body .pma-tools .pma-tool span:last-child { color: var(--rd-tx2); }

/* Héroes de páginas interiores (pma-heroes): velo marfil en lugar de blanco */
html body .elementor-section.pma-hero > .elementor-background-overlay {
  background-image: linear-gradient(90deg, rgba(246, 242, 234, .95) 0%, rgba(246, 242, 234, .84) 50%, rgba(246, 242, 234, .5) 80%, rgba(246, 242, 234, .2) 100%) !important;
}
html body .elementor-section.pma-hero.pma-hero-center > .elementor-background-overlay {
  background-image: none !important;
  background-color: rgba(246, 242, 234, .88) !important;
}
html body .pma-seo .elementor-widget-text-editor h2 { font-weight: 500; font-size: 32px; }
html body .pma-seo .elementor-widget-text-editor h3 { font-weight: 600; font-family: var(--rd-serif); font-size: 22px; }
html body .pma-seo .elementor-widget-text-editor p,
html body .pma-seo .elementor-widget-text-editor li { font-size: 17px; line-height: 1.7; }

/* ---------- Páginas y entradas (Astra) ---------- */
body.ast-separate-container .ast-article-single,
body.ast-separate-container .ast-article-post,
body.ast-separate-container .comments-area,
body.ast-separate-container .ast-author-box,
body.ast-separate-container .ast-archive-description {
  background: var(--rd-sf);
  border: 1px solid var(--rd-ln);
  border-radius: 2px;
}
body.ast-separate-container .ast-article-inner { background: transparent; }
body .entry-content { font-size: 18px; }
body .entry-content > p,
body .entry-content > ul,
body .entry-content > ol { color: var(--rd-tx); }
body.single-post .entry-content p,
body.single-post .entry-content li { line-height: 1.75; }
body.single-post .entry-title,
body.page .entry-title,
body .ast-archive-title {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
body .entry-content h1, body .entry-content h2, body .entry-content h3,
body .entry-content h4, body .entry-content h5, body .entry-content h6 {
  font-family: var(--rd-serif);
  font-weight: 500;
  color: var(--rd-tx);
  letter-spacing: -0.005em;
}
body .entry-content h3, body .entry-content h4 { font-weight: 600; }
/* Ancho de lectura cómodo en entradas */
@media (min-width: 922px) {
  body.single-post .ast-article-single .entry-header,
  body.single-post .ast-article-single .entry-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  body.single-post .ast-article-single { padding-top: 56px; padding-bottom: 56px; }
}
body.single-post .entry-content h2 { font-size: 30px; margin-top: 1.6em; }
body.single-post .entry-content h3 { font-size: 23px; }
body .entry-meta, body .entry-meta * , body .ast-blog-meta-container { color: var(--rd-tx2); font-size: 14px; }
body .entry-meta a { color: var(--rd-ac); }
body .entry-content blockquote {
  border-left: 2px solid var(--rd-ac);
  background: transparent;
  font-family: var(--rd-serif);
  font-size: 21px;
  font-style: italic;
  color: var(--rd-tx);
}
body .entry-content table { border-color: var(--rd-ln); background: var(--rd-sf); }
body .entry-content th, body .entry-content td { border-color: var(--rd-ln); }
body .entry-content th { background: var(--rd-bg); font-weight: 600; }
body .ast-breadcrumbs, body .ast-breadcrumbs a, body .yoast-breadcrumbs a { color: var(--rd-tx2); font-size: 14px; }
/* Listados del blog */
body .ast-archive-description { padding: 2em; }
body .blog .ast-article-post .entry-title a,
body.blog .entry-title a, body.archive .entry-title a { color: var(--rd-tx); font-family: var(--rd-serif); }
body.blog .entry-title a:hover, body.archive .entry-title a:hover { color: var(--rd-ac); }
body .ast-pagination a, body .page-numbers {
  border-radius: 2px !important;
  border: 1px solid var(--rd-ln);
  color: var(--rd-tx);
}
body .page-numbers.current { background: var(--rd-ac) !important; color: #fff !important; border-color: var(--rd-ac); }

/* ---------- Formularios ---------- */
body input[type="text"], body input[type="email"], body input[type="tel"],
body input[type="number"], body input[type="url"], body input[type="search"],
body select, body textarea {
  background: var(--rd-sf) !important;
  border: 1px solid var(--rd-ln) !important;
  border-radius: 2px !important;
  color: var(--rd-tx) !important;
  box-shadow: none !important;
  font-size: 16px !important;
}
body input:focus, body select:focus, body textarea:focus {
  border-color: var(--rd-ac) !important;
  outline: 1px solid var(--rd-ac);
  outline-offset: 0;
}
body .wpcf7 label { color: var(--rd-tx2); font-size: 15px; }

/* ---------- Pie ---------- */
body .site-footer,
body .site-footer .site-primary-footer-wrap,
body .site-footer .site-below-footer-wrap,
body .site-footer .site-above-footer-wrap,
body .site-footer [data-section] {
  background-color: var(--rd-ink) !important;
  background-image: none !important;
}
body .site-footer .site-primary-footer-wrap { padding-top: 56px; padding-bottom: 40px; border-top: 0; }
body .site-footer .site-below-footer-wrap { border-top: 1px solid rgba(246, 242, 234, .12) !important; }
body .site-footer,
body .site-footer p,
body .site-footer li,
body .site-footer .ast-footer-copyright,
body .site-footer .ast-builder-html-element {
  color: rgba(246, 242, 234, .78) !important;
  font-family: var(--rd-sans);
  font-size: 15px;
}
body .site-footer a { color: rgba(246, 242, 234, .9) !important; text-decoration: none; }
body .site-footer a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .5); }
body .site-footer .widget-title,
body .site-footer h2, body .site-footer h3 {
  font-family: var(--rd-sans) !important;
  color: #d9b8bd !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px;
}
body .site-footer .menu li { margin-bottom: 4px; }

/* Bloque "Contacta con nosotros" (plantilla 361, antes del pie) */
body .elementor-361 .elementor-element.elementor-element-ef55c03 .elementor-heading-title {
  font-family: var(--rd-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(30px, 3.4vw, 42px) !important;
  text-transform: none !important;
}

/* Botón flotante de WhatsApp (plugin): se respeta, solo más discreto */
body .joinchat__button { box-shadow: 0 2px 10px rgba(36, 34, 31, .18) !important; }

/* Botón "volver arriba" de Astra */
body #ast-scroll-top {
  background-color: var(--rd-ac) !important;
  border-radius: 2px !important;
  color: #fff !important;
}

/* ---------- Aparición suave (la clase rd-reveal solo la añade capa.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rd-js .rd-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .rd-js .rd-reveal.rd-in { opacity: 1; transform: none; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1024px) {
  body .elementor-19 .elementor-element.elementor-element-8d83d04::before {
    background-image: linear-gradient(90deg, rgba(246, 242, 234, .15) 0%, rgba(246, 242, 234, .9) 50%, rgba(246, 242, 234, .94) 100%) !important;
  }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  html, body { overflow-x: hidden; }
  body .elementor-section.elementor-section-boxed > .elementor-container,
  body .elementor-section > .elementor-container { padding-left: 0; padding-right: 0; }
  body .elementor-top-section { padding-left: 18px !important; padding-right: 18px !important; }
  body #masthead .elementor-top-section { padding-left: 12px !important; padding-right: 12px !important; }
  body #masthead .hfe-site-logo-img { max-height: 74px; }
  body .elementor-widget-text-editor,
  body .elementor-widget-text-editor p,
  body .entry-content { font-size: 16.5px !important; }
  body .elementor-button, body a.elementor-button { padding: 14px 20px !important; }
  body .elementor-widget-button .elementor-button { min-width: 220px; justify-content: center; }

  /* Héroe portada en móvil: velo marfil uniforme para leer el titular */
  body .elementor-19 .elementor-element.elementor-element-8d83d04 {
    padding-top: 120px !important;
    padding-bottom: 72px !important;
  }
  body .elementor-19 .elementor-element.elementor-element-8d83d04::before {
    background-image: none !important;
    background-color: rgba(246, 242, 234, .86) !important;
  }
  body .elementor-19 .elementor-element-8d83d04 .elementor-heading-title {
    font-size: 40px !important;
    text-align: left !important;
  }
  body .elementor-19 .elementor-element-8d83d04 .elementor-widget-text-editor,
  body .elementor-19 .elementor-element-8d83d04 .elementor-widget-text-editor p { font-size: 17px !important; }
  body .elementor-19 .elementor-element-8d83d04 .elementor-widget-button .elementor-button-wrapper { text-align: left !important; }

  body .elementor-19 .elementor-widget-heading h2.elementor-heading-title { font-size: 30px !important; }
  body .elementor-19 .elementor-element-8225f05 h2.elementor-heading-title { font-size: 22px !important; }
  body .elementor-19 .elementor-inner-section .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
  body .elementor-19 .elementor-inner-section .elementor-column { margin: 0 0 14px !important; }
  body .elementor-19 .elementor-inner-section { margin: 0 !important; padding: 0 !important; }
  body .elementor-19 .elementor-inner-section .elementor-widget-icon-box > .elementor-widget-container { padding: 22px 20px 18px; }
  body .elementor-widget-icon-box .elementor-icon-box-title { font-size: 21px !important; }

  body.ast-separate-container .ast-article-single { padding: 24px 18px !important; }
  body.ast-separate-container #primary { margin-left: 0; margin-right: 0; }
  body.single-post .entry-content h2 { font-size: 26px; }
  body.single-post .entry-content h3 { font-size: 21px; }
  body .entry-content img, body .elementor img { max-width: 100%; height: auto; }
  body .site-footer .site-primary-footer-wrap { padding-left: 20px; padding-right: 20px; }
}
