/* =====================================================================
   Valencia Servicios — diseño B («más profesional», Fase 3, 02-12-2026)
   Colores sacados del logo (verde #58A078, turquesa #50A8B0, gris #606060),
   oscurecidos donde hace falta para que el texto se lea bien.
   Una sola hoja para toda la web + la colocación de cada página
   (public/diseno/post-<id>.css, sacada de Elementor por scripts/estilos-diseno.mjs:
   solo columnas, anchos, alineación y fotos de fondo; colores y letras, de aquí).
   ===================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/diseno/fuentes/manrope.woff2) format('woff2');
}

:root {
  --tinta: #14323a;      /* titulares, barra del menú, pie */
  --texto: #36444a;      /* texto corrido */
  --suave: #5a676c;      /* textos secundarios */
  --fondo: #ffffff;
  --claro: #eef5f5;      /* bandas y tarjetas */
  --linea: #d9e5e6;
  --acento: #0e6e78;     /* turquesa del logo, oscurecido: enlaces y botones */
  --acento-osc: #0a525a;
  --verde: #2e7a50;      /* verde del logo, oscurecido: botón de contacto */
  --verde-osc: #23603e;
  --turquesa: #50a8b0;   /* el del logo, solo para detalles (rayas, iconos) */
  --radio: 8px;
  --ancho: 1160px;
  --margen: clamp(16px, 4vw, 32px);
  --sombra: 0 1px 2px rgba(20, 50, 58, .06), 0 8px 24px rgba(20, 50, 58, .09);
  --letra: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 400 16.5px/1.7 var(--letra); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip; overflow-wrap: break-word; /* palabras largas en columnas estrechas del móvil: se parten */
}
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
a { color: var(--acento); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acento-osc); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--tinta); font-family: var(--letra); font-weight: 750; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .3em; }
strong, b { color: var(--tinta); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--linea); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: .95em; }
th, td { border: 1px solid var(--linea); padding: .55em .8em; text-align: left; vertical-align: top; }
th { color: var(--tinta); background: var(--claro); }
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; padding: 0 var(--margen); }
.salto { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; }
.salto:focus { left: 8px; top: 8px; }
.screen-reader-text, .solo-lectores { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Botones ---------- */
.boton, .elementor-button, .wpcf7 [type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 0; border-radius: var(--radio);
  background: var(--acento); color: #fff; font: 700 15px/1.2 var(--letra); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.boton:hover, .elementor-button:hover, .wpcf7 [type=submit]:hover { background: var(--acento-osc); color: #fff; }
.elementor-button[aria-disabled] { cursor: default; }
.boton-contacto { background: var(--verde); }
.boton-contacto:hover { background: var(--verde-osc); }
/* Teléfono en la cabecera (Fase 4, diseno.json → telefono_cabecera) */
.boton-telefono { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linea); white-space: nowrap; }
.boton-telefono:hover { background: var(--claro); color: var(--tinta); }
.boton-telefono svg { width: 16px; height: 16px; flex: none; color: var(--verde); }
.cabecera-fila .boton-telefono { padding: 11px 18px; }
.cabecera-fila .boton-telefono + .boton-contacto { margin-left: -12px; }
.boton-claro { background: #fff; color: var(--tinta); }
.boton-claro:hover { background: var(--claro); color: var(--tinta); }

/* ---------- Cabecera: logo, lema y contacto; debajo, la barra del menú ---------- */
.cabecera { background: #fff; position: relative; z-index: 50; }
.cabecera-fila .contenedor { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo img { width: auto; height: 52px; }
.lema { margin: 0 0 0 auto; font-size: 14px; font-weight: 600; color: var(--suave); }
.lema::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--verde); vertical-align: 1px; }
.cabecera-fila .boton-contacto { padding: 11px 22px; }

.menu-principal { background: var(--tinta); }
.menu-principal ul { list-style: none; margin: 0; padding: 0; }
.menu-principal .contenedor > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.menu-principal li { position: relative; margin: 0; }
.menu-principal a { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.menu-principal .contenedor > ul > li > a { padding: 12px 12px; }
.menu-principal .contenedor > ul { margin-left: -12px; }
/* Menús largos (hasta 11 apartados): en dos filas como mucho, nunca en tres (el más largo mide unos 1.700 px) */
.menu-principal .contenedor > ul > li > a:hover, .menu-principal .contenedor > ul > li:focus-within > a { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-principal .contenedor > ul > li.actual > a { box-shadow: inset 0 -3px 0 var(--turquesa); }
.menu-principal li.contacto { display: none; } /* ya está el botón verde de arriba */
.menu-principal .flecha { width: 9px; height: 9px; flex: 0 0 auto; opacity: .7; }
.menu-principal .sub { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 260px; max-width: 340px; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.menu-principal .sub .sub { top: -9px; left: 100%; }
.menu-principal li:hover > .sub, .menu-principal li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.menu-principal .sub a { justify-content: space-between; padding: 9px 12px; border-radius: 6px; color: var(--tinta); font-weight: 500; font-size: 14px; line-height: 1.35; }
.menu-principal .sub a:hover, .menu-principal .sub li:focus-within > a { background: var(--claro); color: var(--acento-osc); }
.menu-principal .sub li.actual > a { color: var(--acento); font-weight: 700; }
/* Los menús del final de la fila se abren hacia la izquierda */
.menu-principal .contenedor > ul > li:nth-last-child(-n+3):not(:first-child) > .sub { left: auto; right: 0; }
.menu-principal .contenedor > ul > li:nth-last-child(-n+3):not(:first-child) .sub .sub { left: auto; right: 100%; }

.boton-menu { display: none; align-items: center; gap: 8px; margin-left: auto; background: none; border: 1px solid var(--linea); border-radius: var(--radio); padding: 10px 14px; font: 700 14px var(--letra); color: var(--tinta); cursor: pointer; }
.boton-menu svg { width: 18px; height: 18px; }

/* Menú del móvil: a pantalla completa, con su propio scroll y los apartados plegados */
.menu-movil { display: none; position: fixed; inset: 0; top: var(--alto-cabecera, 72px); z-index: 49; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--margen) 40px; border-top: 1px solid var(--linea); }
.menu-movil.abierto { display: block; }
.menu-movil ul { list-style: none; margin: 0; padding: 0; }
.menu-movil li { margin: 0; border-bottom: 1px solid var(--linea); }
.menu-movil .sub { display: none; padding-left: 14px; border-top: 1px solid var(--linea); }
.menu-movil .sub li:last-child { border-bottom: 0; }
.menu-movil li.abierto > .sub { display: block; }
.menu-movil .fila { display: flex; align-items: center; justify-content: space-between; }
.menu-movil a { display: block; flex: 1; padding: 14px 0; color: var(--tinta); text-decoration: none; font-weight: 700; }
.menu-movil .sub a { font-weight: 500; padding: 11px 0; }
.menu-movil [aria-current] { color: var(--acento); }
.menu-movil .abrir { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: none; color: var(--tinta); cursor: pointer; display: grid; place-items: center; }
.menu-movil .abrir svg { width: 14px; height: 14px; transition: transform .2s; }
.menu-movil li.abierto > .fila .abrir svg { transform: rotate(180deg); }
.menu-movil .boton-contacto { display: flex; margin-top: 24px; }
body.menu-abierto { overflow: hidden; }

@media (max-width: 1024px) {
  .menu-principal, .lema { display: none; }
  .boton-menu { display: inline-flex; }
  .cabecera { position: sticky; top: 0; border-bottom: 1px solid var(--linea); }
  .cabecera-fila .contenedor { min-height: 68px; gap: 12px; }
  .logo img { height: 40px; }
  .cabecera-fila .boton-contacto { margin-left: auto; }
  .cabecera-fila .boton-contacto + .boton-menu { margin-left: 0; }
  .cabecera-fila .boton-telefono { margin-left: auto; }
  .cabecera-fila .boton-telefono + .boton-contacto { margin-left: 0; }
}
@media (max-width: 420px) {
  .cabecera-fila .boton-contacto { display: none; }
  .cabecera-fila .boton-contacto + .boton-menu { margin-left: auto; }
  .cabecera-fila .boton-telefono { width: 44px; height: 44px; padding: 0; }
  .cabecera-fila .boton-telefono span { display: none; }
  .cabecera-fila .boton-telefono + .boton-contacto + .boton-menu { margin-left: 0; }
  .logo img { height: 34px; }
}
.menu-movil .boton-telefono { display: flex; margin-top: 24px; }
.menu-movil .boton-telefono + .boton-contacto { margin-top: 10px; }

/* ---------- Banda de arriba de cada página: migas y título ---------- */
.pagina-cabecera { background: var(--claro); border-bottom: 1px solid var(--linea); }
.pagina-cabecera .contenedor { padding-top: 22px; padding-bottom: 26px; }
.pagina-cabecera:not(:has(h1)) .contenedor { padding-bottom: 18px; }
.pagina-cabecera:not(:has(h1, .migas)) { display: none; }
.pagina-cabecera h1 { margin: 0; max-width: 30ch; }
.migas { font-size: 13.5px; color: var(--suave); margin-bottom: 8px; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.migas li { margin: 0; }
.migas li + li::before { content: '›'; margin-right: 8px; color: var(--suave); }
.migas a { color: var(--acento); text-decoration: none; font-weight: 600; }
.migas a:hover { text-decoration: underline; }
.migas [aria-current] { color: var(--texto); }

/* ---------- Elementor: secciones y columnas (colocación) ---------- */
.elementor { position: relative; }
.elementor-section { position: relative; }
.elementor-section .elementor-container { display: flex; margin-inline: auto; position: relative; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--ancho); }
.elementor-section.elementor-section-stretched, .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; width: 100%; }
/* Diseño B: las secciones «a todo el ancho» de Elementor, con tope y margen (el texto no toca el borde) */
.elementor > .elementor-section.elementor-section-full_width > .elementor-container { max-width: calc(var(--ancho) + 2 * var(--margen)); padding-inline: calc(var(--margen) - 12px); }
.elementor-column { position: relative; min-height: 1px; display: flex; }
.elementor-widget-wrap { position: relative; width: 100%; display: flex; flex-wrap: wrap; align-content: flex-start; }
.elementor-widget-wrap > .elementor-element { width: 100%; }
.elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 12px; }
.elementor-column-gap-narrow > .elementor-column > .elementor-element-populated { padding: 6px; }
.elementor-column-gap-extended > .elementor-column > .elementor-element-populated { padding: 15px; }
.elementor-column-gap-wide > .elementor-column > .elementor-element-populated { padding: 20px; }
.elementor-column-gap-wider > .elementor-column > .elementor-element-populated { padding: 30px; }
.elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0; }
.elementor-widget { position: relative; }
.elementor-widget:not(:last-child) { margin-bottom: 18px; }
.elementor-widget__width-auto { width: auto !important; max-width: 100%; }
.elementor-widget__width-initial { max-width: 100%; }
@media (min-width: 768px) {
  .elementor-col-10 { width: 10%; } .elementor-col-11 { width: 11.111%; } .elementor-col-12 { width: 12.5%; } .elementor-col-14 { width: 14.285%; }
  .elementor-col-16 { width: 16.666%; } .elementor-col-20 { width: 20%; } .elementor-col-25 { width: 25%; } .elementor-col-30 { width: 30%; }
  .elementor-col-33 { width: 33.333%; } .elementor-col-40 { width: 40%; } .elementor-col-50 { width: 50%; } .elementor-col-60 { width: 60%; }
  .elementor-col-66 { width: 66.666%; } .elementor-col-70 { width: 70%; } .elementor-col-75 { width: 75%; } .elementor-col-80 { width: 80%; }
  .elementor-col-83 { width: 83.333%; } .elementor-col-90 { width: 90%; } .elementor-col-100 { width: 100%; }
}
@media (max-width: 767px) { .elementor-section .elementor-container { flex-wrap: wrap; } .elementor-column { width: 100%; } }
@media (min-width: 1025px) { .elementor-hidden-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .elementor-hidden-tablet { display: none !important; } }
@media (max-width: 767px) { .elementor-hidden-mobile, .elementor-hidden-phone { display: none !important; } }
.e-con { display: var(--display, flex); flex-direction: var(--flex-direction, column); flex-wrap: var(--flex-wrap, nowrap); gap: var(--gap, 20px); width: var(--width, 100%); margin-inline: auto; }
.e-con-boxed > .e-con-inner { display: flex; flex-direction: inherit; flex-wrap: inherit; gap: inherit; width: 100%; max-width: var(--ancho); margin-inline: auto; }

/* Secciones de primer nivel: aire entre ellas y márgenes laterales en pantallas medianas */
.elementor > .elementor-section { padding-block: clamp(14px, 2.4vw, 28px); }
.elementor > .elementor-section:first-child { padding-top: clamp(20px, 3vw, 36px); }
.elementor > .elementor-section:last-child { padding-bottom: clamp(32px, 5vw, 64px); }
.elementor > .elementor-section.elementor-section-boxed > .elementor-container { padding-inline: calc(var(--margen) - 12px); }
/* Secciones con foto de fondo (la capa oscura la pone estilos-diseno.mjs): más aire */
.elementor > .elementor-section[class*='elementor-element-']:has(> .elementor-background-overlay) { padding-block: clamp(36px, 6vw, 80px); }

/* ---------- Titulares de Elementor ---------- */
.elementor-heading-title { margin: 0; color: var(--tinta); }
h2.elementor-heading-title { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); }
:is(p, div, span).elementor-heading-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

/* ---------- Textos ---------- */
.elementor-widget-text-editor { color: var(--texto); }
.elementor-widget-text-editor a, .entry a { font-weight: 600; }
.elementor-widget-text-editor ul li::marker, .entry ul li::marker { color: var(--acento); }
blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--turquesa); color: var(--tinta); }

/* ---------- Fotos ---------- */
.elementor-widget-image { text-align: center; }
.elementor-widget-image img, .elementor-image img { border-radius: var(--radio); }
.elementor-widget-image figure { margin: 0; }
.elementor-widget-image .widget-image-caption, figcaption { font-size: 13.5px; color: var(--suave); margin-top: 8px; }

/* ---------- Botones de Elementor ---------- */
.elementor-align-center { text-align: center; } .elementor-align-right { text-align: right; }
.elementor-align-justify .elementor-button { width: 100%; }
.elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Tarjetas: columnas de una fila con foto + titular (Construcción, Reformas…) ---------- */
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) > .elementor-widget-wrap {
  background: #fff; border: 1px solid var(--linea); border-radius: calc(var(--radio) + 4px);
  box-shadow: 0 1px 2px rgba(20, 50, 58, .04); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading):has(a) > .elementor-widget-wrap:hover {
  box-shadow: var(--sombra); border-color: #c5d8da; transform: translateY(-2px);
}
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) .elementor-heading-title { font-size: 1.08rem; }
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) .elementor-heading-title::after { display: none; }
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) .elementor-heading-title a { color: var(--tinta); text-decoration: none; }
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) .elementor-heading-title a:hover { color: var(--acento); }
.elementor-inner-section .elementor-column:has(.elementor-widget-image):has(.elementor-widget-heading) .elementor-widget-text-editor { font-size: 15px; }

/* ---------- Separadores, espacios, vídeos y mapas ---------- */
.elementor-spacer-inner { height: var(--spacer-size, 50px); }
@media (max-width: 767px) { .elementor-spacer-inner { height: min(var(--spacer-size, 50px), 24px); } }
.elementor-divider { display: flex; padding-block: 12px; justify-content: var(--divider-align, flex-start); }
.elementor-divider-separator { display: flex; width: 100%; border-top: 1px solid var(--linea); }
.elementor-custom-embed iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radio); }
.elementor-wrapper { aspect-ratio: 16/9; position: relative; border-radius: var(--radio); overflow: hidden; }
.elementor-wrapper iframe, .elementor-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Desplegables (preguntas) ---------- */
.elementor-toggle { border: 1px solid var(--linea); border-radius: var(--radio); background: #fff; }
.elementor-toggle-item + .elementor-toggle-item { border-top: 1px solid var(--linea); }
.elementor-tab-title { display: flex; gap: 10px; align-items: center; padding: 15px 18px; margin: 0; cursor: pointer; font-weight: 700; color: var(--tinta); }
.elementor-tab-title a { color: inherit; text-decoration: none; }
.elementor-tab-title:hover { color: var(--acento); }
.elementor-tab-title svg { width: 10px; height: 14px; fill: currentColor; }
.elementor-toggle-icon-opened, .elementor-active .elementor-toggle-icon-closed { display: none; }
.elementor-active .elementor-toggle-icon-opened { display: inline; }
.elementor-tab-content { display: none; padding: 0 18px 16px; }
.elementor-tab-content.elementor-active { display: block; }

/* ---------- Carruseles y galerías ---------- */
.elementor-image-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.elementor-image-carousel .swiper-slide { flex: 0 0 min(300px, 80%); scroll-snap-align: start; }
.elementor-image-carousel figure { margin: 0; }
.elementor-image-carousel img { border-radius: var(--radio); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); } .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; } .gallery img { border-radius: 6px; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.aligncenter { display: block; margin-inline: auto; } .alignleft { float: left; margin-right: 1em; } .alignright { float: right; margin-left: 1em; }

/* ---------- Formularios copiados de la web viva (la Fase 5 los hará funcionar) ---------- */
.wpcf7 { background: var(--claro); border: 1px solid var(--linea); border-radius: calc(var(--radio) + 4px); padding: clamp(18px, 3vw, 28px); }
.wpcf7 label { font-weight: 600; color: var(--tinta); font-size: 15px; }
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; margin-top: 4px; padding: 11px 13px; border: 1px solid #bfd0d2; border-radius: 6px; background: #fff; font: inherit; color: var(--texto);
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 2px solid var(--acento); outline-offset: 0; border-color: var(--acento); }
.wpcf7 textarea { min-height: 130px; }
.wpcf7-response-output:empty, .screen-reader-response { display: none; }

/* ---------- Ficha «Resumen» ---------- */
.resumen { margin: 32px auto; max-width: var(--ancho); padding-inline: var(--margen); }
.resumen > div { border: 1px solid var(--linea); border-left: 4px solid var(--turquesa); border-radius: var(--radio); padding: 20px 24px; background: #fff; }
.resumen h2 { font-size: 1.15rem; }
.resumen dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.resumen dt { font-weight: 700; color: var(--tinta); } .resumen dd { margin: 0; }

/* ---------- Listados de categoría (/instalacion/, /electricista/…): tarjetas ---------- */
.archivo { padding-block: 32px 64px; }
.archivo .entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.archivo .blog-entry { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: calc(var(--radio) + 4px); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.archivo .blog-entry:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.archivo .blog-entry-inner { display: flex; flex-direction: column; height: 100%; padding-bottom: 20px; }
.archivo .thumbnail { order: -1; }
.archivo .thumbnail a { display: block; }
.archivo .thumbnail img { width: 100%; height: auto; border-bottom: 1px solid var(--linea); }
.archivo .thumbnail-caption, .archivo .overlay, .archivo .meta-comments, .archivo .meta-author { display: none; }
.archivo .blog-entry-header, .archivo .meta, .archivo .blog-entry-summary, .archivo .blog-entry-readmore { padding-inline: 20px; }
.archivo .blog-entry-header { padding-top: 18px; }
.archivo .blog-entry-title { font-size: 1.15rem; margin: 0 0 6px; }
.archivo .blog-entry-title a { color: var(--tinta); text-decoration: none; }
.archivo .blog-entry-title a:hover { color: var(--acento); }
.archivo .meta { list-style: none; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--suave); }
.archivo .meta li { margin: 0; }
.archivo .meta a { color: var(--suave); }
.archivo .blog-entry-summary { font-size: 14.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.archivo .blog-entry-summary p { margin: 0; }
.archivo .blog-entry-readmore a { font-weight: 700; text-decoration: none; }
.archivo .blog-entry-readmore a::after { content: ' →'; }
.archivo .scroller-status { display: none; }
.archivo .infinite-scroll-nav, .archivo .oceanwp-pagination { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; }
.archivo .infinite-scroll-nav a, .archivo .page-numbers a { font-weight: 700; }
.archivo .page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.archivo .page-numbers :is(a, span) { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--linea); border-radius: 6px; text-decoration: none; }
.archivo .page-numbers .current { background: var(--acento); border-color: var(--acento); color: #fff; }

/* ---------- Páginas sencillas (legales, 404) y entradas sin Elementor ---------- */
.entry { padding-block: 32px 64px; max-width: calc(820px + 2 * var(--margen)); }
.entry h2 { margin-top: 1.4em; }
.pagina-simple { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--margen); }
.pagina-simple.centrada { text-align: center; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #c4d2d5; font-size: 15px; margin-top: 0; }
.pie-columnas { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.pie-marca img { width: 220px; height: auto; }
.pie-titulo { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.pie p { margin: 0 0 12px; }
.pie strong { color: #fff; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin: 0 0 8px; }
.pie a:not(.boton) { color: #e8f0f1; text-decoration: none; }
.pie a:not(.boton):hover { color: #fff; text-decoration: underline; }
.pie-contacto { margin-bottom: 14px !important; overflow-wrap: anywhere; }
@media (max-width: 900px) { .pie-columnas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-columnas { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .cabecera, .menu-movil, .pie, .migas { display: none; } }

/* ---------- Más páginas del mismo servicio (Fase 4, diseno.json → relacionadas) ---------- */
.relacionadas { max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; padding: 8px var(--margen) 48px; }
.relacionadas-titulo { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acento); margin: 0 0 14px; padding-top: 28px; border-top: 1px solid var(--linea); }
.relacionadas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.relacionadas li { margin: 0; max-width: 100%; }
.relacionadas a { display: inline-block; max-width: 100%; padding: 8px 14px; border: 1px solid var(--linea); border-radius: 999px; color: var(--tinta); text-decoration: none; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.relacionadas a:hover { border-color: var(--acento); color: var(--acento); }

/* ---------- Diseño encajonado (pedido por Yama el 02-12-2026; diseno.json → encajonado) ----------
   La web va en una caja blanca centrada sobre fondo gris claro. Dentro, todas las secciones de
   Elementor tienen el mismo margen lateral que la cabecera: sus fondos y fotos de fondo llenan la
   caja de borde a borde y su contenido queda alineado con el logo y el menú. */
body.encajonado { background: #e6eded; }
body.encajonado .caja { background: var(--fondo); }
@media (min-width: 1025px) {
  body.encajonado { padding: 28px 24px 40px; }
  body.encajonado .caja { max-width: 1280px; margin: 0 auto; border-radius: 14px; overflow: clip; box-shadow: 0 1px 3px rgba(20, 50, 58, .06), 0 20px 50px rgba(20, 50, 58, .13); }
}
body.encajonado .elementor > .elementor-section { padding-inline: calc(max(var(--margen), (100% - var(--ancho)) / 2) - 12px) !important; }
body.encajonado .elementor > .elementor-section > .elementor-container { padding-inline: 0; }
body.encajonado .elementor > .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }

/* Huecos: los espaciadores de Elementor (hasta 155 px seguidos) se quedan en 32 px como mucho */
.elementor-spacer-inner { height: min(var(--spacer-size, 50px), 32px); }

/* Titulares en columnas estrechas (tarjetas de 7 u 8 por fila): más pequeños y partidos con guion, no a mitad de palabra */
@media (min-width: 768px) {
  :is(.elementor-col-10, .elementor-col-11, .elementor-col-12, .elementor-col-14, .elementor-col-16) :is(h2, h3, h4, .elementor-heading-title) { font-size: clamp(.95rem, .8rem + .35vw, 1.08rem); line-height: 1.3; }
}
h1, h2, h3, h4, h5, h6 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }

/* Carruseles de fotos: con 4 o menos caben en una fila sin barra (la fila de iconos de la portada
   sacaba una barra gris por 58 px); con más, se desliza y la barra es fina y del color de la marca */
.elementor-image-carousel { scrollbar-width: thin; scrollbar-color: var(--linea) transparent; }
@media (min-width: 768px) {
  .elementor-image-carousel:not(:has(.swiper-slide:nth-child(5))) { overflow-x: visible; padding-bottom: 0; }
  .elementor-image-carousel:not(:has(.swiper-slide:nth-child(5))) .swiper-slide { flex: 1 1 0; min-width: 0; }
}

/* Secciones de Elementor que solo llevan espaciadores (sin texto, fotos ni botones): no se pintan.
   Cada una sumaba unos 90 px de blanco, a veces dos o tres seguidas. Siguen en el HTML. */
:where(.elementor > .elementor-section):not(:has(.elementor-widget:not(.elementor-widget-spacer))) { display: none; }
/* (las que tienen foto de fondo sí se pintan, con sus espaciadores enteros: lo pone estilos-diseno.mjs en post-<id>.css) */
