@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #111111;
  --paper-deep: #191919;
  --ink: #f7f6ee;
  --muted: #a9aaa5;
  --soft-gray: #9aa0a6;
  --line: #30302e;
  --lime: #d7ff00;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", Arial, sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.section-shell { width: calc(100% - 36px); max-width: var(--max); margin: 0 auto; }
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: calc(100% - 36px); max-width: var(--max); min-height: 66px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand-logo { display: block; width: 156px; height: auto; overflow: hidden; }

.site-nav { display: flex; align-items: center; gap: 25px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.035em; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 7px 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px auto; background: var(--ink); }

.eyebrow { margin: 0; color: var(--muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow span { margin-right: 6px; color: var(--ink); }
.hero { position: relative; isolation: isolate; display: flex; min-height: clamp(560px, calc(100svh - 76px), 740px); flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; padding-top: 38px; padding-bottom: 22px; text-align: center; }
.hero-visual { position: absolute; z-index: -1; bottom: -5%; left: 50%; width: 100vw; height: 65%; max-width: none; object-fit: cover; transform: translateX(-50%); opacity: 0.92; pointer-events: none; }
.hero-content { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 17px; margin: auto 0; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(1.9rem, 5.2vw, 3.45rem); font-weight: 620; line-height: 1.12; letter-spacing: -0.045em; }
.hero h1 > span { display: block; }
h1 em, h2 em { color: var(--ink); font-style: normal; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hero-aside { max-width: 390px; }
.hero-aside p { margin: 0 0 7px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 0.75rem; font-weight: 650; letter-spacing: 0; min-height: 44px; text-transform: none; transition: color 160ms ease, border-color 160ms ease; }
.text-link:hover { color: var(--ink); border-color: var(--lime); }

.hero-signature { position: relative; display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.hero-signature span:last-child { margin-left: auto; color: var(--soft-gray); }
.lime-mark { width: 7px; height: 7px; background: var(--lime); }

.projects { padding-top: 48px; padding-bottom: 77px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.section-heading h2, .approach h2, .contact h2 { margin: 10px 0 0; font-size: clamp(1.55rem, 6vw, 2rem); font-weight: 650; line-height: 1.2; letter-spacing: -0.03em; }
.section-description { max-width: 330px; margin: 0; color: var(--muted); font-size: 0.77rem; line-height: 1.55; }
.filters { display: flex; gap: 19px; overflow-x: auto; margin: 0 0 8px; padding: 0 0 11px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { position: relative; flex: 0 0 auto; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.7rem; font-weight: 600; white-space: nowrap; transition: color 160ms ease; }
.filter::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: transparent; content: ""; }
.filter:hover, .filter.is-active { color: var(--ink); }
.filter.is-active::after { background: var(--lime); }
.filter span { margin-left: 3px; color: var(--soft-gray); font-size: 0.53rem; }

.project-list { border-top: 0; }
.project-row { border-bottom: 1px solid var(--line); }
.project-link { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); align-items: center; gap: 14px; min-height: 136px; padding: 13px 0; }
.project-image { display: block; width: 100%; aspect-ratio: 1.28 / 1; overflow: hidden; background: var(--paper-deep); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.project-link:hover .project-image img { transform: scale(1.025); }
.image-tedi img { object-position: center 24%; }
.image-arqfree img { object-position: center; }
.image-amba img { object-position: center; }
.image-fibermak img { object-position: center; }
.image-ferreteria img { object-position: center 48%; }
.image-sumaq img { object-position: center 35%; }
.project-info { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding-right: 0; }
.project-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--muted); font-size: 0.53rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.project-meta span:first-child { color: var(--soft-gray); }
.project-title { display: block; max-width: 100%; font-size: 1.05rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; }
.project-description { display: block; max-width: 390px; margin-top: 5px; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.project-visit { display: inline-block; margin-top: 9px; color: var(--ink); font-size: 0.69rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--soft-gray); text-underline-offset: 4px; }
.project-link:hover .project-visit { text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.project-row.is-hidden { display: none; }
.empty-state { margin: 22px 0; color: var(--muted); font-size: 0.75rem; }

.approach { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 44px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.approach h2 { max-width: 430px; }
.approach-heading > p:last-child { max-width: 360px; margin: 14px 0 0; color: var(--muted); font-size: 0.77rem; line-height: 1.55; }
.approach-list { border-top: 1px solid var(--line); }
.approach-item { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.approach-item > span { padding-top: 2px; color: var(--soft-gray); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; }
.approach-item h3 { margin: 0 0 4px; font-size: 0.97rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.approach-item p { max-width: 370px; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }

.contact { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 29px; padding-bottom: 42px; border-top: 1px solid var(--line); }
.contact h2 { margin-top: 0; font-size: clamp(1.55rem, 6vw, 2rem); }
.contact .text-link { justify-self: start; }
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { display: flex; width: calc(100% - 36px); max-width: var(--max); min-height: 72px; align-items: center; justify-content: space-between; gap: 15px; margin: 0 auto; }
.footer-inner .brand-logo { width: 140px; }
.footer-inner p, .footer-inner > span { margin: 0; color: var(--soft-gray); font-size: 0.53rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (min-width: 720px) {
  .section-shell, .site-header { width: min(calc(100% - 64px), var(--max)); }
  .site-header { min-height: 76px; }
  .hero { min-height: clamp(620px, calc(100svh - 76px), 780px); padding-top: 48px; padding-bottom: 26px; }
  .hero-content { gap: 20px; }
  .hero h1 { font-size: clamp(2.8rem, 4.5vw, 3.25rem); }
  .hero-aside { max-width: 440px; }
  .hero-signature { padding-top: 14px; }
  .projects { padding-top: 57px; padding-bottom: 90px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.6fr); align-items: end; gap: 35px; margin-bottom: 31px; }
  .section-heading h2, .approach h2 { font-size: 2.1rem; }
  .filters { gap: 24px; margin-bottom: 10px; }
  .project-link { grid-template-columns: minmax(210px, 32%) minmax(0, 1fr); gap: 32px; min-height: 185px; padding: 17px 0; }
  .project-image { aspect-ratio: 1.55 / 1; }
  .project-info { padding-right: 0; }
  .project-meta { margin-bottom: 10px; font-size: 0.57rem; }
  .project-title { font-size: 1.35rem; }
  .project-description { max-width: 480px; margin-top: 8px; font-size: 0.76rem; }
  .approach { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; padding-top: 58px; padding-bottom: 76px; }
  .approach-heading > p:last-child { font-size: 0.82rem; }
  .approach-list { margin-top: 1px; }
  .approach-item { grid-template-columns: 40px 1fr; padding: 19px 0; }
  .approach-item h3 { font-size: 1.05rem; }
  .approach-item p { font-size: 0.73rem; }
  .contact { grid-template-columns: 1fr auto; align-items: end; gap: 15px 30px; padding-top: 39px; padding-bottom: 47px; }
  .contact .eyebrow { grid-column: 1 / -1; }
  .contact h2 { font-size: 2.1rem; }
  .contact .text-link { margin-bottom: 4px; }
  .footer-inner { width: min(calc(100% - 64px), var(--max)); }
}

@media (max-width: 560px) {
  .hero { min-height: clamp(520px, 76svh, 650px); padding-top: 29px; padding-bottom: 18px; }
  .hero-visual { bottom: -2%; width: 150vw; height: 58%; opacity: 0.78; }
  .hero-content { gap: 14px; }
  .hero h1 { font-size: clamp(1.9rem, 7.8vw, 2.2rem); }
  .hero-aside { max-width: 300px; }
  .hero-aside p { font-size: 0.78rem; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 57px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 5px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a:hover { background: var(--paper-deep); }
  .project-link { grid-template-columns: minmax(94px, 33%) minmax(0, 1fr); gap: 12px; min-height: 117px; padding: 11px 0; }
  .project-image { aspect-ratio: 1.12 / 1; }
  .project-title { font-size: 1rem; }
  .project-description { font-size: 0.75rem; }
  .project-meta { flex-wrap: wrap; gap: 6px; font-size: 0.59rem; }
  .project-info { padding-right: 0; }
  .brand-logo { width: 138px; }
  .hero-signature { flex-wrap: wrap; }
  .footer-inner { flex-wrap: wrap; padding: 17px 0; }
  .footer-inner p { margin-left: auto; }
  .footer-inner > span { width: 100%; padding-top: 10px; border-top: 1px solid #383838; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.site-footer :focus-visible { outline-color: var(--lime); }

/* Identidades alineadas: misma zona óptica, sin recortar los logotipos. */
.project-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.55; background: transparent; }
.project-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: grayscale(1); mix-blend-mode: screen; }
.project-link:hover .project-image img { transform: none; }
.image-tedi img { width: 72%; height: 72%; filter: brightness(0) invert(.93); }
.image-amba img { width: 90%; }
.image-ferreteria img { width: 90%; filter: grayscale(1) contrast(1.2); }
.image-fibermak img { filter: brightness(0) invert(.93); }
.image-sumaq img { width: 100%; }
.project-wordmark { color: var(--ink); font-size: clamp(1.2rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.06em; }
@media (min-width: 720px) {
  .project-link { grid-template-columns: minmax(180px, 24%) minmax(0, 1fr); min-height: 190px; gap: 56px; }
  .project-image { height: 150px; }
}
@media (max-width: 560px) {
  .project-image { height: 108px; aspect-ratio: auto; }
  .project-link { padding: 20px 0; }
}

