* {
  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 {
  /* Underline manejado por ::after en el sistema de animaciones */
  text-decoration: none;
}

/* 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;
}

/* Contenedor del slider */
.heroSlider {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Track que contiene todos los slides */
.heroSlider__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Cada slide */
.heroSlide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

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

/* Ubicación sobre la imagen */
.heroSlide__location {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: 90px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
}

/* Botones de navegación (flechas) */
.heroSlider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  
  color: #fff;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: all 250ms ease;
}

.heroSlider__btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.heroSlider__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.heroSlider__btn--prev {
  left: 30px;
}

.heroSlider__btn--next {
  right: 30px;
}

.heroSlider__btn svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
  .heroSlider__track {
    transition: none;
  }
}

@media (max-width: 900px) {
  .heroSlide__location {
    font-size: 70px;
  }
  
  .heroSlider__btn {
    width: 44px;
    height: 44px;
  }
  
  .heroSlider__btn--prev {
    left: 20px;
  }
  
  .heroSlider__btn--next {
    right: 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    margin-top: var(--topbar-h);
  }
  
  .heroSlide__location {
    font-size: 48px;
    line-height: 0.95;
    padding: 0 20px;
    white-space: normal;
    max-width: 90%;
  }
  
  .heroSlider__btn {
    width: 40px;
    height: 40px;
  }
  
  .heroSlider__btn svg {
    width: 20px;
    height: 20px;
  }
  
  .heroSlider__btn--prev {
    left: 10px;
  }
  
  .heroSlider__btn--next {
    right: 10px;
  }
}

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

.band {
  background: #7cc6ff;
  padding: 44px 48px 52px;
}

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

.band__text {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
  max-width: 72ch;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  text-wrap: balance;
}

/* =========================
   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;
}

/* Wrapper por imagen: controla clip-path reveal y evita CLS */
.project__imgWrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #f1f1f1;
}

.project__img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   ANIMACIÓN DE ENTRADA - PROJECT GALLERY
   — Manejada por [data-animate="reveal"] + IntersectionObserver en js/animations.js
   ========================= */

/* =========================
   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;
}

/* =========================
   ANIMACIÓN DE ENTRADA - PROJECTS
   — Manejada por [data-animate="fade-up"] con stagger dinámico en projects.html JS
   ========================= */

/* 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 18px;
  }

  .projectCard {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 24px 0;
    border-top: 1px solid #ddd;
  }

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

  /* Imagen ocupa todo el ancho - primera fila */
  .projectCard__imgWrap {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 0 16px 0;
  }

  /* Título en la segunda fila, columna izquierda */
  .projectCard__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 56px;
    line-height: 0.9;
    margin: 0;
    padding: 0;
    align-self: end;
  }

  /* Location en la segunda fila, columna derecha, alineada con la base del título */
  .projectCard__meta:first-of-type {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: end;
    gap: 0;
    margin: 0 0 2px 12px;
  }

  /* OCULTAR Year */
  .projectCard__meta:last-child {
    display: none;
  }

  .projectCard__label {
    display: none;  /* Ocultar "Location:" */
  }

  .projectCard__location {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
  }
}

/* =========================
   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: 900px;
  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;
}

/* Sección extra (Awards, Lectures) debajo del team table */
.about__contentExtra {
  margin-top: 60px;
  padding-top: 0;
}

/* Headings de sección dentro del about text (Awards, Lectures, etc.) */
.about__sectionTitle {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 48px 0 20px;
}

.about__sectionTitle:first-child {
  margin-top: 0;
}

/* =========================
   TEAM GRID (EQUIPO) - ABOUT PAGE
   ========================= */

.team {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid #e9e9e9;
}

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

/* =========================
   TEAM TABLE — layout tipográfico inspirado en arquitectura contemporánea
   Columnas: # | Nombre | Rol (título grande) | Foto
   ========================= */

.team__grid {
  width: 100%;
}

/* Cabecera de columnas */
.team__tableHead {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 0 0 12px;
  border-bottom: 1.5px solid #111;
}

.team__colLabel {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.35;
  line-height: 1;
}

/* Cada fila del equipo */
.teamMember {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  /* Reset flex del diseño anterior */
  text-align: left;
  transition: background 200ms ease, padding-left 200ms ease;
}

.teamMember:hover {
  background: #f9f9f9;
  padding-left: 6px;
}

/* Número de índice */
.teamMember__num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.3;
  letter-spacing: 0.04em;
  line-height: 1;
  align-self: center;
}

/* Columna de nombre: bold pequeño uppercase */
.teamMember__nameWrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.teamMember__name {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  /* reset margins del diseño anterior */
  margin: 0;
}

.teamMember__nameSub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.45;
  letter-spacing: 0.03em;
}

/* Rol: elemento tipográfico dominante — título grande */
.teamMember__role {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: 42px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  /* reset anteriores */
  margin: 0;
  color: #111;
}

/* ── Responsive Team Table ─────────────────────────────── */

@media (max-width: 900px) {
  .team {
    margin-top: 50px;
    padding-top: 50px;
  }

  .team__title {
    font-size: 42px;
    margin-bottom: 40px;
  }

  .teamMember__role {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .team {
    margin-top: 40px;
    padding-top: 40px;
  }

  .team__title {
    font-size: 36px;
    margin-bottom: 28px;
  }

  /* En móvil: # | nombre+rol apilados en 2 columnas */
  .team__tableHead {
    display: none;
  }

  .teamMember {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    padding: 18px 0;
    align-items: start;
  }

  .teamMember:hover {
    padding-left: 4px;
  }

  .teamMember__num {
    grid-row: 1;
    padding-top: 6px;
    font-size: 11px;
  }

  .teamMember__nameWrap {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .teamMember__role {
    grid-column: 2;
    grid-row: 2;
    font-size: 28px;
  }
}

/* =========================
   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;
  }
}

/* =========================
   ANIMATION VARIABLES
   ========================= */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-material: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-dur: 700ms;
}

/* =========================
   ANIMACIONES DE ENTRADA — GLOBAL
   Elementos estáticos en HTML usan CSS animation directa.
   Elementos dinámicos usan [data-animate] + IntersectionObserver.
   ========================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header: aparece con fade sutil al cargar */
.topbar {
  animation: fadeIn 0.5s ease-out;
}

/* Títulos de página: slide up al cargar (elementos estáticos en HTML) */
.about__title {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.1s forwards;
}

.about__content {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.25s forwards;
}

.team__title {
  opacity: 0;
  animation: slideUp 0.6s var(--ease-out) 0.1s forwards;
}

.contact__title {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.1s forwards;
}

.project__title {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.1s forwards;
}

.project__content {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.2s forwards;
}

.project__meta {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.3s forwards;
}

/* Band text en home: fade in sobre el fondo azul */
.band__text {
  opacity: 0;
  animation: slideUp 0.7s var(--ease-out) 0.2s forwards;
}

/* =========================
   SCROLL ANIMATIONS — [data-animate]
   js/animations.js añade .is-visible cuando el elemento entra al viewport.
   ========================= */

/* Estado inicial: invisible, listo para transicionar */
[data-animate] {
  opacity: 0;
  transition-property: opacity, transform, clip-path;
  transition-timing-function: var(--ease-out);
  transition-duration: var(--anim-dur);
  /* --anim-delay se puede setear inline para stagger: style="--anim-delay: 160ms" */
  transition-delay: var(--anim-delay, 0ms);
}

/* fade-up: sube 40px mientras aparece */
[data-animate="fade-up"] {
  transform: translateY(40px);
}

/* fade-in: solo opacidad, sin movimiento */
[data-animate="fade-in"] {
  /* solo opacity, ya seteado arriba */
}

/* slide-right: entra desde la izquierda */
[data-animate="slide-right"] {
  transform: translateX(-30px);
}

/* scale-in: crece suavemente desde 95% */
[data-animate="scale-in"] {
  transform: scale(0.95);
}

/* reveal: clip-path que se expande verticalmente (efecto cortina) */
[data-animate="reveal"] {
  opacity: 1; /* visibilidad controlada por clip-path */
  clip-path: inset(8% 0 8% 0);
}

/* Estado visible — IntersectionObserver añade esta clase */
[data-animate].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0% 0 0% 0);
}

/* =========================
   SKELETON PLACEHOLDER
   Shimmer que se muestra mientras cargan imágenes dinámicas.
   Uso: añadir clase .imgSkeleton al contenedor antes de que cargue la img.
   ========================= */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.imgSkeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* =========================
   HEADER — SCROLLED STATE
   Clase .scrolled añadida por js/animations.js cuando scroll > 50px.
   ========================= */

@media (min-width: 521px) {
  .topbar {
    transition: padding 300ms ease;
  }

  /* Reducir levemente el padding vertical al hacer scroll */
  .topbar.scrolled .topbar__inner {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* =========================
   NAV — LINK ACTIVO
   .is-active añadido por js/animations.js según el pathname.
   Indicador: underline que se expande desde el centro.
   ========================= */

.topnav a {
  position: relative;
}

.topnav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: currentColor;
  transition: left 280ms ease, right 280ms ease;
}

.topnav a.is-active::after,
.topnav a:hover::after {
  left: 10px;
  right: 10px;
}

/* =========================
   PAGE TRANSITION — fade-out al navegar
   js/animations.js añade .is-leaving al clic en links internos.
   ========================= */

body {
  transition: opacity 280ms ease;
}

body.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   REDUCED MOTION
   Desactiva todas las animaciones y transiciones para usuarios que lo requieran.
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Los elementos [data-animate] deben mostrarse de inmediato */
  [data-animate],
  [data-animate].is-visible {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  body.is-leaving {
    opacity: 1 !important;
  }
}

/* Móvil: delays más cortos para respuesta más rápida */
@media (max-width: 520px) {
  .about__title    { animation-delay: 0.05s; }
  .about__content  { animation-delay: 0.1s; }
  .team__title     { animation-delay: 0.05s; }

  .contact__title  { animation-delay: 0.05s; }

  .project__title   { animation-delay: 0.05s; }
  .project__content { animation-delay: 0.1s; }
  .project__meta    { animation-delay: 0.15s; }

  .band__text { animation-delay: 0.1s; }
}