/* Frontal Estrategia — styles.css */
/* ==========================================================
   FRONTAL ESTRATEGIA — dirección "quiet luxury"
   Base Brunswick: serif monumental, aire, hairlines, calma.
   Marca propia: navy profundo, un solo acento rojo, señal IA.
   ========================================================== */
:root {
  --paper: #f7f6f2;
  --paper-2: #f1efe9;
  --ink: #10152b;
  --navy: #1d2650;
  --navy-deep: #0d1226;
  --red: #a8262c;
  --gray: #6a6f82;
  --hairline: rgba(16, 21, 43, 0.14);
  --hairline-light: rgba(247, 246, 242, 0.18);
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
  --max: 1240px;
  --pad: clamp(22px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
::selection { background: var(--navy); color: var(--paper); }
body {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
}
.label .tick { color: var(--red); margin-right: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  padding: 14px var(--pad);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; color: var(--navy); line-height: 1.2;
}
.brand-name span { font-weight: 400; letter-spacing: 0.3em; color: var(--gray); font-size: 0.64rem; display: block; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  font-family: var(--sans); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  position: relative; padding-bottom: 3px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.nav-cta { color: var(--red); }
.site-nav a.nav-cta::after { background: var(--red); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

#signal {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-left { overflow: hidden; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero .label { margin-bottom: 34px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 200;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 1050px;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-title .accent, .hero-title em.accent { color: var(--red); }
.hero-foot { display: flex; flex-wrap: wrap; }
.hero-lede { max-width: 460px; font-size: 1.16rem; color: var(--gray); }
.hero-links { display: flex; gap: 34px; align-items: center; }
.link-line {
  font-family: var(--sans); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s var(--ease);
}
.link-line:hover { color: var(--red); border-color: var(--red); gap: 16px; }
.link-line.light { color: var(--paper); border-color: var(--paper); }
.link-line.light:hover { color: #e9b8ba; border-color: #e9b8ba; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: var(--hairline); overflow: hidden;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--red);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { top: -50%; } 100% { top: 110%; } }


/* ---------- Hero con imagen ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px var(--pad) 100px;
  position: relative; z-index: 2;
}
.hero-media {
  position: relative;
  min-height: 100svh;
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(247,246,242,0) 26%);
}
.hero-media .media-rule {
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 2px; background: var(--red); z-index: 2;
}
.hero-media .media-caption {
  position: absolute; right: 22px; bottom: 22px; z-index: 2;
  font-family: var(--sans); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(247,246,242,0.85);
  writing-mode: vertical-rl;
}
#signal { z-index: 1; opacity: 0.85; }
.hero-title {
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 1.02;
}
.hero-title .accent, .hero-title em.accent { color: var(--red); }
.hero-foot { flex-direction: column; align-items: flex-start; gap: 34px; margin-top: clamp(40px, 6vh, 64px); }
.hero-lede { max-width: 480px; }

/* ---------- Banda fotográfica ---------- */
.photo-band {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.photo-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,18,38,0.18) 0%, rgba(13,18,38,0.66) 100%);
}
.photo-band .band-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 70px var(--pad);
}
.photo-band .band-quote {
  font-family: var(--serif); font-weight: 200; font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.3;
  color: var(--paper); max-width: 820px;
}
.photo-band .label { color: rgba(247,246,242,0.7); display: block; margin-bottom: 20px; }

/* ---------- Imagen en Nosotros ---------- */
.about-figure { margin-top: 40px; }
.about-figure img { width: 100%; display: block; }
.about-figure figcaption {
  font-family: var(--sans); font-weight: 500; font-size: 0.64rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gray);
  margin-top: 14px;
}

/* ---------- CTA con fondo ---------- */
.cta { position: relative; overflow: hidden; }
.cta .cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.34;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,18,38,0.92) 0%, rgba(13,18,38,0.55) 100%);
}
.cta .section-inner { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 130px var(--pad) 60px; }
  .hero-media { min-height: 52vh; }
  .hero-media::after {
    background: linear-gradient(180deg, var(--paper) 0%, rgba(247,246,242,0) 22%);
  }
  .photo-band { min-height: 48vh; }
}

/* ---------- Estructura común ---------- */
.section { padding: clamp(90px, 13vh, 150px) var(--pad); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 30px;
  padding-bottom: clamp(34px, 5vh, 54px);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(40px, 6vh, 64px);
  align-items: end;
}
h2.display {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.1; letter-spacing: -0.018em; color: var(--ink);
}
h2.display em { font-style: italic; font-weight: 300; }
.on-dark h2.display, .on-dark .lede-big { color: var(--paper); }

/* ---------- Manifiesto ---------- */
.manifesto { background: var(--paper); }
.manifesto .section-inner { max-width: 980px; }
.lede-big {
  font-family: var(--serif); font-weight: 250;
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  line-height: 1.42; letter-spacing: -0.01em; color: var(--ink);
}
.lede-big em { font-style: italic; }
.lede-big .rule { border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.manifesto .label { margin-bottom: 30px; display: block; }
.manifesto-sign {
  margin-top: 40px; display: flex; align-items: center; gap: 18px;
}
.manifesto-sign .dash { width: 56px; height: 1px; background: var(--red); }

/* ---------- Servicios: índice editorial ---------- */
.services .service-row {
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.service-row .row-top {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 30px 0;
  transition: padding 0.4s var(--ease);
}
.service-row:hover .row-top { padding-left: 14px; }
.service-num {
  font-family: var(--sans); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.18em; color: var(--gray);
}
.service-title {
  font-family: var(--serif); font-weight: 250;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.015em; line-height: 1.15; color: var(--ink);
  transition: color 0.3s ease;
}
.service-row:hover .service-title { color: var(--red); }
.service-toggle {
  font-family: var(--serif); font-weight: 200; font-size: 1.9rem;
  color: var(--gray); line-height: 1;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.service-row.open .service-toggle { transform: rotate(45deg); color: var(--red); }
.service-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.service-row.open .service-body { grid-template-rows: 1fr; }
.service-body-inner { overflow: hidden; }
.service-body-grid {
  display: grid; grid-template-columns: 70px 1fr 1fr; gap: 24px;
  padding: 0 0 38px;
}
.service-desc { color: var(--gray); font-size: 1.08rem; max-width: 480px; }
.service-ia {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 400;
  line-height: 1.75; color: var(--ink);
  border-left: 1px solid var(--hairline); padding-left: 26px;
}
.service-ia strong {
  display: block; font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}

/* ---------- Método: sección oscura ---------- */
.on-dark { background: var(--navy-deep); color: var(--paper); }
.on-dark .section-head { border-color: var(--hairline-light); }
.on-dark .label { color: #8a92b8; }
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.method-step { padding: 8px 34px 8px 0; position: relative; }
.method-step + .method-step { padding-left: 34px; border-left: 1px solid var(--hairline-light); }
.method-step .step-num {
  font-family: var(--serif); font-style: italic; font-weight: 200;
  font-size: 2.6rem; line-height: 1; color: #e9b8ba;
  display: block; margin-bottom: 22px;
}
.method-step h3 {
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.method-step p { color: #a7aecb; font-size: 0.98rem; font-family: var(--serif); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about-copy p { margin-bottom: 22px; font-size: 1.14rem; }
.about-claim {
  font-style: italic; font-weight: 300; color: var(--navy);
  border-left: 2px solid var(--red); padding-left: 22px; font-size: 1.14rem;
}
.pull-quote {
  font-family: var(--serif); font-weight: 200; font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.35; color: var(--navy);
  padding: 40px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.pull-quote::before {
  content: "“"; display: block;
  font-size: 4.4rem; line-height: 0.6; color: var(--red); font-style: normal;
  margin-bottom: 20px;
}

/* ---------- Cifras ---------- */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper-2); }
.stats .section-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: clamp(44px, 7vh, 66px) 0;
}
.stat .n {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.stat .n sup { font-size: 0.45em; color: var(--red); font-style: italic; }
.stat .d { margin-top: 12px; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }

/* ---------- Análisis ---------- */
.post-index .post-item {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 30px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: padding 0.4s var(--ease);
}
.post-index .post-item:hover { padding-left: 14px; }
.post-item .meta {
  font-family: var(--sans); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--red);
}
.post-item .meta .date { display: block; color: var(--gray); margin-top: 6px; letter-spacing: 0.14em; text-transform: none; font-size: 0.74rem; font-weight: 400; }
.post-item h3 {
  font-family: var(--serif); font-weight: 250;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.012em; color: var(--ink);
  transition: color 0.3s ease; max-width: 700px;
}
.post-item:hover h3 { color: var(--red); }
.post-item .excerpt { grid-column: 2; max-width: 640px; color: var(--gray); font-size: 1.02rem; margin-top: 10px; }
.post-item .go {
  font-family: var(--serif); font-weight: 200; font-size: 1.7rem; color: var(--gray);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.post-item:hover .go { transform: translateX(8px); color: var(--red); }

/* ---------- Artículo ---------- */
.post-view .section-inner { max-width: 800px; }
.back-link {
  font-family: var(--sans); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--gray);
}
.back-link:hover { color: var(--red); }
.post-view h1 {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin: 26px 0 18px;
}
.post-view .meta {
  font-family: var(--sans); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 44px; padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.post-body p { margin-bottom: 24px; font-size: 1.18rem; line-height: 1.78; }
.post-body h2 {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 1.65rem; color: var(--navy); margin: 44px 0 16px;
}
.post-body blockquote {
  font-style: italic; font-weight: 250; color: var(--navy);
  border-left: 2px solid var(--red); padding-left: 26px; margin: 34px 0; font-size: 1.4rem; line-height: 1.5;
}
.post-footer { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--hairline); }

/* ---------- CTA ---------- */
.cta { text-align: left; }
.cta .lede-big { max-width: 880px; }
.cta-actions { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #8a92b8; padding: 60px var(--pad) 44px; }
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end;
  padding-top: 8px;
}
.footer-brand {
  font-family: var(--serif); font-weight: 200; font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.015em; color: var(--paper); line-height: 1.1;
}
.footer-brand em { font-style: italic; color: #e9b8ba; }
.footer-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-align: right; line-height: 2.1; }
.footer-meta a { color: var(--paper); text-decoration: none; }
.footer-meta a:hover { color: #e9b8ba; }
.footer-legal {
  max-width: var(--max); margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid var(--hairline-light);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--paper);
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; z-index: 80; }
  .site-nav a { font-size: 1.05rem; letter-spacing: 0.2em; }
  .nav-toggle { display: flex; z-index: 95; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .service-row .row-top { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .service-body-grid { grid-template-columns: 1fr; padding-left: 0; }
  .service-ia { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 20px; }
  .method-grid { grid-template-columns: 1fr; gap: 34px; }
  .method-step + .method-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline-light); padding-top: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .pull-quote { position: static; }
  .stats .section-inner { grid-template-columns: 1fr; gap: 30px; }
  .post-index .post-item { grid-template-columns: 1fr; gap: 10px; }
  .post-item .excerpt { grid-column: 1; }
  .post-item .go { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
