/* KB High Rise Services — estilos del sitio
   Orden: fuentes · variables · base · cabecera · secciones · componentes · páginas · pie
   Cortes: 1119px (columnas apiladas) · 1023px (menú móvil) · 767px · 479px */

/* ---------- Fuentes (alojadas en el sitio, subconjunto latino) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/open-sans-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/open-sans-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/raleway-normal.woff2) format("woff2");
}

/* ---------- Variables ---------- */
:root {
  /* Azules de la marca */
  --blue-1: #fbfeff;
  --blue-6: #acdffc;
  --blue-8: #5ebaef;
  --blue-9: #007dc5;
  --blue-10: #006db4;
  --blue-11: #0d88ce;
  --blue-12: #114664;
  /* Neutros */
  --gray-1: #fcfcfd;
  --gray-3: #f0f0f3;
  --gray-6: #d9d9e0;
  --gray-11: #60646c;
  --gray-12: #1c2024;

  --font-body: "Open Sans", sans-serif;
  --font-heading: "Raleway", sans-serif;

  /* Tamaños de letra fluidos (mínimo en celular, máximo en pantallas grandes) */
  --fs-h1: clamp(2.4375rem, 1.83rem + 2.029vw, 3.5625rem);
  --fs-h2: clamp(1.9375rem, 1.532rem + 1.353vw, 2.6875rem);
  --fs-h3: clamp(1.5625rem, 1.326rem + 0.789vw, 2rem);
  --fs-h4: clamp(1.25rem, 1.115rem + 0.451vw, 1.5rem);
  --fs-text-l: clamp(1.25rem, 1.115rem + 0.451vw, 1.5rem);
  --fs-text-m: clamp(1rem, 0.932rem + 0.225vw, 1.125rem);
  --fs-text-s: 0.875rem;

  /* Espacios fluidos */
  --sp-xxs: clamp(0.625rem, 0.524rem + 0.338vw, 0.8125rem);
  --sp-xs: clamp(0.8125rem, 0.644rem + 0.564vw, 1.125rem);
  --sp-s: clamp(1.125rem, 0.922rem + 0.676vw, 1.5rem);
  --sp-m: clamp(1.5rem, 1.23rem + 0.902vw, 2rem);
  --sp-l: clamp(2rem, 1.629rem + 1.24vw, 2.6875rem);
  --sp-xl: clamp(2.6875rem, 2.215rem + 1.578vw, 3.5625rem);
  --sp-xxl: clamp(3.5625rem, 2.921rem + 2.142vw, 4.75rem);
  --space-section-xs: clamp(2.5rem, 2.027rem + 1.578vw, 3.375rem);
  --space-section-s: clamp(3.375rem, 2.767rem + 2.029vw, 4.5rem);

  --page-width: 1366px;
  --section-width: 1406px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-text-m);
  color: var(--gray-11);
  background-color: var(--gray-1);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, div, li, blockquote { line-height: calc(2.15ex + 8px); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-12);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 1em 0; }
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--blue-9); }
a:hover { color: var(--blue-10); }

figure { margin: 0; }

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

/* ---------- Cabecera ---------- */
.topbar { background-color: var(--gray-3); }

.topbar__inner,
.navbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xs);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--sp-xs) var(--gutter);
}

.topbar__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--gray-12);
  text-decoration: none;
}
.topbar__call:hover { color: var(--gray-12); }
.topbar__call svg { width: 24px; height: 24px; fill: var(--blue-9); }

.topbar__hours {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__hours span { font-size: 14px; font-weight: 500; color: var(--blue-10); }
.topbar__hours svg { width: 20px; height: 20px; fill: var(--blue-9); }

.navbar { background-color: var(--gray-1); }

.navbar__logo img { width: auto; height: 5rem; }

.menu__list {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__link {
  position: relative;
  display: flex;
  font-size: var(--fs-text-m);
  font-weight: 600;
  line-height: 2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray-12);
  transition: color 0.3s ease;
}
.menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--blue-8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.menu__link:hover { color: var(--blue-11); }
.menu__link:hover::after { transform: scaleX(1); }

.menu__toggle,
.menu__topbar,
.menu__cta { display: none; }

/* ---------- Secciones y columnas ---------- */
.section { position: relative; background-position: center; background-size: cover; }

.section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--section-width);
  margin: 0 auto;
  padding: 100px var(--gutter);
}

.columns {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap, 20px);
}

.column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-s);
}

/* ---------- Componentes ---------- */
.title-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xxs);
  width: 100%;
}
.title-block h2,
.title-block h3 { color: var(--blue-9); }

.rule {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--blue-8);
}

.text { width: 100%; font-size: var(--fs-text-m); }
.text--strong { font-weight: 600; }

.divider-text {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: -20px;
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--blue-9);
}
.divider-text h4 {
  flex-shrink: 0;
  margin: 1.33em 16px;
  color: var(--blue-9);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-12);
}
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; fill: var(--blue-9); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.link-arrow svg {
  position: relative;
  top: 0.06em;
  width: 0.7em;
  height: 0.7em;
  margin-left: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
}
.link-arrow .arrow-line { opacity: 0; transition: opacity 0.3s; }
.link-arrow .arrow-head { transition: transform 0.3s; }
.link-arrow:hover .arrow-line { opacity: 1; }
.link-arrow:hover .arrow-head { transform: translateX(3px); }

.caption {
  margin: 0;
  padding: 0 16px 16px;
  font-size: var(--fs-text-s);
  line-height: 1em;
  text-align: center;
}

/* Carrusel de fotos */
.slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.slider__slide { flex: 0 0 100%; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.slider__dot {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #000;
  opacity: 0.2;
  cursor: pointer;
}
.slider__dot[aria-current="true"] { opacity: 1; }

/* Franja de ciudades (todas las páginas) */
.cities { background-image: url(../img/florida-cities.webp); }
.cities .section__inner {
  align-items: center;
  min-height: 30svh;
  text-align: center;
}
.cities h2 {
  margin-top: -80px;
  font-size: var(--fs-h3);
  color: var(--blue-9);
}

/* ---------- Portada ---------- */
.hero { background-image: url(../img/hero-home.webp); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue-9);
  opacity: 0.8;
  mix-blend-mode: multiply;
}
.hero .section__inner {
  max-width: 80%;
  min-height: 40svh;
  padding-top: var(--space-section-s);
  padding-bottom: var(--space-section-xs);
}
.hero__columns { grid-template-columns: calc(61.54% - 10px) calc(38.46% - 10px); }
.hero__brand {
  align-items: center;
  gap: var(--sp-l);
  text-align: center;
}
.hero__logo { width: 600px; max-width: 100%; }
.hero__logo img { width: 100%; }

.welcome .section__inner { gap: var(--sp-xxl); }
.welcome__title { width: 100%; text-align: center; color: var(--blue-9); }
.welcome__columns { --cols: 3; --gap: var(--sp-l); }
.welcome__aside { gap: var(--sp-m); }
.welcome__cards { margin-top: -30px; }

/* ---------- Páginas interiores ---------- */
.page-hero { background-image: url(../img/hero-pages.webp); }
.page-hero .section__inner { align-items: center; text-align: center; }
.page-hero h1 { color: var(--blue-12); }

.services__columns { --cols: 3; --gap: var(--sp-xl); }
.services__intro h2 { text-align: center; }
.services__list { gap: var(--sp-m); }
.services__aside { gap: var(--sp-xs); }
.services__aside > img:first-child { width: 100%; }

.schedule-box {
  width: 100%;
  padding: var(--sp-s);
  background: url(../img/schedule-background.webp) center / cover;
  color: var(--blue-1);
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 500px;
  max-width: 100%;
}
.service svg { flex-shrink: 0; width: 38px; height: 38px; fill: var(--blue-8); }
.service h2 {
  margin: 0 0 10px;
  font-size: var(--fs-text-l);
  font-weight: 600;
  color: var(--blue-9);
}
.service p { margin: 0; }

.services__extra { margin-top: -30px; }
.services__extra ul { margin: 0; padding-inline-start: 4em; }

.about__columns { --cols: 2; --gap: var(--sp-xl); }
.about__columns > .column:last-child { gap: 0; }

.quote {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 45px 55px;
  font-size: 24px;
  font-style: italic;
  color: var(--blue-9);
  background-color: #fff;
  border-left: 4px solid #6115ef;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.quote__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  fill: #e8e8e8;
}
.quote p { margin: 0; }
.quote cite {
  margin-top: 20px;
  font-size: var(--fs-text-m);
  font-style: normal;
  font-weight: 700;
  color: var(--blue-12);
}

.tabs { display: flex; flex-direction: column; width: 100%; }
.tabs__list {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.tabs__tab {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-text-l);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gray-11);
  cursor: pointer;
  transition: color 0.3s ease;
}
.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
}
.tabs__tab:hover,
.tabs__tab[aria-selected="true"] { color: var(--blue-9); }
.tabs__tab[aria-selected="true"]::after { background-color: var(--blue-9); }
.tabs__panel {
  padding: 20px;
  border-radius: 16px;
  background-color: #e5f5ff;
}
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: var(--fs-h4); }

/* ---------- Pie ---------- */
.footer { background-color: var(--blue-10); }
.footer .section__inner { padding-top: var(--sp-xxs); padding-bottom: var(--sp-xxs); }
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.footer__logo { width: 170px; }
.footer__text { color: var(--blue-6); }
.footer__credit {
  display: flex;
  align-items: center;
  gap: var(--sp-xxs);
  font-size: var(--fs-text-s);
  line-height: calc(2.15ex + 8px);
  color: var(--blue-6);
  text-decoration: none;
}
.footer__credit:hover { color: #fff; }
.footer__credit strong { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; opacity: 0.65; }

/* ---------- Responsive ---------- */
@media (max-width: 1119px) {
  .columns,
  .hero__columns { grid-template-columns: minmax(0, 1fr); }
  .welcome__columns,
  .services__columns,
  .about__columns { --cols: 1; }
}

@media (max-width: 1023px) {
  .navbar__menu { gap: 2rem; }

  .menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu__bars,
  .menu__bars::before,
  .menu__bars::after {
    position: relative;
    display: block;
    width: 32px;
    height: 4px;
    background-color: var(--gray-12);
  }
  .menu__bars::before,
  .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -10px; }
  .menu__bars::after { top: 10px; }

  .menu__list {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    max-width: 100%;
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background-color: #fcfcfde0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .menu.is-open .menu__list { visibility: visible; transform: none; }

  .menu__topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px;
  }
  .menu__close {
    position: relative;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transform: rotate(45deg);
  }
  .menu__close::before,
  .menu__close::after {
    content: "";
    position: absolute;
    background-color: #000;
  }
  .menu__close::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
  .menu__close::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }

  .menu__link {
    padding: 20px var(--sp-s);
    line-height: 1;
    border-top: 1px solid var(--gray-6);
  }
  .menu__link::after { display: none; }
  .menu__link[aria-current="page"] { color: var(--blue-11); }

  .menu__cta {
    display: block;
    padding: 10px 15px;
    border-top: 1px solid var(--gray-6);
    border-bottom: 1px solid var(--gray-6);
  }
  .menu__cta a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-color: var(--blue-9);
  }
}

@media (max-width: 767px) {
  .topbar { display: none; }
  .menu__link { font-size: var(--fs-text-l); font-weight: 700; letter-spacing: 1px; }
  .navbar__logo { width: 170px; }
  .navbar__logo img { width: 100%; height: auto; }
  .navbar__menu { width: 30%; display: flex; justify-content: flex-end; }

  .hero .section__inner {
    justify-content: center;
    padding-top: var(--sp-s);
    padding-bottom: var(--sp-l);
  }
  .hero__logo { width: 90%; }

  .welcome .section__inner { padding-top: var(--space-section-xs); }
  .services .section__inner { padding-top: var(--sp-m); }

  .quote { padding: 35px 30px; }

  .footer__row { flex-direction: column; justify-content: flex-start; gap: var(--sp-xs); }
}

@media (max-width: 479px) {
  .cities h2 { font-size: var(--fs-h4); }
  .footer .section__inner { padding-top: 2rem; padding-bottom: 2rem; }
  .footer__text { font-size: var(--fs-text-s); text-align: center; }
}
