/* Página de demostración de una empresa de remodelación (cerebro#253), con la skill «Diseño Blackmouth».
   Estilo: gris concreto, negro y amarillo de obra; letras anchas y fuertes. Negocio inventado. */
:root {
  --r-bg: #eceae6; --r-card: #ffffff; --r-ink: #16171a; --r-muted: #5c5f66; --r-line: #d6d3cd;
  --r-yellow: #f2b705; --r-dark: #16171a; --r-dark-ink: #f2f1ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --r-bg: #111214; --r-card: #1b1d20; --r-ink: #f2f1ee; --r-muted: #a7aab0; --r-line: #2d3035; --r-dark: #0a0b0c; color-scheme: dark; }
}
html[data-lang='es'] [lang='en']:not(html),
html[data-lang='en'] [lang='es']:not(html) { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--r-bg); color: var(--r-ink); font: 400 1rem/1.55 'Barlow', 'Helvetica Neue', Arial, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
.r-wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }

.demo-band { margin: 0; padding: 8px 16px; background: #0e0f11; color: #f2f2f0; font-size: .82rem; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-family: 'Barlow', Arial, sans-serif; }
.demo-band a { color: #f2f2f0; font-weight: 600; }

.r-top { background: var(--r-dark); color: var(--r-dark-ink); }
.r-top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.r-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.r-logo small { font-weight: 600; color: var(--r-yellow); font-size: .9rem; }
.r-logo-mark { width: 22px; height: 22px; background: var(--r-yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.r-lang { display: flex; border: 1px solid rgba(242,241,238,.4); border-radius: 6px; overflow: hidden; }
.r-lang button { background: transparent; color: inherit; border: 0; padding: 7px 12px; min-width: 44px; min-height: 36px; font: 600 .85rem 'Barlow', Arial, sans-serif; cursor: pointer; }
.r-lang button[aria-pressed='true'] { background: var(--r-yellow); color: #16171a; }

.r-hero { position: relative; background: var(--r-dark); color: var(--r-dark-ink); padding: 40px 0 56px; overflow: hidden; }
.r-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid rgba(242,183,5,.6); color: var(--r-yellow); border-radius: 6px; font-weight: 600; font-size: .9rem; }
.r-title { margin: 16px 0 0; font: 800 clamp(2.4rem, 9vw, 4.4rem)/.98 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; max-width: 15ch; }
.r-lead { margin: 16px 0 0; max-width: 34rem; color: #c9cbcf; font-size: 1.08rem; }
.r-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.r-cta-note { margin: 0; color: #a7aab0; font-size: .92rem; }
.r-wa { display: inline-flex; align-items: center; gap: 10px; background: var(--r-yellow); color: #16171a; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 6px; min-height: 44px; }
.r-wa:focus-visible, .r-lang button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.r-stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.r-stats li { display: flex; flex-direction: column; }
.r-stats b { font: 800 2rem/1 'Barlow Condensed', Arial, sans-serif; color: var(--r-yellow); }
.r-stats span { color: #a7aab0; font-size: .9rem; }
.r-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--r-yellow) 0 18px, #16171a 18px 36px); }

.r-sec { padding: 52px 0; }
.r-sec-dark { background: var(--r-dark); color: var(--r-dark-ink); }
.r-label { margin: 0; color: #b08300; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.r-sec-dark .r-label { color: var(--r-yellow); }
@media (prefers-color-scheme: dark) { .r-label { color: var(--r-yellow); } }
.r-sec h2 { margin: 6px 0 0; font: 800 clamp(1.9rem, 6.5vw, 2.8rem)/1.02 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }

/* Antes y después. Sin JavaScript: las dos imágenes, una al lado de la otra. */
.r-ba { position: relative; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-ba-img { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--r-card); }
.r-ba-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.r-ba-img figcaption { position: absolute; top: 10px; padding: 4px 10px; border-radius: 4px; background: rgba(22,23,26,.85); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.r-ba-before figcaption { left: 10px; }
.r-ba-after figcaption { right: 10px; background: var(--r-yellow); color: #16171a; }
.r-ba-line, .r-ba-range { display: none; }
/* Con JavaScript: una sobre la otra y se desliza. */
.r-ba.r-ba-on { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; --pos: 50%; }
.r-ba-on .r-ba-img { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.r-ba-on .r-ba-after { clip-path: inset(0 0 0 var(--pos)); }
.r-ba-on .r-ba-line { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--r-yellow); pointer-events: none; }
.r-ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--r-yellow); color: #16171a; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.r-ba-on .r-ba-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.r-ba-on .r-ba-range:focus-visible + * , .r-ba-on:focus-within { outline: 3px solid var(--r-yellow); outline-offset: 3px; }
.r-ba-hint { margin: 12px 0 0; font-weight: 600; }
.r-note { display: block; font-weight: 400; color: var(--r-muted); font-size: .85rem; margin-top: 4px; }

.r-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.r-steps li { border-top: 3px solid var(--r-yellow); padding-top: 14px; }
.r-n { font: 800 2.2rem/1 'Barlow Condensed', Arial, sans-serif; color: var(--r-yellow); }
.r-steps h3 { margin: 8px 0 0; font: 700 1.3rem/1.1 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
.r-steps p { margin: 6px 0 0; color: #c9cbcf; }

.r-services { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.r-services li { background: var(--r-card); border: 1px solid var(--r-line); border-radius: 10px; padding: 18px; border-left: 5px solid var(--r-yellow); }
.r-services h3 { margin: 0; font: 700 1.3rem/1.1 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
.r-services p { margin: 6px 0 0; color: var(--r-muted); }
.r-area { margin: 20px 0 0; color: var(--r-muted); }
.r-area b { color: var(--r-ink); }

.r-pitch { background: #0e0f11; color: #f2f2f0; padding: 48px 0 56px; }
.r-pitch-label { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9ea2a8; }
.r-pitch h2 { margin: 6px 0 0; font: 800 clamp(1.8rem, 5.5vw, 2.4rem)/1.05 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
.r-pitch p { color: #d4d6da; max-width: 36rem; }
.r-pitch .r-wa { background: #0f7a3f; color: #fff; }
.r-back a { color: #d4d6da; font-size: .9rem; }

@media (max-width: 760px) {
  .r-steps { grid-template-columns: 1fr 1fr; }
  .r-services { grid-template-columns: 1fr; }
  .r-ba:not(.r-ba-on) { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .r-steps { grid-template-columns: 1fr; } }

/* Fotos de muestra (hechas con IA, cerebro#253). */
.r-ba-img img { object-fit: cover; }
.r-obra { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; border-radius: 10px; margin-top: 22px; }
@media (max-width: 760px) { .r-obra { aspect-ratio: 16 / 9; } }

/* Portada en computador: foto de una obra terminada a la derecha (en celular no se muestra ni se descarga). */
.r-hero-art { display: none; }
@media (min-width: 900px) {
  .r-hero .r-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 48px; align-items: center; }
  .r-hero .r-wrap > :not(.r-hero-art) { grid-column: 1; }
  .r-hero .r-badge { justify-self: start; }
  .r-hero-art { display: block; grid-column: 2; grid-row: 1 / span 5; position: relative; margin: 0; }
  .r-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
  .r-hero-art figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--r-yellow); color: #16171a; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 6px; }
}
