/* ==========================================================================
   BLACKBOX90© — ESTÉTICA SOBRIA EN NEGRO MATE
   Sin abuso de mayúsculas, sin etiquetas técnicas de plantilla IA.
   ========================================================================== */

@font-face {
  font-family: 'Archia';
  src: url('./fonts/Archia-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archia';
  src: url('./fonts/Archia-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archia';
  src: url('./fonts/Archia-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archia';
  src: url('./fonts/Archia-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archia';
  src: url('./fonts/Archia-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --bg-alt: #101010;
  --bg-card: #141414;
  --texto: #EAE6DF;
  --texto-suave: #9E9990;
  --texto-tenue: #6E6A63;
  --oro: #B48842;
  --oro-suave: rgba(180, 136, 66, 0.32);
  --linea: rgba(234, 230, 223, 0.11);
  --linea-fuerte: rgba(234, 230, 223, 0.22);
  --font-sans: 'Archia', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--texto);
  line-height: 1.72;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- CABECERA --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--texto);
}

.brand img {
  height: 28px;
  width: auto;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--texto-suave);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--texto);
}

.nav-portal {
  padding: 9px 18px;
  border: 1px solid var(--oro-suave);
  color: var(--texto) !important;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-portal:hover {
  border-color: var(--oro);
  background-color: var(--oro);
  color: var(--bg) !important;
}

/* --- TIPOGRAFÍA Y BOTONES --- */
.kicker {
  display: block;
  font-size: 0.84rem;
  color: var(--oro);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--texto);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid var(--oro);
  background-color: var(--oro);
  color: var(--bg);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--oro);
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid var(--linea-fuerte);
  color: var(--texto);
}

.btn--ghost:hover {
  border-color: var(--oro);
  color: var(--oro);
}

/* --- SECCIONES (CAPAS TONALES OSCURAS, SIN CONTRASTES BRUSCOS) --- */
.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--linea);
}

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

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

/* --- PORTADA --- */
.hero {
  padding: 124px 0 112px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--linea);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  margin-bottom: 26px;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--texto-suave);
  max-width: 54ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-frame {
  border: 1px solid var(--linea);
  padding: 20px;
  background-color: var(--bg-alt);
}

.hero-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
}

.hero-photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  text-align: center;
}

.hero-photo-fallback svg {
  width: 68px;
  height: 68px;
  color: var(--texto);
}

.hero-caption {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--texto-tenue);
  line-height: 1.5;
}

/* --- BLOQUES --- */
.two-col {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.section h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  margin-bottom: 24px;
}

.prose p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--texto-suave);
  max-width: 60ch;
}

.pull-quote {
  margin-top: 32px;
  padding: 20px 0 20px 24px;
  border-left: 1px solid var(--oro);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--texto);
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 44px;
}

.card-editorial {
  border: 1px solid var(--linea);
  padding: 36px;
  background-color: var(--bg-card);
}

.card-editorial h3 {
  font-size: 1.28rem;
  margin-bottom: 16px;
}

.card-editorial p {
  font-size: 0.96rem;
  color: var(--texto-suave);
  line-height: 1.72;
}

.note-box {
  margin-top: 36px;
  padding: 22px 26px;
  border-left: 1px solid var(--oro);
  background-color: rgba(180, 136, 66, 0.05);
  font-size: 0.93rem;
  color: var(--texto-suave);
  max-width: 78ch;
}

/* --- FASES --- */
.phase-list {
  border-top: 1px solid var(--linea);
  margin-top: 40px;
}

.phase-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--linea);
  align-items: baseline;
}

.phase-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--texto);
}

.phase-title span {
  color: var(--oro);
  margin-right: 10px;
  font-size: 0.88rem;
}

.phase-desc {
  font-size: 0.96rem;
  color: var(--texto-suave);
}

/* --- SOBRE MÍ --- */
.about-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 64px;
  align-items: start;
}

.portrait-box {
  border: 1px solid var(--linea);
  padding: 16px;
  background-color: var(--bg-card);
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
}

.portrait-placeholder {
  color: var(--texto);
  text-align: center;
  padding: 24px;
}

.portrait-placeholder span {
  display: block;
  font-size: 0.82rem;
  color: var(--oro);
  margin-top: 10px;
}

.portrait-meta {
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--texto-tenue);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
}

.metric-val {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--texto);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--texto-tenue);
}

.emcc-wrap {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid var(--linea);
  background-color: var(--bg-card);
}

.emcc-wrap img {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.15);
}

.emcc-text {
  font-size: 0.82rem;
  color: var(--texto-suave);
}

/* --- TARJETAS DE PUBLICACIONES EN HOME --- */
.report-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.report-card {
  border: 1px solid var(--linea);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.report-card:hover {
  border-color: var(--oro);
}

.report-cover {
  aspect-ratio: 16 / 10;
  background-color: #070707;
  border-bottom: 1px solid var(--linea);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.report-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.report-card:hover .report-cover img {
  opacity: 0.9;
}

.report-cover-tag {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  color: var(--oro);
  background-color: rgba(10, 10, 10, 0.86);
  padding: 4px 10px;
}

.report-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.report-cat {
  font-size: 0.8rem;
  color: var(--texto-tenue);
  margin-bottom: 10px;
}

.report-body h3 {
  font-size: 1.12rem;
  line-height: 1.38;
  margin-bottom: 12px;
}

.report-body p {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-bottom: 22px;
  flex: 1;
}

.report-meta {
  font-size: 0.84rem;
  color: var(--oro);
}

/* --- PIE DE PÁGINA --- */
.site-footer {
  background-color: #070707;
  color: var(--texto-tenue);
  padding: 52px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a:hover {
  color: var(--texto);
}

/* --- MODAL DE SOLICITUD --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background-color: var(--bg-card);
  color: var(--texto);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  border: 1px solid var(--oro-suave);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--texto-tenue);
}

.modal-close:hover {
  color: var(--texto);
}

.modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.modal-card p {
  font-size: 0.95rem;
  color: var(--texto-suave);
  margin-bottom: 28px;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .about-grid,
  .cards-2,
  .report-preview-grid {
    grid-template-columns: 1fr;
  }
  .phase-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-hide-sm {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 76px 0;
  }
}
