/* Self-hosted fonts (Latin subset, covers Spanish). SIL Open Font License 1.1:
   https://openfontlicense.org. Poppins (c) Indian Type Foundry; Open Sans (c) The Open Sans Project Authors. */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/open-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700-latin.woff2') format('woff2');
}

:root {
  --concrete-gray: #6b6f76;
  --concrete-dark: #2b2d31;
  --concrete-light: #f2f1ee;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-light: #fb923c;
  --accent-blue: #2a5c8a;
  --accent-blue-dark: #1e4468;
  --accent-blue-light: #5b9bd5;
  --text-dark: #222;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, .logo { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-weight: 700; }

button { font-family: inherit; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* Header */
.site-header {
  background: var(--concrete-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-mark { color: var(--accent-light); line-height: 0; }
.logo-mark svg { width: 28px; height: 28px; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 9px 2px;
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--accent-blue-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.lang-btn:hover { background: var(--white); color: var(--concrete-dark); }

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--accent-blue-light);
  outline-offset: 2px;
}

/* Spanish labels never fit one row (1111px needed, 1060px available):
   logo + actions on top, nav underneath, instead of an accidental wrap. */
html[lang="es"] .header-inner { row-gap: 0; }
html[lang="es"] .main-nav { order: 3; width: 100%; }

@media (max-width: 1023px) {
  .header-inner { row-gap: 0; }
  .main-nav { order: 3; width: 100%; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--concrete-dark); }

.btn-outline {
  background: var(--white);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  font-size: 1rem;
  min-height: 44px;
  cursor: pointer;
}
.btn-outline:hover { background: var(--accent-blue); color: var(--white); }

.btn-call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
}
.btn-call:hover { background: var(--accent-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--concrete-dark), var(--concrete-gray));
  color: var(--white);
  padding: 70px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: #ddd;
}

.hero-spanish-note {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-blue-light);
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  text-decoration: none;
}
.hero-phone svg { width: 26px; height: 26px; color: var(--accent-light); }
.hero-phone:hover { color: var(--accent-light); }

.hero-trust {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #d4d4d4;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.about-copy h2 { text-align: left; }

.about-copy p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid #e2e0dc;
  border-bottom: 1px solid #e2e0dc;
}

.fact { display: flex; flex-direction: column; }

.fact strong {
  font-size: 1.7rem;
  color: var(--accent-blue);
  line-height: 1.2;
}

.fact span { font-size: 0.9rem; color: #666; }

/* Before & After */
.beforeafter { background: var(--concrete-light); }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 28px;
}

/* All 3 pairs in one row on wide screens; the section gets a wider container so photos stay large. */
@media (min-width: 1240px) {
  .beforeafter .container { max-width: 1320px; }
  .ba-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ba-card { padding: 18px; }
}

.ba-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.ba-card h3 {
  text-align: center;
  color: var(--concrete-dark);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ba-shot {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.ba-btn {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  background: none;
  cursor: zoom-in;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.ba-btn img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ba-btn:hover img { transform: scale(1.06); }

.ba-btn:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: -3px; }

.ba-hint {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #666;
}

.ba-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.5;
}

.ba-before { background: rgba(43,45,49,0.92); }
.ba-after { background: var(--accent-blue); }

/* Sections */
section { padding: 70px 0; }

/* Clear the sticky header (up to 125px on phones) when jumping via nav. */
section[id] { scroll-margin-top: 80px; }

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--concrete-dark);
}

.section-sub {
  text-align: center;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Services */
.services { background: var(--concrete-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-4px); }

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e6eef6;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { margin-bottom: 10px; color: var(--concrete-dark); }

.service-card p { color: #555; font-size: 0.95rem; }

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 44px;
  background: var(--white);
  border: 2px solid #d8d6d1;
  color: #444;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.filter-btn.is-active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--concrete-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.gallery-item[hidden] { display: none; }

.gallery-btn {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: none;
  cursor: zoom-in;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.gallery-btn img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-btn:hover img { transform: scale(1.06); }

.gallery-btn:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: -3px; }

/* Lightbox */
.lightbox,
.ba-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 18, 0.93);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open,
.ba-lightbox.is-open { display: flex; }

.lightbox-figure {
  max-width: 1000px;
  max-height: 100%;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 0;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }

.lightbox-close {
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
}

.ba-lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1150px;
  width: 100%;
  max-height: 100%;
  padding: 0 60px;
}

.ba-lb-title {
  color: var(--white);
  font-size: 1.4rem;
  text-align: center;
}

.ba-lb-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  min-height: 0;
}

.ba-lb-shot {
  position: relative;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-lb-shot img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

.ba-lb-shot .ba-tag {
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Video */
.video-section { text-align: center; }

.video-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-color: var(--accent-blue) #e2e0dc;
}

.video-row::-webkit-scrollbar { height: 10px; }
.video-row::-webkit-scrollbar-track { background: #e2e0dc; border-radius: 10px; }
.video-row::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 10px; }

.video-row .job-video {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
}

.job-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: block;
}

/* Service Area */
.area { background: var(--concrete-light); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 0 auto;
}

.area-list li {
  background: var(--accent-blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
}

/* Contact */
.contact {
  background: var(--concrete-dark);
  color: var(--white);
  text-align: center;
}

.contact h2 { color: var(--white); }

.gallery-more { display: block; margin: 32px auto 0; }
.gallery-more[hidden] { display: none; }

.call-bar { display: none; }

.phone-link {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin: 20px 0 24px;
}

/* Footer */
.site-footer {
  background: #1c1d20;
  color: #aaa;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .header-inner { padding: 8px 16px 0; row-gap: 0; }
  .logo { font-size: 1.15rem; }
  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .hero h1 { font-size: 1.75rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { flex: 1; text-align: center; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    min-height: 56px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    line-height: 1.5;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
  }
  .site-footer { padding-bottom: 80px; }
  .about-copy h2 { text-align: center; }
  .about-facts { gap: 20px; justify-content: space-between; }
  .fact strong { font-size: 1.35rem; }
  .ba-btn img { height: 190px; }
  .ba-card { padding: 14px; }
  .ba-pair { gap: 8px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gallery-btn img { height: 140px; }
  .video-row .job-video { width: 190px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.9rem; }
  .ba-lightbox { padding: 8px; }
  .ba-lb-pair { gap: 6px; }
  .ba-lb-shot img { max-height: 64vh; }
  .ba-lb-title { font-size: 1.05rem; }
  .ba-lb-inner { gap: 10px; padding: 0 32px; }
  .ba-lightbox .lightbox-nav { width: 30px; height: 30px; font-size: 1.5rem; }
  .ba-lightbox .lightbox-prev { left: 2px; }
  .ba-lightbox .lightbox-next { right: 2px; }
  .ba-lightbox .lightbox-close { width: 38px; height: 38px; font-size: 1.7rem; top: 10px; right: 10px; }
  .ba-lb-shot .ba-tag { font-size: 0.7rem; padding: 3px 9px; bottom: 6px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.nowrap { white-space: nowrap; }

/* Small phones: keep logo + language + call button on one row (Spanish "Llame Ahora" is wider). */
@media (max-width: 400px) {
  .logo { font-size: 1rem; }
  .logo-mark { display: none; }
  .header-actions { gap: 6px; }
  .btn-call { padding: 8px 10px; }
}

/* ===== Bold Industrial theme: sharp edges, heavy borders, full-photo hero ===== */
:root { --concrete-dark: #111111; --concrete-light: #ece9e4; --radius: 0px; }
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.02em; }
h2 { text-align: left; font-size: 2.3rem; }
h2::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 10px; background: var(--accent); }
.section-sub { text-align: left; margin-left: 0; }
.gallery-filters, .area-list { justify-content: flex-start; }
.area-list { margin-left: 0; }
.contact h2::after { margin: 10px auto 0; }
.contact h2 { text-align: center; }

.hero {
  background: linear-gradient(90deg, rgba(17,17,17,0.94) 0%, rgba(17,17,17,0.8) 50%, rgba(17,17,17,0.25) 100%),
              url('images/img_2167.jpg') center 60% / cover;
  padding: 130px 0;
}
.hero-inner { grid-template-columns: 1fr; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: 3.4rem; line-height: 1.1; }

.btn { text-transform: uppercase; letter-spacing: 0.04em; border-radius: 0; }
.btn-primary { box-shadow: 5px 5px 0 #000; }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }

.service-card, .ba-card { border: 3px solid #111; box-shadow: 6px 6px 0 #111; }
.service-card { text-align: left; }
.service-icon { margin: 0 0 14px; border-radius: 0; background: #111; color: var(--accent-light); }
.filter-btn { border-radius: 0; border-color: #111; color: #111; }
.filter-btn.is-active { background: #111; border-color: #111; color: #fff; }
.area-list li { border-radius: 0; background: #111; }
.gallery-grid { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ba-tag { border-radius: 0; }
.ba-after { background: var(--accent); }

@media (max-width: 700px) {
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .about-copy h2 { text-align: left; }
}

.ba-shot { border-radius: 0; }
.gallery-item, .job-video { box-shadow: none; }
.btn-outline { background: #111; border-color: #111; color: #fff; text-transform: uppercase; }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.video-row::-webkit-scrollbar-track { background: #ddd; border-radius: 0; }
.video-row::-webkit-scrollbar-thumb { background: #111; border-radius: 0; }
.lang-btn { border-radius: 0; }
.site-header { border-bottom: 4px solid var(--accent); }
.phone-link { font-family: 'Poppins', system-ui, sans-serif; font-size: 3rem; letter-spacing: 0.01em; }
.contact { border-top: 6px solid var(--accent); }
.gallery-btn img, .ba-btn img { filter: saturate(0.85) contrast(1.05); transition: transform 0.35s ease, filter 0.35s ease; }
.gallery-btn:hover img, .ba-btn:hover img { filter: none; }

/* About: story on the left, facts panel on the right */
.about-inner { grid-template-columns: 1.25fr 1fr; gap: 56px; }
.about-facts { flex-direction: column; gap: 0; margin: 0; padding: 0; border: 3px solid #111; box-shadow: 6px 6px 0 #111; background: #fff; }
.fact { padding: 20px 26px; border-bottom: 2px solid #e2e0dc; }
.fact:last-child { border-bottom: 0; }
.fact strong { font-family: 'Poppins', system-ui, sans-serif; font-size: 2.4rem; color: var(--accent); text-transform: uppercase; }
.fact span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #444; }

@media (max-width: 700px) {
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-facts { flex-direction: row; }
  .fact { flex: 1; padding: 14px 10px; border-bottom: 0; border-right: 2px solid #e2e0dc; }
  .fact:last-child { border-right: 0; }
  .fact strong { font-size: 1.25rem; }
  .fact span { font-size: 0.68rem; letter-spacing: 0.04em; }
}
