/* BricoDato design system v1 (piloto). Se carga la última y unifica tokens, tipografía, cabecera, héroes e iconos. */
@font-face{font-family:Inter;font-weight:400;font-style:normal;font-display:swap;src:url(/assets/fonts/inter-400.woff) format("woff")}
@font-face{font-family:Inter;font-weight:600;font-style:normal;font-display:swap;src:url(/assets/fonts/inter-600.woff) format("woff")}
@font-face{font-family:Inter;font-weight:700;font-style:normal;font-display:swap;src:url(/assets/fonts/inter-700.woff) format("woff")}
@font-face{font-family:Inter;font-weight:800;font-style:normal;font-display:swap;src:url(/assets/fonts/inter-800.woff) format("woff")}
:root{--ink:#0b1b3a;--navy:#081f49;--blue:#1558c0;--blue-hi:#2878ff;--soft:#e8f0ff;--bg:#f6f8fc;--line:#dbe4f0;--muted:#4f6480;--accent:#ff8a3d;--accent-ink:#a63f00;--r-s:12px;--r-m:18px;--sh:0 10px 30px rgba(8,31,73,.08);--f:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html body{font-family:var(--f);font-size:16px;line-height:1.65;color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body :is(h1,h2,h3,h4,button,input,select,textarea){font-family:var(--f)}
html body :is(h1,h2,h3){letter-spacing:-.02em;line-height:1.15;font-weight:800}
html body h2{font-size:clamp(1.5rem,2.6vw,2rem)}html body h3{font-size:1.2rem}
html body :is(.eyebrow,.guide-kicker){font:700 12px/1.2 var(--f);letter-spacing:.08em;text-transform:uppercase}
html body small{font-size:12px}
:focus-visible{outline:3px solid var(--blue-hi);outline-offset:2px;border-radius:6px}
/* iconos */
.ic{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}
.bd-f-category-icon{display:grid!important;place-items:center;width:46px;height:46px;border-radius:var(--r-s);background:var(--soft)!important;color:var(--blue)!important}
.bd-f-category-icon .ic{width:24px;height:24px}
.bd-f-search-icon .ic{width:20px;height:20px}
.mobile-dock a span{display:grid;place-items:center}.mobile-dock a span .ic{width:22px;height:22px}
/* cabecera unificada */
html body .site-header{background:#fff;border-bottom:1px solid var(--line)}
html body .site-header :is(nav a,.nav a,nav button,.nav summary){font:600 14px/1.2 var(--f)!important;color:#1b2f52!important;min-height:44px;display:inline-flex;align-items:center;padding-inline:12px;border-radius:10px}
html body .site-header :is(nav a,.nav a):hover{background:var(--soft);color:var(--blue)!important}
html body .site-header .bd-social-873{display:none!important}
html body .site-footer a{min-height:36px;display:inline-flex;align-items:center}
/* botones */
html body :is(.btn,.v16-btn,.calculator-panel button){min-height:44px;border-radius:var(--r-s);font:700 15px/1 var(--f)}
html body :is(.btn-primary,.v16-btn.primary,.v16-search-card button){background:var(--accent)!important;border-color:var(--accent)!important;color:var(--navy)!important}
html body.bd-home-v16 .v16-search-card button{background:var(--blue)!important;border-color:var(--blue)!important;color:#fff!important}
/* contraste de textos secundarios */
html body :is(.muted,.v16-head p,.guide-meta small,.hub-hero p+*){color:var(--muted)}
html body .v16-head span{color:var(--blue)!important}
/* héroe de guía compacto (la hoja framer-detalles usa !important con alta especificidad, por eso el prefijo) */
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero{background:var(--navy)!important;padding:26px 0 26px!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero h1{font-size:clamp(1.9rem,3.6vw,2.7rem)!important;max-width:24ch;margin:.35em 0 .3em!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-intro{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:64ch!important;font-size:1.08rem!important;color:#d4e1f6!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-actions{margin-top:16px!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-meta-grid{display:flex!important;flex-wrap:wrap;gap:6px 24px!important;margin-top:18px!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-meta{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-height:0!important;display:flex!important;gap:8px;align-items:baseline;color:#e6eefb!important}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-meta small{color:#9fb4d6!important;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-meta strong{color:#fff!important;font-size:15px}
html body.bd-ds:is(.bd-d-guide,.bd-editorial-unified-20261108) .guide-hero .guide-meta:last-child{flex-basis:100%;padding-top:10px!important;border-top:1px solid rgba(255,255,255,.14)!important;margin-top:2px}
/* héroe de calculadora: la herramienta sube */
html body.bd-ds:is(.bd-d-calc,.bd-calc-unified-20261108) .calc-hero{padding:20px 0 24px!important}
html body.bd-ds:is(.bd-d-calc,.bd-calc-unified-20261108) .calc-hero h1{font-size:clamp(1.9rem,3.6vw,2.7rem)!important}
html body.bd-ds:is(.bd-d-calc,.bd-calc-unified-20261108) .calc-hero .calc-hero-badge{display:none!important}
html body.bd-ds:is(.bd-d-calc,.bd-calc-unified-20261108) .calc-hero .calc-trust span{display:inline-flex!important;gap:6px;align-items:center;font:600 13px/1 var(--f)!important}
html body.bd-ds:is(.bd-d-calc,.bd-calc-unified-20261108) .calc-trust .ic{width:14px;height:14px;color:var(--accent)}
@media(max-width:700px){html body.bd-ds .guide-hero h1,html body.bd-ds .calc-hero h1{font-size:1.85rem!important}}
/* "Más ▾" igual en todas las plantillas */
html body .site-header details.bd-nav-more-v2>summary{font:600 14px/1.2 var(--f)!important;color:#1b2f52!important;min-height:44px;display:inline-flex;align-items:center;padding-inline:12px;border-radius:10px;cursor:pointer}
html body .site-header details.bd-nav-more-v2>summary:hover{background:var(--soft);color:var(--blue)!important}
/* Marca: mismo tamaño en todas las páginas y en todos los anchos (antes: 28–34 px según plantilla) */
html body .site-header .brand-logo,html body .site-footer .brand-logo{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;border-radius:11px!important}
html body .site-header :is(.brand-text,.brand-name){font-size:21px!important;line-height:1!important;letter-spacing:-.02em;font-weight:800!important}
html body .site-header :is(.brand-brico,.brand-dato,.brand-name span){font-size:inherit!important;font-weight:inherit!important}
html body .site-header .brand{gap:10px!important}
@media(max-width:420px){html body .site-header .brand-logo{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important}html body .site-header :is(.brand-text,.brand-name){font-size:19px!important}}
/* "Más": flecha CSS (el glifo ▾ cambia de fuente según el sistema y descuadraba la línea) */
html body .site-header details.bd-nav-more-v2{display:flex!important;align-items:center;vertical-align:middle}
html body .site-header details.bd-nav-more-v2>summary{line-height:1.2!important;list-style:none}
html body .site-header details.bd-nav-more-v2>summary::-webkit-details-marker{display:none}
html body .site-header details.bd-nav-more-v2>summary::after{content:""!important;display:inline-block;width:6px;height:6px;margin:-3px 0 0 8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);font-size:0!important}
/* contenedor unificado: 1180 px centrado en todas las plantillas (antes 1160 / 1180 / 1460 según la página) */
html body.bd-ds.bd-ds.bd-ds.bd-ds .shell{width:min(1180px,calc(100% - 40px))!important;max-width:1180px!important;margin-inline:auto!important}
html body.bd-ds .site-header details.bd-nav-more-v2>summary{display:inline-flex!important;align-items:center!important;height:44px;padding-block:0!important}

/* Redes que no se usan (YouTube, Pinterest): fuera de cabeceras y pies. Instagram, Facebook y TikTok se mantienen. 2026-11-14 */
a[href*="youtube.com/@Bricodato" i],a[href*="youtube.com/bricodato" i],a[href*="pinterest.com/bricodato" i],a[href*="pinterest.es/bricodato" i]{display:none!important}
/* Redes en el pie: visibles (Instagram, Facebook, TikTok). La cabecera ya no las muestra. 2026-11-14 */
html body .site-footer .social-title{display:block!important;margin:18px 0 8px;font:700 13px/1.3 var(--f);color:#dbe6f7}
html body .site-footer .social-links,html body .site-footer .footer-socials{display:flex!important;flex-wrap:wrap;gap:8px;margin-top:14px}
html body .site-footer .social-link,html body .site-footer .footer-socials a{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:0 12px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:transparent;color:#e6eefb!important;font:600 13px/1 var(--f);text-decoration:none}
html body .site-footer .social-link:hover,html body .site-footer .footer-socials a:hover{border-color:var(--accent);color:#fff!important;box-shadow:none;transform:none}
html body .site-footer .social-link svg{width:18px;height:18px}
html body .site-footer .social-link span{display:inline}

/* ==== BRICODATO MÓVIL 20261115 ==== */
@media (max-width:900px){
  /* Índices (calculadoras, herramientas, guías, comparativas): rejilla legible */
  html body main .hub-grid.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  html body main .hub-grid.hub-grid>*:nth-child(n):nth-child(n){grid-column:span 1!important;grid-row:auto!important;min-width:0}
  html body main .hub-grid.hub-grid>.hub-card-featured:nth-child(n):nth-child(n):nth-child(n){grid-column:1/-1!important}
  html body main .hub-section-heading.hub-section-heading{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important}
  html body main .hub-section-heading.hub-section-heading>*{max-width:none!important;width:auto!important;margin:0!important;grid-column:auto!important}
  html body main .hub-card .hub-card-footer{position:static!important;margin-top:auto!important;padding-top:14px!important}
  /* La barra de búsqueda y filtros no se queda pegada ocupando media pantalla */
  html body main .hub-toolbar.hub-toolbar{position:static!important;top:auto!important}
}
@media (max-width:600px){
  html body main .hub-grid.hub-grid{grid-template-columns:minmax(0,1fr)!important}
  html body main .hub-grid.hub-grid>*:nth-child(n):nth-child(n):nth-child(n):nth-child(n){grid-column:1/-1!important}
  /* Tablas de comparativas: caben en la pantalla sin cortar columnas */
  main .table-wrap{overflow-x:visible!important}
  main table.data-table{min-width:0!important;width:100%!important;table-layout:fixed}
  main table.data-table :is(th,td){padding:10px 8px!important;font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
  main table.data-table :is(th,td):first-child{width:31%}
  /* Entradilla de comparativas sin caja */
  .compare-hero .lead{border:0!important;padding:0!important;background:none!important}
  /* Campos de formulario a 16 px: el iPhone no hace zoom al tocarlos */
  main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
  /* Etiquetas pequeñas legibles */
  :is(.hub-card-kicker,.section-kicker,.option-label,.live-label,.result-kicker,.guide-kicker,.product-kicker){font-size:11.5px!important;letter-spacing:.06em!important}
  /* Banderas de idioma con zona táctil cómoda */
  header a[hreflang]{min-height:36px;min-width:36px;display:inline-flex;align-items:center;justify-content:center}
  /* Barra inferior: iconos repartidos y sin tapar el final de la página */
  .mobile-dock{grid-template-columns:repeat(auto-fit,minmax(0,1fr))!important;justify-items:center}
  .mobile-dock>*{justify-content:center}
  body:has(.mobile-dock){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  /* Calculadoras: ayudas de los campos y etiquetas de resultados legibles */
  html body main .calc-field small{font-size:12.5px!important;line-height:1.45!important}
  html body main .calculator-panel-head span{font-size:11.5px!important}
  html body main .result-metrics span{font-size:11.5px!important;line-height:1.3!important}
  html body main .calc-result-card small{font-size:12.5px!important}
  html body main [data-filter]{font-size:13px!important;min-height:38px}
  html body main table th{font-size:12.5px!important}
  html body header a.bd-lang-link{min-height:36px!important;min-width:40px!important}
}

/* ==== BRICODATO ILUSTRACIONES 20261115 ==== */
html body main figure.bd-art{margin:0 0 26px!important;padding:0!important;border-radius:20px;overflow:hidden;background:#eef6fc;box-shadow:0 10px 30px rgba(12,53,78,.08);border:1px solid #dfe7ef;max-width:100%}
html body main figure.bd-art img{display:block;width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;border:0;border-radius:0;margin:0}
html body main .hub-content>.shell>figure.bd-art,html body main .content>figure.bd-art{margin-top:6px!important}
@media (max-width:600px){html body main figure.bd-art{border-radius:16px;margin-bottom:20px!important}html body main .section.reco-strip{padding-top:28px!important}}
html body main .hub-content>.shell>figure.bd-art{max-width:860px}
@media (max-width:600px){html body main table.appliance-table{min-width:0!important;width:100%!important;table-layout:fixed}html body main table.appliance-table :is(th,td){padding:9px 8px!important;font-size:13.5px!important;overflow-wrap:anywhere}html body main :has(>table.appliance-table){overflow-x:visible!important}}
