/* ============================================= */
/* CASE STUDY — estilo NoGood SteelSeries (v2)     */
/* ============================================= */

.cs-main {
  --cs-bg: #0D0D0F;
  --cs-bg-soft: #131316;
  --cs-bg-card: #1A1A1D;
  --cs-bg-card-2: #16161A;
  --cs-border: rgba(255, 255, 255, 0.07);
  --cs-border-strong: rgba(255, 255, 255, 0.12);
  --cs-text: #FFFFFF;
  --cs-text-soft: rgba(255, 255, 255, 0.78);
  --cs-text-dim: rgba(255, 255, 255, 0.45);
  --cs-accent: #7A3DFF;
  --cs-accent-2: #4B1FC0;
  --cs-gradient-card:
    linear-gradient(100deg,
      #18181C 0%,
      #18181C 38%,
      #3A2380 62%,
      #6A3DFF 88%,
      #8A5CFF 100%);
}

body { background: var(--cs-bg); }

.cs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================= */
/* HERO                                           */
/* ============================================= */
.cs-hero {
  position: relative;
  padding: clamp(120px, 15vw, 180px) 0 clamp(40px, 5vw, 60px);
  background: var(--cs-bg);
  overflow: hidden;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cs-text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: clamp(40px, 6vw, 72px);
  transition: color 0.2s var(--ease);
}
.cs-back:hover { color: #FFFFFF; }

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* LEFT side */
.cs-hero-client-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.cs-hero-client-logo {
  width: clamp(52px, 6vw, 68px);
  height: clamp(52px, 6vw, 68px);
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.cs-hero-client-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cs-hero-quote-wrap { position: relative; margin-bottom: clamp(24px, 3vw, 36px); }
.cs-hero-quote-mark {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.4;
  color: var(--cs-text);
  margin-bottom: 4px;
  opacity: 0.9;
}
.cs-hero-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
}

.cs-hero-author { display: flex; align-items: center; gap: 12px; }
.cs-hero-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cs-hero-author-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}
.cs-hero-author-role {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cs-text-dim);
  line-height: 1.2;
  margin-top: 2px;
}

/* RIGHT — stat cards (NoGood style: card oscuro con gradient morado a la derecha) */
.cs-hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-hero-stat {
  position: relative;
  padding: clamp(22px, 2.5vw, 32px) clamp(24px, 3vw, 40px);
  border-radius: 18px;
  background: var(--cs-gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cs-hero-stat-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.cs-arrow-up, .cs-arrow-down {
  font-size: 0.6em;
  color: #00E3FF;
  font-weight: 700;
  display: inline-block;
  line-height: 1;
}
.cs-arrow-down { color: #00E3FF; }
.cs-hero-stat-unit {
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 2px;
  opacity: 0.9;
}
.cs-hero-stat-label {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 85%;
}

/* SUB-HERO strip */
.cs-subhero {
  margin-top: clamp(32px, 4vw, 56px);
}
.cs-subhero-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.5vw, 28px) clamp(26px, 3vw, 36px);
  border-radius: 18px;
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
}
.cs-subhero-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
  color: var(--cs-text-soft);
  margin: 0;
  max-width: 70%;
}
.cs-subhero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  text-decoration: none;
  flex-shrink: 0;
}
.cs-subhero-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  transition: background 0.2s var(--ease);
}
.cs-subhero-cta:hover .cs-subhero-cta-icon { background: var(--cs-accent); }

/* ============================================= */
/* BODY — sidebar + content                       */
/* ============================================= */
.cs-body {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(60px, 8vw, 120px);
  background: var(--cs-bg);
  border-top: 1px solid var(--cs-border);
}

.cs-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* STICKY SIDEBAR — limpio, sin icono + */
.cs-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.cs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-sidebar-link {
  display: block;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cs-text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.cs-sidebar-link:hover { color: rgba(255, 255, 255, 0.75); }
.cs-sidebar-link.is-active { color: #FFFFFF; }

/* CONTENT */
.cs-content {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 140px);
  max-width: 820px;
}

.cs-article { scroll-margin-top: 90px; }
.cs-article-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.cs-article-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.65;
  color: var(--cs-text-soft);
}
.cs-article-body p { margin: 0 0 1.3em; }
.cs-article-body p:last-child { margin-bottom: 0; }
.cs-article-body strong { color: #FFFFFF; font-weight: 600; }

.cs-article-intro {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--cs-text-soft);
  max-width: 620px;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

/* Bullets */
.cs-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-bullets li {
  position: relative;
  padding: 2px 0 2px 22px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.6;
  color: var(--cs-text-soft);
}
.cs-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cs-text-soft);
  font-size: 18px;
  line-height: 1.4;
}
.cs-bullets li strong { color: #FFFFFF; font-weight: 700; }
.cs-bullets--tight li { padding-top: 0; padding-bottom: 0; }

/* Services grid — sin iconos, cards grises */
.cs-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cs-service-card {
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  min-height: clamp(140px, 14vw, 180px);
  display: flex;
  align-items: flex-end;
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cs-service-card:hover {
  background: var(--cs-bg-card-2);
  border-color: var(--cs-border-strong);
}
.cs-service-title {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0;
}

/* Accordion */
.cs-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-accordion-item {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.cs-accordion-item[open] {
  border-color: var(--cs-border-strong);
}
.cs-accordion-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2vw, 26px) clamp(22px, 2.5vw, 30px);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 600;
  color: #FFFFFF;
}
.cs-accordion-sum::-webkit-details-marker { display: none; }
.cs-accordion-chev {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}
.cs-accordion-chev::before,
.cs-accordion-chev::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cs-accordion-chev::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.cs-accordion-chev::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.cs-accordion-item[open] .cs-accordion-chev::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.cs-accordion-body {
  padding: 0 clamp(22px, 2.5vw, 30px) clamp(22px, 2.5vw, 28px);
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.65;
  color: var(--cs-text-soft);
}
.cs-accordion-body p { margin: 0; }

/* RESULTS — 2 cols: text + sticky cards */
.cs-article--results { scroll-margin-top: 90px; }
.cs-results-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.cs-results-sub {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}
.cs-results-cards {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-results-card {
  padding: clamp(22px, 2.5vw, 30px) clamp(24px, 3vw, 32px);
  border-radius: 16px;
  background: var(--cs-gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cs-results-card-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.cs-results-card-label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================= */
/* CTA final                                      */
/* ============================================= */
.cs-cta {
  position: relative;
  padding: clamp(90px, 12vw, 140px) 0;
  background: var(--cs-bg);
  border-top: 1px solid var(--cs-border);
}
.cs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
  max-width: 640px;
}
.cs-cta-accent { color: var(--cs-accent); }

/* ============================================= */
/* RESPONSIVE                                     */
/* ============================================= */
@media (max-width: 960px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-subhero-pill { flex-direction: column; align-items: flex-start; }
  .cs-subhero-text { max-width: 100%; }
  .cs-layout { grid-template-columns: 1fr; gap: 32px; }
  .cs-sidebar {
    position: static;
    background: var(--cs-bg-soft);
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid var(--cs-border);
  }
  .cs-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .cs-sidebar-nav::-webkit-scrollbar { display: none; }
  .cs-sidebar-link {
    padding: 10px 14px;
    white-space: nowrap;
    border-radius: 8px;
  }
  .cs-sidebar-link.is-active { background: rgba(255, 255, 255, 0.08); }
  .cs-content { max-width: 100%; }
  .cs-services-grid { grid-template-columns: 1fr 1fr; }
  .cs-results-grid { grid-template-columns: 1fr; }
  .cs-results-cards { position: static; }
  .cs-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .cs-hero-quote { font-size: 26px; }
  .cs-hero-stat-top { font-size: 54px; }
  .cs-article-title { font-size: 36px; }
  .cs-services-grid { grid-template-columns: 1fr; }
}

/* ============================================= */
/* Adiciones caso Dra. Anny — nota de honestidad  */
/* y línea de fuente verificable                  */
/* ============================================= */
.cs-hero-quote-src {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
}
.cs-results-note {
  margin-top: 1.6em;
  padding: 18px 22px;
  border-left: 2px solid var(--cs-accent);
  background: rgba(122, 61, 255, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--cs-text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.cs-results-source {
  margin-top: 1.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--cs-text-dim);
}

/* ============================================= */
/* Robustez responsive: los hijos de grid traen   */
/* min-width:auto, lo que puede estirar la columna*/
/* del nav lateral scrolleable y desbordar el     */
/* ancho en móvil.                                */
/* ============================================= */
.cs-layout > *,
.cs-hero-grid > *,
.cs-results-grid > * { min-width: 0; }
.cs-sidebar { min-width: 0; max-width: 100%; }
.cs-sidebar-nav { min-width: 0; max-width: 100%; }

/* .cs-article-body p pisaba el margin-top de .cs-results-sub por        */
/* especificidad, así que los subtítulos quedaban pegados a la lista     */
/* de arriba. Afecta a todos los casos.                                  */
.cs-article-body .cs-results-sub { margin-top: 1.7em; }
.cs-article-body .cs-results-note { margin-top: 1.6em; margin-bottom: 0; }
.cs-article-body .cs-results-source { margin-top: 1.3em; margin-bottom: 0; }

/* Link al sitio del cliente (caso Ocala) */
.cs-client-site {
  color: var(--cyan, #00E3FF);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,227,255,.35);
  transition: .15s;
}
.cs-client-site:hover {
  color: var(--primary, #FAFA00);
  border-bottom-color: rgba(250,250,0,.5);
}

/* ============================================
   GRÁFICOS DEL CASO (data real, SVG/CSS)
   ============================================ */
.cs-viz { margin: 40px 0 8px; }
.cs-viz + .cs-viz { margin-top: 44px; }
.cs-viz-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #00E3FF; margin: 0 0 6px;
}
.cs-viz-sub {
  font-size: 13px; color: #8a8a8a; margin: 0 0 20px; line-height: 1.5;
}
.cs-viz-card {
  background: #1c1c1c; border: 1px solid #333; border-radius: 14px;
  padding: 26px 24px;
}

/* --- Barras comparativas (inversión vs retorno) --- */
.cs-bar-row { margin-bottom: 22px; }
.cs-bar-row:last-child { margin-bottom: 0; }
.cs-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px; gap: 12px;
}
.cs-bar-name { font-size: 13.5px; color: #c9c9c9; font-weight: 500; }
.cs-bar-val {
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: 17px; color: #fff; white-space: nowrap;
}
.cs-bar-track {
  background: #131313; border: 1px solid #2e2e2e;
  border-radius: 8px; height: 30px; overflow: hidden;
}
.cs-bar-fill {
  height: 100%; border-radius: 7px 0 0 7px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: #0c0c0c;
  font-weight: 500;
}
.cs-bar-fill--cost { background: linear-gradient(90deg,#5a5a5a,#7a7a7a); }
.cs-bar-fill--won  { background: linear-gradient(90deg,#00E3FF,#00b4cc); box-shadow: 0 0 22px rgba(0,227,255,.25); }
.cs-bar-fill--open { background: linear-gradient(90deg,#713DFF,#9a6dff); }

/* --- Embudo del pipeline --- */
.cs-funnel { display: flex; flex-direction: column; gap: 9px; }
.cs-funnel-step {
  display: flex; align-items: center; gap: 14px;
}
.cs-funnel-bar {
  height: 42px; border-radius: 8px;
  display: flex; align-items: center; padding: 0 14px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 16px;
  color: #0c0c0c; min-width: 58px;
}
.cs-funnel-label { font-size: 13.5px; color: #c9c9c9; }
.cs-funnel-label b { color: #fafafa; }
.cs-funnel-money {
  font-family: 'DM Mono', monospace; font-size: 12px; color: #707070;
  display: block; margin-top: 2px;
}

/* --- Timeline mensual --- */
.cs-months { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cs-month {
  background: #131313; border: 1px solid #2e2e2e; border-radius: 12px;
  padding: 18px 16px; text-align: center;
}
.cs-month-name {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #707070; margin-bottom: 12px;
}
.cs-month-num {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 30px;
  color: #00E3FF; line-height: 1;
}
.cs-month-unit { font-size: 12px; color: #8a8a8a; margin-top: 7px; }
.cs-month-spend {
  font-family: 'DM Mono', monospace; font-size: 11.5px; color: #707070;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid #2a2a2a;
}
@media (max-width: 620px) {
  .cs-months { grid-template-columns: 1fr; }
  .cs-viz-card { padding: 20px 16px; }
}

/* ============================================
   MÓVIL — gráficos y hero del caso
   ============================================ */
@media (max-width: 560px) {
  /* Hero: logo del cliente y nombre no se aprietan */
  .cs-hero-client-mark { gap: 11px; margin-bottom: 26px; }
  .cs-hero-client-logo { width: 46px; height: 46px; }
  .cs-hero-client-name { font-size: 13px; line-height: 1.35; }
  .cs-hero-author-role { font-size: 12.5px; line-height: 1.6; }

  /* Cifras grandes del hero: que $51,695 no se corte */
  .cs-hero-stat-top { font-size: 40px; letter-spacing: -0.5px; }
  .cs-hero-stat-label { font-size: 12.5px; }
  .cs-hero-quote { font-size: 23px; line-height: 1.28; }

  /* Barras: la cifra va debajo del nombre, no al lado */
  .cs-bar-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .cs-bar-val { font-size: 20px; }
  .cs-bar-name { font-size: 12.5px; }
  .cs-bar-track { height: 26px; }
  .cs-bar-fill { font-size: 10px; padding-right: 8px; }

  /* Embudo: barra arriba, etiqueta abajo — la proporción se mantiene */
  .cs-funnel-step { flex-direction: column; align-items: flex-start; gap: 7px; }
  .cs-funnel-bar {
    height: 36px; font-size: 15px; min-width: 46px;
    justify-content: flex-start;
  }
  .cs-funnel-label { font-size: 12.5px; padding-left: 2px; }
  .cs-funnel-money { font-size: 11px; }

  /* Tarjetas de resultados: cifra legible */
  .cs-results-card-num { font-size: 34px; letter-spacing: -0.5px; }
  .cs-results-card-label { font-size: 12px; }

  .cs-viz-card { padding: 18px 15px; }
  .cs-viz-title { font-size: 10.5px; letter-spacing: 2px; }
  .cs-viz-sub { font-size: 12.5px; }
  .cs-viz + .cs-viz { margin-top: 34px; }
}

@media (max-width: 380px) {
  .cs-hero-stat-top { font-size: 34px; }
  .cs-bar-val { font-size: 18px; }
  .cs-results-card-num { font-size: 29px; }
}

/* Ningún bloque ancho debe desbordar la pantalla */
.cs-viz, .cs-viz-card, .cs-bar-track, .cs-funnel-bar { max-width: 100%; }
.cs-bar-val, .cs-results-card-num, .cs-hero-stat-top { overflow-wrap: anywhere; }
