/* ============================================================
   VQZ PUBLICIDAD — about.css v3
   SEÑAL ROJA — Nosotros page
   ============================================================ */

/* ══ PAGE HERO HEADER ════════════════════════════════════════ */
#page-hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-top: 64px;
  border-bottom: 1px solid var(--g1);
}

/* Grid texture */
#page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(227,0,0,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,0,0,.022) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Vertical red accent right */
#page-hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--R) 30%, var(--R) 70%, transparent);
  z-index: 1;
}

/* Top data bar */
.ph-data-bar {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--g1);
  background: var(--bg1);
  display: flex; align-items: center;
  font-family: var(--f-code); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden;
  animation: ph-in .5s .1s var(--ease) both;
}
@keyframes ph-in { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }

.ph-item {
  padding: 9px 20px;
  border-right: 1px solid var(--g1);
  color: var(--ink3); white-space: nowrap; flex-shrink: 0;
}
.ph-item.red { color: var(--R); }
.ph-item b   { color: var(--ink); font-weight: 600; }

/* Hero content */
.ph-body {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px,8vw,100px) clamp(20px,4vw,56px) clamp(64px,9vw,120px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px; align-items: end;
}

.ph-left {}

.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-code); font-size: 9px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--R);
  margin-bottom: 20px;
  animation: fade-up .6s .3s var(--ease) both;
}
.ph-eyebrow-dot { width: 5px; height: 5px; background: var(--R); }

.ph-h1 {
  font-family: var(--f-head);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 700; line-height: .86;
  letter-spacing: -.025em; text-transform: uppercase;
  animation: fade-up .75s .45s var(--ease) both;
}
.ph-h1 .s  { display: block; color: var(--ink); }
.ph-h1 .o  {
  display: block; color: transparent;
  -webkit-text-stroke: 1.5px var(--g2);
}
[data-theme="light"] .ph-h1 .o { -webkit-text-stroke: 1.5px rgba(0,0,0,.15); }
.ph-h1 .r  { display: block; color: var(--R); }

.ph-desc {
  font-size: 16px; color: var(--ink2); line-height: 1.78;
  max-width: 520px; margin-top: 24px;
  animation: fade-up .75s .6s var(--ease) both;
}

/* Right — stat tower */
.ph-stats {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--g1); flex-shrink: 0;
  animation: fade-up .75s .55s var(--ease) both;
}
.ph-stat {
  padding: 20px 28px;
  border-bottom: 1px solid var(--g1);
  position: relative; overflow: hidden;
  transition: background .25s; min-width: 180px;
}
.ph-stat:last-child { border-bottom: none; }
.ph-stat:hover { background: var(--bg2); }
.ph-stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--R); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.ph-stat:hover::before { transform: scaleY(1); }
.ph-stat-n {
  font-family: var(--f-head); font-size: 40px; font-weight: 700;
  line-height: 1; color: var(--ink); display: block;
}
.ph-stat-n em { font-style: normal; color: var(--R); }
.ph-stat-l {
  font-family: var(--f-code); font-size: 9px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink3);
  margin-top: 4px; display: block;
}

/* Ghost text decoration */
.ph-ghost {
  position: absolute; right: clamp(20px,4vw,56px); bottom: -24px;
  font-family: var(--f-head);
  font-size: clamp(160px, 22vw, 300px);
  font-weight: 700; line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.025);
  user-select: none; pointer-events: none; z-index: 1;
  animation: ghost-drift 10s ease-in-out infinite alternate;
}
[data-theme="light"] .ph-ghost { -webkit-text-stroke: 1px rgba(0,0,0,.04); }
@keyframes ghost-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}

/* ══ MISSION / VISION ════════════════════════════════════════ */
#mission {
  padding: var(--sec) 0;
  background: var(--bg1);
  border-bottom: 1px solid var(--g1);
}
.mission-w { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }

.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--g1);
}
.mv-cell {
  padding: clamp(32px,5vw,56px);
  border-right: 1px solid var(--g1);
  position: relative; overflow: hidden;
  transition: background .25s;
}
.mv-cell:last-child { border-right: none; }
.mv-cell:hover { background: var(--bg2); }
.mv-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--R); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.mv-cell:hover::before { transform: scaleX(1); }

.mv-tag {
  font-family: var(--f-code); font-size: 9px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--R);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.mv-tag::before { content: '▸'; opacity: .6; }

.mv-h {
  font-family: var(--f-head); font-size: clamp(28px,4vw,42px);
  font-weight: 700; text-transform: uppercase; line-height: 1;
  color: var(--ink); margin-bottom: 16px;
}
.mv-h em { font-style: normal; color: var(--R); }
.mv-body { font-size: 15px; color: var(--ink2); line-height: 1.8; }

/* ══ VALUES / WHY ════════════════════════════════════════════ */
#values {
  padding: var(--sec) 0;
  background: var(--bg);
}
.values-w { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }

.values-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; margin-bottom: 64px;
}
.values-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

/* Table of values */
.val-table { border: 1px solid var(--g1); }
.val-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  border-bottom: 1px solid var(--g1);
  position: relative; overflow: hidden; transition: background .25s;
}
.val-row:last-child { border-bottom: none; }
.val-row:hover { background: var(--bg2); }
.val-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--R); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.val-row:hover::before { transform: scaleY(1); }

.val-num {
  padding: 22px 0;
  font-family: var(--f-code); font-size: 10px; font-weight: 600; letter-spacing: .18em;
  color: var(--ink3); display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--g1); transition: color .2s, background .2s;
}
.val-row:hover .val-num { color: var(--R); background: var(--R2); }

.val-body { padding: 22px 28px; }
.val-body h4 {
  font-family: var(--f-head); font-size: 15px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 5px;
}
.val-body p { font-size: 13px; color: var(--ink2); line-height: 1.65; }

.val-ico {
  padding: 22px 22px; font-size: 22px;
  border-left: 1px solid var(--g1); display: flex; align-items: center;
  opacity: .22; transition: opacity .3s;
}
.val-row:hover .val-ico { opacity: 1; }

/* ══ STORY TIMELINE ══════════════════════════════════════════ */
#story {
  padding: var(--sec) 0;
  background: var(--bg1);
  border-top: 1px solid var(--g1);
  border-bottom: 1px solid var(--g1);
}
.story-w { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }
.story-head { margin-bottom: 64px; }

.timeline { border: 1px solid var(--g1); }
.tl-row {
  display: grid; grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--g1);
  position: relative; overflow: hidden; transition: background .25s;
}
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: var(--bg2); }
.tl-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--R); transform: scaleY(0); transform-origin: center;
  transition: transform .4s var(--ease);
}
.tl-row:hover::before { transform: scaleY(1); }

.tl-year {
  padding: 28px 20px;
  border-right: 1px solid var(--g1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tl-year-n {
  font-family: var(--f-head); font-size: 26px; font-weight: 700;
  color: var(--ink3); line-height: 1; transition: color .25s;
}
.tl-row:hover .tl-year-n { color: var(--R); }
.tl-year-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g2); margin-top: 8px; transition: background .25s;
}
.tl-row:hover .tl-year-dot { background: var(--R); }

.tl-body { padding: 28px 36px; }
.tl-etag {
  font-family: var(--f-code); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--R);
  display: block; margin-bottom: 8px;
}
.tl-body h4 {
  font-family: var(--f-head); font-size: 16px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px;
}
.tl-body p { font-size: 13px; color: var(--ink2); line-height: 1.65; max-width: 580px; }

/* ══ TEAM ════════════════════════════════════════════════════ */
#team {
  padding: var(--sec) 0;
  background: var(--bg);
}
.team-w { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }
.team-head { margin-bottom: 64px; }

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--g1); border: 1px solid var(--g1);
}
.team-card {
  background: var(--bg); position: relative; overflow: hidden; transition: background .25s;
}
.team-card:hover { background: var(--bg2); }
.team-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--R); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.team-card:hover::after { transform: scaleX(1); }

.team-photo {
  aspect-ratio: 3/4; overflow: hidden; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%); transition: filter .4s, transform .5s var(--ease);
}
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.04); }
/* Initials placeholder */
.team-photo-init {
  font-family: var(--f-head); font-size: 52px; font-weight: 700;
  color: var(--ink3); transition: color .3s;
}
.team-card:hover .team-photo-init { color: var(--R); }

.team-info { padding: 18px 20px; border-top: 1px solid var(--g1); }
.team-role-tag {
  font-family: var(--f-code); font-size: 9px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--R);
  display: block; margin-bottom: 5px;
}
.team-name {
  font-family: var(--f-head); font-size: 17px; font-weight: 600;
  text-transform: uppercase; color: var(--ink); line-height: 1.1;
}
.team-bio { font-size: 12px; color: var(--ink2); margin-top: 7px; line-height: 1.6; }

/* ══ COVERAGE ════════════════════════════════════════════════ */
#coverage {
  padding: var(--sec) 0;
  background: var(--bg1);
  border-top: 1px solid var(--g1);
}
.coverage-w { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }
.coverage-head { margin-bottom: 64px; }

.coverage-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

/* City data table */
.city-table { border: 1px solid var(--g1); }
.city-row {
  display: grid; grid-template-columns: 36px 1fr auto;
  border-bottom: 1px solid var(--g1); align-items: center;
  transition: background .2s;
}
.city-row:last-child { border-bottom: none; }
.city-row:hover { background: var(--bg2); }
.city-idx {
  padding: 13px 0; text-align: center;
  font-family: var(--f-code); font-size: 9px; letter-spacing: .15em;
  color: var(--ink3); border-right: 1px solid var(--g1);
  transition: color .2s, background .2s;
}
.city-row:hover .city-idx { color: var(--R); background: var(--R2); }
.city-n {
  padding: 13px 18px;
  font-family: var(--f-head); font-size: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.city-badge {
  padding: 13px 14px;
  font-family: var(--f-code); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink3);
  border-left: 1px solid var(--g1); white-space: nowrap;
}

/* Visual block */
.coverage-visual { position: relative; }
.coverage-img {
  overflow: hidden; border: 1px solid var(--g1); aspect-ratio: 3/4;
}
.coverage-img img { width: 100%; height: 100%; object-fit: cover; }
.coverage-count {
  position: absolute; bottom: -1px; right: -1px;
  background: var(--R); padding: 20px 24px; text-align: center;
}
.coverage-count-n {
  font-family: var(--f-head); font-size: 52px; font-weight: 700;
  line-height: 1; color: #fff; display: block;
}
.coverage-count-l {
  font-family: var(--f-code); font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-top: 4px; display: block;
}

/* ══ CTA ═════════════════════════════════════════════════════ */
#about-cta {
  background: var(--bg); border-top: 1px solid var(--g1);
  padding: var(--sec) 0; position: relative; overflow: hidden;
}
#about-cta::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  right: clamp(20px, 24%, 380px); width: 1px;
  background: linear-gradient(to bottom, transparent, var(--R3) 30%, var(--R3) 70%, transparent);
}
.acta-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px,4vw,56px);
  display: grid; grid-template-columns: 1fr auto;
  gap: 80px; align-items: center; position: relative; z-index: 2;
}
.acta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.acta-actions .btn { justify-content: center; }
.acta-trust {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--g1);
}
.acta-trust-i {
  font-family: var(--f-code); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink3);
  display: flex; align-items: center; gap: 8px;
}
.acta-trust-i::before { content: '✓'; color: var(--R); font-size: 11px; }

/* ══ KEYFRAMES ════════════════════════════════════════════════ */
@keyframes fade-up { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:none} }

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ph-body { grid-template-columns: 1fr; gap: 48px; }
  .ph-stats { flex-direction: row; flex-wrap: wrap; border: none; }
  .ph-stat  { border: 1px solid var(--g1); flex: 1; min-width: 130px; }
  .mv-grid  { grid-template-columns: 1fr; }
  .mv-cell  { border-right: none; border-bottom: 1px solid var(--g1); }
  .mv-cell:last-child { border-bottom: none; }
  .values-top { grid-template-columns: 1fr; gap: 28px; }
  .values-top-right { align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .coverage-layout { grid-template-columns: 1fr; gap: 48px; }
  .acta-inner { grid-template-columns: 1fr; gap: 48px; }
  .acta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 768px) {
  .ph-ghost { display: none; }
  .tl-row { grid-template-columns: 72px 1fr; }
  .val-row { grid-template-columns: 40px 1fr; }
  .val-ico { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .acta-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .city-row  { grid-template-columns: 28px 1fr; }
  .city-badge { display: none; }
}