/* ============================================
   Reformas Sabadell — hoja de estilos principal
   Paleta: azul marino (confianza) + ámbar (obra/calidez)
   ============================================ */

:root {
  --navy-950: #0b1f33;
  --navy-900: #0f2a45;
  --navy-800: #163a5c;
  --navy-700: #1f4d76;
  --navy-600: #2c6295;
  --amber-600: #d9761f;
  --amber-500: #ee8f34;
  --amber-400: #f4a94f;
  --amber-050: #fef3e7;
  --bg: #f5f7fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --text: #16232f;
  --text-muted: #55697c;
  --border: #e1e6ed;
  --success: #227a52;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-tag: 3px 16px 3px 16px;
  --shadow-sm: 0 2px 10px rgba(15, 41, 71, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 41, 71, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 41, 71, 0.16);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: -4px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
@media (max-width: 720px) { section { padding: 48px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--navy-900); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-tag);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--amber-600); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-badge svg { width: 22px; height: 22px; stroke: var(--amber-400); }
.logo span.sub { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { display: flex; gap: 24px; align-items: center; }
.main-nav a.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  padding: 8px 2px;
  position: relative;
}
.main-nav a.nav-link:hover { color: var(--amber-600); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 10px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--navy-900);
  font-weight: 500;
}
.dropdown a:hover { background: var(--amber-050); color: var(--amber-600); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }
.phone-link svg { width: 18px; height: 18px; stroke: var(--amber-600); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy-900); }

@media (max-width: 940px) {
  .main-nav { position: fixed; inset: 70px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; margin-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .header-cta { flex-direction: column; align-items: stretch; margin-top: 12px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-700), var(--navy-950) 60%);
  color: #fff;
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,143,52,0.35), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.86); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.hero-badge svg { width: 20px; height: 20px; stroke: var(--amber-400); flex-shrink: 0; }

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-card h3 { color: var(--navy-900); font-size: 1.3rem; }
.hero-card .form-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; justify-content: space-between; gap: 24px; padding: 26px 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--navy-800); }
.trust-item svg { width: 22px; height: 22px; stroke: var(--amber-500); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--amber-050); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .icon-badge svg { width: 26px; height: 26px; stroke: var(--amber-600); }
.card h3 { font-size: 1.15rem; color: var(--navy-900); }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.card .card-link { font-weight: 700; font-size: 0.9rem; color: var(--amber-600); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Zones ---------- */
.zone-chip-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.zone-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-tag); padding: 9px 18px; font-size: 0.88rem; font-weight: 600; color: var(--navy-800); }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.process-step h3 { font-size: 1.05rem; color: var(--navy-900); }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Section variants ---------- */
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-950); color: #fff; }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: rgba(255,255,255,0.72); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--amber-500);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-muted); }

/* ---------- Contact form ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-900); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--amber-500); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.form-check input { width: auto; margin-top: 3px; }
.form-check a { color: var(--navy-800); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; margin-bottom: 20px; }
.alert-success { background: #e6f4ec; color: var(--success); border: 1px solid #b9e3cb; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c6c3; }

/* ---------- Page header (subpages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 60px 0 70px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 780px; }
.page-hero p.lead { color: rgba(255,255,255,0.82); max-width: 680px; font-size: 1.05rem; }

.content-block { max-width: 820px; }
.content-block h2 { color: var(--navy-900); font-size: 1.5rem; margin-top: 1.4em; }
.content-block h3 { color: var(--navy-900); font-size: 1.15rem; }
.content-block ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.content-block li { margin-bottom: 6px; color: var(--text-muted); }
.content-block p { color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.sidebar-card h3 { color: var(--navy-900); font-size: 1.1rem; }
.sidebar-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--amber-600); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--amber-500), var(--amber-600)); border-radius: var(--radius-lg); padding: 46px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: rgba(255,255,255,0.92); }
.cta-band .btn-navy { background: var(--navy-950); }

/* ---------- Also-serve list (footer/inline towns) ---------- */
.also-list { display: flex; flex-wrap: wrap; gap: 8px; }
.also-list span { background: var(--bg-alt); border-radius: var(--radius-tag); padding: 6px 14px; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--amber-400); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; padding: 22px 0; font-size: 0.8rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 20px 22px;
  z-index: 200;
  display: none;
}
.cookie-banner.visible { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
