/* ====================================================================
   Reformas Alannita — single CSS file
   Sections: tokens · reset · base · header · footer · components ·
             page templates · landings · blog · obras · forms · utils
   ==================================================================== */

/* Self-hosted Manrope (latin subset, 4 weights) — Fontsource. Each ~14 KB. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #94a3b8;
  --line:    #e2e8f0;
  --bg:      #ffffff;
  --bg-soft: #f8fafc;
  --bg-paper:#fafaf7;

  --brand-red:        #e63946;
  --brand-red-hover:  #d62b3a;
  --brand-red-soft:   #fef2f2;
  --whatsapp:         #25D366;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max:        1140px;
  --max-narrow: 760px;
  --gutter:     clamp(20px, 5vw, 40px);
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;  --r-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, .06);
  --shadow-cta: 0 8px 20px rgba(230, 57, 70, .25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur:  .18s;
}

/* ---------- reset (minimal, modern) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; border-radius: 3px; }

/* ---------- typography base ---------- */
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
.lead { font-size: 1.13rem; color: var(--ink-700); max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* ---------- container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.site-header__logo img {
  height: 40px; width: auto; display: block;
}
.site-header__nav ul {
  display: flex; gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
.site-header__nav a {
  font-weight: 500; color: var(--ink-700);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}
.site-header__nav a:hover,
.site-header__nav .current-menu-item a { color: var(--brand-red); }
.site-header__cta { display: inline-flex; align-items: center; gap: 8px; }
.site-header__cta .btn { padding: 10px 18px; font-size: 0.9rem; }
.site-header__menu-toggle {
  display: none; border: 0; background: transparent; padding: 8px;
  color: var(--ink-900);
}
@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__menu-toggle { display: inline-flex; }
  .site-header.is-open .site-header__nav {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
  }
  .site-header.is-open .site-header__nav ul {
    flex-direction: column; gap: 16px;
  }
  .site-header__cta .btn-text { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  padding: 64px var(--gutter) 24px;
  margin-top: 96px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-900); margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a {
  font-size: 0.95rem; color: var(--ink-700);
  transition: color var(--dur);
}
.site-footer a:hover { color: var(--brand-red); }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__brand p { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-500); max-width: 30ch; }
.site-footer__bottom {
  max-width: var(--max); margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 0.85rem; color: var(--ink-500);
  justify-content: space-between;
}
.site-footer__bottom a { color: var(--ink-500); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font: 600 0.98rem/1 var(--font);
  text-decoration: none;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--dur), color var(--dur), transform var(--dur), border-color var(--dur);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-900); background: var(--bg-soft); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-500); margin: 0 0 16px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line); margin-left: 6px; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-red); }
.crumbs [aria-current="page"] { color: var(--ink-900); }

/* ---------- hero variants ---------- */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 64px);
}
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); }
.hero .lead { margin-top: 16px; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo {
  position: relative;
  min-height: clamp(360px, 56vh, 560px);
  display: grid; align-items: center;
  background: #1f2937 center/cover no-repeat;
  color: #fff;
}
.hero-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.65) 100%);
}
.hero-photo__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  width: 100%;
}
.hero-photo h1 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); max-width: 18ch; }
.hero-photo .lead { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 50ch; margin-top: 12px; }
.hero-photo .hero__actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.hero-photo .hero__actions .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- section base ---------- */
.section { padding: clamp(48px, 8vw, 80px) 0; }
.section-tight { padding: clamp(32px, 6vw, 56px) 0; }
.section-soft { background: var(--bg-soft); }
.section-paper { background: var(--bg-paper); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head .lead { margin-top: 12px; }

/* ---------- card grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 1100px) { .grid-services { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .grid-cobertura { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 8px;
}
.card:hover { border-color: var(--brand-red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--ink-900); font-size: 1.1rem; }
.card p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }
.card__cta {
  margin-top: auto; color: var(--brand-red); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 6px;
}

/* service card — outlined SVG on top */
.card--svc { padding: 28px 24px 24px; }
.card--svc__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: background var(--dur), color var(--dur);
}
.card--svc__icon svg { width: 32px; height: 32px; display: block; }
.card--svc:hover .card--svc__icon { background: var(--brand-red); color: #fff; }

/* municipality card — pin top + small meta line */
.card--muni { padding: 24px; }
.card--muni__pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-700);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all var(--dur);
}
.card--muni__pin svg { width: 20px; height: 20px; display: block; }
.card--muni:hover .card--muni__pin {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}
.card--muni__meta {
  font-size: 0.8rem !important;
  color: var(--ink-500) !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* card with image (blog, obra) */
.card--img { padding: 0; overflow: hidden; }
.card--img__media {
  aspect-ratio: 16 / 10;
  background: #f3f4f6 center/cover no-repeat;
}
.card--img__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card--img__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--ink-500);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.card--img__meta .eyebrow { font-size: 0.72rem; padding: 4px 10px; }
.card--img__title { font-size: 1.1rem; line-height: 1.35; }
.card--img__excerpt { color: var(--ink-500); font-size: 0.95rem; }

/* obra card with hover overlay */
.card--obra {
  position: relative; padding: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-lg);
}
.card--obra__bg {
  position: absolute; inset: 0;
  background: #d1d5db center/cover no-repeat;
  transition: transform .4s var(--ease);
}
.card--obra:hover .card--obra__bg { transform: scale(1.04); }
.card--obra__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.65) 0%, rgba(15,23,42,0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px; color: #fff;
}
.card--obra__badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  background: rgba(230, 57, 70, .92);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.card--obra__title { color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.card--obra__meta { font-size: 0.78rem; opacity: .85; margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- numbered list ---------- */
.numbered {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  counter-reset: ali;
}
.numbered li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem; line-height: 1.55;
  color: var(--ink-900);
}
.numbered li::before {
  content: counter(ali, decimal-leading-zero);
  counter-increment: ali;
  position: absolute; left: 0; top: 20px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--brand-red);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 36px 20px 0; position: relative;
  font-size: 1.05rem; font-weight: 600; color: var(--ink-900);
  transition: color var(--dur);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-red); }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px;
  background-image: linear-gradient(var(--ink-500), var(--ink-500)), linear-gradient(var(--ink-500), var(--ink-500));
  background-repeat: no-repeat; background-position: center;
  background-size: 14px 1.5px, 1.5px 14px;
  transition: background-size var(--dur), transform var(--dur);
}
.faq details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.faq__answer { padding: 0 0 20px; color: var(--ink-700); font-size: 0.98rem; line-height: 1.65; max-width: 64ch; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, #e63946 0%, #c5303d 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
}
.cta-strip__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
}
@media (max-width: 760px) { .cta-strip__inner { grid-template-columns: 1fr; } }
.cta-strip h2 { color: #fff; font-size: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem); }
.cta-strip p { color: rgba(255,255,255,.92); margin: 8px 0 0; max-width: 50ch; }
.cta-strip__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-primary { background: #fff; color: var(--brand-red); }
.cta-strip .btn-primary:hover { background: var(--bg-paper); }
.cta-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-strip .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-strip__hours { font-size: 0.85rem; color: rgba(255,255,255,.8); margin-top: 14px; }

/* ---------- trust strip (5 small cells) ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--bg);
  max-width: var(--max);
  margin: -56px auto 0;
  padding: 4px 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.trust__cell {
  padding: 28px clamp(16px, 2.5vw, 28px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust__cell:last-child { border-right: 0; }
.trust strong { display: block; color: var(--ink-900); font-size: 1.05rem; font-weight: 600; }
.trust span { display: block; font-size: 0.85rem; color: var(--ink-500); margin-top: 6px; line-height: 1.45; }
@media (max-width: 900px) {
  .trust { margin: -32px var(--gutter) 0; }
}
@media (max-width: 760px) {
  .trust { margin: 0 var(--gutter); border-radius: var(--r-md); box-shadow: none; }
  .trust__cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px var(--gutter); }
  .trust__cell:last-child { border-bottom: 0; }
}

/* ---------- testimonial / review ---------- */
.review {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.review__stars { display: flex; gap: 2px; color: #f59e0b; }
.review__stars svg { width: 18px; height: 18px; }
.review__text { color: var(--ink-700); font-size: 1.02rem; line-height: 1.65; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-red-soft);
  display: grid; place-items: center;
  font-weight: 700; color: var(--brand-red);
}
.review__name { font-weight: 600; color: var(--ink-900); font-size: 0.92rem; }
.review__source { font-size: 0.8rem; color: var(--ink-500); }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  background: #f3f4f6;
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-900); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg); color: var(--ink-900);
  font-family: var(--font); font-size: 1rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .req { color: var(--brand-red); }
.field .hint { font-size: 0.8rem; color: var(--ink-500); }

/* ---------- WhatsApp FAB (re-implement here so the standalone theme
   doesn't depend on the mu-plugin loading first) ---------- */
.alannita-wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff;
  padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  box-shadow: 0 6px 20px rgba(37,211,102,.35), 0 2px 6px rgba(0,0,0,.15);
  font: 600 0.95rem/1 var(--font);
  text-decoration: none;
  transition: transform var(--dur);
}
.alannita-wa-fab:hover { transform: translateY(-2px); }

/* ---------- utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ---------- entry-content (blog post body) ---------- */
.entry-body p { margin: 0 0 18px; }
.entry-body p:last-child { margin-bottom: 0; }
.entry-body h2 { margin: 36px 0 16px; }
.entry-body h3 { margin: 28px 0 12px; }
.entry-body ul, .entry-body ol { margin: 0 0 18px; padding-left: 1.5em; }
.entry-body li { margin-bottom: 6px; }
.entry-body a { color: var(--brand-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-body a:hover { text-decoration-thickness: 2px; }
.entry-body strong { color: var(--ink-900); font-weight: 600; }

/* ---------- /presupuesto/ form ---------- */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.quote-form__field { display: flex; flex-direction: column; gap: 6px; }
.quote-form__field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-900);
}
.quote-form__field label .req { color: var(--brand-red); }
.quote-form__field input[type=text],
.quote-form__field input[type=tel],
.quote-form__field input[type=email],
.quote-form__field input[type=number],
.quote-form__field select,
.quote-form__field textarea {
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-900);
  transition: border-color var(--dur);
}
.quote-form__field input:focus,
.quote-form__field select:focus,
.quote-form__field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}
.quote-form__field small { color: var(--ink-500); font-size: .8rem; }
.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .quote-form__row { grid-template-columns: 1fr; }
}
.quote-form__field--consent label.checkbox {
  display: flex;
  gap: 10px;
  font-weight: 400;
  font-size: .9rem;
  color: var(--ink-700);
  align-items: flex-start;
}
.quote-form__field--consent input[type=checkbox] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--brand-red);
}
.quote-form__submit {
  align-self: flex-start;
  margin-top: 8px;
}
.quote-form__status {
  margin: 12px 0 0;
  font-size: .95rem;
  font-weight: 500;
}
.quote-form__status.is-loading { color: var(--ink-500); }
.quote-form__status.is-success { color: #047857; }
.quote-form__status.is-error   { color: var(--brand-red); }

/* aside info on /presupuesto/ */
.quote-aside { display: flex; flex-direction: column; gap: 24px; }
.quote-aside__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-aside__card h3 { font-size: 1.1rem; margin: 0; color: var(--ink-900); }
.quote-aside__card p { font-size: .95rem; color: var(--ink-700); margin: 0; }
.quote-aside__bullets {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.quote-aside__bullets h4 {
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 14px;
}
.quote-aside__bullets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-aside__bullets li {
  font-size: .95rem;
  color: var(--ink-900);
  padding-left: 24px;
  position: relative;
}
.quote-aside__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--brand-red-soft);
  border: 2px solid var(--brand-red);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .container > .grid[style*="1.4fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* testimonios large card */
.review-card--lg { padding: 32px; }
.review-card--lg .review-card__text { font-size: 1.05rem; }
.review-card--lg .review-card__avatar { width: 48px; height: 48px; font-size: 1.2rem; }

/* HTML sitemap */
.html-sitemap { columns: 2; column-gap: 40px; }
@media (max-width: 760px) { .html-sitemap { columns: 1; } }
.html-sitemap__section { break-inside: avoid; margin-bottom: 32px; }
.html-sitemap__section h2 { font-size: 1.1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-red); }
.html-sitemap__section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.html-sitemap__section a { font-size: .92rem; color: var(--ink-700); text-decoration: none; transition: color var(--dur); }
.html-sitemap__section a:hover { color: var(--brand-red); }

/* 404 */
.fourohfour { text-align: center; padding: 80px 0; }
.fourohfour__big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--brand-red); line-height: 1; margin: 0 0 16px; }
.fourohfour h1 { font-size: 1.8rem; margin: 0 0 16px; }
.fourohfour p { color: var(--ink-500); margin: 0 0 32px; }
.fourohfour__suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.fourohfour__suggestions a { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; text-decoration: none; color: var(--ink-900); font-weight: 500; transition: all var(--dur); }
.fourohfour__suggestions a:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* ---------- responsive helpers ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- obra single: fact strip + antes/proceso/resultado ---------- */
.obra-fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 32px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.obra-fact-strip > div {
  padding: 18px clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--line);
}
.obra-fact-strip > div:last-child { border-right: 0; }
.obra-fact-strip strong {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.obra-fact-strip span {
  display: block;
  font-size: 1rem;
  color: var(--ink-900);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .obra-fact-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .obra-fact-strip > div:last-child { border-bottom: 0; }
}

.obra-gallery__h2 {
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  margin: 32px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.obra-gallery__h2::before {
  content: "";
  width: 6px;
  height: 24px;
  background: var(--brand-red);
  border-radius: 2px;
}
.obra-gallery__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* Antes/Resultado: lado a lado en 2 columnas en desktop, para que se lean
   como pareja antes-después si hay 2 imágenes. */
.obra-gallery__grid--antes,
.obra-gallery__grid--resultado {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.obra-gallery__fig {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.obra-gallery__fig img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--dur);
}
.obra-gallery__fig:hover img { transform: scale(1.02); }

.cta-strip--inline {
  margin-top: 48px;
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}

/* ---------- /servicios/ — card with image + icon ---------- */
.grid-services-img {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media (min-width: 1100px) { .grid-services-img { grid-template-columns: repeat(3, 1fr); } }

.card--svcimg {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.card--svcimg:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card--svcimg__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f4f6 center/cover no-repeat;
}
.card--svcimg__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.35) 100%);
}
.card--svcimg__icon {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.92);
  color: var(--brand-red);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.card--svcimg__icon svg { width: 30px; height: 30px; display: block; }
.card--svcimg__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card--svcimg__body h3 { color: var(--ink-900); font-size: 1.15rem; }
.card--svcimg__body p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }
.card--svcimg__body .card__cta { margin-top: auto; }

/* ---------- reviews (home) ---------- */
.reviews-stars { display:inline-flex; gap:2px; margin-right:8px; }
.reviews-stars__star { color:#f59e0b; font-size:1.1rem; line-height:1; }
.reviews-grid { margin-top:8px; }
.review-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.review-card:hover { border-color:var(--brand-red); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.review-card__head { display:flex; align-items:center; gap:12px; }
.review-card__avatar {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:var(--brand-red-soft); color:var(--brand-red);
  font-weight:700; font-size:1.05rem;
  flex-shrink:0;
}
.review-card__author { display:block; font-size:.95rem; color:var(--ink-900); }
.review-card__stars { display:block; color:#f59e0b; font-size:.9rem; letter-spacing:1px; margin-top:2px; }
.review-card__text { font-size:.95rem; line-height:1.55; color:var(--ink-700); margin:0; flex:1; }
.review-card__source { font-size:.75rem; color:var(--ink-500); margin:0; letter-spacing:.04em; text-transform:uppercase; }

/* ---------- home FAQ ---------- */
.home-faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0;
  position: relative; font-size: 1.05rem; font-weight: 600;
  line-height: 1.45; color: var(--ink-900);
  transition: color .15s ease;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background-image: linear-gradient(var(--ink-500), var(--ink-500)), linear-gradient(var(--ink-500), var(--ink-500));
  background-repeat: no-repeat; background-position: center;
  background-size: 14px 1.5px, 1.5px 14px;
  transition: transform .25s ease, background-size .2s ease;
}
.home-faq details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.home-faq summary:hover { color: var(--brand-red); }
.home-faq details > div {
  padding: 0 0 20px;
  max-width: 64ch;
  font-size: .98rem;
  color: var(--ink-700);
  line-height: 1.6;
}
.home-faq details > div strong { color: var(--ink-900); font-weight: 600; }

/* ---------- obras index intro ---------- */
.obras-intro { max-width: 760px; }
.obras-intro p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-700); margin-bottom: 16px; }
.obras-intro p strong { color: var(--ink-900); font-weight: 600; }
.obras-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 32px;
}
.obras-filters a {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  transition: all .15s ease;
}
.obras-filters a:hover, .obras-filters a.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
