/* ==========================================================================
   meneses.studio · v7 (base V6)
   Base: V1 (Instrument Serif + DM Sans, línea editorial).
   Color: amarillo #e8ff5a (fondo del logotipo en el PDF de contacto) y rosa #ef5dba (logo SVG).
   Formas: solo ángulos rectos. Sin radios, sin círculos, sin imágenes inclinadas.
   ========================================================================== */
:root {
  --yellow:#e8ff5a;
  --pink:#ef5dba;
  --ink:#191919;
  --paper:#fff;
  --soft:#f5f4f0;
  --line:#cececa;
  --muted:#595959;
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --sans:'DM Sans',Arial,sans-serif;
  --gutter:clamp(22px,4vw,64px);
  --edge:max(var(--gutter),calc((100vw - 1472px) / 2));
  --nav-h:68px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after {
  box-sizing:border-box;
  border-radius:0;
}
html {
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  padding-bottom:calc(var(--nav-h) + var(--safe-b));
  overflow-x:clip;
}
button,input,textarea,select {
  font:inherit;
  border-radius:0;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  color:inherit;
  cursor:pointer;
}
a {
  color:inherit;
  text-decoration:none;
}
img,svg {
  display:block;
  max-width:100%;
}
ul {
  margin:0;
  padding:0;
  list-style:none;
}
h1,h2,h3,p,figure,dl,dd {
  margin:0;
}
h1,h2,h3 {
  font-weight:400;
  overflow-wrap:break-word;   /* con espaciado de texto ampliado, la palabra se parte en lugar de salirse de la pantalla */
}
em {
  font-weight:400;
}
:focus-visible {
  outline:2px solid var(--ink);
  outline-offset:4px;
}
.studio-statement :focus-visible,.marquee :focus-visible,.vcard-head :focus-visible {
  outline-color:var(--yellow);
}
::selection {
  background:var(--pink);
  color:var(--ink);
}
[hidden] {
  display:none!important;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
.sprite {
  position:absolute;
}
.skip-link {
  position:fixed;
  z-index:30;
  left:20px;
  top:15px;
  padding:12px 20px;
  background:var(--ink);
  color:var(--paper);
  transform:translateY(-200%);
}
.skip-link:focus {
  transform:none;
}
.section-wrap {
  padding:100px var(--gutter);
  max-width:1600px;
  margin:auto;
}
.eyebrow {
  font-size:11px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.1em;
  line-height:1.6;
}
.text-link {
  border:0;
  background:none;
  padding:0 0 6px;
  border-bottom:1px solid currentColor;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:14px;
}
.text-link:hover {
  border-bottom-color:var(--pink);
  box-shadow:0 1px 0 var(--pink);
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:48px;
  padding:14px 22px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-size:14px;
  font-weight:500;
  line-height:1.2;
  transition:background .2s,color .2s;
}
.btn span[aria-hidden] {
  font-size:1.4em;
  line-height:1;
}
.btn:hover {
  background:var(--pink);
  color:var(--ink);
}
.btn--line {
  background:transparent;
  color:var(--ink);
}
.btn--line:hover {
  background:var(--ink);
  color:var(--paper);
}
.btn--xl {
  width:100%;
  min-height:64px;
  padding:18px 26px;
  font-size:17px;
}
.logo-mark {
  display:block;
  height:22px;
  aspect-ratio:1841/583;
  fill:var(--pink);
}

/* ---------- Faldón superior: amarillo del logotipo ---------- */
.masthead {
  background:var(--yellow);
  padding:clamp(18px,2.4vw,30px) var(--edge);
  display:flex;
  align-items:center;
  gap:25px;
}
.brand {
  display:block;
  flex:none;
  width:clamp(150px,15vw,230px);
  aspect-ratio:1841/823;
}
.brand-logo {
  width:100%;
  height:100%;
  fill:var(--pink);
}
.masthead-note {
  font-size:11px;
  line-height:1.5;
  margin-left:auto;
  margin-right:60px;
}
.header-contact {
  font-size:13px;
  min-width:120px;
}

/* ---------- Portada ---------- */
.hero {
  background:var(--yellow);
  padding:0 var(--edge) 22px;
}
.hero-topline,.hero-bottomline {
  display:flex;
  justify-content:space-between;
  gap:24px;
  font-size:11px;
}
.hero-topline {
  padding:16px 0 18px;
  border-top:1px solid rgba(25,25,25,.45);
  border-bottom:1px solid rgba(25,25,25,.45);
}
.hero-composition {
  min-height:600px;
  display:grid;
  grid-template-columns:1.18fr 1fr;
  align-items:center;
  gap:38px;
  padding:42px 0 50px;
}
.hero h1 {
  font-family:var(--serif);
  font-size:clamp(96px,10.8vw,178px);
  line-height:.86;
  letter-spacing:-.045em;
}
.hero h1 em {
  letter-spacing:-.055em;
}
.hero-title-visual {
  display:block;
}
.hero h1 del {
  text-decoration:line-through;
  text-decoration-thickness:.032em;
  text-decoration-color:var(--ink);
}
.hero-intro {
  display:flex;
  flex-direction:column;
  gap:26px;
  margin-top:40px;
  max-width:470px;
}
.hero-intro p {
  font-size:15px;
  line-height:1.6;
  max-width:340px;
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.hero-work {
  width:100%;
  max-width:550px;
  justify-self:end;
  border:0;
  padding:0;
  overflow:hidden;
  background:#025077;
  position:relative;
  text-align:left;
}
.hero-work img {
  width:100%;
  height:450px;
  object-fit:cover;
  object-position:50% 42%;
  transition:transform .65s cubic-bezier(.2,.7,.2,1);
}
.hero-work:hover img {
  transform:scale(1.035);
}
.hero-work-caption {
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:18px 24px;
  background:var(--pink);
  font-size:11px;
  align-items:center;
}
.hero-work-caption>span:last-child {
  font-size:22px;
}
.hero-bottomline {
  padding-top:19px;
  border-top:1px solid rgba(25,25,25,.45);
}

/* ---------- Carrusel de tipos de proyecto (V2) ---------- */
.marquee {
  position:relative;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
  white-space:nowrap;
  display:flex;
}
.marquee-track {
  display:flex;
  flex:none;
  width:max-content;
  padding-block:clamp(16px,1.8vw,26px);
  animation:marquee 40s linear infinite;
}
.marquee:hover .marquee-track,.marquee.is-paused .marquee-track {
  animation-play-state:paused;
}
.marquee-row {
  display:flex;
  flex:none;
  align-items:center;
}
.marquee-row li {
  font-family:var(--serif);
  font-size:clamp(34px,4.4vw,66px);
  line-height:1;
  letter-spacing:-.025em;
  padding-inline:.45em;
}
.marquee-row .sep {
  display:grid;
  padding:0 .2em;
}
.marquee-row .sep svg {
  width:clamp(22px,2.6vw,38px);
  height:clamp(22px,2.6vw,38px);
  fill:var(--pink);
}
.marquee-row .sep:nth-child(4n) svg {
  fill:var(--yellow);
}
.marquee-toggle {
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  z-index:2;
  width:56px;
  border:0;
  border-left:1px solid rgba(255,255,255,.3);
  background:var(--ink);
  color:var(--yellow);
  font-size:12px;
  letter-spacing:-.1em;
}
.marquee-toggle:hover {
  background:var(--pink);
  color:var(--ink);
}
@keyframes marquee {
  to {
    transform:translateX(-50%);
  }
}

/* ---------- Encabezados de sección ---------- */
.section-heading {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:end;
  margin-bottom:48px;
}
.section-heading h2 {
  font-family:var(--serif);
  font-size:clamp(64px,6.5vw,105px);
  line-height:.93;
  letter-spacing:-.035em;
  margin-top:25px;
}
.section-intro {
  font-size:16px;
  line-height:1.75;
  max-width:340px;
  justify-self:end;
  margin-bottom:6px;
}

/* ---------- 01 Proyectos ---------- */
.portfolio-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-top:1px solid var(--ink);
  padding:24px 0 32px;
}
.filters {
  display:flex;
  gap:25px;
}
.filters button {
  border:0;
  background:none;
  padding:6px 0;
  font-size:13px;
  color:var(--muted);
  position:relative;
}
.filters button:hover {
  color:var(--ink);
}
.filters button[aria-pressed=true] {
  color:var(--ink);
}
.filters button[aria-pressed=true]::after {
  content:'';
  position:absolute;
  height:3px;
  bottom:0;
  left:0;
  right:0;
  background:var(--pink);
}
.filters sup {
  font-size:9px;
  margin-left:5px;
}
.portfolio-count {
  font-size:11px;
  color:var(--muted);
}
.project-grid {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:45px 28px;
  align-items:start;
}
.project-card {
  border:0;
  background:none;
  padding:0;
  text-align:left;
  grid-column:span 5;
  min-width:0;
}
.project-card-wide {
  grid-column:span 7;
}
.project-image {
  display:block;
  position:relative;
  overflow:hidden;
  background:var(--soft);
  border:1px solid rgba(25,25,25,.15);
}
.project-image img {
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  transition:transform .65s cubic-bezier(.2,.7,.2,1);
}
.project-card-wide .project-image img {
  aspect-ratio:7/5;
}
.project-card-third {
  grid-column:span 4;
}
.project-card:hover .project-image img {
  transform:scale(1.035);
}
.image-action {
  position:absolute;
  bottom:0;
  right:0;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  background:var(--paper);
  font-size:25px;
  transition:background .2s;
}
.project-card:hover .image-action,.project-card:focus-visible .image-action {
  background:var(--yellow);
}
.project-caption {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-top:17px;
  flex-wrap:wrap;
}
.project-caption>span:first-child {
  display:flex;
  gap:12px;
  align-items:baseline;
}
.project-index {
  font-size:10px;
  color:var(--muted);
}
.project-caption strong {
  font-size:19px;
  font-weight:500;
  letter-spacing:-.025em;
}
.project-caption>span:last-child {
  font-size:10px;
  color:var(--muted);
}
.project-grid.is-filtered .project-card {
  grid-column:span 6;
}
.project-grid.is-filtered .project-image img {
  aspect-ratio:1/1;
}
.next-step {
  display:flex;
  justify-content:flex-end;
  margin-top:64px;
}

/* ---------- Pausa: declaración ---------- */
.studio-statement {
  background:var(--ink);
  color:var(--paper);
  padding:90px var(--edge) 35px;
}
.studio-statement>p {
  font-family:var(--serif);
  font-size:clamp(45px,6.1vw,92px);
  line-height:1.06;
  letter-spacing:-.025em;
}
.studio-statement em {
  color:var(--yellow);
}
.statement-small {
  display:block;
  border-top:1px solid #777;
  padding-top:22px;
  margin-top:55px;
  font-size:11px;
}

/* ---------- 02 Servicios ---------- */
.services-section {
  background:var(--paper);
}
.services-section>.section-wrap {
  padding-bottom:100px;
}
.services-heading {
  margin-bottom:60px;
}
.service-list {
  border-top:1px solid var(--ink);
}
.service {
  border-bottom:1px solid var(--ink);
  padding:30px 0;
}
.service summary {
  list-style:none;
  display:grid;
  grid-template-columns:100px minmax(0,1fr) 60px;
  align-items:center;
  gap:30px;
  cursor:pointer;
}
.service summary::-webkit-details-marker {
  display:none;
}
.service-number {
  font-size:12px;
  align-self:start;
  padding-top:10px;
}
.service h3 {
  font-family:var(--serif);
  font-size:clamp(38px,4.2vw,66px);
  line-height:.98;
  letter-spacing:-.025em;
}
.service h3 br {
  display:none;
}
.service-toggle {
  width:50px;
  height:50px;
  border:1px solid var(--ink);
  position:relative;
  justify-self:end;
  transition:background .2s;
}
.service-toggle::before,.service-toggle::after {
  content:'';
  position:absolute;
  left:14px;
  right:14px;
  top:24px;
  height:1px;
  background:var(--ink);
}
.service-toggle::after {
  transform:rotate(90deg);
  transition:transform .2s;
}
.service summary:hover .service-toggle {
  background:var(--yellow);
}
.service[open] .service-toggle {
  background:var(--pink);
}
.service[open] .service-toggle::after {
  transform:rotate(0);
}
.service-content {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  padding:32px 60px 12px 130px;
}
.service-content p {
  max-width:460px;
  font-size:14px;
  line-height:1.75;
}
.service-content .text-link {
  margin-top:24px;
  font-size:13px;
}
.service-content ul {
  font-size:12px;
  line-height:2.1;
}
.service-content li::before {
  content:'—';
  margin-right:12px;
}

/* Faldón destacado: marcas e instituciones (V3) */
.audience-band {
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
}
.audience {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:22px;
  min-height:clamp(400px,32vw,520px);
  padding:clamp(36px,5vw,80px) clamp(24px,4vw,64px);
}
.audience--yellow {
  background:var(--yellow);
  padding-left:var(--edge);
  border-right:1px solid var(--ink);
}
.audience--pink {
  background:var(--pink);
  padding-right:var(--edge);
}
.audience .eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
}
.audience .eyebrow::before {
  content:'';
  width:10px;
  height:10px;
  background:var(--ink);
}
.audience h3 {
  font-family:var(--serif);
  font-size:clamp(34px,3.6vw,58px);
  line-height:1.02;
  letter-spacing:-.025em;
  max-width:15em;
}
.audience p:not(.eyebrow) {
  font-size:15px;
  line-height:1.7;
  max-width:380px;
}
.audience .btn {
  margin-top:auto;
}
.audience--pink .btn:hover {
  background:var(--paper);
}

/* ---------- 03 Estudio ---------- */
.about-section {
  background:var(--paper);
  padding:90px var(--edge) 100px;
  overflow:hidden;
}
.about-inner {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:85px;
  align-items:center;
}
.about-copy h2 {
  font-family:var(--serif);
  font-size:clamp(70px,7vw,112px);
  line-height:.89;
  letter-spacing:-.035em;
  margin:30px 0;
}
.about-copy h2 em {
  display:block;
  margin-top:.16em;
  font-size:.58em;
  line-height:1;
  letter-spacing:-.025em;
}
.about-description {
  max-width:425px;
  font-size:14px;
  line-height:1.8;
  margin-top:18px;
}
.manifesto-button {
  margin-top:27px;
  font-size:12px;
  min-height:44px;
  gap:40px;
}
.manifesto {
  font-size:13px;
  line-height:1.75;
  max-width:425px;
  padding-top:18px;
}
.manifesto p+p {
  margin-top:12px;
}
.about-portrait {
  width:100%;
  max-width:500px;
  justify-self:end;
  padding:0 clamp(14px,1.6vw,22px) 0 0;
}
.about-portrait img {
  width:100%;
  height:auto;
  aspect-ratio:1/1.07;
  object-fit:cover;
  object-position:50% 18%;
  box-shadow:clamp(14px,1.6vw,22px) clamp(14px,1.6vw,22px) 0 var(--pink);
}

/* ---------- 04 Contacto (cierre de V3, tipografía y color de V1) ---------- */
.contact-section {
  background:var(--yellow);
}
.contact-section>.section-wrap {
  padding-top:55px;
  padding-bottom:90px;
}
.contact-topline {
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
  border-top:1px solid var(--ink);
  padding-top:20px;
  font-size:11px;
}
.contact-section h2 {
  font-family:var(--serif);
  font-size:clamp(40px,10.4vw,166px);
  line-height:.85;
  letter-spacing:-.04em;
  margin:44px 0 34px;
}
.contact-lead {
  max-width:520px;
  font-size:15px;
  line-height:1.75;
  margin-bottom:60px;
}
.contact-grid {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:28px;
  align-items:start;
}
.vcard {
  grid-column:1/7;
  background:var(--paper);
  border:1px solid var(--ink);
}
.vcard-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px clamp(22px,3vw,44px);
  background:var(--ink);
  color:var(--paper);
}
.vcard-tag {
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.vcard-body {
  padding:clamp(22px,3vw,44px);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.vcard-name {
  font-family:var(--serif);
  font-size:clamp(56px,6.6vw,104px);
  line-height:.9;
  letter-spacing:-.035em;
  margin-left:-.03em;
}
.vcard-role {
  font-size:14px;
  font-weight:500;
}
.vcard-rows {
  margin-top:6px;
  border-top:1px solid var(--ink);
}
.vcard-rows>div {
  display:grid;
  grid-template-columns:clamp(84px,8vw,110px) 1fr;
  gap:12px;
  align-items:baseline;
  padding:.8em 0;
  border-bottom:1px solid var(--ink);
}
.vcard-rows dt {
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.vcard-rows dd {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  font-family:var(--serif);
  font-size:clamp(24px,2.3vw,34px);
  line-height:1.15;
  overflow-wrap:anywhere;
}
.vcard-rows dd a {
  background:linear-gradient(var(--pink),var(--pink)) 0 92%/0 .24em no-repeat;
  transition:background-size .35s;
}
.vcard-rows dd a:hover {
  background-size:100% .24em;
}
.mini {
  font-family:var(--sans);
  padding:.6em .95em;
  border:1px solid var(--ink);
  background:none;
  font-size:11px;
  font-weight:600;
  letter-spacing:.04em;
  line-height:1;
  transition:background .2s,color .2s;
}
.mini:hover {
  background:var(--ink);
  color:var(--paper);
}
.vcard-actions {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}
.vcard-quick {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.vcard-quick .btn {
  justify-content:center;
  padding-inline:.6em;
}
.vcard-hint {
  font-size:12px;
  color:var(--muted);
}
.form {
  grid-column:8/13;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.form-group {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.form-group legend {
  float:left;
  width:100%;
  padding:0;
  margin-bottom:10px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.form-group legend small {
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
}
.opt {
  position:relative;
  cursor:pointer;
}
.opt input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.opt span {
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:.7em 1.05em;
  border:1px solid var(--ink);
  font-size:14px;
  font-weight:500;
  line-height:1.2;
  transition:background .2s,color .2s;
}
.opt:hover span {
  background:rgba(255,255,255,.55);
}
.opt input:checked+span {
  background:var(--ink);
  color:var(--paper);
}
.opt input:checked+span::before {
  content:'✓';
  color:var(--yellow);
}
.opt input:focus-visible+span {
  outline:2px solid var(--ink);
  outline-offset:3px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.field label {
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.field input,.field textarea {
  display:block;
  width:100%;
  border:0;
  border-bottom:1px solid var(--ink);
  background:transparent;
  padding:12px 0;
  font-size:16px;
  font-weight:500;
  color:var(--ink);
  resize:vertical;
}
.field input::placeholder,.field textarea::placeholder {
  color:rgba(25,25,25,.62);
  font-weight:400;
}
.field input:focus-visible,.field textarea:focus-visible {
  outline:2px solid var(--ink);
  outline-offset:3px;
  background:rgba(255,255,255,.4);
}
.field.is-bad input,.field.is-bad textarea {
  box-shadow:inset 0 -3px 0 var(--ink);
}
.field-error {
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:2px;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
}
.field-error::before {
  content:'';
  flex:none;
  width:8px;
  height:8px;
  background:var(--ink);
}
.form .btn--xl {
  margin-top:4px;
}
.hp {
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.form-note {
  font-size:12px;
  line-height:1.6;
}
.form-privacy {
  margin-top:-12px;
  font-size:12px;
  line-height:1.6;
}
.link-u {
  padding:0;
  border:0;
  background:none;
  text-decoration:underline;
  text-underline-offset:3px;
  font-size:inherit;
}
.link-u:hover {
  text-decoration-color:var(--pink);
  text-decoration-thickness:2px;
}

/* ---------- Pie ---------- */

/* ---------- Navegación fija (mismo orden y numeración que las secciones) ---------- */
.bottom-nav {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  height:calc(var(--nav-h) + var(--safe-b));
  padding:0 max(var(--edge),env(safe-area-inset-right,0px)) var(--safe-b) max(var(--edge),env(safe-area-inset-left,0px));
  border-top:1px solid var(--ink);
  background:var(--paper);
  font-size:12px;
}
.nav-brand {
  display:block;
  flex:none;
}
.nav-logo {
  display:block;
  width:auto;
  height:28px;
  aspect-ratio:3935/583.4;
  fill:var(--ink);
}
.bottom-nav ul {
  display:flex;
  align-items:center;
  gap:clamp(14px,3vw,40px);
}
.bottom-nav li a {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:10px 0;
}
.nav-num {
  font-size:10px;
  color:var(--muted);
}
.bottom-nav li a:hover,.bottom-nav li a[aria-current=location] {
  text-decoration:underline;
  text-decoration-color:var(--pink);
  text-decoration-thickness:3px;
  text-underline-offset:7px;
}
.bottom-nav .nav-cta {
  padding:11px 18px;
  border:1px solid var(--ink);
  background:var(--yellow);
  text-decoration:none!important;
  transition:background .2s;
}
.bottom-nav .nav-cta .nav-num {
  color:var(--ink);
}
.bottom-nav .nav-cta:hover,.bottom-nav .nav-cta[aria-current=location] {
  background:var(--pink);
}
.nav-cta [aria-hidden] {
  font-size:18px;
  line-height:1;
}

/* ---------- Diálogo de proyecto ---------- */
dialog {
  border:1px solid var(--ink);
  padding:0;
  color:var(--ink);
  background:var(--paper);
  overscroll-behavior:contain;
}
dialog::backdrop {
  background:rgba(25,25,25,.65);
  backdrop-filter:blur(7px);
}
body.dialog-open {
  overflow:hidden;
}
.project-dialog {
  width:min(1330px,94vw);
  max-width:94vw;
  max-height:92dvh;
}
.project-dialog-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:20px 30px;
  border-bottom:1px solid var(--ink);
  background:var(--yellow);
}
.dialog-brand {
  font-size:10px;
  letter-spacing:.04em;
}
.close-button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin:-8px -8px -8px 0;
  padding:0;
  background:none;
  border:0;
}
.close-button span {
  font-size:34px;
  line-height:1;
}
.project-dialog-layout {
  padding:30px;
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:45px;
}
.gallery-image {
  position:relative;
  background:var(--soft);
  overflow:hidden;
}
.gallery-image>img {
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  max-height:72dvh;
  object-fit:contain;
}
.gallery-arrow {
  position:absolute;
  top:calc(50% - 22px);
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  background:var(--paper);
  border:1px solid var(--ink);
  font-size:22px;
  transition:background .2s;
}
.gallery-arrow:hover {
  background:var(--yellow);
}
.gallery-prev {
  left:15px;
}
.gallery-next {
  right:15px;
}
.gallery-bottom {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  margin-top:18px;
}
.gallery-bottom>p {
  font-size:11px;
  white-space:nowrap;
}
.gallery-thumbnails {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}
.gallery-image.is-loading>img {
  opacity:.45;
}
.gallery-image>img {
  transition:opacity .2s;
}
.gallery-status {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:12px 16px;
  background:var(--paper);
  border-top:1px solid var(--ink);
  font-size:13px;
}
.gallery-thumb {
  width:53px;
  height:53px;
  padding:3px;
  overflow:hidden;
  background:none;
  border:1px solid transparent;
}
.gallery-thumb[aria-pressed=true] {
  border-color:var(--ink);
  background:var(--pink);
}
.gallery-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.project-story {
  padding-top:18px;
}
.project-story h2 {
  font-family:var(--serif);
  font-size:clamp(48px,5vw,78px);
  line-height:.95;
  letter-spacing:-.025em;
  margin:25px 0;
}
.project-client {
  margin:-8px 0 20px;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
}
.project-description {
  font-size:15px;
  line-height:1.8;
  max-width:430px;
}
.project-description p+p {
  margin-top:.9em;
}
.project-meta {
  border-top:1px solid var(--line);
  margin-top:28px;
  padding-top:24px;
}
.project-meta ul {
  margin:13px 0 0;
  font-size:12px;
  line-height:2;
}
.project-contact {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  text-align:left;
  background:var(--yellow);
  border:1px solid var(--ink);
  padding:19px 23px;
  margin-top:30px;
  font-size:13px;
  font-weight:500;
  transition:background .2s;
}
.project-contact:hover {
  background:var(--pink);
}
.project-contact span {
  font-size:20px;
  line-height:1;
}
.project-share {
  margin-top:18px;
  font-size:12px;
}
.project-pager {
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--ink);
}
.project-pager button {
  display:flex;
  align-items:center;
  gap:14px;
  border:0;
  background:var(--paper);
  padding:22px 30px;
  font-size:11px;
  transition:background .2s;
}
.project-pager button:hover {
  background:var(--yellow);
}
.project-pager button span {
  font-size:24px;
  line-height:1;
}
.project-pager button>span[id] {
  font-family:var(--serif);
  font-size:27px;
}
.prev-project-button {
  text-align:left;
  border-right:1px solid var(--line)!important;
}
.next-project-button {
  justify-content:flex-end;
  text-align:right;
}

/* ---------- Diálogo del QR de contacto ---------- */
.qr-dialog {
  width:min(460px,94vw);
  max-width:94vw;
  max-height:94dvh;
}
.qr-body {
  padding:30px 30px 34px;
}
.qr-body h2 {
  font-family:var(--serif);
  font-size:clamp(34px,8.6vw,44px);
  line-height:1;
  letter-spacing:-.03em;
  margin:14px 0 24px;
}
.qr-code {
  width:min(100%,290px);
  margin:0 12px 26px 0;
  border:1px solid var(--ink);
  background:#fff;
  box-shadow:12px 12px 0 var(--pink);
}
.qr-code svg {
  width:100%;
  height:auto;
}
.qr-note {
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}
.qr-note p+p {
  margin-top:6px;
}
.qr-note .link-u {
  color:var(--ink);
  font-weight:500;
  overflow-wrap:anywhere;
}

/* ---------- Aviso ---------- */
.toast {
  position:fixed;
  left:50%;
  bottom:calc(var(--nav-h) + var(--safe-b) + 18px);
  z-index:50;
  max-width:calc(100vw - 32px);
  padding:.8em 1.3em;
  background:var(--ink);
  color:var(--paper);
  font-size:14px;
  font-weight:500;
  text-align:center;
  transform:translate(-50%,24px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s,transform .4s;
}
.toast.is-on {
  opacity:1;
  transform:translate(-50%,0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:1050px) {
  .project-card-third {
    grid-column:span 6;
  }
  .project-grid:not(.is-filtered) .project-card-third:last-child {
    grid-column:span 12;
  }
  .masthead-note {
    margin-right:20px;
  }
  .hero-composition {
    min-height:540px;
    gap:25px;
  }
  .hero h1 {
    font-size:12vw;
  }
  .hero-work img {
    height:390px;
  }
  .project-caption {
    gap:5px;
  }
  .project-caption>span:last-child {
    padding-left:24px;
    width:100%;
  }
  .service summary {
    grid-template-columns:60px minmax(0,1fr) 50px;
    gap:20px;
  }
  .service h3 br {
    display:block;
  }
  .service-content {
    padding-left:80px;
    padding-right:0;
    gap:35px;
  }
  .about-inner {
    gap:45px;
  }
  .about-copy h2 {
    font-size:9vw;
  }
  .project-dialog-layout {
    gap:25px;
  }
  .project-story h2 {
    font-size:60px;
  }
  .contact-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .vcard,.form {
    grid-column:1/-1;
  }
  .form {
    margin-top:24px;
  }
}
@media(max-width:850px) {
  .audience-band {
    grid-template-columns:1fr;
  }
  .audience {
    min-height:0;
    gap:20px;
  }
  .audience--yellow {
    padding-right:var(--edge);
    border-right:0;
    border-bottom:1px solid var(--ink);
  }
  .audience--pink {
    padding-left:var(--edge);
  }
  .audience .btn {
    margin-top:14px;
  }
  .nav-brand {
    display:none;
  }
  .bottom-nav ul {
    width:100%;
    justify-content:space-between;
  }
}
@media(max-width:700px) {
  :root {
    --nav-h:62px;
  }
  .masthead {
    gap:15px;
  }
  .brand {
    width:clamp(138px,42vw,180px);
  }
  .masthead-note {
    display:none;
  }
  .header-contact {
    margin-left:auto;
    min-width:0;
    gap:13px;
    font-size:12px;
  }
  .hero-topline {
    font-size:9px;
    gap:10px;
    padding:13px 0 15px;
  }
  .hero-composition {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:35px 0 30px;
    gap:35px;
    min-height:0;
  }
  .hero h1 {
    font-size:clamp(88px,17.8vw,128px);
    line-height:.86;
  }
  .hero-intro {
    margin-top:28px;
    max-width:none;
  }
  .hero-intro p {
    font-size:14px;
    max-width:300px;
  }
  .hero-work {
    max-width:none;
  }
  .hero-work img {
    height:315px;
  }
  .hero-work-caption {
    padding:14px 16px;
    font-size:9px;
  }
  .hero-work-caption>span:last-child {
    font-size:20px;
  }
  .hero-bottomline {
    font-size:9px;
    gap:10px;
  }
  .section-wrap {
    padding-top:65px;
    padding-bottom:65px;
  }
  .services-section>.section-wrap {
    padding-bottom:55px;
  }
  .section-heading {
    display:block;
    margin-bottom:32px;
  }
  .section-heading h2 {
    font-size:min(72px,calc((100vw - 44px) / 4.95));
    margin-top:20px;
  }
  .section-intro {
    font-size:14px;
    line-height:1.7;
    margin:26px 0 0;
    max-width:360px;
  }
  .portfolio-toolbar {
    padding:17px 0 26px;
    gap:10px;
  }
  .filters {
    gap:20px;
  }
  .filters button {
    font-size:12px;
    min-height:35px;
  }
  .filters sup {
    font-size:8px;
    margin-left:3px;
  }
  .portfolio-count {
    display:none;
  }
  .project-grid {
    display:flex;
    flex-direction:column;
    gap:32px;
  }
  .project-card {
    width:100%;
  }
  .project-image img,.project-card-wide .project-image img,.project-grid.is-filtered .project-image img {
    aspect-ratio:1/1;
  }
  .project-caption {
    margin-top:12px;
  }
  .project-caption strong {
    font-size:18px;
  }
  .image-action {
    width:46px;
    height:46px;
    font-size:22px;
  }
  .next-step {
    margin-top:44px;
  }
  .studio-statement {
    padding:55px var(--edge) 26px;
  }
  .studio-statement>p {
    font-size:48px;
  }
  .studio-statement>p br {
    display:none;
  }
  .statement-small {
    margin-top:38px;
    padding-top:18px;
    font-size:10px;
  }
  .services-heading {
    margin-bottom:40px;
  }
  .service {
    padding:24px 0;
  }
  .service summary {
    grid-template-columns:28px minmax(0,1fr) 38px;
    gap:12px;
  }
  .service h3 {
    font-size:39px;
  }
  .service-number {
    font-size:10px;
    padding-top:5px;
  }
  .service-toggle {
    width:38px;
    height:38px;
  }
  .service-toggle::before,.service-toggle::after {
    left:11px;
    right:11px;
    top:18px;
  }
  .service-content {
    display:block;
    padding:25px 0 0 40px;
  }
  .service-content p {
    font-size:13px;
  }
  .service-content ul {
    font-size:11px;
    margin-top:22px;
  }
  .audience {
    padding-top:44px;
    padding-bottom:44px;
  }
  .audience h3 {
    font-size:34px;
  }
  .audience .btn {
    width:100%;
  }
  .about-section {
    padding-top:55px;
    padding-bottom:65px;
  }
  .about-inner {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:46px;
  }
  .about-copy h2 {
    font-size:84px;
    margin-top:26px;
  }
  .about-description {
    font-size:13px;
  }
  .about-portrait {
    max-width:340px;
    width:100%;
    align-self:flex-start;
  }
    .contact-section>.section-wrap {
    padding-top:45px;
    padding-bottom:55px;
  }
  .contact-topline {
    display:block;
  }
  .contact-topline>span {
    display:block;
    margin-top:10px;
    font-size:10px;
  }
  .contact-section h2 {
    margin:35px 0 26px;
    font-size:clamp(58px,18.5vw,120px);
  }
    .contact-lead {
    font-size:14px;
    margin-bottom:40px;
  }
  .vcard-rows>div {
    grid-template-columns:1fr;
    gap:2px;
  }
  .vcard-quick {
    grid-template-columns:1fr 1fr;
  }
  .bottom-nav {
    gap:14px;
    font-size:10px;
  }
  .bottom-nav ul {
    gap:10px;
  }
  .nav-num {
    display:none;
  }
  .bottom-nav .nav-cta {
    padding:10px 12px;
  }
  .nav-cta [aria-hidden] {
    font-size:15px;
  }
  .project-dialog {
    width:95vw;
    max-width:95vw;
    max-height:93dvh;
  }
  .project-dialog-header {
    padding:14px 18px;
  }
  .dialog-brand {
    font-size:9px;
    max-width:180px;
  }
  .project-dialog-layout {
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .gallery-bottom {
    flex-direction:column;
    align-items:stretch;
    margin-top:12px;
    gap:10px;
  }
  .gallery-thumbnails {
    justify-content:flex-start;
    gap:6px;
  }
  .gallery-thumb {
    flex:1 1 0;
    width:auto;
    height:auto;
    min-width:30px;
    max-width:44px;
    aspect-ratio:1/1;
  }
  .project-story {
    padding-top:10px;
  }
  .project-story h2 {
    font-size:62px;
    margin:18px 0;
  }
  .project-description {
    font-size:14px;
  }
  .project-meta {
    margin-top:22px;
    padding-top:18px;
  }
  .project-contact {
    min-height:50px;
  }
  .project-pager button {
    padding:16px 14px;
    font-size:10px;
    gap:8px;
  }
  .project-pager button>span[id] {
    display:none;
  }
}
@media(max-width:370px) {
  .hero h1 {
    font-size:85px;
  }
  .hero-work img {
    height:275px;
  }
  .header-contact {
    font-size:11px;
  }
  .bottom-nav ul {
    gap:6px;
  }
  .bottom-nav {
    font-size:9.5px;
  }
  .about-copy h2 {
    font-size:75px;
  }
  .filters {
    gap:15px;
  }
  .service h3 {
    font-size:35px;
  }
  .studio-statement>p {
    font-size:43px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
  .marquee {
    white-space:normal;
  }
  .marquee-track {
    width:auto;
    flex-wrap:wrap;
    padding-inline:var(--edge);
  }
  .marquee-row:nth-child(2),.marquee-toggle {
    display:none;
  }
  .marquee-row {
    flex-wrap:wrap;
  }
  .marquee-row li {
    font-size:clamp(28px,3.6vw,48px);
  }
}

/* ---------- Página 404 ---------- */
.page-404,.page-status {
  padding-bottom:0;
  background:var(--yellow);
}
.notfound {
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:28px;
  padding:var(--gutter);
  max-width:1000px;
  margin:auto;
}
.notfound h1 {
  font-family:var(--serif);
  font-size:clamp(64px,13vw,160px);
  line-height:.9;
  letter-spacing:-.04em;
}
.notfound-text {
  max-width:420px;
  font-size:16px;
  line-height:1.7;
}

/* ---------- Rejilla: las tarjetas anchas igualan la altura de su fila (imágenes alineadas al píxel) ---------- */
@media(min-width:701px) and (max-width:1050px) {
  .project-grid:not(.is-filtered) .project-card-third:last-child .project-image img {
    aspect-ratio:2/1;
  }
}
@media(min-width:701px) {
  .project-grid:not(.is-filtered) .project-card-wide {
    display:flex;
    flex-direction:column;
    align-self:stretch;
  }
  .project-grid:not(.is-filtered) .project-card-wide .project-image {
    flex:1 1 auto;
    min-height:240px;
  }
  .project-grid:not(.is-filtered) .project-card-wide .project-image img {
    position:absolute;
    inset:0;
    height:100%;
    aspect-ratio:auto;
  }
}

/* ---------- Privacidad y aviso legal ---------- */
.page-legal {
  padding-bottom:0;
}
.brand-text {
  font-family:var(--serif);
  font-size:clamp(28px,3vw,40px);
  line-height:1;
  letter-spacing:-.03em;
  color:var(--ink);
}
.legal {
  max-width:900px;
  margin:auto;
  padding:clamp(48px,8vw,100px) var(--gutter) 90px;
}
.legal h1 {
  font-family:var(--serif);
  font-size:clamp(46px,7vw,92px);
  line-height:.95;
  letter-spacing:-.035em;
  margin:24px 0 32px;
}
.legal h2 {
  font-family:var(--serif);
  font-size:clamp(32px,4vw,48px);
  line-height:1;
  letter-spacing:-.025em;
  margin:56px 0 20px;
}
.legal p {
  font-size:15px;
  line-height:1.75;
  max-width:62ch;
}
.draft-note {
  padding:16px 20px;
  border:1px solid var(--ink);
  background:var(--yellow);
  font-weight:500;
}
.pending {
  background:var(--pink);
  color:var(--ink);
  padding:0 .3em;
}
.legal-data {
  border-top:1px solid var(--ink);
}
.legal-data>div {
  display:grid;
  grid-template-columns:minmax(0,200px) minmax(0,1fr);
  gap:8px 24px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.legal-data dt {
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.legal-data dd {
  font-size:15px;
  line-height:1.65;
}
.legal-back {
  margin-top:56px;
}
@media(max-width:700px) {
  .legal-data>div {
    grid-template-columns:minmax(0,1fr);
  }
}
