@font-face {
  font-family: "Ethnocentric";
  src: url("/fonts/ethnocentricrg.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0c0c0d;
  --surface: #151517;
  --surface-light: #1d1d20;
  --line: #303035;
  --text: #f5f5f6;
  --muted: #b8b8c0;
  --red: #e50914;
  --red-light: #ff3b3f;
  --green: #25d366;
  --content: 1180px;
  --radius: 20px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -15%, #202024 0, var(--bg) 40rem);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, .eyebrow, .button, .main-navigation a, .nav-toggle {
  font-family: "Ethnocentric", "Arial Black", sans-serif;
  letter-spacing: .045em;
}

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 4rem); hyphens: auto; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
p { margin: 0 0 1.15rem; }
ul { margin: 0; padding-left: 1.2rem; }
address { font-style: normal; }

.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); border-block: 1px solid #222226; }
.section-heading { max-width: 800px; margin-bottom: 2.5rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.red { color: var(--red-light); }
.muted { color: var(--muted); }

.skip-link {
  position: fixed;
  z-index: 200;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: white;
  color: black;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(10,10,11,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .6; }
.header-inner { width: min(calc(100% - 2rem), 1380px); min-height: 82px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { flex: 0 0 auto; }
.brand img { width: 190px; height: auto; }
.main-navigation { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.8rem, 1.6vw, 1.6rem); }
.main-navigation a { color: #d8d8dc; font-size: clamp(.62rem, .75vw, .76rem); text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { color: var(--red-light); }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #171719; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; }

.hero { position: relative; min-height: min(720px, calc(100svh - 84px)); display: grid; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5,5,6,.96) 0%, rgba(5,5,6,.78) 48%, rgba(5,5,6,.42) 100%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero-content { position: relative; z-index: 2; width: 100%; min-width: 0; max-width: 900px; padding-block: 6rem; }
.hero h1 { color: white; }
.hero .lead { max-width: 760px; color: #dedee2; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.eyebrow { display: inline-block; margin-bottom: 1.2rem; color: var(--red-light); font-size: .75rem; text-transform: uppercase; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .78rem 1.35rem; border: 1px solid var(--red); border-radius: 999px; background: linear-gradient(135deg, var(--red), var(--red-light)); color: white; font-size: .72rem; text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(229,9,20,.32); }
.button-secondary { background: transparent; color: white; }
.button-whatsapp { border-color: #25d366; background: #117a3d; }

.breadcrumb { padding-top: 1.5rem; color: #9999a2; font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .55rem; color: #626269; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { padding: clamp(1.35rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #18181b, #111113); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.card h3 { color: white; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; height: 100%; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.card-link:hover { transform: translateY(-4px); border-color: rgba(229,9,20,.72); }
.card-link .learn-more { color: var(--red-light); font-weight: 700; }
.card-icon { width: 44px; height: 4px; margin-bottom: 1.4rem; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--red-light)); box-shadow: 0 0 16px rgba(229,9,20,.4); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.split-media { overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: .65rem 0; padding-left: 1.65rem; color: #d5d5da; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red-light); font-weight: 800; }
.number-list { counter-reset: process; display: grid; gap: 1rem; padding: 0; list-style: none; }
.number-list li { position: relative; min-height: 58px; padding: .15rem 0 0 4.3rem; }
.number-list li::before { counter-increment: process; content: counter(process, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--red-light); font-family: "Ethnocentric", sans-serif; font-size: 1.5rem; }

.local-strip { padding: 1.35rem; border-block: 1px solid var(--line); background: #111113; color: #c9c9ce; text-align: center; }
.cta-panel { padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(229,9,20,.42); border-radius: calc(var(--radius) + 6px); background: radial-gradient(circle at 85% 20%, rgba(229,9,20,.16), transparent 35%), #151517; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card figcaption { padding: 1.2rem 1.35rem 1.4rem; color: #dedee2; font-weight: 650; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.review { margin: 0; }
.review blockquote { margin: 0 0 1rem; color: #dedee2; }
.review footer { color: #9d9da6; }
.stars { color: #ffc107; letter-spacing: .12em; }

.configurator-shell { min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0a0a0a; }
.configurator-shell iframe { display: block; width: 100%; min-height: 520px; border: 0; background: #0a0a0a; color-scheme: dark; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: start; }
.contact-details a { color: var(--red-light); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: #d9d9dd; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #424249; border-radius: 9px; background: #0e0e10; color: white; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red-light); outline: 3px solid rgba(229,9,20,.22); }
.form-note { grid-column: 1 / -1; color: #aaaab2; font-size: .88rem; }
.form-status { min-height: 1.7em; color: #d7d7dc; }

.modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.82); }
.modal[hidden] { display: none; }
.modal-dialog { position: relative; width: min(100%, 760px); max-height: calc(100svh - 2rem); overflow-y: auto; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #171719; box-shadow: 0 30px 90px #000; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #0d0d0f; color: white; font-size: 1.35rem; }

.site-footer { padding-top: 4rem; border-top: 1px solid var(--line); background: #09090a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { padding-left: .75rem; border-left: 3px solid var(--red); font-family: "Ethnocentric", sans-serif; font-size: .94rem; }
.site-footer p, .site-footer li, .site-footer address { color: #aaaab2; font-size: .94rem; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li { margin: .45rem 0; }
.site-footer a:hover { color: var(--red-light); }
.footer-intro img { width: 220px; margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid #242427; }
.footer-bottom p { margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-navigation { position: absolute; top: 82px; right: 1rem; left: 1rem; display: none; max-height: calc(100svh - 100px); overflow-y: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #101012; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .main-navigation.is-open { display: grid; }
  .main-navigation a { padding: .65rem .4rem; font-size: .8rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  h1 { overflow-wrap: anywhere; }
  .section { padding-block: 4rem; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(90deg, rgba(5,5,6,.95), rgba(5,5,6,.7)); }
  .cards, .review-grid, .split, .portfolio-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-media { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full, .form-note { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .hero-actions, .cta-actions { align-items: flex-start; flex-direction: column; }
  .button { max-width: 100%; }
}

@media (max-width: 480px) {
  .header-inner { gap: .5rem; }
  .brand img { width: 170px; }
  .hero h1 { font-size: clamp(1.65rem, 8.8vw, 2.15rem); letter-spacing: .025em; }
  .hero .lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
