/* Tecnometal — B2B static site */
:root {
  --brand: #17428C;
  --brand-dark: #0f2d5f;
  --brand-light: #e8eef7;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e2e6ed;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(23, 66, 140, 0.08);
  --shadow-hover: 0 8px 32px rgba(23, 66, 140, 0.14);
  --max: 1120px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", "Fira Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link:hover { text-decoration: none; }
.logo-link img {
  height: 56px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-desktop a:hover {
  background: var(--brand-light);
  color: var(--brand);
  text-decoration: none;
}
.nav-desktop a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  margin-left: 0.35rem;
  padding: 0.55rem 1.1rem !important;
}
.nav-cta:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-toggle a {
  color: var(--text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
}
.lang-toggle a:hover { color: var(--brand); text-decoration: none; }
.lang-toggle a.current {
  color: var(--brand);
  background: var(--brand-light);
}
.lang-toggle .sep { opacity: 0.4; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--brand); text-decoration: none; }
.nav-mobile .nav-cta {
  margin: 1rem 0 0.5rem;
  text-align: center;
  border-radius: 8px;
  border-bottom: none !important;
}
.nav-mobile .lang-toggle {
  margin: 0.75rem 0 0;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 3.5rem 0;
  background:
    linear-gradient(135deg, #f7f9fc 0%, #e8eef7 55%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-inner { max-width: 560px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--brand-light);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-light);
  color: var(--brand);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  margin-bottom: 2.25rem;
  max-width: 640px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--brand);
}
.card-icon svg {
  width: 100%;
  height: 100%;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Project strip on home */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.strip-item {
  position: relative;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.strip-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.strip-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 45, 95, 0.15) 0%, rgba(15, 45, 95, 0.78) 100%);
  z-index: 1;
}
.strip-item span {
  position: relative;
  z-index: 2;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* Capabilities 8-grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filter-chip {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.project-card.hidden { display: none; }
.project-thumb {
  height: 180px;
  background: var(--brand-light);
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-body {
  padding: 1.15rem 1.25rem 1.35rem;
}
.project-body .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.project-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Industries */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.ind-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.ind-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.ind-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat .label { font-size: 0.95rem; opacity: 0.9; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--brand);
  padding-left: 1.5rem;
}
.timeline-item {
  position: relative;
  padding: 0.85rem 0 1.25rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}
.timeline-item .year {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.about-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.about-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* About photos */
.about-photo {
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--brand-light);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.about-photo-split .about-photo { margin: 0; aspect-ratio: 4 / 3; }

/* Quote form */
.quote-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 66, 140, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-aside {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-aside h2 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: 1rem;
}
.contact-aside .contact-item {
  margin-bottom: 1.15rem;
}
.contact-aside .contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-aside .contact-item a,
.contact-aside .contact-item span {
  color: var(--text);
  font-size: 1rem;
}
.contact-aside .contact-item a:hover { color: var(--brand); }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 0.85rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
  opacity: 0.85;
}
.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  color: #fff;
  opacity: 0.7;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .cards,
  .project-grid,
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 2.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-media { max-height: 280px; aspect-ratio: 16 / 10; }
  .strip { grid-template-columns: 1fr; }
  .ind-grid,
  .about-blocks,
  .about-photo-split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 520px) {
  .cards,
  .project-grid,
  .cap-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .header-inner { height: 76px; }
  .logo-link img { height: 44px; }
}

/* Featured project (projects page) */
.featured-project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 2.25rem;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-project:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.featured-media { background: var(--brand-light); min-height: 260px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-body .tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); margin-bottom: 0.4rem; }
.featured-body h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--brand); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.featured-body p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Case study */
.cs-hero .hero-media { display: block; }
.cs-back { display: inline-block; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.cs-eyebrow { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.cs-overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.cs-overview-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; max-width: 620px; }
.cs-overview-text .section-header { margin-bottom: 1rem; }
.cs-facts { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.cs-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.cs-facts div:last-child { border-bottom: none; }
.cs-facts dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.cs-facts dd { font-weight: 600; text-align: right; }
.cs-gallery { display: grid; gap: 1.25rem; }
.cs-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.cs-gallery-drawings { grid-template-columns: 1fr 1.25fr 1.15fr; align-items: start; }
.cs-figure { margin: 0; }
.cs-figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); cursor: zoom-in; transition: box-shadow 0.2s, transform 0.2s; }
.cs-figure a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cs-figure img { width: 100%; height: auto; }
.cs-figure figcaption { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.6rem; }
.cs-specs-wrap { margin: 2.5rem 0; }
.cs-specs-wrap h3 { font-size: 1.1rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.cs-specs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cs-spec { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.25rem 1rem; display: flex; flex-direction: column; }
.cs-spec-val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.cs-spec-sub { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.5rem; }
.cs-spec-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.9; margin-top: auto; }
.cs-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.cs-cta { text-align: center; background: linear-gradient(135deg, #f7f9fc 0%, #e8eef7 60%, #ffffff 100%); }
.cs-cta h2 { font-family: var(--font-display); color: var(--brand); font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.cs-cta p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 22, 45, 0.92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3.5rem 4rem 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 6px; background: #fff; }
.lightbox-caption { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 0.85rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
body.lb-open .wa-float { display: none; }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.22); transition: transform 0.15s, box-shadow 0.15s; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.28); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-link { display: inline-flex !important; align-items: center; gap: 0.45rem; }
.wa-link svg { width: 18px; height: 18px; color: #25D366; flex-shrink: 0; }
.contact-aside .contact-item .wa-link { display: flex !important; width: fit-content; margin-top: 0.4rem; }

@media (max-width: 960px) {
  .cs-specs { grid-template-columns: repeat(3, 1fr); }
  .cs-gallery-drawings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .featured-project, .cs-overview { grid-template-columns: 1fr; }
  .cs-gallery-2, .cs-gallery-drawings { grid-template-columns: 1fr; }
  .lightbox { padding: 3.5rem 0.75rem 1.5rem; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  body.menu-open .wa-float { display: none; }
}
@media (max-width: 520px) {
  .cs-specs { grid-template-columns: repeat(2, 1fr); }
}

/* Case study — fixture design */
.cs-design { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center; }
.cs-design .cs-specs-wrap { margin: 0; }
.cs-design .cs-specs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .cs-design { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Facilities */
.fac-big { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin: -0.5rem 0 1.75rem; }
.fac-big-num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.75rem); font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -0.03em; }
.fac-big-label { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fac-strip-wrap { background: var(--brand); color: #fff; }
.fac-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.fac-stat { padding: 1.6rem 1.25rem; text-align: center; border-left: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: 0.2rem; }
.fac-stat:first-child { border-left: none; }
.fac-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.fac-stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.fac-area-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.25rem; }
.fac-area-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem); color: var(--brand); letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.fac-area-head p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.fac-area-num { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.3rem; }
.fac-area-count { flex-shrink: 0; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fac-area-count strong { font-family: var(--font-display); font-size: 2rem; color: var(--brand); margin-right: 0.25rem; letter-spacing: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip-list li { font-size: 0.9rem; font-weight: 500; color: var(--brand); background: var(--brand-light); border: 1px solid rgba(23, 66, 140, 0.15); border-radius: 999px; padding: 0.4rem 0.95rem; }
.section-alt .chip-list li { background: #fff; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fac-figure a { aspect-ratio: 4 / 3; }
.fac-figure img { width: 100%; height: 100%; object-fit: cover; }
.fac-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; font-size: 0.95rem; }

@media (max-width: 960px) {
  .fac-strip { grid-template-columns: repeat(2, 1fr); }
  .fac-stat:nth-child(3) { border-left: none; }
  .fac-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.15); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .fac-grid { grid-template-columns: 1fr; }
  .fac-area-head { flex-direction: column; align-items: flex-start; }
  .fac-stat-num { font-size: 1.6rem; }
}

/* Header: keep nav on one line as items grow */
@media (max-width: 1180px) {
  .nav-desktop a { padding: 0.5rem 0.6rem; }
  .logo-link img { height: 48px; }
}
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  body.menu-open .wa-float { display: none; }
}
@media (max-width: 520px) {
  .logo-link img { height: 44px; }
}

/* About: building photos at top */
.about-photo-split--buildings { grid-template-columns: 1fr 1fr; }
.about-photo-split--buildings .about-photo-fig { margin: 0; }
.about-photo-split--buildings .about-photo { display: block; margin: 0; aspect-ratio: 16 / 10; cursor: zoom-in; }
.about-photo-split--buildings .about-photo img { transition: transform 0.3s; }
.about-photo-split--buildings .about-photo:hover img { transform: scale(1.02); }
.about-photo-split--buildings figcaption { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.6rem; }
.about-photo img.pos-oficinas-corporativas { object-position: 55% 60%; }
.about-photo img.pos-planta-andenes { object-position: 70% 55%; }
@media (max-width: 768px) {
  .about-photo-split--buildings { grid-template-columns: 1fr; }
}

/* Project Journey */
.jr-hero .lead { max-width: 680px; }
.jr-hero h1 { margin-bottom: 0.75rem; }
.jr-highlight { display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; border: 2px solid #F2A900; color: var(--text); font-weight: 600; border-radius: 999px; padding: 0.55rem 1.1rem 0.55rem 0.6rem; box-shadow: var(--shadow); }
.jr-highlight-icon { width: 34px; height: 34px; border-radius: 50%; background: #F2A900; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.jr-highlight-icon svg { width: 20px; height: 20px; }

.jr-track { position: relative; height: 350px; margin: 0.5rem 0 2.5rem; }
.jr-line { position: absolute; left: 0; top: 0; width: 100%; height: 340px; opacity: 0.9; }
.jr-steps { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 100%; list-style: none; }
.jr-step a { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); text-decoration: none; padding: 0 0.25rem; }
.jr-step.jr-down a { padding-top: 110px; }
.jr-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 30px; height: 30px; color: var(--c); }
.jr-circle { width: 92px; height: 92px; margin-top: 10px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--c), 0 8px 20px rgba(0,0,0,0.15); transition: transform 0.2s; }
.jr-circle svg { width: 40px; height: 40px; }
.jr-step a:hover .jr-circle { transform: scale(1.06); }
.jr-title { margin-top: 0.7rem; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.jr-step.is-quote .jr-circle { box-shadow: 0 0 0 3px var(--c), 0 0 0 10px rgba(242,169,0,0.25), 0 8px 20px rgba(0,0,0,0.15); }
.jr-badge { display: inline-block; margin-top: 0.4rem; background: #F2A900; color: #1a1a1a; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; vertical-align: middle; }

.jr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; counter-reset: none; }
.jr-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 1.35rem 1.25rem; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.jr-card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; flex-shrink: 0; }
.jr-card-icon svg { width: 24px; height: 24px; }
.jr-card-step { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c); margin-bottom: 0.2rem; }
.jr-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.jr-card p { font-size: 0.92rem; color: var(--text-muted); }
.jr-card.is-quote { background: #FFF8E5; border-color: #F2A900; border-top-color: #F2A900; }
.jr-card .jr-badge { margin: 0 0 0 0.35rem; }

.jr-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.jr-entry { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.jr-entry-alt { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.jr-entry-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); background: var(--brand-light); border-radius: 999px; padding: 0.2rem 0.7rem; margin-bottom: 0.75rem; }
.jr-entry-alt .jr-entry-tag { background: rgba(255,255,255,0.15); color: #fff; }
.jr-entry h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.jr-entry-alt h3 { color: #fff; }
.jr-entry p { color: var(--text-muted); margin-bottom: 1.1rem; }
.jr-entry-alt p { color: rgba(255,255,255,0.85); }
.jr-entry-lbl { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.5rem; }
.jr-entry-alt .jr-entry-lbl { color: rgba(255,255,255,0.7); }
.jr-entry-stages { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.jr-entry-stages li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem 0.25rem 0.3rem; }
.jr-entry-alt .jr-entry-stages li { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.jr-entry-stages li span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.jr-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; color: #fff; box-shadow: var(--shadow); }
.btn-wa svg { width: 20px; height: 20px; }

/* Home teaser */
.jr-teaser { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 2.75rem 0; }
.jr-teaser-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.jr-teaser h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.4rem; }
.jr-teaser p { opacity: 0.88; }
.jr-teaser .btn { margin-top: 1.1rem; background: #fff; color: var(--brand); }
.jr-teaser .btn:hover { background: var(--brand-light); }
.jr-dots { display: flex; align-items: center; justify-content: space-between; position: relative; }
.jr-dots::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 4px; transform: translateY(-50%); background: linear-gradient(90deg, #3949AB, #1E88E5, #26A69A, #7CB342, #F2A900, #FB8C00, #F4511E, #E53935); border-radius: 2px; }
.jr-dots span { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid #fff; color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

@media (max-width: 1100px) {
  .jr-track { display: none; }
  .jr-cards { grid-template-columns: 1fr; gap: 0; position: relative; padding-left: 0; }
  .jr-cards::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #3949AB, #1E88E5, #26A69A, #7CB342, #F2A900, #FB8C00, #F4511E, #E53935); }
  .jr-card { display: flex; gap: 1rem; background: transparent; border: none; box-shadow: none; padding: 0 0 1.5rem; position: relative; }
  .jr-card-icon { position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; margin-bottom: 0; }
  .jr-card-body { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); flex: 1; }
  .jr-card.is-quote { background: transparent; }
  .jr-card.is-quote .jr-card-body { background: #FFF8E5; border-color: #F2A900; }
}
@media (max-width: 768px) {
  .jr-entries, .jr-teaser-inner { grid-template-columns: 1fr; }
  .jr-highlight { border-radius: 14px; }
}

/* Header v3: 6 nav items + CTA + language — wider header row, compact step, hamburger ≤1200px */
.site-header .header-inner { max-width: 1320px; }
.nav-desktop a { white-space: nowrap; }
@media (max-width: 1320px) {
  .nav-desktop a { padding: 0.5rem 0.6rem; }
  .logo-link img { height: 48px; }
}
@media (max-width: 1200px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  body.menu-open .wa-float { display: none; }
}
@media (max-width: 520px) {
  .logo-link img { height: 44px; }
}

/* Berel project: furniture catalog + paired featured projects */
.br-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.br-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.br-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; border-bottom: 1px solid var(--border); }
.br-media img { position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem); object-fit: contain; transition: transform 0.25s; }
.br-media:hover img { transform: scale(1.03); }
.br-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.br-body h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand); letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.br-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.br-specs { margin: auto 0 0; border-top: 1px solid var(--border); }
.br-specs div { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.br-specs div:last-child { border-bottom: none; padding-bottom: 0; }
.br-specs dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.1rem; }
.br-specs dd { margin: 0; font-size: 0.9rem; font-weight: 500; }
.featured-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2.25rem; }
.featured-pair .featured-project { grid-template-columns: 1fr; grid-template-rows: auto 1fr; margin-bottom: 0; }
.featured-pair .featured-media { aspect-ratio: 16 / 10; min-height: 0; }
.featured-pair .featured-body { justify-content: flex-start; }
.featured-pair .featured-body .btn { margin-top: auto; }
@media (max-width: 960px) {
  .br-catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .featured-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .br-catalog { grid-template-columns: 1fr; }
}
