:root {
  --ink: #1e293b;
  --orange: #dc6400;
  --line: #e6e6e6;
  --paper: #fff;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.site-header {
  text-align: center;
  padding: 38px 0 0;
}

.logo {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

.nav-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 49px 0 0;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 72px;
  min-height: 160px;
  margin: 0;
  padding: 0 16px;
  list-style: none;
}

.nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.3s;
}

.nav a:hover { transform: scale(1.2); }

main {
  animation: entradaPagina 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes entradaPagina {
  from { opacity: 0; transform: translateY(20px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero {
  margin: 0;
  padding: 0;
}

.page {
  padding: 20px 0 12px;
}

.catalog-intro {
  width: min(640px, calc(100% - 48px));
  margin: 4px auto 8px;
  text-align: center;
}

.catalog-intro .eyebrow,
.case-hero .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.case-plain p:last-child {
  margin: 18px auto 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.5;
}

.catalog-notes {
  width: min(1140px, calc(100% - 48px));
  margin: 8px auto 80px;
}

.catalog-notes article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.catalog-notes article:last-child { border-bottom: 1px solid var(--line); }

.catalog-notes h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.catalog-notes a { text-decoration: none; }
.catalog-notes a:hover { color: var(--orange); }

.catalog-notes p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 14px;
  width: min(1140px, calc(100% - 48px));
  margin: 42px auto 80px;
}

.card {
  color: inherit;
  text-decoration: none;
}

.card.is-large { grid-column: span 2; }
.card.is-large-right { grid-column: 2 / span 2; }

.card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #ececec;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #151515;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.card:hover .card-media::after { opacity: 0.45; }

.card-tag {
  display: inline-block;
  margin: 10px 0 0;
  padding: 1px 6px 2px;
  border: 1px solid rgba(30, 41, 59, 0.55);
  border-radius: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.card h2 {
  margin: 8px 0 0;
  max-width: 16em;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.case-hero {
  position: relative;
  width: min(1140px, calc(100% - 48px));
  margin: 8px auto 56px;
  overflow: hidden;
  color: #fff;
}

.case-hero img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
}

.case-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(16, 16, 16, 0.72));
}

.case-hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
}

.case-hero h1 {
  margin: 0 0 10px;
  max-width: 12em;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.case-hero-lead {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.45;
}

.case-story {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto 48px;
}

.case-story p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.case-back {
  grid-column: 1 / -1;
  display: inline-block;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.case-back:hover { color: var(--orange); }

.case-shot,
.case-pair {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto 18px;
}

.case-shot img,
.case-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.case-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-pair img {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.foto-moldura {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.case-pair .foto-moldura {
  aspect-ratio: 4 / 5;
}

.case-pair .foto-moldura img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.person-open .foto-moldura {
  height: 417px;
}

.person-open .foto-moldura img {
  height: 100%;
}

@keyframes foto-respirar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.card-media img,
.case-hero > img,
.case-shot img,
.case-pair img,
.carousel-track img,
.person-open img {
  transform-origin: center center;
  animation: foto-respirar 16s ease-in-out infinite;
}

.case-more {
  width: min(1140px, calc(100% - 48px));
  margin: 64px auto 24px;
}

.case-more h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-more .catalog-grid {
  grid-template-columns: 1fr 1fr;
  width: auto;
  margin: 0;
}

.case-missing {
  width: min(720px, calc(100% - 48px));
  margin: 24px auto 48px;
}

.project {
  display: grid;
  grid-template-columns: 53.3% 46.7%;
  gap: 0;
  align-items: start;
  width: 80%;
  margin: 20px auto 0;
  padding: 0 10px;
}

.project.is-right { grid-template-columns: 46.7% 53.3%; }
.project.is-right .project-media { order: 2; }
.project-copy { margin-top: 10px; }

.project h2 {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.texto-expandivel {
  font-size: 15px;
  line-height: 1.55;
}

.texto-expandivel p { margin: 0; }

.texto-expandivel strong {
  display: inline;
  font-weight: 700;
}

.botao-expandir {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--orange);
  border-radius: 3px;
  color: var(--orange);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.botao-expandir:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.seta-expandir {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s;
}

.carousel { position: relative; }

.carousel-frame {
  overflow: hidden;
  background: #f3f3f3;
  min-height: 0;
  touch-action: pan-y;
}

.carousel-hero .carousel-frame { min-height: 80vh; }

.carousel-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
}

.carousel-track img {
  width: 100%;
  height: auto;
  flex: 0 0 100%;
}

.carousel-track img[data-href] { cursor: pointer; }

.carousel-hero .carousel-track img {
  min-height: 80vh;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }
.carousel-nav:disabled { opacity: 0.35; cursor: default; }

.dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.carousel-hero .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin: 0;
}

.dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dots button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 10px auto;
  border-radius: 50%;
  background: #d0d0d0;
}

.dots button.is-active::after { background: #8d8d8d; }

.carousel-hero .dots button::after { background: rgba(255, 255, 255, 0.55); }
.carousel-hero .dots button.is-active::after { background: #fff; }

.team {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 20px auto 0;
  padding: 20px 20px 100px;
}

.person {
  position: relative;
  width: 245px;
  margin: 0;
  overflow: hidden;
}

.person img {
  width: 100%;
  height: 417px;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
}

.person-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.person::before {
  content: "";
  position: absolute;
  inset: 20px;
  background: #ED5214;
  opacity: 0;
  transform: scale(2);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 1;
  pointer-events: none;
}

.person:hover::before,
.person:focus-within::before {
  opacity: 0.93;
  transform: scale(1);
}

.person-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 0 36px;
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20%);
  transition: 0.3s;
  pointer-events: none;
}

.person:hover .person-overlay,
.person:focus-within .person-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: 0.3s 0.1s;
}

.person-name,
.person-role {
  display: block;
  color: #fff;
}

.person-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.person-role {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.person-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}

.person-dialog::backdrop {
  background: rgba(16, 16, 16, 0.55);
}

.person-dialog-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  max-height: calc(100dvh - 32px);
  padding: 36px 40px 36px 28px;
  overflow: auto;
}

.person-dialog img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
}

.person-dialog h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.person-dialog .role {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.person-dialog p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.person-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #656565;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: 48px;
  row-gap: 40px;
  align-items: start;
  width: min(1140px, calc(100% - 48px));
  margin: 8px auto 72px;
  padding: 0;
}

.contact-kicker,
.jobs h2 {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 500;
}

.contact h1 {
  margin: 0 0 26px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 500;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-line.is-mail { color: var(--orange); }

.jobs p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
}

.jobs h2.jobs-next { margin-top: 36px; }

.contact-line svg { flex: 0 0 auto; }

.map-frame {
  position: relative;
  height: 280px;
  background: #f3f3f3;
}

.map {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3f3f3;
}

.cookie-bloqueado {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.cookie-bloqueado[hidden] { display: none; }

.cookie-bloqueado p {
  margin: 0;
  max-width: 22em;
}

.cookie-bloqueado button,
.cookies__aceptar,
.cookies__guardar {
  border: 0;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

.cookies {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 40;
  max-width: 920px;
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.16);
  color: var(--ink);
}

.cookies[hidden],
.cookies__panel[hidden],
.cookies__principal[hidden] { display: none; }

.cookies__contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 22px;
}

.cookies__texto { max-width: 36em; }

.cookies h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cookies p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookies a { color: var(--orange); }

.cookies__acciones,
.cookies__panel-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookies__rechazar,
.cookies__configurar,
.cookies__volver {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 16px;
  cursor: pointer;
}

.cookies__panel { padding: 22px; }

.cookies__panel-cabecera { margin-bottom: 8px; }

.cookies__panel-cabecera p { max-width: 40em; }

.cookies__opcion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cookies__opcion strong { display: block; margin-bottom: 4px; }

.cookies__siempre {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cookies__switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookies__switch input {
  position: absolute;
  opacity: 0;
}

.cookies__switch span {
  position: absolute;
  inset: 0;
  background: #d0d0d0;
  border-radius: 26px;
}

.cookies__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookies__switch input:checked + span { background: var(--orange); }

.cookies__switch input:checked + span::after { transform: translateX(20px); }

.cookies__panel-acciones {
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.form button {
  justify-self: start;
  border: 0;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

.legal {
  max-width: 820px;
  margin: 12px auto 24px;
  padding: 0 24px 12px;
}

.legal h1 {
  margin: 0 0 28px;
  font-size: 28px;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal p { margin: 0 0 14px; }

.policy {
  width: min(760px, calc(100% - 48px));
  margin: 8px auto 72px;
}

.policy-intro {
  margin: 0 0 56px;
  text-align: center;
}

.policy-intro h1 {
  margin: 0 auto 18px;
  max-width: 12em;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.policy-intro p {
  margin: 0 auto;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.5;
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.policy-list li:last-child { border-bottom: 1px solid var(--line); }

.policy-index {
  margin: 4px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.policy-list h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.policy-list p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

.policy-list p:last-child { margin-bottom: 0; }

.policy-list a {
  color: var(--orange);
  text-decoration: none;
}

.policy-list a:hover { text-decoration: underline; }

.policy-channel {
  color: var(--ink);
}

.policy-channel a {
  color: var(--orange);
  text-decoration: none;
}

.policy-channel a:hover { text-decoration: underline; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr auto 1.1fr;
  gap: 50px;
  align-items: center;
  margin: 48px 0 0;
  padding: 28px 35px 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { margin: 0; }
.footer-name { color: var(--orange); font-weight: 700; }
.copyright { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .card-media img,
  .case-hero img,
  .case-shot img,
  .case-pair img,
  .carousel-track img,
  .person-open img { animation: none; }
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .card,
  .card.is-large,
  .card.is-large-right { grid-column: auto; }
}

@media (max-width: 768px), (hover: none) {
  .person { width: min(300px, calc(100% - 32px)); }
  .person::before { content: none; }
  .person-overlay {
    position: static;
    width: auto;
    padding: 14px 4px 0;
    color: var(--ink);
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .person:hover .person-overlay,
  .person:focus-within .person-overlay { transform: none; }
  .person-name,
  .person-role { color: var(--ink); }
}

@media (max-width: 768px) {
  .site-header { padding-top: max(16px, env(safe-area-inset-top)); }
  .logo { width: 168px; }
  .nav { min-height: 0; gap: 0 14px; padding: 4px 12px 2px; }
  .nav a { padding: 12px 2px; font-size: 16px; }
  .nav a:hover { transform: none; }
  .nav-rule { margin-top: 16px; }
  .project,
  .project.is-right,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
    width: auto;
  }
  .catalog-intro,
  .catalog-notes,
  .catalog-grid,
  .case-hero,
  .case-story,
  .case-shot,
  .case-pair,
  .case-more,
  .case-missing { width: auto; margin-left: 16px; margin-right: 16px; }
  .case-pair,
  .case-story { grid-template-columns: 1fr; }
  .catalog-grid { gap: 28px 12px; }
  .case-story p { grid-column: auto; }
  .case-hero img { height: 62vh; }
  .case-hero-copy { left: 16px; right: 16px; bottom: 16px; }
  .case-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .project { margin: 28px 16px 0; padding: 0; }
  .project.is-right .project-media,
  .project-media { order: 1; }
  .project-copy { order: 2; }
  .contact { margin: 28px 16px 48px; }
  .site-footer { gap: 22px; padding: 24px 16px max(28px, env(safe-area-inset-bottom)); }
  .copyright { text-align: left; }
  .carousel-hero .carousel-frame,
  .carousel-hero .carousel-track img { min-height: 52vh; }
  .team { gap: 36px; padding: 8px 16px 48px; }
  .person-dialog-body {
    grid-template-columns: 1fr;
    padding: 52px 20px 24px;
  }
  .person-dialog img { height: 240px; }
  .policy { margin-bottom: 48px; }
  .policy-intro { margin-bottom: 32px; }
  .policy-list li { padding: 22px 0; }
  .cookies { right: 8px; left: 8px; }
  .cookies__contenido,
  .cookies__panel-acciones { flex-direction: column; align-items: stretch; }
  .cookies__contenido { gap: 16px; padding: 16px; }
  .cookies__acciones { display: grid; grid-template-columns: 1fr 1fr; }
  .cookies__aceptar { grid-column: 1 / -1; }
  .cookies__siempre { white-space: normal; text-align: right; }
}

@media (max-width: 640px) {
  .catalog-grid,
  .case-more .catalog-grid { grid-template-columns: 1fr; }
}
