:root {
  --g: #5fae2e;
  --gd: #2f4a1f;
  --ink: #222;
  --mut: #6d6d6d;
  --bg: #fff;
  --soft: #f5f3ee;
  --line: #e4e1da;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ecebe6;
    --mut: #a9a8a1;
    --bg: #151613;
    --soft: #1d1f1a;
    --line: #2e302a;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    300 17px/1.7 Jost,
    sans-serif;
}
body:not(.projects-view) > #proyectos {
  display: none;
}
body.projects-view > :not(header):not(#proyectos):not(#lb):not(.whatsapp-float):not(script) {
  display: none;
}
h1,
h2,
h3 {
  font-weight: 300;
  margin: 0;
}
h2,
.project-title {
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
}
.serif {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4vw;
  color: #fff;
  transition: 0.35s;
}
header.s {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.3em;
  font-size: 15px;
  text-transform: uppercase;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}
nav {
  display: flex;
  gap: 26px;
}
nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
nav a:hover {
  color: var(--g);
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s;
}
.btn:hover {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.btn.f {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.btn.f:hover {
  background: var(--gd);
  border-color: var(--gd);
}
#menu {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 26px;
}
#menu-backdrop {
  display: none;
}
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero .sl {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s;
}
.hero .sl.on {
  opacity: 1;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.hero div.c {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 76px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}
.hero p {
  margin: 22px auto 34px;
  max-width: 620px;
  font-size: 18px;
}
.hero .b {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gd);
  color: #fff;
  text-align: center;
}
.strip div {
  padding: 26px 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
section {
  padding: 110px 6vw;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.c {
  text-align: center;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
.split.r .im {
  order: 2;
}
.im img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.txt p {
  color: var(--mut);
}
.txt h2 {
  margin-bottom: 26px;
}
.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.mv h3 {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 6px;
}
.mv p {
  font-size: 15px;
  margin: 0;
}
.vals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.vals span {
  border: 1px solid var(--line);
  padding: 6px 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.soft {
  background: var(--soft);
}
.intro {
  max-width: 680px;
  margin: 20px auto 60px;
  color: var(--mut);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  display: block;
  background: var(--bg);
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.card .ph {
  height: 260px;
  background: var(--line) center/cover;
  display: grid;
  place-items: center;
  color: var(--mut);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card div.t {
  padding: 22px 24px 28px;
}
.card h3 {
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  font-size: 15px;
  color: var(--mut);
}
.tech {
  background: var(--gd);
  color: #fff;
  text-align: center;
}
.tech img {
  width: 70px;
  margin: 0 auto 26px;
  border-radius: 10px;
}
.tech .serif {
  max-width: 760px;
  margin: 26px auto 0;
  color: #e6efe0;
}
.tech .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
  font-size: 15px;
  color: #d5e2cb;
}
.tech h3 {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #fff;
}
.note {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 34px;
}
.flt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 36px 0 44px;
}
.flt button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--mut);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}
.flt button[id^="categoria-"] {
  scroll-margin-top: 85px;
}
.flt button.on {
  color: var(--ink);
  border-color: var(--g);
}
.gal {
  columns: 3;
  column-gap: 14px;
}
.gal figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.gal img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s;
}
.gal figure:hover img {
  transform: scale(1.04);
}
.gal figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: 0.3s;
}
.gal figure:hover figcaption {
  opacity: 1;
}
.empty {
  display: none;
  text-align: center;
  color: var(--mut);
}
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  z-index: 50;
  cursor: zoom-out;
}
.lb.on {
  display: grid;
}
.lb img {
  max-height: 92vh;
  max-width: 94vw;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: 56px;
  text-align: left;
}
.steps div {
  border-top: 2px solid var(--g);
  padding-top: 18px;
}
.steps b {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin: 8px 0;
}
.steps p {
  font-size: 14px;
  color: var(--mut);
  margin: 0;
  line-height: 1.6;
}
.steps i {
  font-style: normal;
  color: var(--g);
  font-size: 13px;
  letter-spacing: 0.15em;
}
.hl {
  margin-top: 54px;
  font-size: clamp(20px, 2.4vw, 28px);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
summary:after {
  content: "+";
  color: var(--g);
  font-size: 24px;
  line-height: 1;
}
details[open] summary:after {
  content: "–";
}
details p {
  color: var(--mut);
  margin: 12px 0 0;
  max-width: 720px;
}
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 150px 6vw;
  background: #333 center/cover;
}
.cta:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.cta > * {
  position: relative;
}
.cta p {
  margin: 18px 0 34px;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 50px auto 0;
  text-align: left;
}
form .w {
  grid-column: 1/-1;
}
label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  display: block;
  margin-bottom: 4px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--g);
}
.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--mut);
}
.chk input {
  width: auto;
  margin-top: 6px;
}
.acts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#ok {
  display: none;
  color: var(--g);
}
footer {
  background: var(--soft);
  padding: 80px 6vw 30px;
}
.fc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}
.fc h4 {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
}
.fc p {
  margin: 0;
  font-size: 15px;
  color: var(--mut);
}
.pend {
  background: #fff3b8;
  color: #5c4a00;
  padding: 0 6px;
  font-size: 13px;
}
.fb {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--mut);
  max-width: 1200px;
  margin: 0 auto;
}
.fb a {
  text-decoration: none;
  margin-left: 14px;
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  right: 25px;
  bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.4);
}
@media (max-width: 900px) {
  #nv {
    position: fixed;
    top: 0;
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    left: 0;
    right: auto;
    width: 70vw;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    color: var(--ink);
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 24px
      calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateX(-105%);
    transition: transform 0.35s;
    gap: 0;
    overflow-y: auto;
    z-index: 3;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
  }
  #nv.on {
    transform: translateX(0);
  }
  #nv a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  #nv .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 8px;
  }
  #nv .drawer-head .brand {
    gap: 8px;
    letter-spacing: 0.14em;
    font-size: 12px;
    white-space: nowrap;
    padding: 0;
    border-bottom: 0;
  }
  #nv .drawer-head .brand img {
    width: 34px;
    height: 34px;
  }
  #nv .drawer-footer {
    margin-top: auto;
    flex-shrink: 0;
  }
  #menu,
  #menu-close {
    display: block;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
  }
  #menu {
    z-index: 2;
    font-size: 26px;
  }
  #menu-close {
    font-size: 30px;
    line-height: 1;
    padding: 2px 6px;
  }
  #menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    z-index: 1;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open #menu-backdrop {
    display: block;
  }
  .strip,
  .cards,
  .steps,
  .fc {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .mv,
  .tech .cols,
  form {
    grid-template-columns: 1fr;
  }
  .split.r .im {
    order: 0;
  }
  .im img {
    height: 360px;
  }
  .gal {
    columns: 2;
  }
  section {
    padding: 80px 6vw;
  }
}
@media (max-width: 560px) {
  .cards,
  .steps,
  .fc,
  .strip {
    grid-template-columns: 1fr;
  }
  .gal {
    columns: 1;
  }
}
.drawer-head {
  display: none;
}
.drawer-footer {
  display: none;
}
@media (max-width: 900px) {
  #nv .drawer-footer {
    display: block;
    margin: auto 0 0;
    padding-top: 24px;
    color: var(--mut);
    font-size: 12px;
    line-height: 1.5;
  }
}
