/* =============================================
   Pulso Digital v4 — style.css
   Upgraded: more content, visual & dynamic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --g:    #c8ff00;
  --gd:   #8fb800;
  --dk:   #0d1117;
  --dk2:  #161b22;
  --dk3:  #1c2129;
  --bd:   rgba(255,255,255,0.07);
  --r:    8px;
  --rl:   12px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background: #f4f4f2;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ---- ANIMACIONES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: .25; }
  50%       { opacity: 1; }
}
@keyframes ldots {
  0%, 100% { opacity: .2; }
  50%       { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%       { transform: scale(1.5); opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.au { animation: fadeUp .6s ease both; }
.a1 { animation-delay: .05s; }
.a2 { animation-delay: .1s; }
.a3 { animation-delay: .15s; }
.a4 { animation-delay: .2s; }
.a5 { animation-delay: .25s; }
.a6 { animation-delay: .3s; }

/* ---- NAV ---- */
.nav {
  background: var(--dk);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-text { line-height: 1; }
.nav-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1;
  font-family: var(--font-body);
}
.nav-logo-sub {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}

.nav-tabs { display: flex; gap: 3px; }

.nav-tab {
  background: none;
  border: none;
  padding: 7px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .2s;
}

.nav-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-tab.active { color: #fff; background: rgba(255,255,255,.09); }

/* ---- PAGES ---- */
.page { display: none; }
.page.show { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--dk);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,255,0,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gd);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g);
  animation: blink 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--g);
}

.hero-p {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.hero-counter strong { color: var(--g); }

/* HEX GRID */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 7px;
  transform: rotate(-6deg);
}

.hex {
  width: 58px; height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.15);
  transition: all .5s cubic-bezier(.25,.8,.25,1);
}

.hex.lit {
  border-color: rgba(200,255,0,.25);
  background: rgba(200,255,0,.04);
  color: var(--gd);
}

.hex.bright {
  border-color: var(--g);
  background: rgba(200,255,0,.1);
  color: var(--g);
  box-shadow: 0 0 20px rgba(200,255,0,.15);
}

/* STATS BAR */
.stats-bar {
  background: var(--dk);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

.stat {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--bd);
}

.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--g);
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.25);
  margin-top: 5px;
  font-family: var(--font-mono);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ============================================================
   DATO DE LA SEMANA
   ============================================================ */
.dato-section {
  background: var(--dk2);
  padding: 2rem 2rem;
  border-bottom: 1px solid var(--bd);
}

.dato-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.dato-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: .75rem;
}

.dato-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto .5rem;
}

.dato-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

/* ============================================================
   DIMENSIONES INTERACTIVAS
   ============================================================ */
.dims-section {
  background: var(--dk);
  padding: 3.5rem 2rem;
}

.dims-inner { max-width: 960px; margin: 0 auto; }

.sec-head-dark { margin-bottom: 2rem; }

.sec-title-dark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .3rem;
}

.sec-sub-dark {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

.dims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dim-card {
  background: var(--dk2);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 1.5rem;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.dim-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height .3s;
}

.dim-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-2px); }
.dim-card.expanded { border-color: rgba(255,255,255,.15); }
.dim-card.expanded::before { height: 3px; }

.dim-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.dim-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: .5rem;
}

.dim-card-short {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

.dim-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, margin .3s ease;
}

.dim-card.expanded .dim-card-detail {
  max-height: 200px;
  margin-top: 1rem;
}

.dim-card-detail-inner {
  padding-top: .75rem;
  border-top: 1px solid var(--bd);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

.dim-card-example {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.25);
  font-style: italic;
}

/* ============================================================
   NIVELES DE MADUREZ
   ============================================================ */
.niveles-section {
  background: var(--dk);
  padding: 4rem 2rem;
}

.niveles-section .sec-head { margin-bottom: 0; }
.niveles-section .sec-title { color: #fff; }
.niveles-section .sec-sub { color: rgba(255,255,255,.3); }

.niveles-inner { max-width: 960px; margin: 0 auto; }

.niveles-scale {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
}

.nivel-item {
  flex: 1;
  background: var(--dk2);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
  cursor: default;
  transition: all .35s cubic-bezier(.25,.8,.25,1);
  overflow: hidden;
}

.nivel-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}

.nivel-item:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.nivel-item:hover .nivel-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: .75rem;
}

.nivel-item:hover .nivel-icon {
  transform: scale(1.1);
}

.nivel-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: .75rem;
  transition: transform .3s;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.nivel-range {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.25);
  letter-spacing: .5px;
  margin-bottom: .35rem;
}

.nivel-name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: .5rem;
}

.nivel-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}

.nivel-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 1s ease;
}

.nivel-desc {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .35s ease;
}

/* ============================================================
   PERFILES
   ============================================================ */
.perfiles-section {
  background: var(--dk);
  padding: 3.5rem 2rem;
}

.perfiles-inner { max-width: 960px; margin: 0 auto; }

.perfiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.perfil-card {
  background: var(--dk2);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all .3s;
}

.perfil-card:hover {
  border-color: rgba(200,255,0,.2);
  transform: translateY(-2px);
}

.perfil-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(200,255,0,.08);
  border: 1px solid rgba(200,255,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-size: 18px;
}

.perfil-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  margin-bottom: .3rem;
}

.perfil-sub {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.5;
}

/* ============================================================
   PREVIEW DEL INFORME
   ============================================================ */
.preview-section {
  background: #f4f4f2;
  padding: 3.5rem 2rem;
}

.preview-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.preview-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.preview-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
}

.mockup-card {
  background: var(--dk);
  border-radius: var(--rl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

.mockup-score { margin-bottom: .25rem; }

.mockup-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--g);
  line-height: 1;
}

.mockup-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.25);
  margin-left: 4px;
}

.mockup-badge {
  display: inline-block;
  background: rgba(200,255,0,.1);
  color: var(--g);
  border: 1px solid rgba(200,255,0,.15);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.mockup-bars { margin-bottom: 1rem; }

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mockup-bar span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.3);
  width: 55px;
  text-align: right;
}

.mb-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
}

.mb-fill {
  height: 3px;
  border-radius: 2px;
  transition: width 1s ease;
}

.mockup-blur {
  display: flex;
  flex-direction: column;
  gap: 8px;
  filter: blur(4px);
  opacity: .3;
}

.mockup-blur-line {
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
}

.mockup-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,17,23,.95) 60%);
  padding: 3rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}

/* ============================================================
   MICRO ARTÍCULOS
   ============================================================ */
.articulos-section {
  background: #fff;
  padding: 3.5rem 2rem;
  border-top: 1px solid #eee;
}

.articulos-inner { max-width: 960px; margin: 0 auto; }

.articulos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: .5rem;
}

.art-card {
  border: 1px solid #eee;
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  transition: all .3s;
  cursor: default;
  position: relative;
}

.art-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--rl) var(--rl) 0 0;
}

.art-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transform: translateY(-2px);
}

.art-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.art-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #1a1a1a;
  margin-bottom: .75rem;
  line-height: 1.4;
}

.art-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-section {
  background: #f4f4f2;
  padding: 3.5rem 2rem;
}

.news-inner { max-width: 960px; margin: 0 auto; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #1a1a1a;
}

.sec-sub {
  font-size: 12px;
  color: #888;
  font-family: var(--font-mono);
  margin-top: 3px;
}

.filters { display: flex; gap: 5px; flex-wrap: wrap; }

.fbtn {
  background: none;
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  color: #777;
  font-family: var(--font-mono);
  transition: all .2s;
}

.fbtn.active, .fbtn:hover {
  border-color: var(--gd);
  color: var(--gd);
  background: rgba(143,184,0,.06);
}

/* Magazine layout */
.news-mag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e0e0dd;
  border: 1px solid #e0e0dd;
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 1px;
}

.nc-feat {
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  position: relative;
  cursor: pointer;
}

.nc-feat:hover .nc-feat-title { color: var(--gd); }

.nc-feat-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.nc-feat-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .75rem;
}

.nc-feat-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.45;
  color: #1a1a1a;
  margin-bottom: .75rem;
  transition: color .15s;
}

.nc-feat-meta {
  font-size: 11px;
  color: #aaa;
  font-family: var(--font-mono);
}

.nc-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e0e0dd;
}

.nc-sm {
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
  cursor: pointer;
}

.nc-sm:hover .nc-sm-title { color: var(--gd); }

.nc-sm-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.nc-sm-src {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.nc-sm-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 8px;
  transition: color .15s;
}

.nc-sm-date {
  font-size: 11px;
  color: #aaa;
  font-family: var(--font-mono);
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e0e0dd;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid #e0e0dd;
  margin-top: 1px;
}

.nc-row {
  background: #fff;
  padding: 1.35rem;
  position: relative;
  cursor: pointer;
  transition: background .15s;
}

.nc-row:hover { background: #fafaf8; }
.nc-row:hover .nc-row-title { color: var(--gd); }

.nc-row-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.nc-row-src {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.nc-row-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 8px;
  transition: color .15s;
}

.nc-row-date {
  font-size: 11px;
  color: #aaa;
  font-family: var(--font-mono);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  background: var(--dk);
  padding: 3.5rem 2rem;
}

.how-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.how-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .4rem;
}

.how-sub {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin-bottom: 2rem;
}

.steps { display: flex; gap: 2.5rem; flex-wrap: wrap; }

.step { display: flex; align-items: flex-start; gap: 12px; }

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gd);
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  max-width: 150px;
}

/* ============================================================
   FRASE CARRUSEL
   ============================================================ */
.frase-section {
  background: var(--dk2);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  overflow: hidden;
}

.frase-inner { max-width: 700px; margin: 0 auto; position: relative; }

.frase-carousel {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.frase-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(60px);
  transition: all .6s cubic-bezier(.25,.8,.25,1);
  pointer-events: none;
}

.frase-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.frase-slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}

.frase-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.frase-quote::before { content: '\201C'; color: var(--g); }
.frase-quote::after  { content: '\201D'; color: var(--g); }

.frase-author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.2);
}

.frase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: .75rem;
}

.frase-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}

.frase-dot.active {
  background: var(--g);
  width: 20px;
  border-radius: 3px;
}

/* ============================================================
   CTA WHATSAPP HOME
   ============================================================ */
.cta-home-section {
  background: var(--dk);
  padding: 3rem 2rem;
}

.cta-home-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--dk3);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 2.5rem;
}

.cta-home-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: .3rem;
}

.cta-home-sub {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  max-width: 480px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,255,0,.1);
  color: var(--g);
  border: 1px solid rgba(200,255,0,.2);
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}

.btn-wa:hover {
  background: rgba(200,255,0,.15);
  border-color: rgba(200,255,0,.35);
}

/* ============================================================
   TIPS (RESULTADOS)
   ============================================================ */
.tips-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--rl);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.tips-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: .75rem;
  background: #f8f8f6;
  border-radius: var(--r);
}

.tip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.tip-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.tip-dim {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

/* ============================================================
   DIAGNÓSTICO
   ============================================================ */
.diag-page {
  background: #fff;
  min-height: 60vh;
  padding: 3rem 2rem;
}

.diag-inner { max-width: 680px; margin: 0 auto; }

.info-header { margin-bottom: 2rem; }

.info-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: .4rem;
}

.info-header p { font-size: 13px; color: #555; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.field input, .field select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #ccc;
  border-radius: var(--r);
  background: #fafaf8;
  color: #1a1a1a;
  font-size: 13px;
  font-family: var(--font-body);
  transition: border-color .2s;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gd);
  background: #fff;
}

/* Progreso */
.prog-wrap { margin-bottom: 2rem; }

.prog-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.prog-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.prog-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gd);
  font-weight: 700;
}

.prog-bar {
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.prog-fill {
  height: 4px;
  background: var(--g);
  border-radius: 2px;
  transition: width .4s ease;
}

.dim-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: #e8e8e5;
  color: #555;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.q-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: #111;
  margin-bottom: 1.5rem;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2rem;
}

.opt {
  padding: 14px 16px;
  border: 1.5px solid #ccc;
  border-radius: var(--rl);
  cursor: pointer;
  font-size: 13px;
  color: #222;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all .2s;
  background: #fafaf8;
}

.opt-radio {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  border: 2px solid #aaa;
  margin-top: 1px;
  transition: all .2s;
  flex-shrink: 0;
}

.opt:hover { border-color: #999; background: #f0f0ee; }

.opt.sel {
  border: 1.5px solid var(--gd);
  background: rgba(143,184,0,.05);
}

.opt.sel .opt-radio {
  border-color: var(--gd);
  background: var(--g);
}

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.q-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #aaa;
}

.step-loading {
  display: none;
  text-align: center;
  padding: 5rem 0;
}

.loading-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888;
  margin-bottom: .75rem;
}

.ldot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gd);
  animation: ldots 1.2s infinite;
}
.ldot:nth-child(2) { animation-delay: .2s; }
.ldot:nth-child(3) { animation-delay: .4s; }

/* ============================================================
   RESULTADOS
   ============================================================ */
.results-page {
  background: #f4f4f2;
  padding: 3rem 2rem;
}

.results-inner { max-width: 960px; margin: 0 auto; }

.results-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-card {
  background: var(--dk);
  border-radius: var(--rl);
  padding: 1.75rem;
  color: #fff;
}

.score-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--g);
  line-height: 1;
}

.score-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.25);
  margin-top: 3px;
  margin-bottom: 1rem;
}

.level-badge {
  display: inline-block;
  background: rgba(200,255,0,.1);
  color: var(--g);
  border: 1px solid rgba(200,255,0,.2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  letter-spacing: .5px;
}

.dim-row { margin-bottom: 10px; }

.dim-name {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}

.dim-name span {
  font-family: var(--font-mono);
  color: rgba(255,255,255,.6);
}

.dim-bar-bg {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
}

.dim-bar-fill {
  height: 3px;
  border-radius: 2px;
  transition: width .7s ease;
}

.radar-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--rl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.report-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--rl);
  padding: 2rem;
  margin-bottom: 1rem;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
}

.ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gd);
  animation: pulse 2s infinite;
}

.report-body {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
}

.report-body p { margin-bottom: 1rem; }

.cta-dark {
  background: var(--dk);
  border-radius: var(--rl);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-dark h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: .5rem;
}

.cta-dark p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   NOTICIAS PAGE
   ============================================================ */
.noticias-page {
  background: #fff;
  padding: 3.5rem 2rem;
}

.noticias-inner { max-width: 960px; margin: 0 auto; }

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-primary {
  background: var(--g);
  color: var(--dk);
  border: none;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}

.btn-primary:hover { background: #d6ff33; transform: translateY(-1px); }

.btn-outline {
  background: none;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.btn-sec {
  background: none;
  border: 1px solid #ddd;
  padding: 11px 24px;
  border-radius: var(--r);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  color: #555;
  transition: all .2s;
}

.btn-sec:hover { border-color: #aaa; color: #1a1a1a; }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #e24b4a;
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--r);
  font-size: 13px;
  display: none;
  z-index: 999;
  white-space: nowrap;
  font-family: var(--font-body);
}

/* ---- FOOTER ---- */
footer {
  background: var(--dk);
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--bd);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

.footer-links {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a { color: var(--gd); text-decoration: none; }
.footer-links a:hover { color: var(--g); }
.footer-sep { color: rgba(255,255,255,.1); }

.footer-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.15);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  /* NAV */
  .nav              { padding: 0 .75rem; height: 50px; }
  .nav-logo svg     { width: 26px; height: 26px; }
  .nav-logo-name    { font-size: 13px; }
  .nav-logo-sub     { font-size: 8px; }
  .nav-tab          { padding: 5px 10px; font-size: 12px; }

  /* HERO */
  .hero             { padding: 2.5rem 1rem 2rem; }
  .hero-inner       { grid-template-columns: 1fr; gap: 0; }
  .hero-visual      { display: none; }
  .hero h1          { font-size: 1.75rem; }
  .hero-p           { font-size: 13px; margin-bottom: 1.5rem; }
  .hero-btns        { flex-direction: column; gap: 8px; margin-bottom: 1rem; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; text-align: center; }

  /* STATS */
  .stats-inner      { grid-template-columns: 1fr 1fr; }
  .stat             { padding: 1rem; border-bottom: 1px solid var(--bd); }
  .stat-num         { font-size: 1.5rem; }

  /* DATO */
  .dato-section     { padding: 1.5rem 1rem; }
  .dato-text        { font-size: 1.05rem; }

  /* DIMENSIONES */
  .dims-section     { padding: 2.5rem 1rem; }
  .dims-grid        { grid-template-columns: 1fr; gap: 8px; }
  .dim-card         { padding: 1.25rem; }
  .dim-card-name    { font-size: .95rem; }

  /* NIVELES */
  .niveles-section  { padding: 2.5rem 1rem; }
  .niveles-scale    { flex-direction: column; gap: 8px; }

  /* PERFILES */
  .perfiles-section { padding: 2.5rem 1rem; }
  .perfiles-grid    { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perfil-card      { padding: 1.25rem 1rem; }
  .perfil-icon      { width: 36px; height: 36px; font-size: 16px; }
  .perfil-title     { font-size: 12px; }
  .perfil-sub       { font-size: 10px; }

  /* PREVIEW INFORME */
  .preview-section  { padding: 2.5rem 1rem; }
  .preview-inner    { grid-template-columns: 1fr; gap: 1.5rem; }
  .preview-mockup   { order: -1; }
  .sec-title        { font-size: 1.2rem; }

  /* ARTÍCULOS */
  .articulos-section { padding: 2.5rem 1rem; }
  .articulos-grid   { grid-template-columns: 1fr; gap: 10px; }
  .art-card         { padding: 1.25rem; }
  .art-title        { font-size: .95rem; }

  /* NOTICIAS */
  .news-section     { padding: 2.5rem 1rem; }
  .news-mag         { grid-template-columns: 1fr; }
  .nc-side          { flex-direction: column; }
  .news-row         { grid-template-columns: 1fr; }
  .sec-head         { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .filters          { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .fbtn             { white-space: nowrap; flex-shrink: 0; }

  /* CÓMO FUNCIONA */
  .how-section      { padding: 2.5rem 1rem; }
  .how-inner        { grid-template-columns: 1fr; gap: 1.5rem; }
  .how-title        { font-size: 1.2rem; }
  .steps            { flex-direction: column; gap: 1.25rem; }
  .step-text        { max-width: 100%; }

  /* FRASE CARRUSEL */
  .frase-section    { padding: 2rem 1rem; }
  .frase-carousel   { height: 130px; }
  .frase-quote      { font-size: 1rem; }

  /* CTA HOME */
  .cta-home-section { padding: 2rem 1rem; }
  .cta-home-inner   { flex-direction: column; text-align: center; padding: 1.75rem; }
  .cta-home-title   { font-size: 1.05rem; }
  .cta-home-sub     { font-size: 12px; }

  /* DIAGNÓSTICO */
  .diag-page        { padding: 2rem 1rem; }
  .diag-inner       { max-width: 100%; }
  .info-grid        { grid-template-columns: 1fr; }
  .info-header h2   { font-size: 1.2rem; }
  .q-text           { font-size: 1rem; }
  .opt              { padding: 12px 14px; font-size: 12px; }
  .q-nav            { flex-wrap: wrap; gap: .5rem; justify-content: center; }
  .q-nav .btn-primary,
  .q-nav .btn-sec   { flex: 1; text-align: center; min-width: 120px; }

  /* RESULTADOS */
  .results-page     { padding: 2rem 1rem; }
  .results-grid     { grid-template-columns: 1fr; }
  .results-title    { font-size: 1.2rem; }
  .score-num        { font-size: 2.5rem; }
  .tips-grid        { grid-template-columns: 1fr; }
  .report-card      { padding: 1.5rem; }
  .report-body      { font-size: 13px; }
  .cta-dark         { padding: 1.75rem; }
  .cta-dark h3      { font-size: 1.05rem; }

  /* NOTICIAS PAGE */
  .noticias-page    { padding: 2rem 1rem; }

  /* FOOTER */
  footer            { padding: 1.75rem 1rem; }
  .footer-links     { font-size: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .hero h1          { font-size: 1.5rem; }
  .hero-tag         { font-size: 9px; }
  .stats-inner      { grid-template-columns: 1fr 1fr; }
  .stat-num         { font-size: 1.3rem; }
  .perfiles-grid    { grid-template-columns: 1fr; }
  .dato-text        { font-size: .95rem; }
  .frase-carousel   { height: 150px; }
  .frase-quote      { font-size: .9rem; }
  .nav-tabs         { gap: 1px; }
  .nav-tab          { padding: 5px 8px; font-size: 11px; }
  .dims-section .sec-title-dark { font-size: 1.2rem; }
  .niveles-section .sec-title { font-size: 1.2rem; }
}
