/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --gray-100: #f5f4f1;
  --gray-300: #d4d0c8;
  --gray-500: #8a8680;
  --gray-700: #4a4844;
  --accent: #1a1a1a;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 15px; }

/* Fix anchor scroll offset for fixed nav */
section, .operator-strip {
  scroll-margin-top: 80px;
}

@media (max-width: 767px) {
  section, .operator-strip { scroll-margin-top: 64px; }
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 4rem;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
  transition: padding 0.3s;
}

/* Shrink on scroll — only vertical padding, horizontal stays per breakpoint */
nav.nav-scrolled {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Hero: invert nav when over image */
.hero-nav-dark .nav-logo,
.hero-nav-dark nav ul a,
.hero-nav-dark .nav-burger span {
  color: var(--white);
  background: var(--white);
}
.hero-nav-dark .lang-btn {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--black);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--black); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  padding: 0 4rem 3rem;
  overflow: hidden;
  color: var(--white);
}

.hero-content {
  padding-top: 6rem;
  padding-bottom: 0;
}

.hero-content > .btn {
  position: absolute;
  bottom: 5.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/marriott.jpg');
  background-size: cover;
  background-position: center 65%;
  transform-origin: center center;
  animation: heroEntrance 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform;
}

@keyframes heroEntrance {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.2s ease forwards;
}

.hero-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
  animation: heroFadeIn 1s ease 0.2s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.8vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--white);
  animation: heroFadeIn 1s ease 0.1s both;
}

.hero-sub {
  max-width: 480px;
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 300;
  animation: heroFadeIn 1s ease 0.4s both;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--black); color: var(--white); }

.btn-light {
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-stats {
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  right: 4rem;
  z-index: 2;
  display: flex;
  gap: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  animation: heroFadeIn 1s ease 0.6s both;
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── Sections ── */
section { padding: 8rem 4rem; }

#projects {
  background: var(--gray-100);
  padding-top: 4rem;
}

#recognition { padding-top: 4rem; }

.section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 520px;
}

/* ── Projects Grid ── */
.projects-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* First card spans full width */
.project-card:first-child {
  grid-column: 1 / -1;
}

.project-card:first-child .project-img {
  aspect-ratio: 21/9;
}

.project-card:first-child .project-info {
  padding: 2rem 2.5rem;
}

.project-card:first-child h3 {
  font-size: 2rem;
}

.project-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.placeholder { width: 100%; aspect-ratio: 4/3; }

.project-info { padding: 1.5rem; }

.project-tag {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: 0.5rem;
}

.project-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.project-info p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.award {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ── Recognition ── */
#recognition { background: var(--gray-100); }

.recognition-feature {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.recognition-main img,
.recognition-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05) brightness(0.97);
  transition: filter 0.5s ease;
}

.recognition-main:hover img,
.recognition-item:hover img {
  filter: grayscale(0%) contrast(1) brightness(1);
}

.recognition-main img { aspect-ratio: 4/3; }
.recognition-item img { aspect-ratio: 16/9; }

.recognition-caption {
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.recognition-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0.4rem 0 0.5rem;
}

.recognition-caption p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.recognition-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recognition-item { background: var(--white); overflow: hidden; }

/* Team photo */
.recognition-team {
  max-width: 1400px;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
}

.recognition-team img {
  width: 100%;
  display: block;
  aspect-ratio: 21/8;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(15%) contrast(1.05);
}

.recognition-team-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
}

.recognition-team-caption .project-tag {
  color: rgba(255,255,255,0.7);
}

.recognition-team-caption p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.4rem;
}

/* Awards list */
.recognition-awards {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
}

.rec-award {
  background: var(--white);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rec-year {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.rec-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
}

.rec-project {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ── About ── */
#about { background: var(--white); padding-bottom: 6rem; }

/* Portrait row */
.about-portrait-row {
  max-width: 1400px;
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 7rem;
  align-items: start;
}

.about-portrait-wrap {
  position: sticky;
  top: 7rem;
}

.about-portrait {
  width: 100%;
  display: block;
  filter: grayscale(15%);
}

.about-portrait-caption {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-300);
}

.about-portrait-caption .hero-label {
  display: block;
  margin-bottom: 0.25rem;
}

.about-portrait-caption p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.about-portrait-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

.about-portrait-text p {
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}

/* Three-column awards row */
.about-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--gray-300);
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-300);
}

.about-meta strong {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.about-meta p {
  font-size: 0.98rem;
  margin: 0;
  color: var(--gray-500);
}

.about-awards h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-awards ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-awards li {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.98rem;
}

.award-year {
  color: var(--gray-500);
  font-size: 0.88rem;
  min-width: 2.5rem;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

/* ── Project clickable ── */
.project-card--clickable { cursor: pointer; }
.project-card--clickable::after {
  content: var(--view-project-label, 'View Project');
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card--clickable { position: relative; }
.project-card--clickable:hover::after { opacity: 1; }

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 2;
  background: var(--white);
  width: 96vw;
  max-width: 1600px;
  height: 92vh;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}
.modal.open .modal-panel { transform: translateY(0); }

/* Header — always visible */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
  flex-shrink: 0;
}

.modal-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-left: 1rem;
  margin-top: 0.2rem;
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover { color: var(--black); }

/* Body — scrollable */
.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Left: gallery */
.modal-left {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.modal-hero-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.modal-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.modal-thumbs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #0a0a0a;
  flex-shrink: 0;
}

.modal-thumb {
  flex: 1;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
  min-width: 0;
}
.modal-thumb:hover { opacity: 0.85; }
.modal-thumb.active { opacity: 1; outline: 2px solid rgba(255,255,255,0.6); }

/* Nav arrows */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.42);
  border: none;
  color: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.modal-nav-btn:hover { background: rgba(0,0,0,0.7); }
.modal-nav-btn--prev { left: 0.65rem; }
.modal-nav-btn--next { right: 0.65rem; }
.modal-nav-btn:disabled { opacity: 0.15; cursor: default; pointer-events: none; }
.modal-nav-btn.hidden { display: none; }

/* Image counter */
.modal-counter {
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  pointer-events: none;
  font-family: var(--font-sans);
}

/* Right: text */
.modal-right {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
}

.modal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.modal-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-metric-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
}

.modal-metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.modal-scope-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-scope-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.modal-scope {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.modal-desc {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.85;
}

@media (max-width: 767px) {
  .modal-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
  }
  .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }
  /* Modal mobile: imagen principal con aspect-ratio fijo */
  .modal-left { flex-shrink: 0; }
  .modal-hero-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 48vh;
    position: relative;
    overflow: hidden;
  }
  /* Thumbnails móvil: más altos, arrastrables horizontalmente */
  .modal-thumbs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding: 4px;
    gap: 4px;
  }
  .modal-thumbs::-webkit-scrollbar { display: none; }
  .modal-thumb {
    flex: none;
    width: auto;
    height: 64px;
    aspect-ratio: auto;
    min-width: 0;
  }
  /* Flechas más pequeñas en móvil */
  .modal-nav-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
  }
  .modal-right { padding: 1.25rem; overflow-y: visible; }
  .modal-header { padding: 1.25rem; }
  .modal-title { font-size: 1.4rem; }
}

/* ── Approach ── */
#approach { background: var(--gray-100); }

.approach-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.approach-item { display: flex; flex-direction: column; gap: 0.75rem; }

.approach-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1;
}

.approach-item h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.approach-item p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Contact ── */
#contact {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.contact-inner { max-width: 780px; margin: 0 auto; }

#contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

#contact p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: inline-block;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact-item:hover {
  border-bottom-color: var(--white);
  color: rgba(255,255,255,0.8);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}


.btn-cv {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: box-shadow 0.2s, background 0.2s;
  background: transparent;
}
.btn-cv:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,1);
  background: rgba(255,255,255,0.07);
}

/* ── Lightbox ── */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.img-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox-img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--white); }

/* ── Footer ── */
footer {
  background: var(--black);
  color: var(--gray-500);
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--gray-700);
}

/* ── Language menu ── */
.lang-menu {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lang-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.lang-arrow {
  font-size: 0.65em;
  transition: transform 0.2s;
  line-height: 1;
}
.lang-menu.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  list-style: none;
  padding: 0.3rem 0;
  min-width: 130px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.lang-options.open {
  display: block;
}
.lang-options li {
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: color 0.15s, background 0.15s;
}
.lang-options li:hover {
  color: var(--black);
  background: var(--gray-100);
}
.lang-options li.active {
  color: var(--black);
  font-weight: 400;
}

/* ── Hamburger button — hidden on desktop ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Operator strip below hero ── */
.operator-strip {
  background: var(--black);
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.operator-strip span.op-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.operator-strip .op-names {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.operator-strip .op-names span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Responsive — iPad (768-1024px) ── */
@media (max-width: 1024px) {
  nav { padding: 1.25rem 2rem; }
  section { padding: 5rem 2rem; }
  .hero { padding: 0 2rem 3rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .project-card:first-child .project-img { aspect-ratio: 16/9; }
  .about-portrait-row { grid-template-columns: 220px 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .recognition-feature { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .recognition-awards { grid-template-columns: 1fr; }
  .operator-strip { padding: 1.25rem 2rem; gap: 2rem; }
}

/* ── Responsive — Short viewports (laptop 80% zoom) ── */
@media (max-height: 850px) {
  .hero-content { padding-top: 5.5rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.5rem; }
}

/* ── Responsive — Mobile (up to 767px) ── */
@media (max-width: 767px) {

  /* Base font más pequeño en mobile — proporcional como apps nativas */
  html { font-size: 15px; }

  /* Nav */
  nav {
    padding: 1rem 1.5rem;
    position: fixed;
    z-index: 500;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(8px);
  }

  /* DLI toma todo el espacio → EN y burger quedan juntos a la derecha */
  .nav-logo { flex: 1; }

  .nav-burger { display: flex; z-index: 600; }
  .lang-menu { z-index: 600; margin-right: 0.75rem; }
  .lang-btn {
    font-size: 0.68rem;
    padding: 0.28rem 0.55rem;
    box-shadow: inset 0 0 0 1px var(--gray-500);
    border: none;
  }
  .lang-options { right: 0; }

  /* Mobile menu overlay */
  #nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #fafaf8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 550;
    list-style: none;
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex !important;
  }

  #nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  #nav-links li a {
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0a0a0a !important;
    text-decoration: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
  }

  /* Hero */
  .hero { padding: 0 1.5rem; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-bg { animation: none; background-size: cover; background-position: center 80%; }
  .hero-content { padding-top: 5rem; padding-bottom: 2rem; }
  .hero-content > .btn { position: static; display: inline-block; margin-top: 1.75rem; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1; }
  .hero-label { font-size: 0.65rem; letter-spacing: 0.06em; white-space: nowrap; }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-stats { position: static; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 0 2.5rem; border-top-color: rgba(255,255,255,0.2); }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.78rem; }

  /* Operator strip */
  .operator-strip {
    padding: 1.25rem 1.5rem;
    gap: 0.6rem 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .operator-strip .op-names {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem 0;
    flex: 1;
  }
  .operator-strip .op-names span {
    font-size: 0.88rem;
    text-align: center;
  }

  /* Sections */
  section { padding: 3.5rem 1.5rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.9rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card:first-child { grid-column: 1; }
  .project-card:first-child .project-img { aspect-ratio: 16/9; }
  .project-card:first-child h3 { font-size: 1.3rem; }
  .project-card:first-child .project-info { padding: 1.25rem; }
  .project-info { padding: 1rem 1.25rem; }
  .project-info h3 { font-size: 1.2rem; }

  /* Recognition */
  .recognition-feature { grid-template-columns: 1fr; gap: 1rem; }
  .recognition-side { gap: 1rem; }
  .recognition-awards { grid-template-columns: 1fr; }
  .rec-award { padding: 1.25rem; }

  /* About */
  .about-portrait-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .about-portrait-wrap {
    position: static;
    width: 180px;
    margin: 0 auto;
  }
  .about-portrait-text { text-align: left; }
  .about-portrait-caption { display: none; }
  .about-portrait-text h2 { font-size: 1.9rem; }
  .about-portrait-text p { font-size: 0.9rem; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-awards { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--gray-300); }
  .about-awards h3 { font-size: 1.1rem; }

  /* Contact */
  #contact { padding: 4rem 1.5rem; }
  #contact h2 { font-size: 1.9rem; }
  #contact p { font-size: 0.88rem; }
  /* Contact mobile */
  .contact-links { gap: 1rem; margin-bottom: 2rem; }
  .contact-item { font-size: 0.78rem; letter-spacing: 0.08em; }
  .contact-actions { gap: 0.75rem; flex-direction: column; align-items: center; }
  .btn-cv { padding: 0.65rem 1.4rem; font-size: 0.72rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75); width: 200px; text-align: center; }

  /* Prevent browser auto-link and auto-color detection */
  a[href^="tel"], a[href^="mailto"] { color: inherit !important; text-decoration: none; }
  * { -webkit-touch-callout: none; }
}

/* Global: prevent all browser auto-detected link styling */
a:not([href]) { color: inherit; text-decoration: none; }
p a, p span { color: inherit !important; }
-webkit-text-size-adjust: 100%;

/* iOS Safari auto-detection fix (phone, email, address auto-links) */
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
.project-tag, .project-info h3, .project-info p, .award,
.recognition-caption h3, .recognition-caption p,
.about-portrait-text p, .modal-scope, .modal-desc {
  -webkit-text-fill-color: currentColor;
}
