/* Ajustes para WordPress: el formulario real de Contact Form 7 y el widget de votación, con el mismo aspecto que la maqueta. */
.aviso .wpcf7 form { display: block; }
.aviso .wpcf7 form > p { margin: 14px 0 0; }
.aviso .wpcf7 label { display: block; font-weight: 700; font-size: 1rem; }
.aviso .wpcf7 label br { display: none; }
.aviso .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.aviso .wpcf7 input[type="text"], .aviso .wpcf7 input[type="tel"] {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 2px solid #8493ab; border-radius: var(--radius-s); font-size: 1.125rem;
}
.aviso .wpcf7 input[type="text"]:hover, .aviso .wpcf7 input[type="tel"]:hover { border-color: var(--ink-soft); }
.aviso .wpcf7 input[type="text"]:focus, .aviso .wpcf7 input[type="tel"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.aviso .wpcf7 input[aria-invalid="true"] { border-color: var(--error); }
.aviso .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.aviso .wpcf7-submit {
  display: block; width: 100%; min-height: 56px; margin-top: 4px; padding: 14px 20px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: #fff;
  background: var(--blue); border: 0; border-radius: var(--radius-s);
}
.aviso .wpcf7-submit:hover { background: var(--blue-deep); }
.aviso .wpcf7-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.aviso .wpcf7 form.submitting .wpcf7-submit { opacity: 0.6; cursor: progress; }
.aviso .wpcf7-spinner { display: none; }
.aviso .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-s); font-weight: 500; }
.aviso .wpcf7 form.sent .wpcf7-response-output { border-color: var(--ok); color: var(--ok); }
.aviso .wpcf7 form.invalid .wpcf7-response-output, .aviso .wpcf7 form.failed .wpcf7-response-output, .aviso .wpcf7 form.spam .wpcf7-response-output, .aviso .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--error); color: var(--error); }
.aviso .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.aviso .hidden-fields-container { border: 0; padding: 0; margin: 0; }
@media (min-width: 720px) and (max-width: 1023px) {
  .aviso .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .aviso .wpcf7 form > p:has(.wpcf7-submit), .aviso .wpcf7 form > .wpcf7-response-output, .aviso .wpcf7 form > fieldset { grid-column: 1 / -1; }
}

.vote .yasr-visitor-votes { margin-top: 10px; text-align: left; }
.vote .yasr-vv-stats-text-container, .vote [class*="yasr-custom-text"] { font-size: 0.9375rem; color: var(--ink-soft); }

/* Restos que el tema y otros plugins añaden al pie: esta portada ya tiene su propia barra de llamada */
#callnowbutton, .backtotop, .cz_fixed_top_border, .cz_fixed_bottom_border { display: none !important; }

/* ---------- Páginas interiores ---------- */
.hero-in h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; margin-top: 10px; text-wrap: balance; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.9375rem; }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: 0.7; }
.crumbs a { color: #fff; }
.crumbs [aria-current] { opacity: 0.85; }

.prose { max-width: 72ch; }
.prose > * + *, .prose .wpb_wrapper > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); }
.prose h3 { margin-top: 1.5em; }
.prose h4 { margin-top: 1.3em; font-size: 1.125rem; }
.prose > :first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose li[style*="list-style-type: none"] { margin-left: -1.25em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-s); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose iframe { max-width: 100%; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignleft, .prose .alignright { float: none; display: block; }
.prose blockquote { margin: 1em 0 0; padding-left: 1em; border-left: 3px solid var(--blue-soft); }
.post-meta { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 18px; }

.datos .datos-grid.tablas { margin-top: 44px; }
.datos .tabla td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.datos .tabla tbody th { width: auto; }
.datos .fuente { margin-top: 40px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }
.section.wash .bars tbody tr:hover { background: #fff; }

.zonas { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.zonas li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.nota-marcas { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-soft); }

.posts li { padding: 22px 0; border-bottom: 1px solid var(--line); max-width: 72ch; }
.posts li:first-child { padding-top: 0; }
.posts h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--blue); text-decoration: underline; }
.posts .post-meta { margin: 6px 0 8px; }
.paginas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.paginas .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 12px; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: var(--radius-s); font-weight: 700; text-decoration: none; color: var(--ink); }
.paginas .current { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (min-width: 1024px) { .datos .datos-grid.tablas { margin-top: 64px; } }
.crumbs ol { list-style: none; margin: 0; padding: 0; }
.datos .tabla thead th:last-child { text-align: right; }

/* Formularios dentro del contenido (buscamos técnicos, código de desplazamiento) */
.prose form { max-width: 520px; }
.prose form p, .prose form .fields { margin-top: 14px; }
.prose form label { font-weight: 700; }
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose input[type="number"], .prose input[type="url"], .prose input[type="file"], .prose textarea, .prose select {
  display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid #8493ab; border-radius: var(--radius-s);
}
.prose textarea { min-height: 140px; }
.prose input:focus, .prose textarea:focus, .prose select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.prose input[type="submit"], .prose button[type="submit"], .prose .pbSubmit {
  display: inline-block; min-height: 54px; margin-top: 8px; padding: 14px 26px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: #fff; background: var(--blue); border: 0; border-radius: var(--radius-s);
}
.prose input[type="submit"]:hover, .prose button[type="submit"]:hover, .prose .pbSubmit:hover { background: var(--blue-deep); }
.prose .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--error); }
.prose .wpcf7-response-output { margin: 14px 0 0 !important; padding: 12px 14px !important; border: 2px solid var(--line) !important; border-radius: var(--radius-s); }
.prose table { height: auto !important; }
.prose table[width] { width: 100%; }

/* Hero orientado a la llamada */
.hero-sub { margin-top: 14px; font-size: 1.125rem; line-height: 1.45; max-width: 34em; }
.hero-sub strong { font-weight: 700; }
.hero-note { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: #fff; }
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .checks { margin-top: 22px; }
.hero .cta-row { margin-top: 20px; }
.hero-slim .hero-copy { padding-block: 28px 32px; }
.hero-slim .wrap { display: block; }
@media (min-width: 1024px) { .hero-sub { font-size: 1.25rem; } .hero-slim .hero-copy { padding-block: 44px; } }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.section > .wrap > .fuente { margin-top: 24px; font-size: 0.9375rem; color: var(--ink-soft); }
.prose .grande { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.reviews-head a { font-weight: 600; }

.ti-wrap { margin-top: 24px; min-height: 120px; }

/* Barra inferior de llamada: siempre fija en móvil, en todas las páginas */
.callbar, .callbar[data-hidden="true"] { transform: none; visibility: visible; }
@media (max-width: 1023px) { body.rlm { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* Responsive: la tabla de códigos por marca ajusta sus códigos a varias líneas; nada ensancha la página */
.datos .codigos-marca .tabla td:last-child, .datos .codigos-marca .tabla thead th:last-child { white-space: normal; text-align: left; }
.datos .tabla { table-layout: auto; max-width: 100%; }
.datos figure, .prose, .prose > * { max-width: 100%; }
.prose { overflow-wrap: anywhere; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; }
html, body { overflow-x: clip; }

/* Aviso de cookies en móvil: compacto, a todo el ancho y por encima de la barra de llamada */
@media (max-width: 1023px) {
  .cky-consent-container { left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; bottom: calc(73px + env(safe-area-inset-bottom, 0px)) !important; box-sizing: border-box; }
  .cky-consent-container .cky-consent-bar { padding: 12px 14px !important; box-sizing: border-box; max-width: 100%; border-radius: 12px 12px 0 0 !important; }
  .cky-consent-container .cky-title { font-size: 1rem !important; margin: 0 28px 4px 0 !important; }
  .cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p { font-size: 0.8125rem !important; line-height: 1.4 !important; margin: 0 !important; }
  .cky-consent-container .cky-notice-group { display: block !important; }
  .cky-consent-container .cky-notice-btn-wrapper { display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0 0 !important; padding: 0 !important; width: 100%; }
  .cky-consent-container .cky-notice-btn-wrapper .cky-btn { width: 100% !important; margin: 0 !important; padding: 0 6px !important; min-height: 44px; font-size: 0.8125rem !important; white-space: normal; line-height: 1.2; order: 0 !important; }
  .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept { order: 3 !important; }
  .cky-modal, .cky-preference-center { max-width: 100vw !important; box-sizing: border-box; }
}

/* Pantallas muy estrechas (320–350 px): los botones de llamada caben sin recortes */
.callbar { grid-template-columns: minmax(0, 1fr) auto; }
.callbar .btn-call, .hero .btn-call { min-width: 0; }
@media (max-width: 359px) {
  .callbar .btn-call .lbl { display: none; }
  .hero .btn-call { padding-inline: 0.6em; gap: 8px; }
  .hero .btn-call .lbl { font-size: 0.75rem; }
}
