/* ═══════════════════════════════════════════════════════
   reparhogar.css  ·  Reparhogar Barcelona
   Colores: --rh-blue #0d4f8c · --rh-blue-dk #083468 · --rh-accent #e8a800
   Fuente: system-ui (nativa del dispositivo)
   ═══════════════════════════════════════════════════════ */

/* ─── 1. RESET MÍNIMO ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.55; color: #212529;
  background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── 2. TOKENS ────────────────────────────────────── */
:root {
  --rh-blue:    #0d4f8c;
  --rh-blue-dk: #083468;
  --rh-blue-lt: #1565a8;
  --rh-accent:  #e8a800;
  --rh-accent-d:#c89300;
  --rh-green:   #198754;
  --rh-wa:      #25d366;
  --rh-wa-d:    #1cb954;
  --rh-text:    #1a1a2e;
  --rh-muted:   #666;
  --rh-border:  #dde2e8;
  --rh-bg-alt:  #f8f9fa;
  --rh-radius:  .5rem;
  --rh-shadow:  0 2px 8px rgba(0,0,0,.09);
  --rh-shadow-h:0 8px 24px rgba(0,0,0,.13);
}

/* ─── 3. SKIP LINK ─────────────────────────────────── */
.rh-skip {
  position: absolute; top: -100%; left: 1rem;
  background: var(--rh-blue); color: #fff;
  padding: .4rem 1rem; border-radius: .3rem;
  font-weight: 700; z-index: 9999; transition: top .15s;
}
.rh-skip:focus { top: .5rem; }

/* ─── 4. CONTENEDOR ────────────────────────────────── */
.rh-container {
  width: 100%; max-width: 1200px;
  margin-inline: auto; padding-inline: 1.25rem;
}

/* ─── 5. CABECERA ──────────────────────────────────── */
.rh-header {
  background: var(--rh-blue-dk);
  padding: .55rem 1.25rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.rh-brand {
  font-weight: 700; font-size: 1.1rem; color: #fff;
  letter-spacing: -.01em; flex-shrink: 0; text-decoration: none;
}
.rh-brand span { color: var(--rh-accent); }
.rh-brand em   { font-style: normal; opacity: .7; font-size: .85em; margin-left: .2em; }

.rh-nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.rh-nav a {
  color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 500;
  padding: .3rem .55rem; border-radius: .3rem;
  transition: background .15s, color .15s; white-space: nowrap;
}
.rh-nav a:hover,
.rh-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }
.rh-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--rh-accent); padding-bottom: .18rem;
}

.rh-header-right { display: flex; align-items: center; gap: .5rem; }

.rh-tel-btn {
  background: var(--rh-accent); color: #000; font-weight: 700;
  padding: .38rem 1rem; border-radius: 50px; text-decoration: none;
  font-size: .92rem; white-space: nowrap; transition: background .18s;
  display: inline-flex; align-items: center; gap: .35rem;
}
.rh-tel-btn:hover { background: var(--rh-accent-d); }

.rh-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: .35rem;
}
.rh-burger span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .25s, opacity .25s;
}

/* ─── 6. BREADCRUMB ────────────────────────────────── */
.rh-breadcrumb {
  background: #f0f4f8; border-bottom: 1px solid var(--rh-border);
  padding: .45rem 1.25rem; font-size: .78rem; color: var(--rh-muted);
}
.rh-breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .2rem; list-style: none;
  align-items: center; max-width: 1200px; margin-inline: auto;
}
.rh-breadcrumb li + li::before { content: "›"; margin-right: .2rem; color: #aaa; }
.rh-breadcrumb a { color: var(--rh-blue); }
.rh-breadcrumb a:hover { text-decoration: underline; }
.rh-breadcrumb [aria-current="page"] { color: #444; font-weight: 500; }

/* ─── 7. HERO HOME ─────────────────────────────────── */
.rh-hero {
  background: linear-gradient(140deg, var(--rh-blue-dk) 0%, var(--rh-blue) 100%);
  color: #fff; padding: 2.75rem 1.25rem 2.5rem; text-align: center;
}
.rh-eyebrow {
  font-size: .82rem; color: var(--rh-accent); font-weight: 600;
  margin-bottom: .7rem; letter-spacing: .02em;
}
.rh-hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 800;
  line-height: 1.2; margin-bottom: .8rem;
}
.rh-hero h1 em { color: var(--rh-accent); font-style: normal; }
.rh-lead {
  font-size: 1.03rem; opacity: .88; max-width: 600px;
  margin: 0 auto 1.5rem; line-height: 1.6;
}

/* ─── 8. HERO INTERIOR ─────────────────────────────── */
.rh-hero-int {
  background: linear-gradient(140deg, var(--rh-blue-dk) 0%, var(--rh-blue) 100%);
  color: #fff; padding: 2rem 1.25rem 1.75rem;
}
.rh-hero-int .rh-container { display: flex; flex-direction: column; gap: .6rem; }
.rh-hero-int h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 800; line-height: 1.25;
}
.rh-hero-int h1 em { color: var(--rh-accent); font-style: normal; }
.rh-hero-int .rh-lead { font-size: .97rem; opacity: .87; max-width: none; margin: 0; }

/* ─── 9. CTA BOTONES ───────────────────────────────── */
.rh-ctas {
  display: flex; gap: .75rem;
  justify-content: center; flex-wrap: wrap;
}
.btn-llamar {
  background: var(--rh-accent); color: #000; font-weight: 700;
  padding: .7rem 1.6rem; border-radius: 50px; text-decoration: none;
  font-size: 1rem; transition: background .18s, transform .15s;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.btn-llamar:hover { background: var(--rh-accent-d); transform: translateY(-2px); }
.btn-wa {
  background: var(--rh-wa); color: #fff; font-weight: 600;
  padding: .7rem 1.6rem; border-radius: 50px; text-decoration: none;
  font-size: 1rem; transition: background .18s, transform .15s;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.btn-wa:hover { background: var(--rh-wa-d); transform: translateY(-2px); }

/* ─── 10. TRUST BAR ────────────────────────────────── */
.rh-trust {
  background: #f0f4f8; border-bottom: 1px solid #d8e1ea; padding: .65rem 1rem;
}
.rh-trust ul {
  display: flex; flex-wrap: wrap; gap: .3rem 1.25rem;
  justify-content: center; font-size: .83rem; color: #334;
}
.rh-trust li::before { content: "✓ "; color: var(--rh-green); font-weight: 700; }

/* ─── 11. TÍTULOS SECCIÓN ──────────────────────────── */
.rh-section-title {
  text-align: center; font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700; color: var(--rh-text); margin-bottom: .5rem;
}
.rh-section-sub {
  text-align: center; font-size: .88rem; color: var(--rh-muted);
  max-width: 620px; margin: 0 auto 1.75rem;
}

/* ─── 12. GRID SERVICIOS ───────────────────────────── */
.rh-servicios { padding: 2.25rem 0; }
.rh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}

/* ─── 13. CARDS ────────────────────────────────────── */
.rh-card {
  border: 1px solid var(--rh-border); border-radius: var(--rh-radius);
  background: #fff; overflow: hidden; display: flex;
  flex-direction: column; box-shadow: var(--rh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.rh-card:hover { transform: translateY(-4px); box-shadow: var(--rh-shadow-h); }
.rh-card-img-wrap { display: block; overflow: hidden; }
.rh-card-img {
  width: 100%; height: 175px; object-fit: cover;
  display: block; transition: transform .35s;
}
.rh-card:hover .rh-card-img { transform: scale(1.04); }
.rh-card-body {
  padding: .75rem .9rem 1rem;
  display: flex; flex-direction: column; flex: 1; gap: .3rem;
}
.rh-card-title {
  font-size: .85rem; font-weight: 700; color: var(--rh-blue);
  text-transform: uppercase; letter-spacing: .04em; margin: 0;
}
.rh-card-desc { font-size: .82rem; color: #555; line-height: 1.45; flex: 1; margin: 0; }
.rh-card-btn {
  display: inline-block; margin-top: .5rem; align-self: flex-start;
  background: var(--rh-blue); color: #fff; font-size: .78rem;
  font-weight: 600; padding: .32rem .9rem; border-radius: 50px;
  text-decoration: none; transition: background .15s, transform .15s;
  border: 2px solid var(--rh-blue);
}
.rh-card-btn:hover {
  background: var(--rh-blue-lt); border-color: var(--rh-blue-lt);
  transform: translateY(-1px);
}

/* ─── 14. ZONA SERVICIO ────────────────────────────── */
.rh-zona {
  background: var(--rh-blue); color: #fff;
  padding: 1.6rem 1.25rem; text-align: center;
}
.rh-zona h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .55rem; }
.rh-zona p  { opacity: .9; margin: 0; font-size: .94rem; line-height: 1.8; }
.rh-zona strong { color: var(--rh-accent); font-weight: 700; }

/* ─── 15. POR QUÉ ELEGIRNOS ────────────────────────── */
.rh-porque { padding: 2.25rem 0; background: var(--rh-bg-alt); }
.rh-porque .rh-section-title { margin-bottom: 1.5rem; }
.rh-porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem; text-align: center;
}
.rh-porque-item { padding: 1rem .75rem; }
.porque-icon { font-size: 1.9rem; margin-bottom: .4rem; line-height: 1; }
.porque-title { font-size: .9rem; font-weight: 700; color: var(--rh-blue); margin-bottom: .2rem; }
.porque-desc  { font-size: .8rem; color: var(--rh-muted); margin: 0; line-height: 1.5; }

/* ─── 16. TESTIMONIOS ──────────────────────────────── */
.rh-testimonios { padding: 2.25rem 0; background: #fff; }
.rh-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem; margin-bottom: 1.25rem;
}
.rh-test-card {
  border: 1px solid var(--rh-border); border-radius: var(--rh-radius);
  padding: 1.1rem 1.1rem 1rem; background: var(--rh-bg-alt);
  display: flex; flex-direction: column; gap: .65rem;
}
.rh-test-stars { color: var(--rh-accent); font-size: .95rem; letter-spacing: 2px; }
.rh-test-card blockquote p {
  font-size: .84rem; color: #444; line-height: 1.6; font-style: italic; margin: 0;
}
.rh-test-card figcaption { display: flex; flex-direction: column; gap: .1rem; }
.rh-test-card figcaption strong { font-size: .82rem; font-weight: 700; color: var(--rh-blue); }
.rh-test-card figcaption span  { font-size: .78rem; color: var(--rh-muted); }
.rh-test-more { text-align: center; font-size: .85rem; }
.rh-test-more a {
  color: var(--rh-blue); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.rh-test-more a:hover { color: var(--rh-blue-lt); }

/* ─── 17. FAQ ───────────────────────────────────────── */
.rh-faq {
  padding: 2rem 0; background: var(--rh-bg-alt);
  border-top: 1px solid var(--rh-border);
}
.rh-faq-inner { max-width: 760px; }
.rh-faq .rh-section-title { margin-bottom: 1.25rem; }
.rh-faq-list { display: flex; flex-direction: column; gap: .35rem; }
.rh-faq-item {
  border: 1px solid var(--rh-border); border-radius: var(--rh-radius);
  background: #fff; overflow: hidden;
}
.rh-faq-btn {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; gap: .75rem; padding: .75rem 1rem;
  background: none; border: none; cursor: pointer;
  font-size: .92rem; font-weight: 600; color: var(--rh-blue);
  text-align: left; transition: background .15s;
}
.rh-faq-btn:hover { background: rgba(13,79,140,.05); }
.rh-faq-btn span {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--rh-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; font-weight: 300;
}
.rh-faq-btn[aria-expanded="true"] span { background: var(--rh-accent); color: #000; }
.rh-faq-list dd {
  padding: .5rem 1rem .8rem; font-size: .84rem;
  color: #444; line-height: 1.65;
  border-top: 1px solid var(--rh-border);
}

/* ─── 18. CONTENIDO INTERIOR 2 COLUMNAS ────────────── */
.rh-interior { padding: 2rem 0 2.5rem; }
.rh-interior-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem; align-items: start;
}

/* Prose */
.rh-prose h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--rh-blue);
  margin: 1.5rem 0 .55rem;
  padding-bottom: .3rem; border-bottom: 2px solid var(--rh-border);
}
.rh-prose h2:first-child { margin-top: 0; }
.rh-prose h3 {
  font-size: 1rem; font-weight: 700; color: var(--rh-text); margin: 1.1rem 0 .35rem;
}
.rh-prose p { font-size: .95rem; color: #333; line-height: 1.7; margin-bottom: .8rem; }
.rh-prose ul, .rh-prose ol { padding-left: 1.4rem; margin-bottom: .8rem; }
.rh-prose ul { list-style: disc; }
.rh-prose ol { list-style: decimal; }
.rh-prose li { font-size: .93rem; color: #333; line-height: 1.65; margin-bottom: .3rem; }
.rh-prose strong { color: var(--rh-text); font-weight: 700; }
.rh-prose a { color: var(--rh-blue); text-decoration: underline; text-underline-offset: 3px; }
.rh-prose a:hover { color: var(--rh-blue-lt); }

.rh-highlight {
  background: #fffbea; border-left: 4px solid var(--rh-accent);
  border-radius: 0 var(--rh-radius) var(--rh-radius) 0;
  padding: .85rem 1rem; margin: 1rem 0 1.2rem;
  font-size: .9rem; color: #333; line-height: 1.6;
}
.rh-highlight strong { color: #7a5000; }

.rh-prose-img {
  width: 100%; border-radius: var(--rh-radius);
  margin: 1.25rem 0; box-shadow: var(--rh-shadow);
}

/* ─── 19. SIDEBAR ──────────────────────────────────── */
.rh-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 70px;
}
.rh-sidebar-box {
  border: 1px solid var(--rh-border); border-radius: var(--rh-radius); overflow: hidden;
}
.rh-sidebar-box-head {
  background: var(--rh-blue); color: #fff;
  padding: .6rem 1rem; font-size: .85rem; font-weight: 700;
}
.rh-sidebar-box-body {
  padding: .9rem 1rem 1rem; background: #fff;
  display: flex; flex-direction: column; gap: .6rem;
}
.rh-sidebar-box-body p { font-size: .82rem; color: #555; line-height: 1.5; margin: 0; }
.rh-sidebar-box-body .btn-llamar,
.rh-sidebar-box-body .btn-wa { justify-content: center; font-size: .88rem; padding: .6rem 1rem; }

.rh-sidebar-servicios li { border-bottom: 1px solid var(--rh-border); }
.rh-sidebar-servicios li:last-child { border-bottom: none; }
.rh-sidebar-servicios a {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem;
  font-size: .82rem; color: var(--rh-blue); font-weight: 500;
  transition: background .15s; border-radius: .25rem;
}
.rh-sidebar-servicios a:hover { background: var(--rh-bg-alt); }
.rh-sidebar-servicios a[aria-current="page"] {
  font-weight: 700; color: var(--rh-blue-dk); background: var(--rh-bg-alt);
}

/* ─── 20. CTA FINAL ────────────────────────────────── */
.rh-cta-final {
  background: linear-gradient(140deg, #0d1b2e 0%, var(--rh-blue) 100%);
  color: #fff; text-align: center; padding: 2.5rem 1.25rem 2.25rem;
}
.rh-cta-final h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem); font-weight: 700; margin-bottom: .45rem;
}
.rh-horario { opacity: .78; font-size: .9rem; margin-bottom: 1.25rem; }
.rh-cta-note { margin-top: 1rem; font-size: .78rem; opacity: .65; }

/* ─── 21. SEO EXPANDIBLE ───────────────────────────── */
.rh-seo { padding: 1.25rem 0 .75rem; border-top: 1px solid var(--rh-border); }
.rh-seo-summary {
  cursor: pointer; padding: .5rem 0; font-size: .92rem;
  font-weight: 600; color: var(--rh-blue); user-select: none;
  list-style: none; display: flex; align-items: center; gap: .4rem;
}
.rh-seo-summary::-webkit-details-marker { display: none; }
.rh-seo-summary::before { content: "▶"; font-size: .65em; transition: transform .2s; }
details[open] .rh-seo-summary::before { transform: rotate(90deg); }
.rh-seo-body { padding: .6rem 0; font-size: .84rem; color: #444; line-height: 1.65; }
.rh-seo-body h3 {
  font-size: .96rem; font-weight: 700; margin-top: .9rem;
  margin-bottom: .3rem; color: var(--rh-blue);
}
.rh-seo-body p { margin-bottom: .5rem; }
.rh-seo-body strong { color: var(--rh-text); font-weight: 700; }

/* ─── 22. FOOTER ───────────────────────────────────── */
.rh-footer {
  padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--rh-border);
  text-align: center; font-size: .82rem; color: #666; background: #fff;
}
.rh-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .1rem; line-height: 2; }
.rh-footer a { color: #666; }
.rh-footer a:hover { color: var(--rh-blue); text-decoration: underline; }

/* ─── 23. WHATSAPP FLOTANTE ────────────────────────── */
.rh-wa-float {
  position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 999;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.28));
  transition: transform .2s; text-decoration: none;
}
.rh-wa-float:hover { transform: scale(1.08); }
.rh-wa-float img { width: 58px; height: 58px; display: block; }

/* ─── 24. ACCESIBILIDAD ────────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--rh-accent); outline-offset: 3px; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── 25. RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .rh-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--rh-blue-dk); flex-direction: column;
    align-items: flex-start; padding: .5rem 1.25rem 1rem; gap: .1rem;
    border-top: 1px solid rgba(255,255,255,.12); z-index: 99;
  }
  .rh-nav.is-open { display: flex; }
  .rh-nav a { font-size: .9rem; padding: .45rem .4rem; width: 100%; }
  .rh-burger { display: flex; }
  .rh-interior-layout { grid-template-columns: 1fr; }
  .rh-sidebar { position: static; }
}
@media (max-width: 600px) {
  .rh-hero     { padding: 2rem 1rem 1.75rem; }
  .rh-hero-int { padding: 1.5rem 1rem 1.25rem; }
  .rh-tel-btn  { font-size: .85rem; padding: .35rem .85rem; }
  .rh-card-img { height: 148px; }
  .rh-ctas     { flex-direction: column; align-items: center; }
  .btn-llamar, .btn-wa { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─── 26. PRINT ────────────────────────────────────── */
@media print {
  .rh-header, .rh-skip, .rh-burger, .rh-wa-float,
  .rh-cta-final, .btn-llamar, .btn-wa, .rh-sidebar { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .rh-interior-layout { grid-template-columns: 1fr; }
}

/* ─── Contacto / Formulario — bloques de contacto ──────── */
.rh-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1.25rem 0;
}
.rh-contact-card {
  border-radius: var(--rh-radius); padding: 1.1rem;
  text-align: center;
}
.rh-contact-card--tel {
  border: 2px solid var(--rh-accent); background: #fffbea;
}
.rh-contact-card--wa {
  border: 2px solid var(--rh-wa); background: #f0fff4;
}
.rh-contact-card__icon { font-size: 1.9rem; margin-bottom: .3rem; }
.rh-contact-card__label {
  font-weight: 700; font-size: .95rem; margin-bottom: .35rem;
}
.rh-contact-card__label--tel { color: var(--rh-blue); }
.rh-contact-card__label--wa  { color: #1a7a3c; }
.rh-contact-card__link {
  font-size: 1.2rem; font-weight: 800; text-decoration: none;
}
.rh-contact-card__link--tel { color: var(--rh-blue-dk); }
.rh-contact-card__link--wa  { color: #1a7a3c; }
.rh-ctas--left { justify-content: flex-start; margin-top: .9rem; }
.rh-sidebar-note {
  font-size: .78rem; color: var(--rh-muted);
  margin-top: .3rem; text-align: center;
}
.rh-maps-btn { align-self: stretch; text-align: center; }
.rh-mt-0  { margin-top: 0; }
.rh-mt-sm { margin-top: .5rem; }
