/* KB High Rise Services — hoja de estilos única del sitio */

/* ---------- Tipografías (locales, solo latín) ---------- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/raleway-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-italic-latin.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
  --blue: #007dc5;
  --blue-dark: #114664;
  --blue-bar: #006db4;
  --blue-bright: #00a3e4;
  --blue-deep: #1c6db0;
  --red: #f20000;
  --violet: #6115ef;
  --text: #60646c;
  --ink: #1c2024;
  --bg: #fcfcfd;
  --bg-soft: #f0f0f3;
  --panel: #eaf4fc;
  --white: #fff;
  --font-head: "Raleway", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue);
}
h1 { font-size: clamp(2.25rem, 4vw, 3.45rem); color: var(--blue-dark); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { margin: 0 0 1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
strong { color: var(--text); font-weight: 700; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--bg-soft);
  font-size: .875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  min-height: 40px;
  padding-block: .4rem;
}
.topbar__call {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
}
.topbar__call:hover { color: var(--blue); }
.topbar__call svg { width: 18px; height: 18px; color: var(--blue); }
.topbar__hours {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 500;
}
.topbar__hours svg { width: 16px; height: 16px; }

/* ---------- Encabezado y menú ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 110px;
}
.brand img { width: 230px; height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .5rem 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .nav-cta { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 84px; }
  .brand img { width: 180px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    background: var(--bg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--bg-soft); }
  .site-nav .nav-cta { display: block; margin-top: 1rem; }
}
/* Sin JavaScript el menú se queda abierto en el celular */
.no-js .site-nav { position: static; display: block; box-shadow: none; }
.no-js .nav-toggle { display: none; }

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0 !important;
}
.button:hover { background: var(--blue-dark); }

/* ---------- Portada de inicio ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1d5d8f;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero .wrap {
  display: flex;
  justify-content: flex-end;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: min(100%, 480px);
  margin-right: clamp(0px, 6vw, 90px);
}
.hero h1 { margin: 0; width: min(100%, 390px); }
.hero h1 img { width: 100%; }

@media (max-width: 700px) {
  .hero__photo { object-position: 30% center; }
  .hero .wrap { justify-content: center; }
  .hero__content { margin-right: 0; }
  .hero h1 { width: min(80%, 300px); }
  .hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: rgba(17, 70, 100, .35);
  }
}

/* ---------- Banda de título de páginas internas ---------- */
.page-title {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 270px;
  text-align: center;
}
.page-title__photo {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-title h1 { margin: 0; padding: 2rem var(--gutter); }

/* ---------- Secciones y columnas ---------- */
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section__title { margin-bottom: 2.5rem; text-align: center; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 960px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cols, .cols--2 { grid-template-columns: minmax(0, 1fr); }
}

.lined {
  padding-bottom: .6rem;
  border-bottom: 1px solid #bfdcef;
}

.text-small { font-size: .9rem; line-height: 1.7; }

/* Divisor «We deliver as promised» */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1 1 0;
  min-width: 1.25rem;
  border-top: 2px solid var(--blue);
}

/* Lista de servicios con flecha */
.arrow-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}
.arrow-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .3rem 0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.arrow-list li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-bar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tarjetas de llamada (antes imágenes con texto) ---------- */
.cta {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  min-height: 96px;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
@media (prefers-reduced-motion: reduce) { .cta, .cta:hover { transition: none; transform: none; } }

.cta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 26%;
  background: var(--blue-deep);
  border-right: 4px solid var(--white);
}
.cta__icon svg { width: 44px; height: 44px; }
.cta__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .75rem 1rem;
  text-align: center;
}
.cta__kicker { font-size: .95rem; letter-spacing: .06em; }
.cta__big { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.1; letter-spacing: .02em; }

.cta--call {
  background: linear-gradient(115deg, var(--blue-bright) 0 80%, var(--blue-deep) 80% 100%);
}
.cta--call .cta__body { align-items: flex-start; padding-right: 22%; text-align: left; }
.cta--call .cta__kicker { font-size: .85rem; }
.cta--call .cta__big { font-family: var(--font-body); font-weight: 600; }

.cta--email .cta__body { background: var(--red); }
.cta--email .cta__kicker { font-size: 1.35rem; }
.cta--email .cta__big { font-size: .95rem; text-transform: none; letter-spacing: .04em; }

.cta--area { pointer-events: none; }
.cta--area .cta__body { background: var(--blue-bright); }
.cta--area .cta__kicker {
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--blue-deep);
}
.cta--area .cta__towns { font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .05em; }

/* ---------- Columna lateral ---------- */
.aside-stack > * + * { margin-top: 1.25rem; }
.badge-img { width: 100%; max-width: 420px; }
.payments { margin: 0; max-width: 420px; }
.payments figcaption {
  margin-top: .5rem;
  font-size: .75rem;
  text-align: center;
}

/* Galería deslizable */
.gallery {
  position: relative;
  max-width: 420px;
}
.gallery__track {
  display: flex;
  margin: 0; padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track li { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__dots {
  position: absolute;
  left: 0; right: 0; bottom: .6rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.gallery__dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.gallery__dots button[aria-current="true"] { background: var(--white); }

/* ---------- Nosotros ---------- */
.quote {
  margin: 2rem 0 0;
  padding: 45px 55px;
  border-left: 4px solid var(--violet);
  background: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, .1);
}
.quote::before {
  content: "\201C";
  display: block;
  height: 2.5rem;
  color: #c9ccd3;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0 0 1.25rem;
  color: var(--blue);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
}
.quote figcaption { color: var(--blue-dark); font-size: .8rem; font-weight: 700; }
.quote cite { font-style: normal; }
@media (max-width: 680px) { .quote { padding: 30px 28px; } }

/* Pestañas */
.tabs__list {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}
.tabs__list button {
  flex: 1 1 0;
  padding: .75rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  font: 600 1.05rem/1.3 var(--font-body);
  cursor: pointer;
}
.tabs__list button[aria-selected="true"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
}
.tabs__panel {
  padding: 1rem;
  border-radius: 6px;
  background: var(--panel);
  font-size: .9rem;
}
.tabs__panel img { width: 100%; margin-bottom: 1rem; }
.tabs__panel h3 { color: var(--ink); font-size: 1.1rem; }
.tabs__panel p:last-child { margin-bottom: 0; }
/* Sin JavaScript se ven los dos paneles */
.no-js .tabs__list { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: 1.5rem; }

/* ---------- Servicios ---------- */
.services-intro h2 { text-align: center; }
.services-intro p { font-size: .95rem; }
.feature-box {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  padding: 1.75rem;
  color: var(--white);
  font-size: .9rem;
  background: #0d2d4a url("../img/window-cleaning-background.webp") center / cover;
}
.feature-box::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 30, 52, .45);
}
.feature-box p { margin: 0; }

.service-list { margin: 0; padding: 0; list-style: none; }
.service-list > li {
  position: relative;
  padding: 0 0 1.5rem 2.75rem;
}
.service-list > li::before {
  content: "";
  position: absolute;
  left: 0; top: .15rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #5aa9e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.service-list h3 { margin-bottom: .35rem; font-size: 1.2rem; font-weight: 600; }
.service-list p { margin: 0; font-size: .9rem; }
.dot-list { margin: .5rem 0 0; padding-left: 1.1rem; list-style: disc; }
.dot-list li { color: var(--ink); font-size: .9rem; font-weight: 700; }

/* ---------- Pie ---------- */
.cities {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(32.4vw, 520px);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(7rem, 16vw, 10rem);
  text-align: center;
}
.cities__photo {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.cities p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
}

.footer-bar {
  background: var(--blue-bar);
  color: var(--white);
  font-size: .8rem;
}
.footer-bar .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: .6rem;
}
.footer-bar__logo img { width: 110px; }
.footer-bar__name { margin: 0; text-align: center; }
.credit {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .5rem;
  color: var(--white);
  font-size: .7rem;
  text-decoration: none;
  opacity: .8;
}
.credit:hover { color: var(--white); opacity: 1; }
.credit img { width: 90px; }
@media (max-width: 680px) {
  .footer-bar .wrap { grid-template-columns: 1fr; justify-items: center; gap: .6rem; padding-block: 1rem; }
  .credit { justify-self: center; }
}

/* ---------- 404 ---------- */
.not-found { padding-block: 5rem; text-align: center; }
.not-found h1 { margin-bottom: 1rem; }

/* Título h2 con tamaño de h3 (Nosotros) */
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
