* {
  box-sizing: border-box;
}

:root {
  --topbar-h: 60px;

  /* Tipografías */
  --font-body: area-inktrap, sans-serif;
  --font-title: vinila-variable, sans-serif;

  /* Proyectos: columna derecha fija + máscara */
  --img-col-w: 520px;
  --img-col-h: 320px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-home {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-home a {
  color: inherit;
  text-decoration: none;
}

/* ===== Topbar ===== */
.topbar {
  height: var(--topbar-h);
  background: #7cc6ff;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.brand__logo {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 140px;
  font-size: 18px;
}

.topnav a {
  padding: 8px 10px;
}

.topnav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* botón hamburguesa: oculto en desktop */
.menuBtn {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin: 0;
  cursor: pointer;
}

.menuBtn__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
}

/* ===== Hero ===== */
.home {
  margin: 0;
}

.hero {
  height: calc(100vh - var(--topbar-h));
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Hero Carousel ===== */
.heroSlider {
  height: calc(100vh - var(--topbar-h));
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
}

.heroSlide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}

.heroSlide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .heroSlide {
    transition: none;
  }
}

/* =========================
   LANDING SCROLLEABLE (mock)
   ========================= */

.band {
  background: #7cc6ff;
  padding: 28px 18px 34px;
}

.band__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.band__text {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  max-width: 52ch;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
}

/* =========================
   PROYECTOS (texto + imagen)
   ========================= */

.homeProjects {
  background: #fff;
  padding: 26px 18px 70px;
}

.homeProjects__inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* Cada proyecto = una fila con 2 columnas */
.homeRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--img-col-w);
  gap: 22px;
  align-items: start;
  padding: 10px 0 18px;
  border-top: 1px solid #e9e9e9;
}

.homeRow:first-child {
  border-top: 0;
  padding-top: 0;
}

.projItem {
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  height: var(--img-col-h);
  min-width: 0;
}

.projItem__row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.projItem__title {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  margin: 0;
  font-size: 70px;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.projItem__desc {
  font-family: var(--font-body);
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0.75;
  max-width: 66ch;
  font-style: normal;
  font-weight: 400;
}

.projItem__place {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Máscara (crop) */
.imgMask {
  width: var(--img-col-w);
  height: var(--img-col-h);
  overflow: hidden;
  border-radius: 2px;
  background: #f1f1f1;
  border: 1px solid #eee;
  justify-self: end;
}

.stackImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  :root {
    --img-col-w: 460px;
    --img-col-h: 300px;
  }
}

@media (max-width: 900px) {
  .topnav {
    gap: 40px;
    font-size: 16px;
  }

  .brand__logo {
    height: 22px;
    z-index: 210;
  }

  .band__text {
    font-size: 20px;
  }

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

  .imgMask {
    width: 100%;
    justify-self: stretch;
    height: 240px;
  }

  .projItem {
    height: auto;
  }

  .projItem__title {
    font-size: 58px;
  }

  .projItem__row {
    align-items: flex-start;
  }

  .projItem__place {
    white-space: normal;
    text-align: right;
  }
}

@media (max-width: 520px) {
  :root {
    --topbar-h: 56px;
  }

  /* header fijo arriba (debe quedar sobre el overlay) */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200; /* <-- clave */
    background: #7cc6ff;
  }

  /* para que el contenido no se vaya debajo del header fijo */
  .hero {
    margin-top: var(--topbar-h);
  }
  .band {
    margin-top: 0;
  }

  .topbar__inner {
    position: relative;
    height: var(--topbar-h);
    padding: 0 14psx;
    z-index: 210; /* <-- arriba del nav */
  }

  /* logo móvil */
  .brand__logo {
    height: 34px;
    width: auto;
  }

  /* botón hamburguesa visible */
  .menuBtn {
    position: relative;
    z-index: 230; /* <-- clave: la X siempre arriba */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .menuBtn__bar {
    position: absolute;
    left: 50%;
    top: 35%;
    width: 30px;
    height: 3px;
    background: #111;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  /* 3 barras: arriba / centro / abajo */
  .menuBtn__bar:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-8px);
  }
  .menuBtn__bar:nth-child(2) {
    transform: translate(-50%, -50%);
  }
  .menuBtn__bar:nth-child(3) {
    transform: translate(-50%, -50%) translateY(8px);
  }

  /* nav -> overlay pantalla completa (debajo del header) */
  .topnav {
    display: flex;
    position: fixed;
    inset: 0;
    background: #7cc6ff;
    z-index: 150; /* <-- menor que topbar */

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 44px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .topnav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.05;
  }

  /* estado abierto */
  body.menu-open .topnav {
    opacity: 1;
    pointer-events: auto;
  }
  /* abierto: X con 2 barras + ocultar la del medio */
  body.menu-open .menuBtn__bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  body.menu-open .menuBtn__bar:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .menuBtn__bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* más aire en proyectos en móvil también */
  .projItem__desc {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.45;
  }

  .homeRow {
    padding: 24px 0 28px;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  /* imagen arriba, texto abajo */
  .imgMask {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    justify-self: stretch;
  }
}

/* =========================
   PROJECT PAGE
   ========================= */

.page-project {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-project a {
  color: inherit;
  text-decoration: none;
}

.project {
  background: #fff;
  min-height: calc(100vh - var(--topbar-h));
  padding: 40px 18px 60px;
}

.project__container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* Columna izquierda */
.project__left {
  position: sticky;
  top: calc(var(--topbar-h) + 40px);
}

.project__title {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  margin: 0 0 32px;
  font-size: 70px;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.project__content {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  padding-bottom: 32px;
}

.project__content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.project__content p:last-child {
  margin-bottom: 0;
}

/* Metadatos */
.project__meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project__metaItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project__metaLabel {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  font-family: var(--font-body);
  font-style: normal;
}

.project__metaValue {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}

.project__metaValue p {
  margin: 0 0 2px;
}

.project__metaValue p:last-child {
  margin-bottom: 0;
}

/* Galería de imágenes */
.project__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  background: #f1f1f1;
}

/* =========================
   Responsive - Project
   ========================= */

@media (max-width: 1100px) {
  .project__container {
    grid-template-columns: 320px 1fr;
    gap: 32px;
  }

  .project__title {
    font-size: 60px;
  }
}

@media (max-width: 900px) {
  .project {
    padding: 32px 18px 50px;
  }

  .project__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project__left {
    position: static;
  }

  .project__title {
    font-size: 58px;
    margin-bottom: 24px;
  }

  .project__content {
    margin-bottom: 32px;
    padding-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .project {
    margin-top: var(--topbar-h);
    padding: 24px 14px 40px;
  }

  .project__title {
    font-size: 48px;
    line-height: 0.95;
  }

  .project__content p {
    font-size: 16px;
    line-height: 1.55;
  }

  .project__gallery {
    gap: 16px;
  }
}

/* =========================
   PROJECTS PAGE
   ========================= */

.page-projects {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-projects a {
  color: inherit;
  text-decoration: none;
}

.projects {
  background: #fff;
  min-height: calc(100vh - var(--topbar-h));
  padding: 0;
}

.projects__container {
  max-width: 1432px;
  margin: 0 auto;
  padding: 0 28px;
}

.projects__list {
  display: flex;
  flex-direction: column;
}

/* Cada proyecto (card) */
.projectCard {
  display: grid;
  grid-template-columns: 350px 1fr 340px 140px;
  gap: 0;
  align-items: end;
  padding: 28px 0;
  border-top: 1px solid #ddd;
  position: relative;
}

.projectCard:first-child {
  border-top: 0;
  padding-top: 32px;
}

/* Imagen con crop y hover SOLO en la imagen */
.projectCard__imgWrap {
  width: 300px;
  height: 160px;
  overflow: hidden;
  border-radius: 0;
  background: #f1f1f1;
  position: relative;
  margin-right: 80px;
}

.projectCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover SOLO en la imagen */
.projectCard__imgWrap:hover .projectCard__img {
  transform: scale(1.08);
}

/* Título - alineado perfectamente */
.projectCard__title {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  margin: 0 0 4px 0;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-right: 20px;
  align-self: end;
}

/* Metadatos con grilla exacta */
.projectCard__meta {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: start;
  align-self: end;
  margin-bottom: 4px;
}

.projectCard__label {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-right: 8px;
}

.projectCard__location,
.projectCard__year {
  font-size: 16px;
  font-weight: 400;
}

/* Columna Year - alineada a la derecha */
.projectCard__meta:last-child {
  justify-self: end;
  text-align: right;
}

/* =========================
   Responsive - Projects
   ========================= */

@media (max-width: 1400px) {
  .projects__container {
    max-width: 1200px;
    padding: 0 24px;
  }

  .projectCard {
    grid-template-columns: 300px 1fr 300px 120px;
  }

  .projectCard__imgWrap {
    width: 240px;
    height: 142px;
    margin-right: 60px;
  }

  .projectCard__title {
    font-size: 52px;
  }
}

@media (max-width: 1100px) {
  .projects__container {
    padding: 0 20px;
  }

  .projectCard {
    grid-template-columns: 260px 1fr 280px;
    gap: 20px;
  }

  .projectCard__imgWrap {
    width: 220px;
    height: 130px;
    margin-right: 40px;
  }

  .projectCard__title {
    font-size: 46px;
  }

  /* Year debajo de Location */
  .projectCard__meta:last-child {
    grid-column: 3 / 4;
    grid-row: 1;
  }
}

@media (max-width: 900px) {
  .projects {
    padding: 0;
  }

  .projects__container {
    padding: 0 18px;
  }

  .projectCard {
    grid-template-columns: 200px 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .projectCard__imgWrap {
    width: 200px;
    height: 118px;
    margin-right: 0;
  }

  .projectCard__title {
    font-size: 40px;
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .projectCard__meta {
    grid-column: 2 / 3;
  }

  .projectCard__meta:first-of-type {
    grid-row: 2;
  }

  .projectCard__meta:last-child {
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .projects {
    margin-top: var(--topbar-h);
    padding: 0;
  }

  .projects__container {
    padding: 0 14px;
  }

  .projectCard {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .projectCard:first-child {
    padding-top: 24px;
  }

  .projectCard__imgWrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-right: 0;
  }

  .projectCard__title {
    font-size: 42px;
    line-height: 0.92;
    grid-column: 1;
    grid-row: 2;
  }

  .projectCard__meta {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .projectCard__meta:first-of-type {
    grid-row: 3;
  }

  .projectCard__meta:last-child {
    grid-row: 4;
  }

  .projectCard__label {
    font-size: 14px;
    margin-right: 0;
  }

  .projectCard__location,
  .projectCard__year {
    font-size: 14px;
  }
}

/* =========================
   ABOUT PAGE
   ========================= */

.page-about {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-about a {
  color: inherit;
  text-decoration: none;
}

.about {
  background: #fff;
  min-height: calc(100vh - var(--topbar-h));
  padding: 60px 18px 80px;
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
}

.about__title {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  margin: 0 0 40px;
  font-size: 70px;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.about__content p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* =========================
   CONTACT PAGE
   ========================= */

.page-contact {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

.page-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-contact a:hover {
  text-decoration-thickness: 2px;
}

.contact {
  background: #fff;
  min-height: calc(100vh - var(--topbar-h));
  padding: 60px 18px 80px;
}

.contact__container {
  max-width: 800px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  margin: 0 0 40px;
  font-size: 70px;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact__content > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__item h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.contact__item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

/* =========================
   Responsive - About & Contact
   ========================= */

@media (max-width: 900px) {
  .about,
  .contact {
    padding: 50px 18px 70px;
  }

  .about__title,
  .contact__title {
    font-size: 58px;
  }
}

@media (max-width: 520px) {
  .about,
  .contact {
    margin-top: var(--topbar-h);
    padding: 32px 14px 50px;
  }

  .about__title,
  .contact__title {
    font-size: 48px;
    line-height: 0.95;
    margin-bottom: 32px;
  }

  .about__content p,
  .contact__content > p,
  .contact__item p {
    font-size: 16px;
    line-height: 1.55;
  }

  .contact__item h3 {
    font-size: 16px;
  }
}