/* 3presupuestos.com. One stylesheet, no web fonts, no JavaScript. */
:root {
  --brand: #0b5f5f;
  --brand-dark: #083f3f;
  --brand-soft: #eef6f5;
  --cta: #f39200;
  --cta-hover: #ffa726;
  --cta-ink: #1c1917;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde3e8;
  --bg: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, iframe { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--brand-dark); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h3 { font-size: 1.1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo img { display: block; width: 150px; height: auto; }
.main-nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 640px) {
  .header-row { gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
  .logo img { width: 128px; }
  .site-header .btn-cta { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 20px; font-size: .9rem; }
}

/* Buttons */
.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: .7em 1.4em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  transition: background .15s;
}
.btn-cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-lg { font-size: 1.1rem; padding: .85em 1.8em; }
/* CTA links that come from the old content ("Pedir presupuestos ahora"). */
.prose > a[href="/pedir-presupuestos"] {
  display: inline-block; margin: .4em 0 1.2em; background: var(--cta); color: var(--cta-ink);
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: .7em 1.4em;
}

/* Hero and bands */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; text-align: center; padding: 40px 0 44px; }
.hero-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.2; margin: 0 0 .3em; color: #fff; }
.hero-sub { margin: 0 auto 1.2em; max-width: 40em; opacity: .92; }
.hero-slim { padding: 22px 0 26px; }
.hero-slim .hero-title { font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); }
.hero-slim .hero-sub { margin-bottom: .9em; }
.hero-slim .btn-lg { font-size: 1rem; padding: .7em 1.5em; }
.band { padding: 40px 0; }
.band-soft { background: var(--brand-soft); }
.band-title { text-align: center; margin: 0 0 24px; }
.steps, .perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: center; }
.steps li, .perks li { background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.steps h3, .perks h3 { margin: .4em 0 .3em; }
.steps p, .perks p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; }
.cta-band { background: #fff7eb; border-top: 1px solid #f6dfb8; border-bottom: 1px solid #f6dfb8; text-align: center; padding: 36px 0; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0 auto 1em; max-width: 42em; }
.cta-band .cta-more { margin: 1em auto 0; font-size: .95rem; }
.cta-band-dark { background: var(--brand-dark); border: 0; color: #fff; }
.cta-band-dark h2 { color: #fff; }

/* Content */
.page { padding-top: 24px; padding-bottom: 40px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 16px 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs.wrap ol { padding-left: 0; padding-right: 0; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; }
.prose { max-width: 46em; }
.prose img { border-radius: var(--radius); margin: .6em 0; display: block; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose .alignleft { float: left; margin: .3em 1em .6em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 .6em 1em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 .8em; }
.request-body { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 4px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Lists of requests, links, posts and photos */
.requests { margin-top: 32px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.card h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: .2em 0 0; font-size: .95rem; }
.more-title { margin-top: 28px; }
.link-cols { columns: 3 220px; column-gap: 24px; padding: 0; list-style: none; margin: 0; font-size: .95rem; }
.link-cols li { break-inside: avoid; padding: 3px 0; }
.link-box { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--brand); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.post-card .thumb img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.post-card h3 { margin: 0 0 .2em; }
.post-card p { margin: .2em 0; }
@media (max-width: 520px) { .post-card { grid-template-columns: 96px 1fr; } .post-card .thumb img { width: 96px; height: 80px; } }
.photo-grid, .cat-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-grid a, .cat-grid a { display: block; text-decoration: none; color: var(--ink); }
.photo-grid img, .cat-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; background: var(--brand-soft); }
.photo-grid span, .cat-grid span { display: block; font-size: .95rem; margin-top: 6px; font-weight: 600; }
.cat-grid small { display: block; font-weight: 400; color: var(--muted); }
.photo-main { width: 100%; max-width: 1000px; border-radius: var(--radius); display: block; margin: 0 0 16px; }

/* Trust strip */
.media { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 34px; }
.media img { height: 34px; width: auto; filter: grayscale(1); opacity: .75; }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quotes blockquote { margin: 0; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); height: 100%; }
.quotes p { margin: 0 0 .6em; font-style: italic; }
.quotes footer { color: var(--muted); font-size: .9rem; }
.note { text-align: center; color: var(--muted); max-width: 48em; margin: 24px auto 0; font-size: .95rem; }

/* Footer */
.site-footer { background: #10282a; color: #d9e2e4; padding: 36px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid img { background: #fff; border-radius: 8px; padding: 8px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #2b4446; margin-top: 24px; padding-top: 16px; }
.legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-cta { transition: none; } }
