/* ========================================================
   MAKA design studio
   ──────────────────────────────────────────────────────────
   Sistema:
     bg     #F7F4EE    fondo hueso
     ink    #4A4A4A    texto base
     navy   #0E7AC4    links / clicables
     yellow #FFD200    gráficos + acentos (nunca en cuerpo)
     border #D0D0D0    separadores
     muted  #888888    secundario
     dark   #1C1A17    hero, tiles de producto
   Tipografía:
     Courier New 400              — logo, labels, specs, footer
     System sans                  — cuerpo, párrafos, nombres
     Helvetica Neue / Arial 300   — sólo títulos grandes
   Reglas:
     · Sin border-radius (excepto círculos)
     · Sin sombras, sin gradientes decorativos
     · Grid de objetos: solo líneas verticales
   ======================================================== */

:root {
  --bg:      #F7F4EE;
  --ink:     #4A4A4A;
  --navy:    #0E7AC4;
  --yellow:  #FFD200;
  --border:  #DCD8CF;
  --line:    #E4E0D7;
  --muted:   #888888;
  --dark:    #1C1A17;
  --warm:    #ECE7DC;
  --warm-2:  #E3DDD0;
  --light-ink: var(--warm);

  --mono: "Courier New", Courier, ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Helvetica Neue", "Arial", sans-serif;

  --nav-h: 56px;
  --page-pad-x: 48px;
  --shell-max: 1320px;
}

* { box-sizing: border-box; }
*::selection { background: var(--yellow); color: var(--ink); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============== HEADER ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.header__inner {
  height: 100%;
  padding: 0 var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 2px;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

/* ============== LAYOUT ============== */
/* Shell — marco interno suave: laterales hasta --shell-max */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.header__inner,
.footer__inner-wrap {
  max-width: var(--shell-max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.header__inner {
  height: 100%;
}
.footer__inner-wrap {
  padding: 20px var(--page-pad-x);
}

.label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin-right: 9px;
  transform: translateY(-1px);
}

.page {
  animation: pageIn 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.title-xl {
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

/* ============== HOME — HERO ============== */
.hero {
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}
.hero__visual {
  position: relative;
  min-height: 500px;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__visual image-slot {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  --image-slot-bg: var(--warm);
  --image-slot-border: var(--warm-2);
  --image-slot-text: var(--muted);
}
.hero__body {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__body-inner {
  padding: 40px var(--page-pad-x) 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero__lead {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero__meta {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero__meta strong {
  color: var(--ink);
  font-weight: 400;
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
  font-family: var(--sans);
}

/* ============== SECTION HEAD ============== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--page-pad-x) 20px;
  border-bottom: 1px solid var(--line);
}
.section-head__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.section-head .label {
  font-weight: 700;
  color: var(--ink);
}

/* ============== OBJETOS GRID — marco + verticales ============== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  border-right: 1px solid var(--line);
  transition: background 160ms ease;
}
.card:last-child { border-right: none; }
.card--clickable { cursor: pointer; }
.card--clickable:hover { background: #FBF9F4; }
.card__image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm);
  padding: 32px;
  min-height: 300px;
}
.card__image--empty {
  background: var(--warm);
}
.card__body {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.card__name {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.card__name--muted { color: var(--muted); }
.card__link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card__link--muted {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  font-weight: 400;
}
.card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card__price {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.card__empty-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* ============== MANIFIESTO ============== */
.manifesto {
  border-bottom: 1px solid var(--line);
  padding: 56px var(--page-pad-x);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.manifesto__quote {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 720px;
}
.manifesto__quote span {
  color: var(--muted);
}

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer__logo {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============== PRODUCT PAGE ============== */
.product__head {
  padding: 24px var(--page-pad-x);
  border-bottom: 1px solid var(--line);
}
.product__crumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.product__crumb a {
  color: var(--navy);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.product__crumb a:hover { border-bottom-color: var(--navy); }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.product__gallery + .product__info {
  border-left: 1px solid var(--line);
}
.gallery__main { border-bottom: 1px solid var(--line); }
.gallery__row { border-bottom: 1px solid var(--line); }
.gallery__thumb + .gallery__thumb { border-left: 1px solid var(--line); }
.product__gallery {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.gallery__main {
  height: 520px;
  background: var(--warm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery__main image-slot {
  width: 100%; height: 100%;
  --image-slot-bg: var(--warm);
  --image-slot-border: var(--warm-2);
  --image-slot-text: var(--muted);
}
.gallery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.gallery__thumb {
  height: 240px;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gallery__thumb image-slot {
  width: 100%; height: 100%;
  --image-slot-bg: var(--warm);
  --image-slot-border: var(--border);
  --image-slot-text: var(--muted);
}
.gallery__tech {
  height: 280px;
  background: var(--warm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery__caption {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 1;
}
.gallery__caption--light { color: rgba(255,255,255,0.5); }
.gallery__index {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  z-index: 1;
}
.gallery__index--light { color: rgba(255,255,255,0.5); }

.product__info {
  padding: 48px 40px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.product__title-wrap {
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}
.product__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.product__sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 12px 0 0;
}

.product__section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.product__desc p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 12px;
}
.product__desc p:last-child { margin-bottom: 0; }

.specs__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
.specs__table tr {
  border-bottom: 1px solid var(--line);
}
.specs__table tr:last-child { border-bottom: none; }
.specs__table td {
  padding: 8px 0;
  vertical-align: top;
}
.specs__table td:first-child {
  color: var(--muted);
  width: 44%;
  padding-right: 16px;
}
.specs__table td:last-child {
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.cta:hover { opacity: 0.7; }
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.cta-row__note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.cta-row__note a {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

.tech-note__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.tech-note__body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

/* PROCESO */
.proceso__stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.proceso__stage { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proceso__stage {
  padding: 14px 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.proceso__stage::before {
  content: attr(data-num);
  display: block;
  font-size: 9px;
  color: var(--border);
  margin-bottom: 6px;
  letter-spacing: 0.18em;
}
.proceso__stage.is-final {
  color: var(--navy);
  background: var(--bg);
}
.proceso__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proceso__tile + .proceso__tile { border-left: 1px solid var(--line); }
.proceso__tile {
  height: 160px;
  background: var(--warm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proceso__tile image-slot {
  width: 100%; height: 100%;
  --image-slot-bg: var(--warm);
  --image-slot-border: var(--border);
  --image-slot-text: var(--muted);
}

/* ============== ABOUT ============== */
.about {
  padding: 56px var(--page-pad-x) 64px;
  border-bottom: 1px solid var(--line);
}
.about__head {
  margin-bottom: 40px;
}
.about__head .label { margin-bottom: 32px; display: block; }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}
.about-image {
  height: 480px;
  background: var(--warm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-image image-slot {
  width: 100%; height: 100%;
  --image-slot-bg: var(--warm);
  --image-slot-border: var(--border);
  --image-slot-text: var(--muted);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 56ch;
}
.about-text p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.about-text p.muted { color: var(--muted); }
.about-sig {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.principles {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.principles__intro {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 22ch;
}
.principles__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle {
  background: var(--bg);
  padding: 20px 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.principle__num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
}
.principle__name {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
}

/* ============== CONTACT ============== */
.contact-page {
  padding: 64px var(--page-pad-x);
  min-height: calc(100vh - var(--nav-h) - 60px);
  border-bottom: 1px solid var(--line);
}
.contact-page .label { display: block; margin-bottom: 32px; }
.contact-page__lead {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 400px;
  margin: 0 0 32px;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--yellow);
}
.contact-page__meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 880px;
}
.contact-page__meta-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.contact-page__meta-item strong {
  display: block;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 6px;
}
.contact__copied {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  :root { --page-pad-x: 20px; }
  .hero__visual, .hero__visual image-slot { min-height: 360px; }
  .hero__body-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px var(--page-pad-x) 32px; }
  .hero__lead { font-size: 22px; }
  .hero__meta { flex-wrap: wrap; gap: 20px 32px; }

  .title-xl { font-size: 36px; }
  .section-head { padding: 28px var(--page-pad-x) 16px; }

  .grid-3 { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--line); min-height: 360px; }
  .card:last-child { border-bottom: none; }

  .manifesto { grid-template-columns: 1fr; gap: 16px; padding: 32px var(--page-pad-x); }
  .manifesto__quote { font-size: 18px; }

  .product { grid-template-columns: 1fr; }
  .gallery__main { height: 320px; }
  .gallery__thumb { height: 180px; }
  .gallery__tech { height: 200px; }
  .product__info { padding: 32px var(--page-pad-x); }
  .product__title { font-size: 28px; }
  .proceso__stages { grid-template-columns: repeat(3, 1fr); }

  .about { padding: 32px var(--page-pad-x) 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-image { height: 280px; }
  .about-text p { font-size: 15px; }
  .principles { grid-template-columns: 1fr; gap: 16px; }
  .principles__list { grid-template-columns: repeat(2, 1fr); }

  .contact-page { padding: 40px var(--page-pad-x); }
  .contact-page__meta { grid-template-columns: 1fr; gap: 24px; }

  .nav { gap: 18px; }
  .footer__inner { flex-direction: column; gap: 8px; align-items: flex-start; }
}
