/* Reformas Bastida — demo OnaWeb */

/* Tokens
   Para adaptar la demo a otro negocio se cambian estos valores y las fotos. */
:root {
  --ink: #16202B;
  --slate: #2C3A48;
  --muted: #667586;
  --concrete: #E9E7E2;
  --paper: #FFFFFF;
  --signal: #E39A17;
  --signal-dark: #B87A0C;
  --line: rgba(22, 32, 43, .14);
  --line-dark: rgba(233, 231, 226, .18);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(60px, 8.5vw, 112px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0; font-family: var(--display); line-height: 1.03;
  font-variation-settings: "wdth" 88, "opsz" 48;
}

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
[id] { scroll-margin-top: 82px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { left: 16px; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--signal-dark); outline-offset: 3px; border-radius: 4px;
}

.label {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--signal-dark); margin-bottom: 14px;
}
.h2 { font-size: clamp(2rem, 4.3vw, 3.2rem); font-weight: 700; letter-spacing: -.018em; max-width: 20ch; }
.lede { max-width: 52ch; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); margin-top: 16px; }
.head { margin-bottom: clamp(28px, 4vw, 44px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 6px; border: 1.5px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--slate); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Cabecera */
.header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .3s ease, box-shadow .3s ease; }
.header.is-stuck { background: rgba(233, 231, 226, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 8px; }
.brand__name {
  font-family: var(--display); font-variation-settings: "wdth" 84, "opsz" 16;
  font-weight: 700; font-size: 1.06rem; line-height: 1.1; letter-spacing: -.01em;
}
.brand__name span {
  display: block; font-family: var(--body); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--signal-dark); }
.header__cta { padding: 12px 20px; font-size: .9rem; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; background: transparent; place-items: center;
}
.burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.mobile-menu { display: none; background: rgba(233, 231, 226, .98); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-variation-settings: "wdth" 86, "opsz" 24;
  font-weight: 700; font-size: 1.32rem; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* Portada */
.hero { padding-top: clamp(102px, 14vw, 146px); padding-bottom: clamp(38px, 6vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.026em; max-width: 15ch; font-variation-settings: "wdth" 92, "opsz" 96; }
.hero h1 em { font-style: normal; color: var(--signal-dark); }
.hero__sub { margin-top: 22px; max-width: 44ch; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.18rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__figure { position: relative; }
.hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #D8D5CE; }

.flag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.flag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.flag.is-open .flag__dot { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .16); }

/* Tira de datos */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__item { padding: 22px 24px 22px 0; }
.strip__item + .strip__item { border-left: 1px solid var(--line); padding-left: 26px; }
.strip__k { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--signal-dark); margin-bottom: 6px; }
.strip__v { font-family: var(--display); font-variation-settings: "wdth" 86, "opsz" 20; font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.strip__v small { display: block; font-family: var(--body); font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: 3px; }

/* Calculadora */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.calc__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.calc__types { border: 0; margin: 0 0 30px; padding: 0; }
.calc__types legend, .calc__size label {
  padding: 0; font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block;
}
.calc__size label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__size output {
  font-family: var(--display); font-variation-settings: "wdth" 86, "opsz" 20;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.calc__options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

input[type="range"] {
  width: 100%; height: 34px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #D8D5CE; }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #D8D5CE; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--signal); border: 3px solid var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); background: var(--signal);
}
.calc__hint { margin-top: 6px; font-size: .88rem; color: var(--muted); }

.calc__result { background: var(--ink); color: #DCE3EA; border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.calc__k { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); }
.calc__figures { margin: 18px 0 0; display: grid; gap: 18px; }
.calc__figures dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #94A3B1; }
.calc__figures dd {
  margin: 5px 0 0; color: #fff; line-height: 1.12;
  font-family: var(--display); font-variation-settings: "wdth" 84, "opsz" 40;
  font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em;
}
.calc__cta { width: 100%; margin-top: 24px; background: var(--signal); color: var(--ink); }
.calc__cta:hover { background: #F0AC33; }
.calc__note { margin-top: 14px; font-size: .84rem; color: #94A3B1; }

/* Servicios */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(30px, 4vw, 46px); }
.card { background: var(--paper); padding: clamp(24px, 3vw, 34px); transition: background-color .2s ease; }
.card:hover { background: #FBFAF8; }
.card__icon { color: var(--signal-dark); margin-bottom: 14px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; font-variation-settings: "wdth" 86, "opsz" 20; }
.card p { color: var(--muted); font-size: .96rem; }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 34px);
  padding: 26px 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--display); font-variation-settings: "wdth" 82, "opsz" 40;
  font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1;
  color: var(--signal); min-width: 2.4ch;
}
.step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; font-variation-settings: "wdth" 86, "opsz" 24; }
.step p { color: var(--muted); max-width: 62ch; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #D8D5CE; grid-column: span 2; aspect-ratio: 4 / 3; }
.shot:nth-child(1), .shot:nth-child(6) { grid-column: span 3; aspect-ratio: 16 / 10; }
.shot__ph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 9px; padding: 14px;
  color: var(--muted); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: center;
}
.shot__ph svg { width: 26px; height: 26px; opacity: .5; }
.shot__img {
  position: absolute; inset: 0; z-index: 2;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.shot:hover .shot__img { transform: scale(1.04); }

/* Fotos
   Sustituir por las fotos reales del negocio manteniendo los nombres,
   o cambiar aquí las rutas. Si un archivo falta, queda el marcador. */
.shot__img--hero { background-image: url("img/salon.jpg"); }
.shot__img--1 { background-image: url("img/cocina.jpg"); }
.shot__img--2 { background-image: url("img/bano.jpg"); }
.shot__img--3 { background-image: url("img/interior.jpg"); }
.shot__img--4 { background-image: url("img/obra.jpg"); }
.shot__img--5 { background-image: url("img/detalle.jpg"); }
.shot__img--6 { background-image: url("img/equipo.jpg"); }

/* Reseñas */
.reviews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 4vw, 54px); align-items: start; }
.score { display: flex; align-items: baseline; gap: 16px; }
.score__n {
  font-family: var(--display); font-variation-settings: "wdth" 82, "opsz" 96;
  font-weight: 800; font-size: clamp(3.8rem, 10vw, 6.4rem); line-height: .85;
  color: var(--signal-dark); letter-spacing: -.04em;
}
.score__meta { display: flex; flex-direction: column; gap: 3px; }
.score__stars { color: var(--signal-dark); font-size: 1.2rem; letter-spacing: .08em; }
.score__count { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.themes { display: grid; gap: 14px; }
.theme { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.theme h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; font-variation-settings: "wdth" 86, "opsz" 18; }
.theme p { color: var(--muted); font-size: .95rem; }

/* Contacto */
.place { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 4vw, 52px); align-items: start; }
.map-block { display: grid; gap: 14px; justify-items: start; }
.map { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.info dl { margin: 0; }
.info dt { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--signal-dark); margin-bottom: 6px; }
.info dd { margin: 0 0 22px; font-size: 1.02rem; }
.info dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.info dd a:hover { color: var(--signal-dark); border-color: var(--signal-dark); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: var(--signal-dark); font-weight: 600; }
.hours em { font-style: normal; }

/* Cierre */
.closer { background: var(--ink); color: #DCE3EA; border-radius: 16px; padding: clamp(34px, 5vw, 66px); text-align: center; }
.closer h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.022em; max-width: none; }
.closer p { color: #94A3B1; max-width: 46ch; margin: 16px auto 0; }
.closer__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.closer .btn--primary { background: var(--signal); color: var(--ink); }
.closer .btn--primary:hover { background: #F0AC33; }
.closer .btn--ghost { border-color: var(--line-dark); color: #fff; }
.closer .btn--ghost:hover { border-color: #fff; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 38px; color: var(--muted); font-size: .92rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--signal-dark); }
.footer__legal { font-size: .8rem; margin-top: 18px; }
.footer__legal a { font-weight: 600; }

/* Barra de acciones en móvil */
.actionbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(233, 231, 226, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr; gap: 9px;
}
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 6px; border-radius: 6px; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink); border: 1.5px solid var(--line);
}
.actionbar a.is-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.actionbar svg { width: 17px; height: 17px; }

/* Entrada al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero h1 { max-width: none; }
  .calc { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .place { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .actionbar { display: grid; }
  body { padding-bottom: 78px; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { padding: 18px 0; border-top: 1px solid var(--line); }
  .strip__item:first-child { border-top: 0; }
  .strip__item + .strip__item { border-left: 0; padding-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot { grid-column: span 1; }
  .shot:nth-child(1), .shot:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__cta .btn, .closer__cta .btn { flex: 1 1 100%; }
  .chip { flex: 1 1 calc(50% - 5px); }
  .step { grid-template-columns: 1fr; gap: 6px; }
}
