/*
Theme Name: AOZ Abogados
Description: Theme a medida para Acuña Olivera Zegarra Abogados — dark chambers editorial, tonos tomados del logo de la firma.
Author: AOZ Abogados
Version: 1.0.0
Text Domain: aoz-theme
Requires at least: 6.0
Requires PHP: 8.0
*/

/* =============================================================
   0. Self-hosted fonts (no Google Fonts <link> — perf + GDPR)
   ============================================================= */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-var.woff2') format('woff2-variations'), url('assets/fonts/cormorant-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-italic-var.woff2') format('woff2-variations'), url('assets/fonts/cormorant-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2-variations'), url('assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

/* =============================================================
   AOZ Abogados — Acuña Olivera Zegarra
   Archetype: Dark Chambers Editorial
   Paleta: navy/carbón profundo + azul pizarra (tonos tomados del logo). Tipografía: Cormorant + Inter + IBM Plex Mono.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  --bg:        #0a0e13;
  --bg-2:      #0e141b;
  --bg-3:      #151b23;
  --bg-4:      #1a2229;
  --bg-elev:   #1a2229;

  --cream:     #e7ecef;
  --cream-2:   #b7c2ca;
  --cream-3:   #78848c;

  --accent:      #6e91a5;
  --accent-2:    #9dbbcb;
  --accent-dim:  #3e5670;
  --slate:     #414f57;
  --navy-deep: #0a1420;

  --line:      rgba(231, 236, 239, 0.11);
  --line-strong: rgba(231, 236, 239, 0.22);
  --shadow:    rgba(3, 4, 6, 0.6);

  --serif: "Cormorant", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --radius: 2px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
:where(h1, h2, h3, h4) { text-wrap: balance; line-height: 1.05; font-family: var(--serif); font-weight: 500; color: var(--cream); letter-spacing: -0.01em; }
em, i { font-style: italic; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--accent); color: var(--bg);
  font-weight: 600; border-radius: 3px; font-size: .85rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 720px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { position: relative; padding-block: 5.5rem; }
@media (min-width: 960px) { .section { padding-block: 8.5rem; } }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
@media (min-width: 960px) { .section-head { margin-bottom: 4.5rem; } }
.section-head.is-wide { max-width: 60rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent-dim);
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500;
}
.section-title em { color: var(--accent); font-style: italic; }
.section-lead {
  margin-top: 1.3rem; font-size: 1.08rem; color: var(--cream-3); max-width: 42rem; line-height: 1.7;
}

.eyebrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--accent-2);
  margin-top: 2.4rem;
}
.eyebrow-link .arrow { transition: transform .4s var(--ease-out); }
.eyebrow-link:hover .arrow { transform: translateX(5px); }

/* =============================================================
   4. Typography — headings, prose
   ============================================================= */
.prose { max-width: 68ch; color: var(--cream-2); font-size: 1.05rem; line-height: 1.85; }
.prose p + p { margin-top: 1.3em; }
.prose h2 { font-size: 1.9rem; margin-top: 2.4em; margin-bottom: .6em; }
.prose h3 { font-size: 1.4rem; margin-top: 2em; margin-bottom: .5em; color: var(--accent-2); }
.prose a { color: var(--accent-2); border-bottom: 1px solid var(--accent-dim); }
.prose a:hover { border-color: var(--accent-2); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose ul { list-style: none; margin: 1.4em 0; }
.prose ul li { position: relative; padding-left: 1.4em; margin-bottom: .7em; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.dropcap {
  float: left; font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: 4.4rem; line-height: .8; margin: .1rem .5rem -.15rem 0;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.8rem; font-family: var(--sans); font-size: .86rem; font-weight: 600;
  letter-spacing: .02em; border-radius: 2px; white-space: nowrap;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .4s, color .4s, border-color .4s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0d1922;
  box-shadow: 0 10px 30px -8px rgba(110, 145, 165, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px -10px rgba(110, 145, 165, 0.55); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(110, 145, 165,0.06); }
.btn-sm { padding: .75rem 1.3rem; font-size: .78rem; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

.tag {
  display: inline-flex; align-items: center; padding: .35rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 20px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2);
}

.card {
  background: var(--bg-3); border: 1px solid var(--line);
  position: relative; isolation: isolate;
}
.has-tilt { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .55s var(--ease-soft), border-color .4s; }
.has-tilt:hover { transition-duration: .15s; border-color: var(--line-strong); }
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 145, 165,.28), transparent 65%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
}
.has-halo:hover::before { opacity: 1; }

.field { position: relative; margin-bottom: 1.4rem; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; background: var(--bg-2);
  border: 1px solid var(--line-strong); color: var(--cream); font-family: var(--sans); font-size: .95rem;
  transition: border-color .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; pointer-events: none;
  color: var(--cream-3); transition: all .25s var(--ease-out); font-size: .95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .5rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
}

/* =============================================================
   6.1 Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; pointer-events: auto;
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); letter-spacing: .02em; }
.splash-line { display: block; width: 64px; height: 1px; background: var(--accent-dim); margin: 1rem auto 0; overflow: hidden; position: relative; }
.splash-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: splashLine 1.6s ease-in-out infinite; }
@keyframes splashLine { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* =============================================================
   6.2 Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .45s var(--ease-out), backdrop-filter .45s, box-shadow .45s, height .3s;
  background: linear-gradient(to bottom, rgba(10,13,18,.85), transparent);
}
.nav.is-scrolled {
  background: rgba(10, 13, 18, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.nav-logo-mark { height: 44px; width: 44px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo-name { font-family: var(--serif); font-size: 1.05rem; color: var(--cream); letter-spacing: .01em; }
.nav-logo-sub { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; color: var(--accent-dim); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: .3rem 0; font-size: .86rem; letter-spacing: .01em; color: var(--cream-2);
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.current-menu-item::after, .nav-link.current_page_item::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 1.3rem; }
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  position: relative; width: 40px; height: 40px;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  position: absolute; left: 9px; top: 50%; display: block; width: 22px; height: 1px;
  background: var(--cream); transform: translateY(-7px);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 2rem 2rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.4rem; }
.nav-mobile-links a { font-family: var(--serif); font-size: 2.1rem; color: var(--cream); }
.nav-mobile-meta { font-family: var(--mono); font-size: .78rem; color: var(--cream-3); display: flex; flex-direction: column; gap: .5rem; }
.nav-mobile-meta a { color: var(--accent-2); }

.breadcrumb {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--cream-3);
  display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent-2); }
.breadcrumb a:hover { text-decoration: underline; }

/* =============================================================
   6.3 Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h); overflow: clip; isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(48% 42% at var(--mesh-x) var(--mesh-y), rgba(110, 145, 165,.16), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(110, 145, 165,.10), rgba(20,32,50,.35), rgba(110, 145, 165,.08), rgba(20,32,50,.3), rgba(110, 145, 165,.10));
  filter: blur(90px) saturate(120%);
  opacity: .85; animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 24%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 76%; --mesh-y: 62%; }
  100% { --mesh-angle: 360deg; --mesh-x: 24%; --mesh-y: 30%; }
}
.hero-vignette { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(10,13,18,.65) 100%); }
.hero-columns {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
}
.hero-columns svg { width: 100%; height: 100%; }

.hero-inner { position: relative; z-index: 1; }
.hero-kicker { justify-content: center; display: inline-flex; }
.hero-eyebrow {
  display: block; text-align: center; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem;
}
.hero-title {
  text-align: center; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.04;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.hero-title em { color: var(--accent-2); font-style: italic; }
.hero-sub {
  text-align: center; max-width: 42rem; margin: 1.6rem auto 0; font-size: 1.12rem; color: var(--cream-3); line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.hero-scroll {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .2em; color: var(--cream-3); text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* =============================================================
   6.4 Marquee
   ============================================================= */
.marquee-wrap {
  position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding-block: 1.1rem;
}
.marquee { overflow: hidden; position: relative; white-space: nowrap; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track { display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3);
}
.marquee-track span.is-accent { color: var(--accent); }

/* =============================================================
   6.5 About / Nosotros
   ============================================================= */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; } }
.about-figure { position: relative; }
.about-num {
  font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 11vw, 9rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px var(--accent-dim); letter-spacing: -.02em;
}
.about-figure-caption { margin-top: 1.2rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--cream-3); max-width: 20rem; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.2rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.stat-value { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--accent-2); }
.stat-label { margin-top: .3rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); }

/* =============================================================
   6.6 Practice areas
   ============================================================= */
.practice-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }

.practice-card { display: block; overflow: hidden; }
.practice-card .card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.practice-card .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-soft), filter .6s; filter: saturate(.85) brightness(.72) contrast(1.05); }
.practice-card:hover .card-img { transform: scale(1.055); filter: saturate(1) brightness(.8) contrast(1.08); }
.practice-card .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,18,0) 40%, rgba(10,13,18,.92) 100%); }
.practice-card .card-num {
  position: absolute; top: 1.2rem; left: 1.2rem; font-family: var(--mono); font-size: .72rem; color: var(--accent-2);
  z-index: 1; letter-spacing: .05em;
}
.practice-card .card-body { padding: 1.6rem 1.7rem 1.9rem; }
.practice-card .card-title { font-size: 1.5rem; margin-bottom: .6rem; transition: color .3s; }
.practice-card:hover .card-title { color: var(--accent-2); }
.practice-card .card-desc { color: var(--cream-3); font-size: .92rem; line-height: 1.65; }
.practice-card .card-link { margin-top: 1.2rem; }

/* =============================================================
   6.7 Press / Logros carousel
   ============================================================= */
.press-carousel-wrap { position: relative; }
.press-track {
  display: flex; gap: 1.3rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding-block: .5rem 2.2rem; padding-inline: .2rem; scrollbar-width: none; touch-action: pan-x;
}
.press-track::-webkit-scrollbar { display: none; }
.press-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 280px; min-height: 320px;
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); position: relative;
}
@media (min-width: 720px) { .press-card { width: 320px; } }
.press-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.press-card:hover::before { transform: scaleX(1); }
.press-card-tag { align-self: flex-start; margin-bottom: 1.3rem; }
.press-card-outlet { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--accent-2); margin-bottom: .8rem; }
.press-card-headline { font-family: var(--sans); font-size: .96rem; color: var(--cream); line-height: 1.5; flex-grow: 1; }
.press-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.press-card-date { font-family: var(--mono); font-size: .68rem; color: var(--cream-3); }
.press-card-icon { font-family: var(--mono); font-size: .72rem; color: var(--accent); transition: transform .4s var(--ease-out); }
.press-card:hover .press-card-icon { transform: translate(3px,-3px); }

.carousel-controls { display: flex; gap: .8rem; justify-content: flex-end; margin-top: -.6rem; }
.carousel-arrow {
  width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .3s, background .3s;
}
.carousel-arrow:hover { border-color: var(--accent); background: rgba(110, 145, 165,.08); }

/* =============================================================
   6.8 Partners / Socios
   ============================================================= */
.partners-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card { display: block; text-align: center; }
.partner-photo-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.5rem; background: var(--bg-3); }
.partner-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transition: transform 1s var(--ease-soft), filter .6s;
}
.partner-photo-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(110, 145, 165,.34), rgba(10,20,32,.5) 55%, rgba(10,13,18,.75));
  mix-blend-mode: color; pointer-events: none;
}
.partner-photo-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(10,13,18,.88) 100%);
  pointer-events: none;
}
.partner-card:hover .partner-photo { transform: scale(1.06); filter: grayscale(.4) contrast(1.1) brightness(.95); }
.partner-name { font-size: 1.4rem; transition: color .3s; }
.partner-card:hover .partner-name { color: var(--accent-2); }
.partner-role { margin-top: .4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.partner-link { margin-top: 1rem; justify-content: center; }

/* =============================================================
   6.9 Blog
   ============================================================= */
.blog-track {
  display: flex; gap: 1.4rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding-block: .5rem 2.2rem; padding-inline: .2rem; scrollbar-width: none;
}
.blog-track::-webkit-scrollbar { display: none; }
.blog-card { scroll-snap-align: start; flex: 0 0 auto; width: 320px; display: block; }
@media (min-width: 720px) { .blog-card { width: 360px; } }
.blog-card .card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 1.2rem; }
.blog-card .card-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); transition: transform .9s var(--ease-soft), filter .5s; }
.blog-card:hover .card-img { transform: scale(1.06); filter: saturate(1) brightness(.82); }
.blog-card-meta { display: flex; gap: .8rem; align-items: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-3); }
.blog-card-meta .date { color: var(--cream-3); }
.blog-card-title { font-size: 1.28rem; line-height: 1.3; transition: color .3s; }
.blog-card:hover .blog-card-title { color: var(--accent-2); }
.blog-card-excerpt { margin-top: .6rem; font-size: .88rem; color: var(--cream-3); line-height: 1.6; }

.blog-filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 3rem; }
.filter-btn {
  padding: .55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 20px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3);
  transition: border-color .3s, color .3s, background .3s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.blog-list { display: flex; flex-direction: column; }
.blog-list-item {
  display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 2.2rem; border-top: 1px solid var(--line);
}
.blog-list-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .blog-list-item { grid-template-columns: 8rem 1fr auto; align-items: center; gap: 2rem; } }
.blog-list-date { font-family: var(--mono); font-size: .74rem; color: var(--cream-3); }
.blog-list-main .tag { margin-bottom: .8rem; }
.blog-list-title { font-size: 1.5rem; transition: color .3s; }
.blog-list-item:hover .blog-list-title { color: var(--accent-2); }
.blog-list-excerpt { margin-top: .5rem; color: var(--cream-3); font-size: .92rem; max-width: 46rem; }
.blog-list-arrow { font-family: var(--mono); color: var(--accent); font-size: 1.3rem; transition: transform .4s var(--ease-out); }
.blog-list-item:hover .blog-list-arrow { transform: translateX(6px); }

.article-hero { padding-top: calc(var(--nav-h) + 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; font-family: var(--mono); font-size: .76rem; color: var(--cream-3); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-3); }
.article-cover { aspect-ratio: 21/9; overflow: hidden; margin-block: 3rem; max-width: 68ch; font-size: 1.05rem; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.85); }
.article-body p, .article-body li {
  text-align: justify; text-align-last: left; hyphens: auto;
}
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--accent-2); line-height: 1.4;
  border-left: 2px solid var(--accent); padding-left: 1.6rem; margin: 2.4rem 0;
}
.article-author {
  display: flex; align-items: center; gap: 1rem; margin-top: 4rem; padding-top: 2.4rem; border-top: 1px solid var(--line);
  max-width: 68ch;
}
.article-author img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.article-author-name { color: var(--cream); font-weight: 600; font-size: .95rem; }
.article-author-role { font-family: var(--mono); font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

/* =============================================================
   6.10 Area / Socio detail pages
   ============================================================= */
.area-hero { padding-top: calc(var(--nav-h) + 2.6rem); padding-bottom: 3rem; }
.area-hero-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .area-hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; } }
.area-cover { aspect-ratio: 16/10; overflow: hidden; margin-top: 2.6rem; }
.area-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.78); }

.pillars { display: grid; gap: 2.2rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.pillar-num { font-family: var(--mono); font-size: .74rem; color: var(--accent); }
.pillar-title { margin-top: .8rem; font-size: 1.25rem; }
.pillar-desc { margin-top: .6rem; font-size: .9rem; color: var(--cream-3); line-height: 1.65; }

.related-areas { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); margin-top: 1.5rem; }
@media (min-width: 720px) { .related-areas { grid-template-columns: repeat(3,1fr); } }
.related-area-link {
  display: block; padding: 1.3rem 1.4rem; border: 1px solid var(--line); font-size: .92rem; color: var(--cream-2);
  transition: border-color .3s, color .3s, transform .4s var(--ease-soft);
}
.related-area-link:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-3px); }

.profile-hero { padding-top: calc(var(--nav-h) + 2.6rem); }
.profile-grid { display: grid; gap: 2.6rem; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: .7fr 1.3fr; gap: 4.5rem; } }
.profile-photo-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.08) brightness(.92); }
.profile-photo-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(110, 145, 165,.34), rgba(10,20,32,.5) 55%, rgba(10,13,18,.75));
  mix-blend-mode: color; pointer-events: none;
}
.profile-name { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.profile-role { margin-top: .8rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.profile-body { margin-top: 2.2rem; }
.profile-facts { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.4rem; grid-template-columns: repeat(2,1fr); }
.profile-fact-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.profile-fact-value { margin-top: .4rem; color: var(--cream-2); font-size: .95rem; }

/* =============================================================
   6.11 Contact
   ============================================================= */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }
.contact-item { display: flex; align-items: flex-start; gap: 1.1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item-icon { font-family: var(--mono); font-size: .78rem; color: var(--accent); margin-top: .2rem; }
.contact-item-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); }
.contact-item-value { margin-top: .3rem; font-size: 1.15rem; color: var(--cream); transition: color .3s; }
.contact-item a:hover .contact-item-value { color: var(--accent-2); }
.contact-form-note { margin-top: 1.2rem; font-size: .82rem; color: var(--cream-3); }
.contact-form-note a { color: var(--accent-2); }

/* =============================================================
   6.12 Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 4.5rem 2.5rem; background: var(--bg-2); }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; } }
.footer-brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); }
.footer-brand-tagline { margin-top: .9rem; font-size: .88rem; color: var(--cream-3); max-width: 24rem; line-height: 1.6; }
.footer-col-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; font-size: .88rem; color: var(--cream-3); margin-bottom: .7rem; transition: color .3s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .72rem; color: var(--cream-3);
}
.footer-bottom a { color: var(--cream-3); }
.footer-bottom a:hover { color: var(--accent-2); }

/* =============================================================
   6.13 Credits page
   ============================================================= */
.credits-list { margin-top: 2.5rem; display: flex; flex-direction: column; }
.credits-list li { padding-block: 1.3rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--cream-3); }
.credits-list li:last-child { border-bottom: 1px solid var(--line); }
.credits-list strong { color: var(--cream); font-weight: 600; }
.credits-list a { color: var(--accent-2); }
.credits-list a:hover { text-decoration: underline; }

/* =============================================================
   7. Effects
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-split] .split-word, .js [data-split] .split-line { will-change: transform, opacity; }
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-scroll-line { animation: none; }
  .splash-line::after { animation: none; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 719px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .profile-facts { grid-template-columns: 1fr; }
}

/* =============================================================
   9. Page transitions
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   10. WordPress-native additions (admin bar, alignment, captions)
   ============================================================= */
/* wp_nav_menu uses items_wrap='%3$s' (no <ul>), so <li> sits bare
   inside .nav-links / .nav-mobile-links — style the bare <li> directly. */
.nav-links > li, .nav-mobile-links > li { list-style: none; margin: 0; display: block; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.4rem; }
.nav-mobile-links > li > a { font-family: var(--serif); font-size: 2.1rem; color: var(--cream); }
.nav-mobile-links > li > a.is-current { color: var(--accent-2); }

html { margin-top: 0 !important; }
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.alignwide { max-width: 100rem; }
.alignfull { max-width: none; }
.wp-caption-text, .gallery-caption { font-family: var(--mono); font-size: .72rem; color: var(--cream-3); margin-top: .5rem; }
screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); }
