:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #171717;
  --paper: #f1eee8;
  --paper-soft: #e5e0d8;
  --text: #f4f1ea;
  --text-soft: rgba(244, 241, 234, 0.74);
  --ink: #151515;
  --ink-soft: rgba(21, 21, 21, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(21, 21, 21, 0.16);
  --accent: #c08e39;
  --accent-soft:#c08f393a;
  --content: 1240px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.section-shell {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(72px, 8vw, 120px) 0;
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading-left {
  text-align: left;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.2vw, 4.7rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.section-heading p,
.contact-copy p,
.about-copy p {
  margin: 0;
  max-width: 680px;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.section-dark .section-heading p,
.section-dark .contact-copy p {
  color: var(--text-soft);
}

.section-light .section-heading p,
.section-light .about-copy p {
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 600;
}

.text-link:hover {
  opacity: 0.7;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 10, 0.72);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: #0a0a0a;
  border-bottom-color: var(--line);
}

.site-header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 170px;
  min-width: 30px;
  padding: 20px;
  
}

.site-brand div {
  width: 100%;
  height: auto;
  
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 42px);
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
}

.desktop-nav .nav-cta,
.mobile-nav .nav-cta {
  border-bottom: 1px solid rgba(255,255,255,0.7);
  padding-bottom: 3px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.lightbox-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}


/* =========================
   HERO
========================= */
.hero-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-color: #111;
  background-image: url("../images/product/0-20.jpg");
  background-size: cover;
  background-position: center;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.56);
  pointer-events: none;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 900ms ease;
}

.hero-carousel-image.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-section {
  min-height: min(900px, 100svh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 clamp(56px, 8vh, 92px);
  background: transparent;
}

.hero-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  display: grid;
  justify-items: start;
  gap: 26px;
}

.hero-logo {
  order: 4;
  width: min(155px, 38vw);
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  justify-self: start;
  margin-top: 8px;
}

.hero-title {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7.2vw, 7.8rem);
  line-height: 0.99;
  font-weight: 600;
  letter-spacing: -0.0025em;
}



/*

.viewfinder-word {
  position: relative;
  display: inline-block;
  padding: 0.04em 0.6em;
   text-transform: uppercase;
   
}

/* solo esquineros 
.viewfinder-word::before {
  content: "";
  position: absolute;
  inset: -0.10em -0.10em;
  pointer-events: none;
  
  backdrop-filter: blur(5px);

  background:

    linear-gradient(var(--accent), var(--accent)) left top / 0.38em 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 5px 0.38em no-repeat,


    linear-gradient(var(--accent), var(--accent)) right top / 0.38em 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 5px 0.38em no-repeat,

 
    linear-gradient(var(--accent), var(--accent)) left bottom / 0.38em 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 5px 0.38em no-repeat,

    linear-gradient(var(--accent), var(--accent)) right bottom / 0.38em 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 5px 0.38em no-repeat;
}



.viewfinder-word::after {
  display: none;
}*/

.viewfinder-word {
  position: relative;
  display: inline-block;
  padding: 0.04em 0.6em;
  isolation: isolate;
  text-transform: uppercase;
  
}

/* Blur SOLO de la fotografía que está detrás */
.viewfinder-word::before {
  content: "";
  position: absolute;
  inset: -0.08em -0.10em;
  

  z-index: 0;

  background: rgba(0, 0, 0, 0.03);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  
  background-color: var(--accent-soft);
  pointer-events: none;
}

/* La palabra permanece perfectamente enfocada */
.viewfinder-text {
 
  position: relative;
  z-index: 2;
  color: inherit;
}

/* Marcas de enfoque */
.viewfinder-word::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.10em;

  z-index: 3;
  pointer-events: none;

  --corner-length: 0.36em;
  --corner-weight: 4px;

  background:
    linear-gradient(var(--accent), var(--accent))
      left top / var(--corner-length) var(--corner-weight) no-repeat,
    linear-gradient(var(--accent), var(--accent))
      left top / var(--corner-weight) var(--corner-length) no-repeat,

    linear-gradient(var(--accent), var(--accent))
      right top / var(--corner-length) var(--corner-weight) no-repeat,
    linear-gradient(var(--accent), var(--accent))
      right top / var(--corner-weight) var(--corner-length) no-repeat,

    linear-gradient(var(--accent), var(--accent))
      left bottom / var(--corner-length) var(--corner-weight) no-repeat,
    linear-gradient(var(--accent), var(--accent))
      left bottom / var(--corner-weight) var(--corner-length) no-repeat,

    linear-gradient(var(--accent), var(--accent))
      right bottom / var(--corner-length) var(--corner-weight) no-repeat,
    linear-gradient(var(--accent), var(--accent))
      right bottom / var(--corner-weight) var(--corner-length) no-repeat;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.18);
  color: #fff;
}

/* =========================
   SELECTED WORK
========================= */
.selected-work-section {
  border-top: 1px solid var(--line);
}

.selected-work-grid {
  columns: 3;
  column-gap: 18px;
}

.selected-work-item {
  position: relative;
  width: 100%;
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: #141414;
  color: #fff;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.selected-work-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  transition: transform 280ms ease, opacity 280ms ease;
}

.selected-work-item:hover img {
  transform: scale(1.015);
  opacity: 0.9;
}

.selected-work-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.82);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================
   FEATURED PROJECTS
========================= */
.projects-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(42px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.project-row:nth-child(even) .project-media {
  order: 2;
}

.project-row:nth-child(even) .project-content {
  order: 1;
}

.project-media {
  min-width: 0;
}

.project-hero-button,
.project-thumb-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8d2c9;
}

.project-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.project-related img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(21,21,21,0.58);
}

.project-content h3 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.project-objective,
.project-description {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.project-objective {
  font-weight: 600;
  color: var(--ink);
}

.project-meta {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.87rem;
  color: rgba(21,21,21,0.6);
}

.project-link {
  margin-top: 24px;
}

/* =========================
   SERVICES + PROCESS
========================= */
.services-section {
  border-top: 1px solid var(--line);
}

.services-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item,
.process-item {
  min-width: 0;
  padding: 28px 24px 12px 0;
  border-right: 1px solid var(--line);
}

.service-item:last-child,
.process-item:last-child {
  border-right: 0;
}

.service-item + .service-item,
.process-item + .process-item {
  padding-left: 24px;
}

.service-item h3,
.process-item h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  font-weight: 600;
}

.service-item p,
.process-item p {
  margin: 0;
  color: var(--text-soft);
}

.process-grid {
  counter-reset: process;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-item {
  counter-increment: process;
}

.process-item::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.testimonial {
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.testimonial blockquote {
  margin: 0 0 22px;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.45;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(21,21,21,0.58);
}

/* =========================
   ABOUT
========================= */
.about-section {
  border-top: 1px solid var(--line-dark);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.about-image-wrap {
  min-width: 0;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-lead {
  margin-bottom: 20px !important;
  color: var(--ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  line-height: 1.45 !important;
}

.about-highlights {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.about-highlight {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.92rem;
  color: rgba(21,21,21,0.68);
}

.resume-link {
  margin-top: 26px;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.form-field {
  min-width: 0;
}

.form-field-full,
.form-check,
.form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 10px 0;
  outline: 0;
}

.contact-form select {
  appearance: none;
  background-color: #0a0a0a;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.36);
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.78);
}

.form-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fff;
}

.form-actions {
  margin-top: 6px;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.7);
  padding: 24px;
}

.popup.active {
  display: grid;
}

.innerpop {
  position: relative;
  width: min(100%, 460px);
  background: #171717;
  border: 1px solid var(--line);
  padding: 32px;
  color: #fff;
}

.innerpop p {
  margin: 0;
}

.closeBtn {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.94);
  padding: 32px 76px;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  min-width: 48px;
  min-height: 48px;
  font-size: 1.8rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =========================
   GALLERY ARCHIVE
========================= */
.archive-main {
  min-height: 100vh;
  background: var(--bg);
}

.archive-hero {
  padding: calc(var(--header-h) + 68px) 0 56px;
  border-bottom: 1px solid var(--line);
}

.archive-hero-inner {
  display: grid;
  gap: 18px;
}

.archive-back {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.archive-hero h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.archive-hero #gallery_desc {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
}

.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
}

.archive-nav a {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.archive-nav a:hover,
.archive-nav a.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.archive-section {
  padding: 56px 0 100px;
}

.archive-groups {
  display: grid;
  gap: 76px;
}

.archive-group-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.archive-group-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.archive-group-heading p {
  margin: 0;
  color: var(--text-soft);
}

.gallery-grid {
  columns: 4;
  column-gap: 14px;
}

.gallery-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: #141414;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: opacity 180ms ease;
}

.gallery-item:hover img {
  opacity: 0.84;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 38px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: #080808;
  color: rgba(255,255,255,0.5);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
}

.site-footer-brand img {
  width: 250px;
  height: auto;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer-links a,
.footer-bottom a {
  font-size: 0.78rem;
  transition: color 160ms ease;
}

.site-footer-links a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-legal {
  display: flex;
  gap: 22px;
}


/* MOBILE */
@media (max-width: 768px) {

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    flex-wrap: wrap;
    gap: 16px 22px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:nth-child(2),
  .process-item:nth-child(2) {
    border-right: 0;
  }

  .service-item:nth-child(n+3),
  .process-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 24px;
  }

  .project-row {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 3;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .section-shell,
  .hero-inner,
  .site-header-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .section {
    padding: 64px 0;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #0a0a0a;
    padding: 28px 24px 40px;
    overflow-y: auto;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .mobile-nav .nav-cta {
    margin-top: 14px;
    border: 1px solid var(--line);
    justify-content: center;
  }

  .hero-section {
    min-height: 82svh;
    padding: calc(var(--header-h) + 36px) 0 48px;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(3rem, 14vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .hero-copy {
    max-width: 32rem;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .selected-work-grid {
    columns: 2;
    column-gap: 10px;
  }

  .selected-work-item {
    margin-bottom: 10px;
  }

  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-row:nth-child(even) .project-media,
  .project-row:nth-child(even) .project-content {
    order: initial;
  }

  .project-content h3 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .services-grid,
  .process-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .process-item,
  .service-item + .service-item,
  .process-item + .process-item {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
    margin: 0;
  }

  .services-grid > :first-child,
  .process-grid > :first-child {
    border-top: 0;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image-wrap img {
    aspect-ratio: 4 / 4.5;
  }

  .contact-copy {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field,
  .form-field-full,
  .form-check,
  .form-actions {
    grid-column: 1;
  }

  .archive-hero {
    padding-top: calc(var(--header-h) + 46px);
  }

  .archive-group-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
  }

  .lightbox {
    padding: 58px 14px 24px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .lightbox-prev { left: 30%; }
  .lightbox-next { right: 30%; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-shell,
  .hero-inner,
  .site-header-inner {
    width: min(calc(100% - 24px), var(--content));
  }

  .hero-section {
    min-height: 78svh;
  }

  .hero-logo {
    width: min(220px, 70vw);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .selected-work-grid,
  .gallery-grid {
    columns: 2;
  }

  .selected-work-label {
    left: 8px;
    bottom: 8px;
    font-size: 0.64rem;
  }

  .project-related {
    grid-template-columns: 1fr 1fr;
  }

  .archive-nav {
    gap: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   IMAGE RIGHTS MARKS
   ========================================================= */
   .selected-work-item,
   .project-hero-button,
   .project-thumb-button,
   .gallery-item,
   .image-protected {
     position: relative;
   }
   
   .protected-photo {
     -webkit-user-drag: none;
     user-select: none;
   }
      
   .lightbox-rights {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
  
    z-index: 10;
  
    padding: 0.4rem 0.65rem;
  
    font-size: 0.72rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.78);
  
    background: rgba(0, 0, 0, 0.55);
    text-decoration: none;
  
    white-space: nowrap;
  }
  
  .lightbox-rights:hover {
    color: #fff;
  }   
   /* Ocultar copyright sobre imágenes normales */
.image-rights {
  display: none !important;
}
   /* =========================================================
      COPYRIGHT PAGE
      ========================================================= */
   .page-legal main {
     padding-top: var(--header-h);
     background: var(--paper);
     color: var(--ink);
   }
   
   .legal-page {
     min-height: 80vh;
   }
   
   .legal-heading h1 {
     max-width: 920px;
     margin: 0 0 18px;
     font-size: clamp(2.8rem, 6vw, 5.8rem);
     line-height: 0.98;
     font-weight: 600;
     letter-spacing: -0.045em;
   }
   
   .legal-content {
     max-width: 820px;
   }
   
   .legal-content h2 {
     margin: 46px 0 12px;
     font-size: clamp(1.25rem, 2vw, 1.7rem);
     line-height: 1.15;
   }
   
   .legal-content p {
     margin: 0;
     color: var(--ink-soft);
     font-size: 1rem;
     line-height: 1.75;
   }
   
   .legal-content .text-link {
     margin-top: 42px;
   }
   
   @media (max-width: 768px) {
     .image-rights-mark {
       top: 8px;
       right: 8px;
       font-size: 0.56rem;
     }
   
     .lightbox {
       padding: 56px 18px 70px;
     }
   
     .lightbox-rights {
       bottom: 14px;
       width: calc(100% - 36px);
       font-size: 0.66rem;
       white-space: normal;
     }
   }

/* =========================================================
   FINAL ACCENT SYSTEM — matches current index.html/header.html
   ========================================================= */


.viewfinder-word::before,
.viewfinder-word::after {
  color: var(--accent);
}

/* Navigation — use real borders instead of pseudo-elements */
.desktop-nav a,
.mobile-nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
  transition: color 160ms ease, border-color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--accent);
}

.desktop-nav .nav-cta,
.mobile-nav .nav-cta {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Buttons — permanent accent cue, no pseudo-element required */
.button {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 -2px 0 var(--accent);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button-primary {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}

.button-secondary {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  box-shadow: inset 0 -4px 0 var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--text);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--accent-soft);
  color: #fff;
}

/* Text links */
.text-link {
  border-bottom-color: var(--accent);
}

/* Project + process accents */
.project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.project-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 18px;
  background: var(--accent);
}

.selected-work-label {
  border-left: 2px solid var(--accent);
}

.process-item::before {
  color: var(--accent);
}

/* Form */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-check input {
  accent-color: var(--accent);
}

/* Keyboard visibility */
.desktop-nav a:focus-visible,
.mobile-nav a:focus-visible,
.button:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}