/* ═══════════════════════════════
   CASOS — CSS compartido
   /casos/ y /casos/<slug>/
   ═══════════════════════════════ */

:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --text: #0F172A;
  --muted: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --dark: #0A0E13;
  --whatsapp: #25D366;
  --green: #10B981;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.08); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav-logo { font-weight: 800; font-size: 17px; color: var(--text); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--text); font-weight: 700; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    width: min(320px, 86vw);
    height: calc(100vh - 60px);
    background: #fff;
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,.05);
    overflow-y: auto;
    z-index: 60;
  }
  .nav.open .nav-links { transform: translateX(0); }
  .nav-links a {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-cta { margin-top: 18px; text-align: center; padding: 14px 22px; }
}

/* ── HERO de caso individual ──────── */
.hero { padding: 60px 0 30px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.case-tag {
  display: inline-block;
  background: #ECFDF5;
  color: #065F46;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.case-tag.founder { background: #FEF3C7; color: #92400E; }
.case-tag.marketing { background: #EFF6FF; color: var(--blue-dark); }
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-meta { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.hero-meta strong { color: var(--text); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.hero-stats div {
  background: var(--light);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--border);
}
.hero-stats .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1.1;
}
.hero-stats .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: block;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ── CONTENT (caso individual) ──── */
.content { padding: 50px 0 70px; }
.content section { margin-bottom: 42px; }
.content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}
.content p {
  font-size: 16px;
  color: #334155;
  line-height: 1.78;
  margin-bottom: 14px;
}
.content ul { list-style: none; padding: 0; margin: 14px 0; }
.content ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15.5px;
  color: #334155;
  line-height: 1.7;
  border-bottom: 1px solid #F1F5F9;
}
.content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
}
.content ul li:last-child { border-bottom: 0; }
.content blockquote {
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #475569;
  font-size: 16px;
}
.content blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.content figure {
  margin: 24px auto;
  max-width: 580px;
}
.content figure img {
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: zoom-in;
  transition: border-color .2s;
  max-height: 420px;
  object-fit: contain;
  background: var(--light, #F8FAFC);
  width: 100%;
  height: auto;
}
.content figure img:hover { border-color: var(--blue); }

/* Par de capturas lado a lado (pequeñas, no monopolizan la página) */
.proof-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  max-width: 680px;
}
.proof-pair figure { margin: 0; }
.proof-pair figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: var(--light, #F8FAFC);
}
.proof-pair figcaption { font-size: 11px; }
@media (max-width: 560px) {
  .proof-pair { grid-template-columns: 1fr; max-width: 100%; }
  .proof-pair figure img { max-height: 280px; }
}
.content figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ── HERO de listado /casos/ ─────── */
.hero-list { padding: 70px 0 40px; text-align: center; }
.hero-list h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.hero-list h1 em { font-style: normal; color: var(--blue); }
.hero-list p {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) { .hero-list h1 { font-size: 32px; } }

.cases { padding: 30px 0 80px; }
.case {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  transition: all .25s ease;
}
.case:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.case-title h2 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.case-title .meta { font-size: 13px; color: var(--muted); }
.case .case-tag {
  margin-bottom: 0;
  background: #EFF6FF;
  color: var(--blue-dark);
  white-space: nowrap;
}
.case .case-tag.client { background: #ECFDF5; color: #065F46; }
.case .case-tag.founder { background: #FEF3C7; color: #92400E; }
.case-desc { font-size: 16px; color: #475569; line-height: 1.75; margin-bottom: 18px; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.case-stats div {
  background: var(--light);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.case-stats .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1.1;
}
.case-stats .lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}
.case-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}
.case-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .case { padding: 22px; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .case-title h2 { font-size: 22px; }
}

/* ── Lightbox ─────────────────────── */
.proof-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  cursor: zoom-out;
}
.proof-lightbox.active { display: flex; }
.proof-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

/* ── CTA ─────────────────────────── */
.cta {
  background: linear-gradient(135deg, #0A0E13, #1E3A5F);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta p {
  color: #94A3B8;
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.btn-wa {
  display: inline-block;
  background: var(--whatsapp);
  color: #fff;
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}

/* ── FOOTER ──────────────────────── */
.footer {
  background: var(--dark);
  color: #C5CDD8;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.05fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand-row img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59,130,246,0.4);
}
.footer-brand-row strong { font-size: 17px; color: #fff; display: block; }
.footer-brand-row small {
  font-size: 11px;
  color: #8A94A6;
  display: block;
  margin-top: 3px;
}
.footer-brand p {
  font-size: 13px;
  color: #8A94A6;
  line-height: 1.65;
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #8A94A6;
}
.footer-social a:hover { background: rgba(59,130,246,0.15); color: #fff; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: #C5CDD8; }
.footer-col a:hover { color: #fff; }
.new-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #6B7280;
}
.footer-bottom a { color: #8A94A6; margin-right: 14px; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Específicos de /casos/drills-bjj/ ─── */
.crumbs { padding: 22px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.hero-tag {
  display: inline-block;
  background: #EFF6FF;
  color: var(--blue-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.content .hero h1, .hero h1 br + em { display: inline; }
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 720px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.stat {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.stat .big {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  display: block;
}
.quote {
  background: var(--light);
  border-left: 4px solid var(--blue);
  padding: 22px 26px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
}
.quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}
.quote .author { font-size: 14px; color: var(--muted); font-weight: 600; }
.highlight {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
}
.highlight p { margin: 0; color: #78350F; font-size: 15px; }
.cta-box {
  background: linear-gradient(135deg, #0A0E13, #1E3A5F);
  color: #fff;
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  margin: 50px 0;
}
.cta-box h3 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-box p { color: #94A3B8; font-size: 16px; margin-bottom: 24px; }

/* Drills usa <article class="content"> con párrafos sin <ul>:contains */
article.content p { font-size: 16.5px; line-height: 1.85; }
article.content p strong { color: var(--text); font-weight: 700; }
article.content ul { padding-left: 20px; margin-bottom: 18px; list-style: disc; }
article.content ul li {
  position: static;
  padding: 0 0 6px 0;
  border: 0;
  font-size: 16px;
  line-height: 1.85;
}
article.content ul li::before { content: none; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}
