/* ============================================================
   Bravo — Fotografía · main.css
   Design tokens + all component styles (Home · Portafolio · Proyecto)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:        #d6d4c4;
  --bg-soft:   #cdc9b7;
  --bg-warm:   #c2bfa6;
  --ink:       #221f15;
  --ink-soft:  #5b5648;
  --ink-mute:  #8c8775;
  --terra:     #a8553a;
  --terra-dk:  #864128;
  --olive:     #555436;
  --sand:      #c8bfa6;
  --line:      rgba(34, 31, 21, 0.16);
  --line-strong: rgba(34, 31, 21, 0.35);

  --serif:  "Cormorant", "Times New Roman", serif;
  --hdr:    "Space Mono", ui-monospace, monospace;
  --script: "Caveat", "Brush Script MT", cursive;

  --maxw:   1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

/* Protección de imágenes */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#img-notice {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: rgba(34,31,21,0.88); color: #fff; backdrop-filter: blur(6px);
  font-family: var(--hdr); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 40px; z-index: 9999;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
}
#img-notice.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--terra); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; padding: 0; background: transparent; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.h-1 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

/* ── Star (word*) ───────────────────────────────────────────── */
.star {
  font-family: var(--hdr);
  font-weight: 700;
  font-style: normal;
  color: var(--terra);
  position: relative;
  padding-right: 0.05em;
  letter-spacing: -0.01em;
}
.star::after {
  content: "*";
  font-style: normal;
  font-weight: 700;
  font-family: var(--hdr);
  margin-left: 0.06em;
  color: var(--terra);
  vertical-align: 0.08em;
  font-size: 1.05em;
}
.star-light { color: var(--bg); }
.star-light::after { color: var(--bg); }

/* Override star color in filter chips */
.pf-filter .star,
.pf-filter .star::after { color: inherit; font-size: inherit; }

/* Override star in process section */
.process .star,
.process .star::after { color: var(--bg); }

/* Override star in dark CTA */
.pf-cta-title .star,
.pf-cta-title .star::after { color: var(--bg); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { position: relative; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 26px;
  background: var(--terra);
  color: var(--bg);
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover { background: var(--terra-dk); transform: translateY(-1px); }
.btn .arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 26px; }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: currentColor; color: var(--bg); }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.nav.on-hero { color: var(--bg); }
.nav.scrolled {
  background: rgba(244, 236, 224, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo svg {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.35s ease;
}
.nav.scrolled .nav-logo svg {
  height: 52px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-menu a {
  position: relative;
  padding: 8px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transition: right 0.4s cubic-bezier(.6,.05,.05,1);
}
.nav-menu a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--terra); border-color: var(--terra); color: var(--bg); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}
.nav-burger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s ease, top 0.35s ease, opacity 0.2s ease;
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 26px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--bg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(.7,.0,.15,1), visibility 0s 0.55s;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.55s cubic-bezier(.7,.0,.15,1), visibility 0s;
}
.mobile-menu nav {
  display: flex; flex-direction: column;
  gap: 18px;
}
.mobile-menu nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.open nav a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}
.mobile-menu nav a:hover { color: var(--terra); }
.mobile-menu-foot {
  margin-top: 60px;
  display: flex; justify-content: space-between;
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.mobile-menu-foot a {
  color: inherit;
  text-decoration: none;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
  transform: scale(1);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.04);
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1), transform 8s linear;
  z-index: 1;
}
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,36,28,0.28) 0%, rgba(43,36,28,0) 25%, rgba(43,36,28,0) 70%, rgba(43,36,28,0.42) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-corner {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  z-index: 5;
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.85;
}
.hero-corner .ln { display: block; opacity: 0.55; margin-bottom: 6px; font-size: 13px; }
.hero-pagination {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
}
.hero-pagination .dots { display: flex; gap: 8px; }
.hero-pagination .dot {
  width: 26px;
  background: transparent;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}
.hero-pagination .dot::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1px;
  background: rgba(244,236,224,0.45);
  transition: background 0.35s ease;
}
.hero-pagination .dot[data-on="1"]::after { background: var(--bg); }
.hero-pagination .num b { font-weight: 500; color: var(--bg); }

/* Hero tagline overlay */
.hero-content {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 110px;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(52px, 8vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--bg);
  margin: 0;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--bg);
}
.scroll-cue .line {
  width: 1px; height: 60px;
  background: currentColor;
  opacity: 0.6;
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.2); opacity: 0.2; }
  50%       { transform: scaleY(1);   opacity: 0.8; }
}

/* ── SECTION: PORTAFOLIO DESTACADO ─────────────────────────── */
.pdv {
  padding: 160px var(--gutter) 100px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.pdv-head {
  margin-bottom: 48px;
}
.pdv-head .pdv-text {
  max-width: 380px;
  margin-top: 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
}
.pdv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  align-items: start;
  position: relative;
}
.pdv-col { display: grid; gap: 48px; }
.pdv-col.right { margin-top: 120px; }

.case { position: relative; }
.case-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  display: block;
  aspect-ratio: 4/5;
}
.case-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter 0.6s ease;
  filter: saturate(0.95);
}
.case:hover .case-media img { transform: scale(1.06); filter: saturate(1.1); }
.case-cap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-cap .tag {
  font-family: var(--hdr);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case-cap .name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0.02em;
}
.case.wide .case-media  { aspect-ratio: 4/3; }
.case.tall .case-media  { aspect-ratio: 3/5; }
.case.portrait .case-media { aspect-ratio: 4/5; }

.script-flourish {
  position: absolute;
  right: 8%;
  bottom: 80px;
  font-family: var(--script);
  font-size: clamp(48px, 5vw, 80px);
  color: var(--terra);
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 2px 14px rgba(244,236,224,0.6);
}

/* ── SECTION: MÁS QUE FOTOS ────────────────────────────────── */
.more { padding: 60px 0 0; }
.more-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
  padding: 0 var(--gutter);
}
.more-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  margin: 0;
}
.more-title .reg { font-style: normal; }
.more-head p {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.7;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.more-img {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
}
.more-img img {
  width: 100%; height: 130%; object-fit: cover;
  will-change: transform;
}
/* Video thumbnail + play button */
.video-thumb { cursor: pointer; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(244,236,224,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.2,.6,.2,1), background 0.3s ease;
  z-index: 2;
}
.video-thumb:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #fff;
}
.video-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── SECTION: EQUIPO ────────────────────────────────────────── */
.equipo {
  padding: 140px 0 120px;
  text-align: center;
}
.equipo-head { margin-bottom: 60px; }
.eq-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  margin: 0;
}
.eq-sub {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 20px;
  font-style: italic;
}
.equipo-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.equipo-portraits .portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-warm);
}
.equipo-portraits .portrait img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s ease;
  filter: saturate(0.95);
}
/* Bio overlay al hover */
.portrait-bio {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(34,31,21,0.82) 0%, rgba(34,31,21,0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.equipo-portraits .portrait:hover .portrait-bio,
.equipo-portraits .portrait.bio-open .portrait-bio { opacity: 1; }
.portrait-bio p {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}
.equipo-portraits .portrait:hover .portrait-bio p,
.equipo-portraits .portrait.bio-open .portrait-bio p { transform: translateY(0); }
.equipo-portraits .portrait:hover img,
.equipo-portraits .portrait.bio-open img { transform: scale(1.04); }
.equipo-cap {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.equipo-cap .role {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
.equipo-cap .pname {
  font-style: italic;
  font-size: 26px;
  letter-spacing: 0.01em;
}

/* ── SECTION: SERVICIOS ─────────────────────────────────────── */
.services {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.services-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 90vh;
}
.services-list-wrap {
  padding: 110px var(--gutter) 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services-list { display: grid; gap: 2px; margin-top: 28px; }
.services-list .svc:last-child { border-bottom: none; }
.svc {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: baseline;
  column-gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.5s cubic-bezier(.2,.6,.2,1), opacity 0.35s ease;
}
.services-list:hover .svc { opacity: 0.42; }
.services-list .svc.is-hover { opacity: 1; padding-left: 18px; }
.svc-num {
  font-family: var(--hdr);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.28em;
  align-self: start;
  padding-top: 14px;
}
.svc-body { display: flex; flex-direction: column; gap: 8px; }
.svc-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1;
  font-style: italic;
  color: var(--terra);
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1);
}
.svc.is-hover .svc-name { transform: translateX(4px); }
.svc-bracket {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
}
.svc-arrow {
  align-self: start;
  padding-top: 18px;
  color: var(--ink-mute);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2,.6,.2,1);
  display: inline-flex;
}
.svc-arrow svg { width: 18px; height: 18px; }
.svc.is-hover .svc-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--terra);
}
.services-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  min-height: 90vh;
}
.svc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 6s linear;
  transform: scale(1);
}
.svc-bg.active {
  opacity: 1;
  transform: scale(1.04);
  z-index: 1;
}

/* ── SECTION: PROCESO ───────────────────────────────────────── */
.process {
  background: var(--olive);
  color: var(--bg);
  padding: 90px 0 100px;
}
.process .container { position: relative; }
.process-head { margin-bottom: 64px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(244,236,224,0.35);
}
.step-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  color: var(--bg);
  opacity: 0.95;
  margin-bottom: 8px;
}
.step-icon svg { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 0.9; }
.step-num {
  font-family: var(--hdr);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.step-tag {
  font-style: italic;
  font-size: 19px;
  opacity: 0.85;
}
.step-text { font-size: 20px; line-height: 1.6; opacity: 0.82; margin-top: 4px; }

/* ── SECTION: TESTIMONIOS ───────────────────────────────────── */
.testimonials {
  background: var(--bg);
  padding: 140px 0 100px;
}
.t-head { text-align: center; margin-bottom: 64px; }
.t-head .eyebrow { display: block; margin-bottom: 18px; }
.t-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  margin: 0;
}
.t-head p { margin-top: 16px; color: var(--ink-soft); font-style: italic; font-size: 20px; }
.t-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 380px;
  padding: 0 var(--gutter);
}
.t-card {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr;
  gap: 64px;
  align-items: center;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.t-card.active { opacity: 1; position: relative; pointer-events: auto; }
.t-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-warm); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); }
.t-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.45;
}
.t-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 90px;
  line-height: 0.5;
  color: var(--terra);
  display: block;
  height: 36px;
}
.t-meta { margin-top: 28px; }
.t-name { font-style: italic; font-size: 24px; letter-spacing: 0.01em; }
.t-where { font-family: var(--hdr); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.t-controls {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.t-arrows { display: flex; gap: 14px; align-items: center; }
.t-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: grid; place-items: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  color: var(--ink);
  cursor: pointer;
}
.t-arrow:hover { background: var(--terra); color: var(--bg); border-color: var(--terra); }
.t-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.t-counter { font-family: var(--hdr); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-soft); min-width: 80px; text-align: center; }
.t-counter b { color: var(--ink); font-weight: 500; }

/* ── BOTTOM STRIP ───────────────────────────────────────────── */
.bottom-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: var(--bg-warm);
}
.bottom-strip .sitem { display: block; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.bottom-strip .sitem img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
  filter: saturate(0.95);
}
.bottom-strip .sitem:hover img { transform: scale(1.06); }
.sitem-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(34,31,21,0.78) 0%, rgba(34,31,21,0.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bottom-strip .sitem:hover .sitem-cap { opacity: 1; }
.sitem-cat {
  font-family: var(--hdr);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.sitem-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 34px);
  color: #fff;
  line-height: 1.1;
}

/* ── SECTION: SEO — Fotógrafo de bodas en Alicante (acordeón) ── */
.seo-info { background: var(--bg-warm); }                 /* color distinto al formulario */
.seo-wrap > summary.seo-toggle {
  list-style: none; cursor: pointer; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 44px 0;
  font-family: var(--hdr); font-weight: 700; font-size: 15px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); transition: color 0.25s ease;
}
/* Cuando está cerrado, la mitad de espacio vertical */
.seo-wrap:not([open]) > summary.seo-toggle { padding-top: 22px; padding-bottom: 22px; }
.seo-wrap > summary::-webkit-details-marker { display: none; }
.seo-wrap > summary.seo-toggle:hover { color: var(--terra); }
.seo-wrap-body { padding: 6px 0 64px; }
.seo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.seo-intro p { margin-top: 22px; font-size: 20px; line-height: 1.65; color: var(--ink-soft); max-width: 560px; }

.faq-heading { font-family: var(--hdr); font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--terra); transition: transform 0.3s ease; }
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mark::after  { top: 0; left: 7px; width: 2px; height: 16px; }
details[open] > summary .faq-mark::after { transform: scaleY(0); }
.faq-answer { padding: 0 0 22px; font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 540px; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: 0 0 12px; padding-left: 22px; }
.faq-answer a { color: var(--terra); text-decoration: underline; }

/* ── SECTION: CONTACTO ──────────────────────────────────────── */
.contact { padding: 130px 0 120px; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p { color: var(--ink-soft); max-width: 420px; margin-top: 24px; }
.contact-detail { margin-top: 48px; display: grid; gap: 18px; }
.cdetail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cdetail span:first-child {
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cdetail span:last-child { font-style: italic; font-size: 22px; }

.form { display: grid; gap: 22px; }
/* Campo trampa anti-spam (oculto a usuarios, lo rellenan los bots) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; position: relative; }
.field label {
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terra); }
.field.error input,
.field.error textarea,
.field.error select { border-color: var(--terra-dk); }
.field-error {
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-dk);
  margin-top: 2px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input { width: 16px; height: 16px; accent-color: var(--terra); margin-top: 3px; flex-shrink: 0; }
.form-success {
  border: 1px solid var(--olive);
  background: rgba(85,84,54,0.08);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 4px;
}
.form-success .success-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex-shrink: 0; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 100px var(--gutter) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,236,224,0.18);
}
.footer h4 {
  font-family: var(--hdr);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 18px;
}
/* El título en sí (h4) es solo estructura; el botón real (acordeón en móvil,
   inerte en escritorio) hereda su tipografía y no aporta estilo de botón. */
.footer-acc-btn {
  all: unset;
  display: block;
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: default;
}
.f-lockup svg {
  height: 52px;
  width: auto;
  display: block;
}
.f-brand p { opacity: 0.65; max-width: 320px; margin-top: 18px; font-size: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { opacity: 0.85; transition: opacity 0.3s ease, color 0.3s ease; font-size: 19px; }
.footer ul a:hover { color: var(--terra); opacity: 1; }

/* Desplegable «Servicios» del footer (nativo <details>, sin JS) */
.footer-sub > summary {
  list-style: none;
  cursor: pointer;
  font-size: 19px;
  opacity: 0.85;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer-sub > summary::-webkit-details-marker { display: none; }
.footer-sub > summary::after { content: "+"; font-family: var(--hdr); font-size: 14px; opacity: 0.7; }
.footer-sub[open] > summary::after { content: "–"; }
.footer-sub > summary:hover { color: var(--terra); opacity: 1; }
.footer-sub > ul { margin: 12px 0 2px; padding-left: 14px; border-left: 1px solid rgba(244, 236, 224, 0.18); }
.footer-sub > ul a { font-size: 16px; }
/* El .footer ul { display:grid } anula el ocultado nativo de <details>; forzarlo. */
.footer-sub:not([open]) > ul { display: none; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.footer-bottom .footer-credit a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-bottom .footer-credit a:hover { color: var(--terra); }
.footer-bottom .footer-credit .heart { color: var(--terra); text-transform: none; font-size: 11px; }

/* ── PORTAFOLIO PAGE ────────────────────────────────────────── */
.pf-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 540px;
  max-height: 820px;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.pf-hero-img {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.pf-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,31,21,0.35) 0%, rgba(34,31,21,0.05) 35%, rgba(34,31,21,0.1) 70%, rgba(34,31,21,0.55) 100%);
}
.pf-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 var(--gutter) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pf-hero-eyebrow {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.9;
  margin-bottom: 24px;
}
.pf-hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--terra);
  margin: 0;
  max-width: 900px;
}
.pf-hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 480px;
  color: var(--ink);
  opacity: 1;
  margin-top: 28px;
}
.pf-hero-meta {
  position: absolute;
  top: 120px;
  right: var(--gutter);
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.75;
  text-align: right;
  line-height: 2;
  z-index: 3;
}

/* Filter bar */
.pf-filters-wrap {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--bg);
  padding: 80px 0 60px;
}
.pf-filters-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filter {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pf-filter:hover { border-color: var(--ink); }
.pf-filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pf-count {
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pf-count b { color: var(--ink); font-weight: 700; }

/* Masonry grid */
.pf-grid-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--gutter) 60px;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pf-item {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
  animation: pfIn 0.8s cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes pfIn { to { opacity: 1; transform: translateY(0); } }
.pf-item-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 3 / 4;
}
.pf-item-media img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter 0.6s ease;
  filter: saturate(0.95);
}
.pf-item:hover .pf-item-media img { transform: scale(1.05); filter: saturate(1.1); }
.pf-item-media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,31,21,0);
  transition: background 0.4s ease;
}
.pf-item:hover .pf-item-media::after { background: rgba(34,31,21,0.12); }
.pf-item-cap {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.pf-item-name {
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.005em;
}
.pf-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.pf-item-meta .cat {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.pf-item-meta .where {
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Load more */
.pf-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 0 100px;
  text-align: center;
  width: 100%;
}
.pf-more-info { font-family: var(--hdr); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.pf-more-info b { color: var(--ink); font-weight: 700; }
.pf-more-btn {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 18px 36px 18px 40px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: background 0.35s ease, color 0.35s ease;
}
.pf-more-btn:hover { background: var(--ink); color: var(--bg); }
.pf-more-btn .plus { width: 18px; height: 18px; position: relative; }
.pf-more-btn .plus::before,
.pf-more-btn .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.pf-more-btn .plus::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.pf-more-btn .plus::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.pj-more-wrap { padding: 48px 0 64px; }
.pf-end { font-style: italic; font-size: 22px; color: var(--ink-soft); }
.pf-end::after { content: "*"; font-family: var(--hdr); font-weight: 700; font-style: normal; color: var(--terra); margin-left: 4px; }

/* CTA block */
.pf-cta { background: var(--ink); color: var(--bg); padding: 140px var(--gutter); text-align: center; }
.pf-cta-inner { max-width: 860px; margin: 0 auto; }
.pf-cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1;
  margin: 0;
}
.pf-cta-sub { margin-top: 24px; font-style: italic; font-size: 20px; opacity: 0.78; }

/* Form dentro del pf-cta (fondo oscuro) */
.pf-cta .form { margin-top: 56px; text-align: left; }
.pf-cta .field label { color: rgba(244,236,224,0.65); font-size: 11px; }
.pf-cta .field input,
.pf-cta .field textarea,
.pf-cta .field select {
  color: var(--bg);
  background: transparent;
  border-bottom-color: rgba(244,236,224,0.25);
}
.pf-cta .field input::placeholder,
.pf-cta .field textarea::placeholder { color: rgba(244,236,224,0.35); }
.pf-cta .field select option { background: var(--ink); color: var(--bg); }
.pf-cta .field input:focus,
.pf-cta .field textarea:focus,
.pf-cta .field select:focus { border-bottom-color: var(--terra); }
.pf-cta .consent { color: rgba(244,236,224,0.6); }
.pf-cta .btn { background: var(--terra); border-color: var(--terra); color: var(--bg); margin-top: 16px; }
.pf-cta .btn:hover { background: transparent; color: var(--terra); border-color: var(--terra); }
.pf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid var(--bg);
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease;
}
.pf-cta-btn:hover { background: var(--bg); color: var(--ink); }

/* ── PROYECTO PAGE ───────────────────────────────────────────── */
.pj-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.pj-hero-img {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.pj-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,31,21,0.4) 0%, rgba(34,31,21,0.1) 30%, rgba(34,31,21,0.1) 65%, rgba(34,31,21,0.62) 100%);
}
.pj-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pj-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.pj-hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--bg);
  margin: 0;
  max-width: 1080px;
}
.pj-hero-eyebrow {
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 24px;
}
/* El asterisco de la categoría, también en naranja */
.pj-hero-eyebrow .star, .pj-hero-eyebrow .star::after { color: var(--terra); }
.pj-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  align-items: end;
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
}
.pj-meta .lbl { display: block; font-weight: 400; font-size: 12px; opacity: 0.6; margin-bottom: 8px; letter-spacing: 0.2em; }
.pj-scroll-cue {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--hdr);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pj-scroll-cue .ln {
  width: 1px; height: 32px;
  background: currentColor;
  opacity: 0.6;
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
.pj-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pj-back:hover { opacity: 1; transform: translateX(-3px); }
.pj-back .arrow {
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
}
.pj-back .arrow::before {
  content: "";
  position: absolute;
  left: 0; top: -3px;
  width: 8px; height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Project intro */
.pj-intro {
  padding: 120px var(--gutter) 100px;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Si no hay descripción, el módulo se oculta y no deja hueco */
.pj-intro:empty,
.pj-intro.is-empty { display: none; }
.pj-intro-text {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}
.pj-intro-text p { margin: 0 0 16px; }
.pj-intro-text p:last-child { margin-bottom: 0; }
.pj-intro-text ul, .pj-intro-text ol { display: inline-block; text-align: left; margin: 0 0 16px; padding-left: 24px; }
.pj-intro-text a { color: var(--terra); text-decoration: underline; }

/* Project gallery */
.pj-gallery {
  padding: 0 var(--gutter) 120px;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Rejilla fila por fila (no mosaico por columnas): #1 izquierda, #2 derecha,
   #3 izquierda… El lightbox va aparte, siempre correlativo (usa data-index).
   Sin huecos: las verticales van en celda uniforme 4:5 (recorte mínimo) y las
   apaisadas (.pj-wide, detectadas por JS al cargar) ocupan el ancho completo
   SIN recortar. En 1 columna (≤980px) nada se recorta. */
/* "dense": si una apaisada o la cita dejan una celda suelta, la siguiente
   vertical la rellena (sin huecos). No hay numeración visible en el portfolio,
   y el lightbox mantiene el orden real por data-index. */
.pj-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: row dense; gap: 40px; align-items: start; }
.pj-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-warm);
  cursor: zoom-in;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: pjIn 0.9s cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes pjIn { to { opacity: 1; transform: translateY(0); } }
.pj-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter 0.5s ease;
  filter: saturate(0.95);
}
.pj-photo:hover img { transform: scale(1.03); filter: saturate(1.05); }

/* Foto apaisada: ancho completo, altura natural, sin recorte. */
.pj-photo.pj-wide { grid-column: 1 / -1; aspect-ratio: auto; }
.pj-photo.pj-wide img { height: auto; object-fit: fill; }
.pj-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,31,21,0);
  transition: background 0.35s ease;
  pointer-events: none;
}
.pj-photo:hover::after { background: rgba(34,31,21,0.14); }

/* Optional project video — spans both columns, matches photo style */
.pj-video {
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: pjIn 0.9s cubic-bezier(.2,.6,.2,1) forwards;
}
.pj-video img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter 0.5s ease;
  filter: saturate(0.95);
}
.pj-video:hover img { transform: scale(1.03); filter: saturate(1.05); }
.pj-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(244, 236, 224, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(.2,.6,.2,1), background 0.3s ease;
}
.pj-video:hover .pj-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}
.pj-video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.pj-video.playing { cursor: default; aspect-ratio: 16 / 9; }
.pj-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.pj-quote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 56px 32px;
  background: var(--bg-soft);
  text-align: center;
  position: relative;
}
.pj-quote::before {
  content: "\201C";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  line-height: 0.5;
  color: var(--terra);
}
.pj-quote-text {
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 380px;
}
.pj-quote-sig {
  margin-top: 22px;
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Project prev/next nav */
.pj-nav { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pj-nav-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pj-nav-item {
  position: relative;
  display: block;
  padding: 90px var(--gutter);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  min-height: 320px;
  transition: color 0.5s ease;
}
.pj-nav-item:first-child { border-right: 1px solid var(--line); }
.pj-nav-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 6s linear;
}
.pj-nav-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,31,21,0.45);
}
.pj-nav-item:hover .pj-nav-bg { opacity: 1; transform: scale(1); }
.pj-nav-item:hover { color: var(--bg); }
.pj-nav-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.pj-nav-item.next .pj-nav-content { margin-left: auto; align-items: flex-end; text-align: right; }
.pj-nav-item.prev .pj-nav-content { margin-right: auto; align-items: flex-start; text-align: left; }
.pj-nav-title {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
.pj-nav-meta {
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 8px;
}
.pj-nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--hdr);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pj-nav-arrow .ln { width: 28px; height: 1px; background: currentColor; }

/* Lightbox */
.pj-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter) 100px;
  cursor: zoom-out;
  animation: lbFade 0.35s cubic-bezier(.4,0,.2,1);
}
.pj-lb.open { display: flex; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.pj-lb-stage {
  max-width: 1400px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.pj-lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
  animation: lbImg 0.45s cubic-bezier(.2,.6,.2,1);
}
@keyframes lbImg { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.pj-lb-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(244,236,224,0.35);
  border-radius: 50%;
  color: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s ease;
}
.pj-lb-close:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); transform: rotate(90deg); }
.pj-lb-close .x { position: relative; width: 16px; height: 16px; }
.pj-lb-close .x::before,
.pj-lb-close .x::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: currentColor;
}
.pj-lb-close .x::before { transform: rotate(45deg); }
.pj-lb-close .x::after  { transform: rotate(-45deg); }
.pj-lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: transparent;
  border: 1px solid rgba(244,236,224,0.3);
  border-radius: 50%;
  color: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.pj-lb-arrow:hover { background: rgba(244,236,224,0.12); border-color: rgba(244,236,224,0.7); }
.pj-lb-arrow.prev { left: 32px; }
.pj-lb-arrow.next { right: 32px; }
.pj-lb-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.pj-lb-meta {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--hdr);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,236,224,0.78);
  z-index: 3;
}
.pj-lb-meta .names {
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bg);
}
.pj-lb-meta .counter { position: relative; padding-left: 28px; }
.pj-lb-meta .counter::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1px;
  background: rgba(244,236,224,0.35);
}

/* 404 */
.pj-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  gap: 24px;
}

/* ── PÁGINAS LEGALES ───────────────────────────────────────── */
.legal-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(244, 236, 224, 0.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.legal-page { padding: 160px 0 110px; background: var(--bg); }
.legal-doc { max-width: 760px; }
.legal-eyebrow { font-family: var(--hdr); font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; }
.legal-doc h1 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 32px; }
.legal-doc h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 38px 0 12px; color: var(--ink); }
.legal-doc p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; max-width: 680px; }
.legal-doc a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc ul.legal-data { list-style: none; padding: 0; margin: 0 0 16px; }
.legal-doc ul.legal-data li { font-size: 16px; line-height: 1.6; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--line); }
.legal-doc ul.legal-data li strong { color: var(--ink); }
.legal-doc .legal-updated { margin-top: 40px; font-size: 13px; font-style: italic; color: var(--ink-mute); }

/* Página 404 */
.error-page { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 180px var(--gutter) 120px; background: var(--bg); }
.error-inner { max-width: 600px; }
.error-inner h1 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.02em; margin: 12px 0 20px; }
.error-inner p { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin: 0 auto 32px; max-width: 460px; }
.error-actions { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-text { font-family: var(--hdr); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.btn-text:hover { color: var(--terra); border-color: var(--terra); }

/* Enlaces legales del footer */
.footer-bottom .footer-legal-links a { color: var(--bg); opacity: 0.85; transition: color 0.3s ease, opacity 0.3s ease; }
.footer-bottom .footer-legal-links a:hover { color: var(--terra); opacity: 1; }

/* ── ACCESIBILIDAD ─────────────────────────────────────────── */
/* Saltar al contenido (visible solo al tabular) */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  font-family: var(--hdr); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
/* Foco visible para navegación con teclado */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Respetar "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── TRANSICIÓN ENTRE PÁGINAS ──────────────────────────────── */
/* Entrada suave del contenido al cargar.
   IMPORTANTE: solo opacidad (sin transform), porque un transform en el body
   crearía un "containing block" que rompería el position:fixed del nav y el lightbox. */
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageEnter 0.5s ease both; }

/* Velo de carga con el logo (se muestra al navegar) */
.page-fade {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--bg);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-fade.show { opacity: 1; visibility: visible; }
.page-fade .pf-logo { width: 64px; height: 64px; color: var(--ink); animation: pfPulse 1.1s ease-in-out infinite; }
@keyframes pfPulse {
  0%, 100% { transform: scale(0.86) rotate(-5deg); opacity: 0.6; }
  50%      { transform: scale(1.08) rotate(5deg);  opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
/* ── TABLET (≤980px) ──────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Nav */
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .nav-logo svg { height: 44px; }
  .nav.scrolled .nav-logo svg { height: 40px; }

  /* PDV */
  .pdv-head { gap: 32px; }
  .pdv-grid { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .pdv-col.right { margin-top: 0; }

  /* Equipo */
  .equipo-portraits { grid-template-columns: 1fr 1fr; gap: 18px; }

  /* Servicios */
  .services-inner { grid-template-columns: minmax(0, 1fr); }
  .services-img { min-height: 55vh; }
  .services-list-wrap { padding: 80px var(--gutter); }

  /* Proceso */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Bottom strip */
  .bottom-strip { grid-template-columns: repeat(3, 1fr); }
  .bottom-strip .sitem:nth-child(n+4) { display: none; }

  /* Testimonios */
  .t-card { grid-template-columns: 1fr; gap: 32px; }

  /* Contacto */
  .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .seo-info { padding-top: 20px; }
  .seo-info-grid { grid-template-columns: 1fr; gap: 44px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Ornamental */
  .script-flourish { right: 4%; bottom: 40px; font-size: 56px; }

  /* Portafolio page */
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pf-hero-meta { display: none; }

  /* Proyecto page */
  .pj-intro { padding: 70px var(--gutter) 60px; }
  .pj-grid { grid-template-columns: 1fr; }
  /* En 1 columna no hay huecos → todas las fotos naturales, sin recorte. */
  .pj-photo { aspect-ratio: auto; }
  .pj-photo img { height: auto; object-fit: fill; }
  .pj-nav-grid { grid-template-columns: 1fr; }
  .pj-nav-item:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .pj-nav-item.prev .pj-nav-content { text-align: left; align-items: flex-start; margin-left: 0; margin-right: 0; }
  .pj-nav-item.next .pj-nav-content { text-align: right; align-items: flex-end; margin-left: auto; margin-right: 0; }
  .pj-meta { grid-template-columns: 1fr 1fr; gap: 20px 36px; }
  .pj-lb { padding: 60px 16px 80px; }
  .pj-lb-arrow.prev { left: 12px; }
  .pj-lb-arrow.next { right: 12px; }
}

/* ── MOBILE (≤600px) ──────────────────────────────────────────── */
@media (max-width: 600px) {
  /* FAQ / apartado SEO en móvil: cerrado compacto + tipografía legible */
  .seo-wrap > summary.seo-toggle { font-size: 14px; }
  .seo-wrap:not([open]) > summary.seo-toggle { padding-top: 18px; padding-bottom: 18px; }
  .seo-wrap-body { padding: 4px 0 48px; }
  .seo-info-grid { gap: 32px; }
  .seo-intro h2 { font-size: 30px; }
  .seo-intro p { font-size: 19px; line-height: 1.6; margin-top: 16px; }
  .faq-item summary { font-size: 19px; }
  .faq-answer { font-size: 18px; }

  /* Nav */
  .nav { padding: 16px var(--gutter); }
  .nav-logo svg { height: 40px; }
  .nav.scrolled .nav-logo svg { height: 40px; }

  /* Hero */
  .hero-tagline { font-size: clamp(40px, 11vw, 65px); }
  .hero-content { bottom: 80px; }
  .hero-corner .ln { display: none; }
  .hero-pagination { gap: 12px; }

  /* PDV */
  .pdv { padding: 80px var(--gutter) 60px; }
  .pdv-head { margin-bottom: 36px; }
  .pdv-grid { gap: 40px; }
  .pdv-col { gap: 40px; }
  .script-flourish { font-size: 40px; right: 0; bottom: 16px; }
  .case-cap .name { font-size: 22px; }

  /* Más que fotos */
  .more { padding: 60px 0 0; }
  .more-head { margin-bottom: 40px; }
  .more-img { min-height: 260px; }

  /* Servicios — sin imagen, sin hover en móvil */
  .services-inner { grid-template-columns: minmax(0, 1fr); }
  .services-img { display: none; }
  .services-list-wrap { padding: 60px var(--gutter); }
  .svc-num { font-size: 12px; }
  .svc-bracket { font-size: 18px; }
  .svc.is-hover { padding-left: 0 !important; }
  .svc.is-hover .svc-name { transform: none !important; }
  .svc.is-hover .svc-arrow { opacity: 0 !important; }
  .services-list .svc { opacity: 1 !important; }

  /* Proceso */
  .process { padding: 60px 0 70px; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-head { margin-bottom: 40px; }
  .step-icon { width: 56px; height: 56px; }
  .step-icon svg { width: 42px; height: 42px; }

  /* Testimonios */
  .testimonials { padding: 80px 0 60px; }
  .t-head { margin-bottom: 48px; }
  .t-quote { font-size: 20px; }

  /* Equipo */
  .equipo { padding: 80px 0; }
  .equipo-portraits { grid-template-columns: 1fr; gap: 32px; }

  /* Bottom strip */
  .bottom-strip { grid-template-columns: 1fr 1fr; }
  .bottom-strip .sitem:nth-child(n+3) { display: none; }

  /* Contacto */
  .contact { padding: 80px 0; }
  .contact-grid { gap: 40px; }

  /* Footer */
  .footer { padding: 60px var(--gutter) 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .f-lockup svg { height: 40px; }

  /* Footer accordion */
  .footer-top { border-bottom: none; }
  .footer-top > div { border-bottom: 1px solid rgba(244,236,224,0.15); padding: 4px 0; }
  .footer-top > div:first-child { border-top: 1px solid rgba(244,236,224,0.15); margin-top: 24px; }
  .footer-top > div > h4 { margin: 0; }
  .footer-top > div > h4 .footer-acc-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
  }
  .footer-top > div > h4 .footer-acc-btn::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    font-family: var(--serif);
    opacity: 0.6;
    transition: transform 0.3s ease;
    line-height: 1;
  }
  .footer-top > div > h4 .footer-acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
  .footer-top > div > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
    margin: 0;
  }
  .footer-top > div > ul.open {
    max-height: 300px;
    padding-bottom: 14px;
  }
  /* Brand column — always visible, no accordion */
  .f-brand { border: none !important; padding-bottom: 32px; }
  .f-brand h4 { display: none; }

  /* Portafolio page */
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters-wrap { top: 56px; padding: 48px 0 20px; }
  .pf-filters-inner { gap: 8px; align-items: flex-start; }
  .pf-filters { flex-wrap: wrap; gap: 6px; overflow: visible; width: 100%; }
  .pf-filter { padding: 8px 12px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
  .pf-count { display: none; }
  .pf-grid-wrap { padding-top: 28px; }

  /* Proyecto page */
  .pj-meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Contenido enriquecido del editor del CMS en bloques de texto ── */
.seo-intro a, .more-head a, .contact-info a, .mc-prose a, .portrait-bio a { color: var(--terra); text-decoration: underline; }
.seo-intro ul, .seo-intro ol, .more-head ul, .more-head ol,
.contact-info ul, .contact-info ol, .mc-prose ul, .mc-prose ol { margin: 0 0 16px; padding-left: 24px; }
.seo-intro li, .more-head li, .contact-info li, .mc-prose li { margin: 0 0 6px; }
.mc-prose h2, .seo-intro h3, .more-head h3, .contact-info h3, .mc-prose h3 {
  font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 12px;
}
.mc-prose h2 { font-size: clamp(26px, 3vw, 34px); }
.seo-intro h3, .more-head h3, .contact-info h3, .mc-prose h3 { font-size: 22px; }

/* ── COOKIE CONSENT BAR ─────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 11px var(--gutter);
  font-family: var(--hdr);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.cookie-bar p { margin: 0; flex: 1; opacity: 0.75; }
.cookie-bar p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  all: unset; cursor: pointer;
  font-family: var(--hdr); font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 2px;
}
.cookie-accept { background: var(--terra); color: #fff; }
.cookie-reject {
  color: var(--bg); opacity: 0.5;
  border: 1px solid rgba(255,255,255,0.25);
}
.cookie-reject:hover { opacity: 1; }
@media (max-width: 480px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
