/* ==========================================================================
   PORTAFOLIO EDITORIAL DE ALTA GAMA — OWEN BADEL HOOKER
   Estándar Visual: Editorial Retro-Moderno (Inspiración Nórdica & Tipografía Tripartita)
   ========================================================================== */

:root {
  --font-anton: 'Anton', sans-serif;
  --font-baskerville: 'Libre Baskerville', Georgia, serif;
  --font-poppins: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Tokens Cromáticos */
  --bg-canvas: #F2E9E0;
  --text-charcoal: #222222;
  --accent-nordic: #A9BFD3;
  --accent-sand: #C0AE9F;
  --accent-clay: #7A6F68;
  --text-muted: #8F847C;
  --panel-dark: #222222;
  --text-on-dark: #F2E9E0;
  --text-on-dark-muted: #EDE5DE;
  --divider-line: rgba(34, 34, 34, 0.22);
  --divider-line-light: rgba(242, 233, 224, 0.22);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-poppins);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
}

/* ==========================================================================
   HEADER SUPERIOR DE PRECISIÓN EDITORIAL
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 1.4vh, 1.2rem) 3.9vw;
  border-bottom: 1px solid var(--divider-line);
  font-size: clamp(0.7rem, 0.8vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  background-color: var(--bg-canvas);
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.85rem 1.25rem;
  }
}

.header-brand {
  font-weight: 700;
  letter-spacing: 0.22em;
}

.header-center-quote {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(0.75rem, 0.85vw, 1.05rem);
  padding: 0 1rem;
  text-align: center;
  color: var(--text-charcoal);
}

@media (max-width: 1050px) {
  .header-center-quote {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-poppins);
  font-size: clamp(0.75rem, 0.85vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 6px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.lang-btn.active {
  color: var(--text-charcoal);
  font-weight: 700;
  border-bottom-color: var(--accent-nordic);
}

.lang-sep {
  color: var(--accent-sand);
  font-weight: 400;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 55px);
  min-height: calc(100dvh - 55px);
  overflow: hidden;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.5rem, 1.5vh, 2rem) 3.9vw 0;
}

@media (max-width: 960px) {
  .hero-section {
    min-height: auto;
    padding: 2.2rem 1.25rem 0;
    overflow: hidden;
  }
}

/* Círculos geométricos concéntricos de fondo */
.geometric-circle-outer {
  position: absolute;
  left: -8vw;
  top: -12vw;
  width: 28vw;
  height: 28vw;
  border: 2vw solid var(--accent-nordic);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.geometric-circle-inner {
  position: absolute;
  left: -3vw;
  top: -7vw;
  width: 17vw;
  height: 17vw;
  border: 2vw solid #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  position: relative;
  z-index: 10;
  width: 100%;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: 54vw;
  padding: 0 0 clamp(0.6rem, 1.5vh, 2rem);
}

@media (max-width: 960px) {
  .hero-content {
    max-width: 100%;
    align-self: stretch;
    padding: 0 0 1rem;
  }
}

.hero-author-name {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.5rem, min(2.8vw, 4.2vh), 3.6rem);
  line-height: 1.15;
  color: var(--text-charcoal);
  margin-bottom: clamp(0.1rem, 0.3vh, 0.25rem);
}

.hero-author-role {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(0.72rem, min(0.9vw, 1.6vh), 1.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: clamp(0.35rem, 0.7vh, 0.75rem);
}

.hero-title-massive {
  font-family: var(--font-anton);
  font-size: clamp(2.4rem, min(8.2vw, 12.5vh), 9.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text-charcoal);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .hero-title-massive {
    font-size: clamp(1.95rem, 10.5vw, 2.35rem);
    letter-spacing: 0;
  }
}

/* Línea de eje con nodos circulares */
.axis-line {
  display: flex;
  align-items: center;
  margin: clamp(0.5rem, 1.1vh, 1.1rem) 0 clamp(0.6rem, 1.3vh, 1.3rem);
  width: 100%;
  max-width: 48vw;
}

@media (max-width: 960px) {
  .axis-line {
    max-width: 100%;
  }
}

.axis-node {
  width: 9px;
  height: 9px;
  border: 2.5px solid var(--text-charcoal);
  border-radius: 50%;
  flex-shrink: 0;
}

.axis-rail {
  flex-grow: 1;
  height: 2.5px;
  background-color: var(--text-charcoal);
}

.hero-tagline {
  font-size: clamp(1rem, min(1.35vw, 2.4vh), 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-charcoal);
  margin-bottom: clamp(0.35rem, 0.7vh, 0.85rem);
}

.hero-manifesto {
  font-size: clamp(0.82rem, min(0.92vw, 1.7vh), 1.12rem);
  line-height: 1.55;
  color: var(--text-charcoal);
  margin-bottom: clamp(0.3rem, 0.6vh, 0.7rem);
  text-align: justify;
}

.hero-manifesto-sub {
  font-size: clamp(0.82rem, min(0.92vw, 1.7vh), 1.12rem);
  line-height: 1.55;
  color: var(--text-charcoal);
  margin-bottom: clamp(0.5rem, 1.1vh, 1.2rem);
  font-weight: 500;
}

/* Navegación Capitular del Hero */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 1.4vw, 1.6rem);
  margin-top: clamp(0.3rem, 0.7vh, 0.9rem);
}

@media (max-width: 960px) {
  .chapter-nav {
    gap: 0.8rem 1.4rem;
  }
}

.chapter-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-charcoal);
  transition: color 0.2s ease, transform 0.2s ease;
}

.chapter-link:hover {
  color: var(--text-muted);
  transform: translateY(-1px);
}

.chapter-num {
  font-family: var(--font-baskerville);
  font-weight: 700;
  font-size: clamp(0.8rem, min(0.9vw, 1.6vh), 1.15rem);
  color: var(--text-muted);
}

.chapter-label {
  font-weight: 600;
  font-size: clamp(0.72rem, min(0.8vw, 1.4vh), 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Composición de la imagen del Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
  height: 100%;
  min-height: 0;
}

@media (max-width: 960px) {
  .hero-visual {
    min-height: 360px;
    margin-top: 1.2rem;
    align-self: center;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    min-height: 300px;
    margin-top: 1rem;
  }
}

.hero-backdrop-pill {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(240px, min(30vw, 44vh), 420px);
  height: clamp(340px, min(50vw, 82vh), 720px);
  background: linear-gradient(155deg, #877D75 0%, #716760 100%);
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateX(-48%) rotate(-10deg);
  transform-origin: bottom center;
  z-index: 1;
  opacity: 0.92;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 960px) {
  .hero-backdrop-pill {
    width: clamp(260px, 55vw, 360px);
    height: clamp(340px, 65vw, 460px);
    transform: translateX(-50%) rotate(-6deg);
  }
}

@media (max-width: 600px) {
  .hero-backdrop-pill {
    width: clamp(210px, 70vw, 290px);
    height: clamp(280px, 80vw, 360px);
    transform: translateX(-50%) rotate(-5deg);
  }
}

.hero-photo-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: clamp(260px, min(38vw, 68vh), 540px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0;
}

@media (max-width: 960px) {
  .hero-photo-wrapper {
    max-width: clamp(280px, 60vw, 400px);
  }
}

@media (max-width: 600px) {
  .hero-photo-wrapper {
    max-width: clamp(220px, 75vw, 300px);
  }
}

.hero-photo {
  width: 100%;
  height: auto;
  max-height: clamp(340px, min(48vw, 72vh), 660px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(34, 34, 34, 0.22));
  vertical-align: bottom;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .hero-photo {
    max-height: clamp(320px, 62vw, 440px);
  }
}

@media (max-width: 600px) {
  .hero-photo {
    max-height: clamp(260px, 75vw, 340px);
  }
}

/* ==========================================================================
   ADAPTABILIDAD UNIVERSAL: Laptops y Pantallas de Altura Reducida
   ========================================================================== */
@media (min-width: 961px) and (max-height: 820px) {
  .site-header {
    padding: 0.7rem 3.9vw;
  }

  .header-brand {
    font-size: 0.8rem;
  }

  .header-center-quote {
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 0.5rem 3.9vw 0;
  }

  .hero-content {
    padding-bottom: 0.5rem;
  }

  .hero-author-name {
    font-size: clamp(1.4rem, 3.2vh, 2.2rem);
  }

  .hero-author-role {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .hero-title-massive {
    font-size: clamp(2.4rem, 10.5vh, 4.8rem);
  }

  .axis-line {
    margin: 0.5rem 0 0.65rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
  }

  .hero-manifesto {
    font-size: 0.82rem;
    line-height: 1.48;
    margin-bottom: 0.3rem;
  }

  .hero-manifesto-sub {
    font-size: 0.82rem;
    line-height: 1.48;
    margin-bottom: 0.6rem;
  }

  .chapter-nav {
    margin-top: 0.35rem;
    gap: 1.1rem;
  }

  .chapter-num {
    font-size: 0.85rem;
  }

  .chapter-label {
    font-size: 0.72rem;
  }

  .hero-backdrop-pill {
    height: 76vh;
    max-height: 500px;
    width: 27vw;
    max-width: 360px;
  }

  .hero-photo-wrapper {
    max-width: 34vw;
  }

  .hero-photo {
    max-height: 68vh;
  }
}

@media (min-width: 961px) and (max-height: 680px) {
  .site-header {
    padding: 0.5rem 3.9vw;
  }

  .header-center-quote {
    display: none;
  }

  .hero-section {
    padding: 0.3rem 3.9vw 0;
  }

  .hero-author-name {
    font-size: 1.4rem;
  }

  .hero-author-role {
    font-size: 0.68rem;
    margin-bottom: 0.2rem;
  }

  .hero-title-massive {
    font-size: clamp(2.2rem, 9.5vh, 3.8rem);
  }

  .axis-line {
    margin: 0.35rem 0 0.45rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .hero-manifesto {
    font-size: 0.78rem;
    line-height: 1.42;
    margin-bottom: 0.25rem;
  }

  .hero-manifesto-sub {
    font-size: 0.78rem;
    line-height: 1.42;
    margin-bottom: 0.45rem;
  }

  .chapter-nav {
    margin-top: 0.25rem;
    gap: 0.85rem;
  }

  .hero-backdrop-pill {
    height: 74vh;
    max-height: 420px;
    width: 25vw;
  }

  .hero-photo {
    max-height: 64vh;
  }
}

/* ==========================================================================
   BARRA CROMÁTICA DE RITMO EDITORIAL
   ========================================================================== */
.chromatic-ribbon {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ribbon-stripe {
  width: 100%;
  height: 5px;
}

.stripe-nordic { background-color: var(--accent-nordic); }
.stripe-canvas { background-color: var(--bg-canvas); height: 3px; }
.stripe-white  { background-color: #FFFFFF; }

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.editorial-section {
  position: relative;
  isolation: isolate;
  padding: 5vw 3.9vw 6vw;
  min-height: 80vh;
}

@media (max-width: 860px) {
  .editorial-section {
    padding: 3.5rem 1.25rem 4rem;
    min-height: auto;
  }
}

.section-bg-num {
  position: absolute;
  top: 1.5vw;
  right: 3.9vw;
  z-index: -1;
  font-family: var(--font-anton);
  font-size: clamp(7rem, 13vw, 16.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(192, 174, 159, 0.28);
  pointer-events: none;
}

@media (max-width: 860px) {
  .section-bg-num {
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    top: 1rem;
    right: 1.25rem;
    opacity: 0.4;
  }
}

.section-header-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.tag-roman {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(0.9rem, 1.1vw, 1.35rem);
  color: var(--text-muted);
}

.tag-rule {
  width: 48px;
  height: 1px;
  background-color: rgba(34, 34, 34, 0.35);
}

.section-title {
  font-family: var(--font-anton);
  font-size: clamp(2.5rem, 4.6vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-charcoal);
  margin-bottom: 0.8rem;
}

.section-axis {
  display: flex;
  align-items: center;
  width: 16vw;
  min-width: 160px;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .section-axis {
    width: 120px;
    min-width: 100px;
    margin-bottom: 1.8rem;
  }
}

.section-axis .axis-node {
  width: 8px;
  height: 8px;
  border-width: 2px;
}

.section-axis .axis-rail {
  height: 2px;
}

/* ==========================================================================
   CAPÍTULO 01: SOBRE MÍ
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5vw;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-menu {
  display: flex;
  flex-direction: column;
}

.about-tab-btn {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  min-height: 44px;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(192, 174, 159, 0.55);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.about-tab-btn:hover {
  color: var(--text-charcoal);
}

.about-tab-btn.active {
  color: var(--text-charcoal);
}

.about-tab-btn.active .tab-roman {
  color: var(--text-charcoal);
  font-weight: 700;
}

.about-tab-btn.active .tab-title {
  font-weight: 600;
}

.tab-roman {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.6rem);
  width: 2rem;
  flex-shrink: 0;
}

.tab-title {
  font-size: clamp(0.95rem, 1.05vw, 1.35rem);
  line-height: 1.4;
}

.about-pane-container {
  min-height: 26vw;
}

@media (max-width: 860px) {
  .about-pane-container {
    min-height: auto;
  }
}

.about-pane {
  display: none;
  animation: sobreFade 0.45s ease both;
}

.about-pane.active {
  display: block;
}

@keyframes sobreFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-headline {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.4rem, 1.8vw, 2.4rem);
  line-height: 1.35;
  color: var(--text-charcoal);
  margin-bottom: 1rem;
}

.pane-headline-roman {
  font-family: var(--font-baskerville);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.3vw, 1.7rem);
  margin-right: 0.6rem;
}

.pane-body {
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-charcoal);
  text-align: justify;
  margin-bottom: 1.2rem;
}

.pane-highlight {
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ==========================================================================
   TRANSICIONES EDITORIALES (CITAS / PULL QUOTES)
   ========================================================================== */
.editorial-quote-banner {
  background-color: #EDE5DE;
  position: relative;
  isolation: isolate;
  padding: 4vw 3.9vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
}

@media (max-width: 800px) {
  .editorial-quote-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "quote quote"
      "prev next";
    padding: 3rem 1.25rem 2.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  .quote-center-box {
    grid-area: quote;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .quote-prev {
    grid-area: prev;
    align-items: flex-start;
    text-align: left;
  }

  .quote-next {
    grid-area: next;
    align-items: flex-end;
    text-align: right;
  }

  .quote-phrase {
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  }
}

.quote-giant-mark {
  position: absolute;
  top: 0.5vw;
  left: 3.9vw;
  z-index: -1;
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(8rem, 11vw, 14rem);
  line-height: 1;
  color: rgba(143, 132, 124, 0.22);
}

.quote-prev, .quote-next {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-charcoal);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.quote-prev:hover, .quote-next:hover {
  color: var(--text-muted);
}

.quote-dir-tag {
  font-size: clamp(0.65rem, 0.75vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-target-title {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.6rem);
}

.quote-center-box {
  max-width: 44vw;
  text-align: center;
}

@media (max-width: 800px) {
  .quote-center-box {
    max-width: 100%;
  }
}

.quote-phrase {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.3rem, 1.9vw, 2.6rem);
  line-height: 1.45;
  color: var(--text-charcoal);
  margin-bottom: 1.2rem;
}

.quote-axis {
  display: flex;
  align-items: center;
  width: 10vw;
  min-width: 120px;
  margin: 0 auto;
}

/* ==========================================================================
   CAPÍTULO 02: PROYECTOS (PANEL OSCURO CARBÓN)
   ========================================================================== */
.projects-section {
  background-color: var(--panel-dark);
  color: var(--text-on-dark);
}

.projects-section .section-bg-num {
  color: rgba(242, 233, 224, 0.07);
}

.projects-section .tag-roman {
  color: var(--accent-sand);
}

.projects-section .tag-rule {
  background-color: rgba(242, 233, 224, 0.35);
}

.projects-section .section-title {
  color: var(--text-on-dark);
}

.projects-section .section-axis .axis-node {
  border-color: var(--text-on-dark);
}

.projects-section .section-axis .axis-rail {
  background-color: var(--text-on-dark);
}

.projects-subtitle {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 2.2rem);
  color: var(--text-on-dark);
  margin-bottom: 0.8rem;
}

.projects-intro {
  font-size: clamp(0.92rem, 1.05vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 55vw;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .projects-intro {
    max-width: 100%;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5vw;
  align-items: start;
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Lista de pestañas de proyectos */
.projects-menu {
  display: flex;
  flex-direction: column;
}

.project-tab-btn {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  min-height: 44px;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(242, 233, 224, 0.18);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--accent-sand);
}

.project-tab-btn:hover {
  color: var(--text-on-dark);
}

.project-tab-btn.active {
  color: var(--text-on-dark);
}

.project-tab-btn.active .tab-roman {
  color: var(--text-on-dark);
  font-weight: 700;
}

.project-tab-btn.active .tab-title {
  font-weight: 600;
}

/* Rosa de los Vientos SVG */
.compass-box {
  width: 100%;
  max-width: 280px;
  margin: 2rem auto;
}

@media (max-width: 960px) {
  .compass-box {
    max-width: 180px;
    margin: 1.2rem auto;
  }
}

.compass-svg {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}

/* Panel de detalle de proyecto */
.project-card-view {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 233, 224, 0.15);
  border-radius: 1rem;
  padding: 2.2rem;
  animation: sobreFade 0.45s ease both;
}

@media (max-width: 600px) {
  .project-card-view {
    padding: 1.5rem 1.2rem;
    border-radius: 0.8rem;
  }
}

.project-tagline {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.3rem, 1.7vw, 2.2rem);
  line-height: 1.35;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.tech-badge {
  background: rgba(237, 229, 222, 0.12);
  color: var(--text-on-dark);
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(242, 233, 224, 0.15);
}

.project-desc {
  font-size: clamp(0.92rem, 1.05vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.project-highlight-box {
  background: var(--text-muted);
  color: var(--text-on-dark);
  padding: 1.5rem;
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
}

.highlight-title {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.highlight-content {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.1rem, 1.4vw, 1.8rem);
  line-height: 1.35;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  border-bottom: 2px solid var(--accent-nordic);
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

.project-link-btn:hover {
  color: var(--accent-sand);
  border-bottom-color: var(--accent-sand);
}

/* ==========================================================================
   CAPÍTULO 03: COMPARTIENDO LO QUE APRENDO (ARTÍCULOS / FILOSOFÍA)
   ========================================================================== */
.articles-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.25);
}

.article-row {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 3.5vw;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(34, 34, 34, 0.25);
  align-items: start;
}

@media (max-width: 800px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.8rem 0;
  }
}

@media (max-width: 600px) {
  .article-row {
    padding: 1.4rem 0;
  }
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-num {
  font-family: var(--font-baskerville);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.8vw, 2.5rem);
  color: var(--text-charcoal);
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(143, 132, 124, 0.5);
  padding: 3px 8px;
  width: fit-content;
}

.article-headline {
  font-weight: 600;
  font-size: clamp(1.15rem, 1.45vw, 2rem);
  line-height: 1.3;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
}

.article-quote {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1rem, 1.15vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.article-summary {
  font-size: clamp(0.92rem, 1.05vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-charcoal);
  text-align: justify;
}

/* Tipografía adaptada en móviles: alineación izquierda natural sin ríos tipográficos */
@media (max-width: 768px) {
  .hero-manifesto,
  .pane-body,
  .project-desc,
  .article-summary {
    text-align: left;
  }
}

/* ==========================================================================
   CAPÍTULO 04: PRÓXIMO CAPÍTULO / CONTACTO
   ========================================================================== */
.contact-section {
  background-color: var(--panel-dark);
  color: var(--text-on-dark);
  text-align: center;
  padding: 6vw 3.9vw 4vw;
}

@media (max-width: 800px) {
  .contact-section {
    padding: 4.5rem 1.25rem 3rem;
  }
}

.contact-section .section-title {
  color: var(--text-on-dark);
  font-size: clamp(2.8rem, 6.5vw, 8rem);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .contact-section .section-title {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }
}

.contact-invitation {
  font-family: var(--font-baskerville);
  font-style: italic;
  font-size: clamp(1.3rem, 1.9vw, 2.5rem);
  color: var(--text-on-dark-muted);
  max-width: 48vw;
  margin: 0 auto 2.5rem;
}

@media (max-width: 800px) {
  .contact-invitation {
    max-width: 100%;
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  }
}

.contact-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 600px) {
  .contact-buttons-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 3rem;
    gap: 1rem;
  }

  .btn-contact-main,
  .btn-contact-alt {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
  }
}

.btn-contact-main {
  background-color: var(--accent-nordic);
  color: var(--text-charcoal);
  padding: 1rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-contact-main:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-contact-alt {
  background: transparent;
  color: var(--text-on-dark);
  padding: 1rem 2.2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(242, 233, 224, 0.35);
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-contact-alt:hover {
  border-color: var(--accent-nordic);
  color: var(--accent-nordic);
}

.contact-footer-note {
  font-size: 0.8rem;
  color: var(--accent-sand);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 233, 224, 0.15);
}

@media (max-width: 600px) {
  .contact-footer-note {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
  }
}
