:root {
  --font-base: 'Plus Jakarta Sans', 'Titillium Web', sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-strong: #f8f9fa;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-text: #111111;
  --color-muted: #4f565d;
  --color-primary: #731d27;
  --color-primary-strong: #5d1720;
  --color-primary-dark: #111111;
  --color-accent: #731d27;
  --space-section: clamp(5.5rem, 8vw, 7.5rem);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 22px 55px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 1px rgba(115, 29, 39, 0.12), 0 18px 36px rgba(115, 29, 39, 0.12);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 56%, #ffffff 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-premium);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease-premium), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.btn-primary {
  background: var(--color-primary-strong);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(115, 29, 39, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  background: #5d1720;
  box-shadow: 0 22px 44px rgba(115, 29, 39, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-primary-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-light);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(115, 29, 39, 0.08);
  border-color: rgba(115, 29, 39, 0.24);
  color: var(--color-primary);
  transform: translateY(-3px);
}

header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

header .container {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  padding: 0.95rem 0;
}

header .logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-primary-dark);
}

header .logo img {
  width: 210px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

header .logo span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-logo {
  max-width: 230px;
  border-radius: 0;
}

nav[aria-label] {
  flex: 1;
}

.nav-toggle {
  display: none;
  background: rgba(115, 29, 39, 0.08);
  border: 1px solid rgba(115, 29, 39, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  line-height: 0;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-toggle:focus-visible {
  outline: none;
  border-color: rgba(115, 29, 39, 0.6);
  box-shadow: 0 0 0 3px rgba(115, 29, 39, 0.2);
}

.nav-toggle.is-active {
  background: rgba(115, 29, 39, 0.28);
  border-color: rgba(115, 29, 39, 0.45);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--color-primary-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.8rem);
}

nav a {
  color: rgba(17, 17, 17, 0.72);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.025em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-primary);
  transition: transform 0.35s ease;
  border-radius: 999px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--color-primary);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  border: 1px solid rgba(115, 29, 39, 0.18);
  color: #fff;
  box-shadow: 0 10px 24px rgba(115, 29, 39, 0.22);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-primary-strong);
  transform: translateY(-2px);
}

main {
  display: block;
}

section {
  padding: var(--space-section) 0;
  position: relative;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 1.05rem;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-primary-dark);
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 700px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

.guarantee-card p,
.content-grid ul,
.feature-card p,
.service-panel p,
.service-panel li,
.timeline-step p,
.faq-item p,
.formulario p,
.career-mail-card ul,
.brand-guidelines-card p {
  color: var(--color-muted);
}

.hero {
  position: relative;
  padding: clamp(7rem, 10vw, 9rem) 0 clamp(4.5rem, 7vw, 6.5rem);
  overflow: hidden;
  color: var(--color-text);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.42));
  pointer-events: none;
}

.slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide img,
.slide picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2.5rem, 6vw, 4.4rem);
  align-items: stretch;
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
  margin: 0 auto;
}

.hero-copy span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(115, 29, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.4vw, 4.15rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.hero p {
  color: var(--color-muted);
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 1.35vw, 1.16rem);
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.section-cta .btn {
  padding: 0.75rem 1.6rem;
}

.section-cta .btn-outline,
.cta-buttons .btn-outline {
  color: var(--color-primary-dark);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.hero-actions .btn-outline {
  color: var(--color-primary-dark);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-light);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.3rem;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-card {
  background: #ffffff;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 1.5rem;
  backdrop-filter: blur(18px);
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(115, 29, 39, 0.18);
}

.hero-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 249, 250, 0.92);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-contact span {
  color: var(--color-muted);
  font-weight: 600;
}

.hero-contact a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(115, 29, 39, 0.22);
}

.hero-arrow.prev {
  left: 1.2rem;
}

.hero-arrow.next {
  right: 1.2rem;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  background: #ffffff;
  padding: clamp(1.6rem, 3vw, 2rem) clamp(1.6rem, 4vw, 2.8rem);
  border-radius: var(--radius-lg);
  margin: -2.8rem auto 4rem auto;
  width: min(920px, calc(100% - 3rem));
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.cta-strip span {
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-strip-actions {
  display: flex;
  gap: 1rem;
}

.cta-link {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  color: #fff;
  transition: transform 0.28s var(--ease-premium), background 0.28s ease, box-shadow 0.28s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: #5d1720;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(115, 29, 39, 0.26);
}

#garantias {
  padding-top: 2rem;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.guarantee-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color 0.3s ease;
}

.guarantee-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.8rem;
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}

.content-grid ul {
  display: grid;
  gap: 0.9rem;
  color: var(--color-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.service-matrix--extended {
  margin-top: 2rem;
}

.service-panel {
  background: var(--color-surface);
  padding: clamp(1.65rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-light);
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

.service-panel ul {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.3rem;
}

.service-panel li {
  position: relative;
  padding-left: 1.35rem;
}

.service-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(115, 29, 39, 0.12);
}

.service-kicker {
  width: fit-content;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(115, 29, 39, 0.24);
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
}

.home-services {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
}

.home-service-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-service-card--reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.9fr);
}

.home-service-card--reverse .home-service-media {
  order: 2;
}

.home-service-card--reverse .home-service-copy {
  order: 1;
}

.home-service-media {
  min-height: 360px;
}

.home-service-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.home-service-copy {
  display: grid;
  align-content: center;
  gap: 1.05rem;
  padding: clamp(1.8rem, 4vw, 3rem);
}

.home-service-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--color-primary-dark);
}

.home-service-copy p,
.home-service-copy li {
  color: var(--color-muted);
}

.home-service-copy ul {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.2rem;
}

.home-service-copy li {
  position: relative;
  padding-left: 1.35rem;
}

.home-service-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(115, 29, 39, 0.12);
}

.home-service-copy .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

.feature-card {
  background: var(--color-surface);
  padding: clamp(1.65rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-light);
  display: grid;
  gap: 1rem;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color 0.3s ease;
}

.guarantee-card:hover,
.service-panel:hover,
.feature-card:hover,
.timeline-step:hover,
.home-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(115, 29, 39, 0.28);
  box-shadow: var(--shadow-lift);
}

.feature-card h3,
.timeline-step h3,
.faq-item summary {
  color: var(--color-primary-dark);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(115, 29, 39, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.timeline-step {
  background: var(--color-surface);
  padding: clamp(1.65rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-light);
  display: grid;
  gap: 0.8rem;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: clamp(1.2rem, 2.4vw, 1.55rem) clamp(1.25rem, 3vw, 1.8rem);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

.faq-item[open] {
  border-color: rgba(115, 29, 39, 0.42);
  box-shadow: var(--shadow-light);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--color-muted);
}

.cta-banner {
  text-align: center;
  background: linear-gradient(180deg, rgba(244, 247, 247, 0.72), rgba(255, 255, 255, 0.96));
}

.cta-banner h2,
.cta-banner .section-subtitle,
.cta-banner p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-banner p {
  color: var(--color-muted);
  margin-bottom: 1.8rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contacto {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 auto;
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
}

.contacto iframe {
  width: 100%;
  height: 440px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.formulario {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: clamp(1.65rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.2rem;
}

.formulario p {
  color: var(--color-muted);
}

#contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-step {
  display: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.6rem;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.form-step.active {
  display: block;
}

.form-step legend {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  display: block;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #f4f7f7;
  cursor: pointer;
  transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-premium), background 0.3s ease;
}

.service-card:hover {
  border-color: rgba(115, 29, 39, 0.42);
  box-shadow: 0 12px 30px rgba(115, 29, 39, 0.16);
  transform: translateY(-3px);
}

.service-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.service-card.is-selected {
  border-color: rgba(115, 29, 39, 0.5);
  box-shadow: 0 16px 36px rgba(115, 29, 39, 0.18);
}

.service-card__title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.service-card__desc {
  color: var(--color-muted);
  font-size: 0.92rem;
  display: block;
}

.service-card input:checked + .service-card__title,
.service-card input:checked ~ .service-card__desc {
  color: var(--color-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: #000000;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#contact-form input:focus-visible,
#contact-form textarea:focus-visible {
  border-color: rgba(115, 29, 39, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 29, 39, 0.2);
}

#contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-status {
  min-height: 1.5em;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.form-status:empty {
  min-height: 0;
}

.form-status[data-state="success"] {
  color: #1f6b45;
}

.form-status[data-state="error"] {
  color: var(--color-primary-strong);
}

#contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.career-mail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow-light);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.career-mail-card h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.career-mail-card ul {
  display: grid;
  gap: 0.65rem;
  color: var(--color-muted);
}

.brand-guidelines-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

.brand-guidelines-card h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.brand-guidelines-card p {
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.project-watermark {
  position: relative;
  overflow: hidden;
}

.project-watermark::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(34%, 180px);
  aspect-ratio: 420 / 112;
  background: url("assets/brand/overelec-logo-horizontal.jpg") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.floating-cta {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  display: grid;
  gap: 0.8rem;
  z-index: 950;
}

.floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  border: 1px solid rgba(115, 29, 39, 0.28);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: transform 0.28s var(--ease-premium), background 0.28s ease, box-shadow 0.28s ease;
}

.floating-cta__btn--call {
  background: var(--color-primary-strong);
  border-color: rgba(115, 29, 39, 0.3);
}

.floating-cta__btn:hover,
.floating-cta__btn:focus-visible {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

footer {
  background: #ffffff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-grid {
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand p {
  color: var(--color-muted);
}

.footer-brand a {
  color: var(--color-primary);
  font-weight: 700;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 0.6rem;
}

.footer-column a {
  color: var(--color-muted);
}

.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-bottom a {
  color: var(--color-primary);
}

.project-page .hero {
  min-height: 420px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.project-filter {
  border: 1px solid rgba(115, 29, 39, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1.15rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s var(--ease-premium), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.project-filter:hover,
.project-filter:focus-visible,
.project-filter.mixitup-control-active,
.project-filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(115, 29, 39, 0.2);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.project-card[hidden] {
  display: none !important;
}

.project-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-light);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s var(--ease-premium), filter 0.35s ease;
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1.25rem 1.25rem;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(44, 47, 51, 0), rgba(44, 47, 51, 0.88));
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(115, 29, 39, 0.34);
  box-shadow: var(--shadow-lift);
}

.project-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.03);
}

:focus-visible {
  outline: 3px solid rgba(115, 29, 39, 0.34);
  outline-offset: 3px;
}

/* Home art direction: premium light mode */
.home-page {
  background: #ffffff;
}

.home-page::before {
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 52%, #ffffff 100%);
}

.home-page::after {
  display: none;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  width: min(1180px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px) saturate(1.25);
}

.site-header .container {
  width: 100%;
  padding: 0.68rem clamp(0.85rem, 2vw, 1.1rem);
}

.site-header .brand-logo {
  max-width: 182px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.site-header nav a {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(17, 17, 17, 0.72);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--color-primary);
}

.site-header .nav-cta {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(115, 29, 39, 0.22);
}

.hero-lab {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(8rem, 12vw, 11rem) 0 0;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(115deg, rgba(115, 29, 39, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 220px 220px, 86px 86px, 86px 86px;
  opacity: 0.8;
}

.hero-lab::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #f8f9fa 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.hero-lab__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52vw, 760px);
  z-index: -2;
  overflow: hidden;
  opacity: 0.5;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-lab__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(0.04) contrast(1.04) saturate(0.96);
  transform: scale(1.03);
}

.hero-lab__content {
  width: min(1180px, calc(100% - clamp(2.4rem, 5vw, 4rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(115, 29, 39, 0.16);
  border-radius: 999px;
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-lab__copy h1 {
  max-width: 980px;
  margin: 1.1rem 0 1.35rem;
  color: #111111;
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lab__copy p {
  max-width: 760px;
  color: #4a4a4a;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.btn-magnetic {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-magnetic::before {
  content: "";
  position: absolute;
  inset: auto auto -60% -20%;
  width: 150%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 48%);
  transform: translateX(-45%) scale(0.65);
  opacity: 0;
  transition: transform 0.45s var(--ease-premium), opacity 0.35s ease;
}

.btn-magnetic:hover::before,
.btn-magnetic:focus-visible::before {
  opacity: 1;
  transform: translateX(8%) scale(1);
}

.hero-lab__dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-stat,
.hero-system {
  min-height: 140px;
  padding: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
}

.hero-stat--large {
  grid-row: span 2;
}

.hero-stat span {
  display: block;
  color: #111111;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.hero-stat p,
.hero-system p {
  margin: 0.8rem 0 0;
  color: #555555;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-system {
  grid-column: 1 / -1;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero-system strong {
  color: #111111;
}

.hero-system__pulse {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(115, 29, 39, 0.52);
  animation: pulseSignal 1.8s infinite;
}

.hero-lab__ticker {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  padding: 1rem max(clamp(1.2rem, 4vw, 3rem), calc((100vw - 1180px) / 2));
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.hero-lab__ticker span {
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.52rem 0.86rem;
  color: #4a4a4a;
  font-size: 0.86rem;
  font-weight: 700;
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading-split .eyebrow {
  border-color: rgba(115, 29, 39, 0.18);
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
}

.section-heading-split h2 {
  max-width: 820px;
  margin-top: 0.9rem;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.section-heading-split .section-subtitle {
  margin: 0;
}

.services-bento-section {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(0.85rem, 1.8vw, 1.2rem);
}

.bento-card {
  position: relative;
  grid-column: span 4;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.42s var(--ease-premium), box-shadow 0.42s ease, border-color 0.42s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(115, 29, 39, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 18px 18px, 82px 82px, 82px 82px;
  opacity: 0.32;
  pointer-events: none;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 58%;
  background: radial-gradient(circle, rgba(115, 29, 39, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.42s var(--ease-premium);
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(115, 29, 39, 0.18);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.11);
}

.bento-card:hover::after {
  opacity: 1;
  transform: translateY(-12px);
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.26;
  filter: grayscale(0.04) contrast(1.04) saturate(0.96);
  transition: transform 0.7s var(--ease-premium), opacity 0.42s ease;
}

.bento-card:hover img {
  transform: scale(1.06);
  opacity: 0.34;
}

.bento-card__content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.bento-card h3 {
  margin: 0.9rem 0 0.7rem;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.45rem);
  line-height: 1;
}

.bento-card p {
  max-width: 620px;
  color: var(--color-muted);
}

.bento-card a {
  width: fit-content;
  margin-top: 1.1rem;
  color: var(--color-primary);
  font-weight: 800;
}

.bento-card a::after {
  content: " ->";
}

.bento-card--feature {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 560px;
}

.bento-card--wide {
  grid-column: span 8;
}

.bento-card--mini {
  grid-column: span 4;
  min-height: 250px;
}

.bento-card--dark,
.bento-card--accent {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

.bento-card--accent {
  background: linear-gradient(145deg, #ffffff 0%, #fff8f9 100%);
}

.bento-card--dark h3,
.bento-card--accent h3,
.bento-card--dark p,
.bento-card--accent p {
  color: var(--color-primary-dark);
}

.bento-card--dark p,
.bento-card--accent p {
  color: var(--color-muted);
  opacity: 1;
}

.bento-card--dark .service-kicker,
.bento-card--accent .service-kicker {
  border-color: rgba(115, 29, 39, 0.18);
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
}

/* Home light mode pass: luminous Apple-style surfaces with restrained corporate accents. */
.home-page::before {
  z-index: -2;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 48rem, #ffffff 100%);
}

.home-page::after {
  display: none;
}

.home-page main {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.home-page .hero-lab {
  z-index: 2;
}

.home-page .hero-lab__content,
.home-page .hero-lab__ticker,
.home-page .cta-strip,
.home-page main > section > .container,
.home-page .contacto {
  position: relative;
  z-index: 2;
}

.home-page .hero-lab__copy h1,
.home-page .hero-lab__copy p,
.home-page .hero-stat span,
.home-page .hero-stat p,
.home-page .hero-system,
.home-page .hero-lab__ticker span {
  text-shadow: none;
}

.home-page main > section:not(.hero-lab) {
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  isolation: isolate;
}

.home-page main > section:not(.hero-lab)::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.home-page section h2,
.home-page .section-heading-split h2,
.home-page .home-service-copy h3,
.home-page .service-panel h3,
.home-page .feature-card h3,
.home-page .timeline-step h3,
.home-page .faq-item summary,
.home-page .formulario strong {
  color: var(--color-primary-dark);
  text-shadow: none;
}

.home-page .section-subtitle,
.home-page .content-grid p,
.home-page .content-grid li,
.home-page .guarantee-card p,
.home-page .feature-card p,
.home-page .service-panel p,
.home-page .service-panel li,
.home-page .timeline-step p,
.home-page .faq-item p,
.home-page .formulario p,
.home-page .home-service-copy p,
.home-page .home-service-copy li {
  color: var(--color-muted);
}

.home-page .services-bento-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.home-page .services-bento-section::before {
  background: none;
}

.home-page .bento-card,
.home-page .guarantee-card,
.home-page .feature-card,
.home-page .service-panel,
.home-page .timeline-step,
.home-page .faq-item,
.home-page .formulario,
.home-page .form-step,
.home-page .career-mail-card,
.home-page .brand-guidelines-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  backdrop-filter: none;
}

.home-page .bento-card::before {
  opacity: 0.11;
}

.home-page .bento-card h3,
.home-page .bento-card p {
  color: var(--color-primary-dark);
}

.home-page .bento-card p {
  color: var(--color-muted);
  opacity: 1;
}

.home-page .bento-card img {
  opacity: 0.26;
}

.home-page .bento-card:hover img {
  opacity: 0.34;
}

.home-page .bento-card--atbt {
  border: 1px solid rgba(115, 29, 39, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 68%, #f4e9eb 100%);
  box-shadow: 0 14px 38px rgba(115, 29, 39, 0.12);
}

.home-page .bento-card--atbt .service-kicker {
  background: rgba(115, 29, 39, 0.1);
  color: #731d27;
}

.home-page .bento-card--atbt h3 {
  color: #24171a;
}

.home-page .bento-card--atbt a {
  color: #731d27;
  font-weight: 700;
}

.home-page #depuradoras {
  border: 1px solid rgba(22, 111, 135, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 62%, #eaf5f7 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.home-page .service-kicker,
.home-page .section-heading-split .eyebrow {
  border-color: rgba(115, 29, 39, 0.18);
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
}

.home-page .cta-banner {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.home-page .cta-banner::before {
  background: none;
}

.home-page .contacto iframe {
  border: 1px solid rgba(0, 0, 0, 0.06);
  filter: grayscale(0.08) contrast(1);
}

.home-page #contact-form input,
.home-page #contact-form textarea {
  background: rgba(255, 255, 255, 0.94);
  color: #101418;
}

/* Premium light system for service and careers pages. */
.service-page,
.careers-page {
  background: #ffffff;
}

.service-page::before,
.careers-page::before {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 48rem, #ffffff 100%);
}

.service-page::after,
.careers-page::after {
  display: none;
}

.service-page main,
.careers-page main {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.service-page .hero,
.careers-page .hero {
  min-height: min(760px, 92svh);
  display: grid;
  align-items: end;
  padding: clamp(8rem, 12vw, 11rem) 0 clamp(4rem, 7vw, 5.6rem);
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(115, 29, 39, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  background-size: 220px 220px, 86px 86px, 86px 86px, auto;
}

.service-page .hero::after,
.careers-page .hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, #f8f9fa 100%);
}

.service-page .slides,
.careers-page .slides {
  inset: 0 0 0 auto;
  width: min(52vw, 760px);
  opacity: 0.5;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.service-page .slide img,
.careers-page .slide img {
  filter: grayscale(0.04) contrast(1.04) saturate(0.96);
  transform: scale(1.03);
}

.service-page .hero-content,
.careers-page .hero-content {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  align-items: end;
}

.service-page .hero-copy span,
.careers-page .hero-copy span {
  border: 1px solid rgba(115, 29, 39, 0.16);
  background: rgba(115, 29, 39, 0.08);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-page .hero h1,
.careers-page .hero h1 {
  max-width: 980px;
  color: #111111;
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  line-height: 0.92;
  text-shadow: none;
}

.service-page .hero p,
.careers-page .hero p {
  color: #4a4a4a;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  text-shadow: none;
}

.service-page main > section:not(.hero),
.careers-page main > section:not(.hero) {
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  isolation: isolate;
}

.service-page section h2,
.careers-page section h2 {
  color: var(--color-primary-dark);
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.service-page .feature-grid,
.careers-page .feature-grid,
.service-page .service-matrix {
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.service-page .service-matrix {
  grid-template-columns: repeat(12, 1fr);
}

.service-page .service-panel {
  grid-column: span 4;
}

.service-page .service-panel:nth-child(1),
.service-page .service-panel:nth-child(6) {
  grid-column: span 6;
}

.service-page .feature-card,
.careers-page .feature-card,
.service-page .service-panel,
.service-page .timeline-step,
.service-page .faq-item,
.careers-page .career-mail-card,
.careers-page .brand-guidelines-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--color-text);
}

.service-page .feature-card,
.careers-page .feature-card,
.service-page .service-panel {
  min-height: 250px;
}

.service-page .content-grid,
.careers-page .content-grid {
  align-items: stretch;
}

.service-page .content-grid > div:first-child,
.careers-page .content-grid > div:first-child {
  min-width: 0;
}

.service-page .content-grid ul,
.careers-page .content-grid ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.2rem);
}

.service-page .content-grid li,
.careers-page .content-grid li {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--color-muted);
  font-weight: 700;
}

.service-page .content-grid li::before,
.careers-page .content-grid li::before {
  content: "";
  position: absolute;
  inset: auto -18% -55% 18%;
  height: 80%;
  background: radial-gradient(circle, rgba(115, 29, 39, 0.13), transparent 62%);
  pointer-events: none;
}

.service-page .content-grid img,
.careers-page .content-grid img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.service-page .cta-banner,
.careers-page .cta-banner {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.service-page .cta-banner::before,
.careers-page .cta-banner::before {
  background: none;
}

.careers-alert {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(115, 29, 39, 0.2);
  border-left: 5px solid var(--color-primary);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(115, 29, 39, 0.08), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--color-primary-dark);
}

.careers-alert strong {
  color: var(--color-primary);
}

.career-local-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.career-local-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.career-local-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.career-local-form input[type="text"]:focus-visible {
  outline: none;
  border-color: rgba(115, 29, 39, 0.48);
  box-shadow: 0 0 0 3px rgba(115, 29, 39, 0.13);
}

.career-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(115, 29, 39, 0.16);
  border-radius: 8px;
  background: rgba(115, 29, 39, 0.06);
  color: var(--color-muted);
  font-weight: 700;
}

.career-confirm input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

@keyframes pulseSignal {
  0% {
    box-shadow: 0 0 0 0 rgba(115, 29, 39, 0.52);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(115, 29, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115, 29, 39, 0);
  }
}

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

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .service-page .hero-content,
  .careers-page .hero-content {
    grid-template-columns: 1fr;
  }

  .service-page .service-panel,
  .service-page .service-panel:nth-child(1),
  .service-page .service-panel:nth-child(6) {
    grid-column: span 6;
  }

  .hero-lab__content {
    grid-template-columns: 1fr;
  }

  .hero-lab__dashboard {
    max-width: 720px;
  }

  .bento-card,
  .bento-card--feature,
  .bento-card--wide,
  .bento-card--mini {
    grid-column: span 6;
  }

  .bento-card--feature {
    min-height: 460px;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 0.75rem;
    width: min(100% - 1.5rem, 720px);
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: 0 1.2rem;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }

  .site-header nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  body.nav-open nav {
    max-height: 520px;
    opacity: 1;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0 1.4rem 0;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-lab {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .hero-lab__media {
    inset: 0;
    width: 100%;
    opacity: 0.28;
    clip-path: none;
  }

  .service-page .slides,
  .careers-page .slides {
    inset: 0;
    width: 100%;
    opacity: 0.22;
    clip-path: none;
  }

  .hero-lab__copy h1 {
    font-size: clamp(2.9rem, 10vw, 4.8rem);
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.8rem 2rem;
    margin-top: -2rem;
  }

  .contacto {
    grid-template-columns: 1fr;
  }

  .home-service-card,
  .home-service-card--reverse {
    grid-template-columns: 1fr;
  }

  .home-service-card--reverse .home-service-media,
  .home-service-card--reverse .home-service-copy {
    order: initial;
  }

  .home-service-media,
  .home-service-media img {
    min-height: 300px;
    max-height: 460px;
  }

  .floating-cta {
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .career-mail-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  section {
    padding: 4.5rem 0;
  }

  .container {
    width: calc(100% - 2.4rem);
  }

  .hero {
    padding: 6.5rem 0 4rem;
  }

  .hero-lab {
    padding: 8rem 0 0;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 8vw, 2.8rem);
  }

  .hero-lab__content {
    width: calc(100% - 2.2rem);
    padding-bottom: 2.2rem;
  }

  .hero-lab__copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }

  .service-page .hero h1,
  .careers-page .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }

  .service-page .content-grid ul,
  .careers-page .content-grid ul,
  .service-page .service-matrix {
    grid-template-columns: 1fr;
  }

  .service-page .service-panel,
  .service-page .service-panel:nth-child(1),
  .service-page .service-panel:nth-child(6) {
    grid-column: auto;
  }

  .service-page .content-grid img,
  .careers-page .content-grid img {
    min-height: 300px;
  }

  .hero-lab__dashboard {
    grid-template-columns: 1fr;
  }

  .hero-stat--large,
  .hero-system {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-lab__ticker {
    padding-inline: 1rem;
    overflow-x: auto;
  }

  .section-heading-split h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .bento-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--feature,
  .bento-card--wide,
  .bento-card--mini {
    grid-column: auto;
    min-height: 320px;
  }

  .hero-actions,
  .hero-highlights,
  .section-cta,
  .cta-strip-actions,
  .cta-buttons,
  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-service-media,
  .home-service-media img {
    min-height: 260px;
  }

  .floating-cta {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* Real project photography for technical service pages */
.edar-photo-section .section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.edar-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.edar-photo-card,
.installation-project-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(20, 35, 48, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.edar-photo-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.edar-photo-card figcaption,
.installation-project-photo figcaption {
  padding: 0.9rem 1rem;
  color: #515b66;
  font-size: 0.92rem;
}

.installation-project-photo {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 760px;
  margin: 2rem auto 0;
}

.installation-project-photo img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

@media (max-width: 800px) {
  .edar-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edar-photo-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .edar-photo-grid { grid-template-columns: 1fr; }
  .edar-photo-card:last-child { grid-column: auto; }
  .edar-photo-card img { height: 260px; }
  .installation-project-photo { grid-template-columns: 1fr; }
  .installation-project-photo img { max-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Google reviews and customer proof */
#resenas {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 76%);
}

.reviews-heading {
  max-width: 780px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.reviews-heading .eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.reviews-heading h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4.1vw, 3.4rem);
  letter-spacing: -0.035em;
}

.reviews-heading .section-subtitle {
  margin-bottom: 0;
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  justify-content: initial;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0 0 1.4rem;
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.6vw, 2rem);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.google-reviews-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 125px;
}

.google-brand-letter {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(66, 133, 244, 0.16);
  border-radius: 13px;
  background: #fff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.google-reviews-brand strong,
.google-reviews-brand small,
.google-reviews-rating,
.reviews-note span {
  display: block;
}

.google-reviews-brand strong {
  color: #202124;
  font-size: 1rem;
  line-height: 1.25;
}

.google-reviews-brand small {
  margin-top: 0.15rem;
  color: #6d737b;
  font-size: 0.74rem;
}

.google-reviews-rating {
  display: grid;
  justify-items: start;
  gap: 0.1rem;
}

.google-reviews-rating small {
  color: #6d737b;
  font-size: 0.75rem;
  font-weight: 700;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
}

.reviews-score strong {
  color: #111;
  font-size: 2.1rem;
  line-height: 1;
}

.reviews-score span {
  color: #6d737b;
  font-size: 0.85rem;
  font-weight: 650;
}

.review-stars {
  display: inline-block;
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}

.reviews-note {
  display: grid;
  gap: 0.15rem;
  max-width: none;
  margin: 0;
  color: #282b30;
  text-align: left;
}

.reviews-note strong {
  font-size: 0.95rem;
}

.reviews-note span {
  color: #6d737b;
  font-size: 0.82rem;
}

.google-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(115, 29, 39, 0.18);
  border-radius: 999px;
  color: var(--color-primary-strong);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.google-profile-link:hover,
.google-profile-link:focus-visible {
  border-color: rgba(115, 29, 39, 0.34);
  background: rgba(115, 29, 39, 0.05);
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.review-card {
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.15rem, 2vw, 1.55rem);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}

.review-card__topline,
.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5d646d;
  font-size: 0.78rem;
  font-weight: 700;
}

.review-source__g {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.review-source-label {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 999px;
  background: #f8f9fa;
  color: #66707a;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.review-header {
  align-items: center;
}

.review-meta {
  min-width: 0;
  gap: 0.7rem;
}

.review-avatar {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(115, 29, 39, 0.11);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f6e9eb 100%);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.review-author {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.review-author strong {
  color: #202124;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.review-author small {
  color: #777e86;
  font-size: 0.74rem;
}

.review-header > .review-stars {
  flex: 0 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.review-body {
  margin: 0;
  color: #4f565d;
  font-size: 0.9rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.review-card__footer {
  justify-content: flex-start;
  min-height: 32px;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
  color: #707780;
  font-size: 0.76rem;
  font-weight: 650;
}

.reviews-disclaimer {
  margin: 1rem 0 0;
  color: #7b8189;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.reviews-cta a {
  min-height: 50px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .reviews-summary {
    grid-template-columns: auto auto minmax(140px, 1fr);
  }

  .google-profile-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .reviews-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .google-reviews-brand {
    min-width: 0;
  }

  .google-reviews-rating {
    justify-items: end;
  }

  .reviews-note {
    grid-column: 1 / -1;
  }

  .google-profile-link {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .review-card {
    min-height: 0;
    padding: 1.15rem;
    border-radius: 18px;
  }

  .review-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .review-body {
    font-size: 0.91rem;
  }

  .reviews-cta a {
    width: 100%;
  }
}

/* Floating glass navigation and accessible services mega menu */
.site-header {
  position: fixed;
  left: 50%;
  width: min(1240px, calc(100% - 2rem));
  top: 1rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  gap: clamp(1rem, 2vw, 2rem);
}

.site-header nav > ul {
  gap: clamp(0.8rem, 1.6vw, 1.35rem);
  flex-wrap: nowrap;
}

.nav-services {
  position: relative;
}

.nav-services__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.76);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.nav-services__trigger:hover,
.nav-services__trigger:focus-visible,
.nav-services.is-open .nav-services__trigger {
  color: var(--color-primary);
}

.nav-services__trigger:focus-visible {
  outline: 2px solid rgba(115, 29, 39, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: 50%;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(1100px, calc(100vw - 2rem));
  padding: 1.35rem;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(20, 24, 30, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-services:hover .mega-menu,
.nav-services:focus-within .mega-menu,
.nav-services.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-menu__heading {
  margin: 0 0 0.65rem;
  padding: 0 0.6rem;
  color: #7b818a;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mega-menu__card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.7rem 0.6rem;
  border-radius: 12px;
  color: var(--color-text) !important;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mega-menu__card::after {
  content: none !important;
}

.mega-menu__card:hover,
.mega-menu__card:focus-visible {
  background: #f8f9fa;
  transform: translateY(-2px);
  outline: none;
}

.mega-menu__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(115, 29, 39, 0.12);
  border-radius: 10px;
  background: rgba(115, 29, 39, 0.06);
  color: var(--color-primary);
  font-size: 1.1rem;
}

.mega-menu__card strong,
.mega-menu__card small {
  display: block;
}

.mega-menu__card strong {
  margin: 0.05rem 0 0.18rem;
  color: #20242b;
  font-size: 0.84rem;
  line-height: 1.35;
}

.mega-menu__card small {
  color: #69717c;
  font-size: 0.72rem;
  font-weight: 450;
  line-height: 1.45;
}

.home-page .bento-card {
  border-radius: 16px;
}

.home-page .bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.085);
}

.home-page .bento-card--feature {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 550px;
}

.home-page .bento-card--edar {
  grid-column: span 4;
  grid-row: auto;
  min-height: 320px;
  border-color: rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.home-page .bento-card--edar .bento-card__content {
  justify-content: flex-end;
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.home-page .bento-card--atbt {
  border-color: rgba(115, 29, 39, 0.18);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 76%, #f4e9eb 100%);
}

.home-page .bento-card__content {
  justify-content: flex-end;
}

.bento-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  filter: drop-shadow(0 5px 10px rgba(115, 29, 39, 0.12));
}

.home-page .bento-card--feature h3 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.02;
}

.home-page .bento-card--feature p {
  max-width: 58ch;
  font-size: 1.04rem;
}

.home-page .bento-card--feature a + a {
  margin-top: 0.45rem;
}

.site-header .nav-cta {
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-header {
    left: 50%;
    top: 0.65rem;
    transform: translateX(-50%);
    width: min(100% - 1rem, 720px);
    border-radius: 18px;
  }

  .site-header > .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.65rem 0.8rem;
  }

  .site-header .logo img {
    width: min(178px, 48vw);
  }

  .site-header .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header.nav-open nav,
  body.nav-open .site-header nav {
    max-height: min(78vh, 680px);
    overflow-y: auto;
    padding: 0.55rem 0.15rem 0.2rem;
    opacity: 1;
  }

  .site-header nav > ul {
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.25rem 0 0.35rem;
  }

  .site-header nav > ul > li > a,
  .nav-services__trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.78rem 0.65rem;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .mega-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: 100%;
    max-height: none;
    margin: 0.15rem 0 0.6rem;
    padding: 0.8rem;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-services.is-open .mega-menu {
    display: grid;
  }

  .mega-menu__heading {
    margin-top: 0.2rem;
  }

  .site-header .nav-cta {
    justify-content: center;
    margin-top: 0.3rem;
  }

  .home-page .bento-card--feature,
  .home-page .bento-card--edar {
    grid-column: span 6;
    grid-row: auto;
    min-height: 400px;
  }

  .home-page .bento-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .home-page .bento-card--feature,
  .home-page .bento-card--edar {
    grid-column: auto;
    min-height: 360px;
  }

  .home-page .bento-card--feature h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-page .bento-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 1160px) and (min-width: 861px) {
  .mega-menu {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    width: min(760px, calc(100vw - 2rem));
    max-height: min(76vh, 680px);
    overflow-y: auto;
  }

  .site-header .logo img { width: 175px; }
  .site-header nav > ul { gap: 0.7rem; }
}

.coverage-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.coverage-section .section-heading-split h2 {
  max-width: 24ch;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  align-items: start;
  gap: 1.25rem;
}

.coverage-municipalities {
  align-self: start;
  height: auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 0.65rem;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.coverage-municipalities li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(115, 29, 39, 0.11);
  border-radius: 999px;
  background: #fff;
  color: #38383b;
  font-size: 0.86rem;
  font-weight: 600;
}

.coverage-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.coverage-note h3 {
  margin: 0.8rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.15;
}

.coverage-note p { margin-bottom: 1.1rem; color: var(--color-muted); }

.brands-section h2 { margin-top: 0.8rem; }

.brand-chip-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.brand-chip-grid li {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 12px;
  background: #fff;
  color: #41464d;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* One-hand mobile contact and navigation experience */
.mobile-action-bar {
  display: none;
}

@media (max-width: 900px) {
  .coverage-layout { grid-template-columns: 1fr; }
  .brand-chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .brand-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-municipalities { gap: 0.5rem; }
  .coverage-municipalities li { font-size: 0.78rem; }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    top: max(0.5rem, env(safe-area-inset-top));
    width: calc(100% - 1rem);
    max-width: 720px;
    border-radius: 18px;
    transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease, background 0.28s ease;
  }

  .site-header > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 60px;
    padding: 0.5rem 0.7rem;
  }

  .site-header .logo,
  .site-header .nav-toggle {
    position: relative;
    z-index: 3;
  }

  .site-header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(115, 29, 39, 0.06);
  }

  .site-header .logo img {
    width: min(168px, 48vw);
  }

  .site-header.nav-open,
  body.nav-open .site-header {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    transform: none;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.nav-open .site-header > .container {
    position: static;
    align-content: flex-start;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: max(0.5rem, env(safe-area-inset-top)) 1rem 0;
  }

  .site-header nav,
  body.nav-open .site-header nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(78px + env(safe-area-inset-top)) 1rem calc(1.25rem + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  body.nav-open .site-header nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 0 0 0.5rem;
  }

  .site-header nav > ul > li > a,
  .site-header .nav-services__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.9rem;
    border-radius: 13px;
    font-size: 1rem;
  }

  .site-header nav > ul > li > a:not(.nav-cta)::after {
    content: none;
  }

  .site-header .nav-services__trigger {
    border: 1px solid rgba(17, 17, 17, 0.07);
    background: #f8f9fa;
    text-align: left;
  }

  .site-header .mega-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    max-height: none;
    margin: 0.25rem 0 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header .nav-services.is-open .mega-menu {
    display: grid;
  }

  .site-header .mega-menu__group {
    padding: 0.15rem 0;
  }

  .site-header .mega-menu__heading {
    margin: 0.2rem 0 0.25rem;
    padding-inline: 0.65rem;
    font-size: 0.68rem;
  }

  .site-header .mega-menu__card {
    min-height: 48px;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 11px;
  }

  .site-header .mega-menu__card strong {
    font-size: 0.88rem;
  }

  .site-header .mega-menu__card small {
    font-size: 0.74rem;
  }

  .site-header .nav-cta {
    justify-content: center;
    min-height: 50px;
    margin-top: 0.45rem;
  }

  .hero-lab__copy h1,
  .hero-copy h1,
  .hero h1,
  .service-page .hero h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 8.1vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
  }

  section h2,
  .section-heading-split h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .container,
  .hero-content {
    width: min(1180px, calc(100% - 2rem));
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }

  .bento-grid > .bento-card,
  .bento-grid > .bento-card--feature,
  .bento-grid > .bento-card--wide,
  .bento-grid > .bento-card--mini,
  .bento-grid > .bento-card--edar {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 300px;
    border-radius: 20px;
  }

  .home-page .bento-card--feature,
  .home-page .bento-card--edar {
    min-height: 340px;
  }

  .home-page .bento-card--feature h3 {
    font-size: clamp(1.85rem, 7.2vw, 2.7rem);
    line-height: 1.05;
  }

  .bento-card__content {
    padding: clamp(1.2rem, 5vw, 1.7rem);
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1250;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
  }

  body.nav-open .mobile-action-bar {
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-action-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    min-height: 52px;
    padding: 0.55rem 0.5rem;
    border: 1px solid rgba(115, 29, 39, 0.18);
    border-radius: 15px;
    background: #fff;
    color: var(--color-primary-strong);
    font-size: clamp(0.68rem, 2.8vw, 0.86rem);
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  }

  .mobile-action-bar__button--call {
    border-color: var(--color-primary-strong);
    background: var(--color-primary-strong);
    color: #fff;
  }

  .mobile-action-bar__button svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
  }

  .mobile-action-bar__button:focus-visible {
    outline: 3px solid rgba(115, 29, 39, 0.3);
    outline-offset: 2px;
  }

  .floating-cta {
    display: none !important;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .feature-grid,
  .service-matrix,
  .content-grid,
  .home-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .site-header .logo img {
    width: min(148px, 46vw);
  }

  .mobile-action-bar {
    gap: 0.45rem;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  .mobile-action-bar__button {
    gap: 0.3rem;
    padding-inline: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header nav,
  .site-header .nav-services__trigger,
  .mobile-action-bar__button {
    transition: none;
  }
}
