/* services.css — Estilo compartido para páginas-servicio By Naud */

:root {
  --bg: #0A0B0D;
  --bg-2: #111316;
  --ink: #F2EFE9;
  --ink-2: #8C8B86;
  --line: #1F2226;
  --teal: #00D4B4;
  --teal-light: #00B89C;
  --lava: #FF5A1F;
  --grid: rgba(255,255,255,0.03);
  --logo-by: #F2EFE9;
}

[data-theme="light"] {
  --bg: #FAF8F3;
  --bg-2: #F2EFE9;
  --ink: #0A0B0D;
  --ink-2: #5A5853;
  --line: #DDD8CF;
  --teal: #00B89C;
  --lava: #E84510;
  --grid: rgba(0,0,0,0.04);
  --logo-by: #0A0B0D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  transition: background-color 0.25s, color 0.25s;
}
::selection { background: var(--teal); color: var(--bg); }
a { color: var(--teal); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-bottom-color: var(--teal); }

/* NAV */
nav.svc-nav {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}
.logo { display: block; line-height: 0; border: none; }
.logo svg { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink) !important;
  padding: 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink) !important;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; border-color: var(--ink) !important; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

main.svc {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.breadcrumb {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-2); border: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 400;
}
h1 em { color: var(--teal); font-style: italic; }

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 720px;
}
.lead strong { color: var(--teal); font-weight: 500; }

.svc-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.svc-meta b { color: var(--ink); font-weight: 400; display: block; margin-top: 4px; font-size: 14px; }

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  font-weight: 400;
}
h2 em { color: var(--teal); font-style: italic; }

h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 36px 0 12px;
  color: var(--ink);
}

p, li { margin-bottom: 14px; color: var(--ink); font-size: 15px; line-height: 1.65; }
p strong, li strong { color: var(--ink); font-weight: 500; }

ul, ol { padding-left: 24px; margin-bottom: 18px; }
ul li::marker { color: var(--teal); }
ol li::marker { color: var(--ink-2); font-family: 'Instrument Serif', serif; font-style: italic; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--bg-2);
}
th, td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--teal);
}

.callout {
  border-left: 3px solid var(--teal);
  padding: 20px 24px;
  background: var(--bg-2);
  margin: 28px 0;
  font-size: 14.5px;
}
.callout strong { color: var(--teal); }

.cta-block {
  margin: 64px 0 32px;
  padding: 48px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, color-mix(in srgb, var(--teal) 4%, var(--bg-2)) 100%);
  text-align: center;
}
.cta-block h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 12px;
  font-weight: 400;
}
.cta-block h3 em { color: var(--teal); font-style: italic; }
.cta-block p { color: var(--ink-2); max-width: 540px; margin: 0 auto 24px; font-size: 14px; }
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--lava);
  color: var(--bg) !important;
  border: none;
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); border: none; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink) !important;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal) !important; }

.case-mention {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.case-mention-img {
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, #1a1d22 0%, #0d0f12 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.case-mention-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,180,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,180,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.case-mention-img.tcg::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-8deg);
  width: 60px;
  height: 84px;
  background: linear-gradient(135deg, #FFD700 0%, #FF5A1F 100%);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}
.case-mention-img.faro {
  background: linear-gradient(180deg, #1f1410 0%, #5c3520 40%, #b8602e 75%, #f4c277 100%);
}
.case-mention-img.faro::before {
  background: none;
  content: '';
  position: absolute;
  top: 18%; right: 28%;
  width: 4px; height: 50px;
  background: linear-gradient(180deg, #fff5e0 0%, #ffd89e 30%, transparent 100%);
  border-radius: 2px;
  filter: blur(1px);
  box-shadow: 0 0 16px #ffd89e;
}
.case-mention-img .demo-tag {
  position: absolute;
  top: 8px; right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 6px;
  background: rgba(0,0,0,0.55);
  color: #ffd89e;
  border: 1px solid rgba(255,216,158,0.4);
  z-index: 2;
}
.case-mention-info p { font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.case-mention-info h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 600px) {
  .case-mention { grid-template-columns: 1fr; }
}

footer.svc-foot {
  border-top: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}
footer.svc-foot a { color: var(--ink-2); border: none; }
footer.svc-foot a:hover { color: var(--teal); }

.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.foot-legal-banner {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: left;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.foot-legal-banner p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ====== BLOG ====== */
.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}
.blog-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
  margin-bottom: 64px;
}
.blog-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 24px;
}
.blog-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}
.blog-header h1 em { color: var(--teal); font-style: italic; }
.blog-lead {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 64px;
}
.blog-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 320px;
}
.blog-card.featured {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 56px 48px;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--teal) 4%, var(--bg)) 100%);
}
.blog-card.featured:hover {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--teal) 8%, var(--bg)) 100%);
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: none;
}
.blog-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 20px;
}
.blog-card.placeholder .blog-card-tag { color: var(--ink-2); }
.blog-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}
.blog-card-title em { color: var(--teal); font-style: italic; }
.blog-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink);
}
.blog-card-excerpt,
.blog-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.blog-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.blog-card.placeholder { opacity: 0.45; }
.blog-card.placeholder:hover { opacity: 0.7; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { padding: 32px; }
}

.blog-newsletter {
  margin-top: 48px;
  padding: 48px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
}
.blog-newsletter h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
}
.blog-newsletter p {
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ====== POST INDIVIDUAL ====== */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px;
}
.post .breadcrumb {
  margin-bottom: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.post .breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.post .breadcrumb a:hover { border-bottom-color: var(--teal); color: var(--teal); }
.post .breadcrumb span { margin: 0 8px; opacity: 0.5; }

.post-content {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
}
.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 24px;
}
.post-content h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink);
}
.post-content h1 em { color: var(--teal); font-style: italic; }

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.post-lead {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 40px;
  letter-spacing: -0.005em;
}

.post-content p { margin: 0 0 24px; }
.post-content h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 56px 0 24px;
  color: var(--ink);
}
.post-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  font-weight: 400;
  margin: 36px 0 16px;
  color: var(--ink);
}
.post-content ul,
.post-content ol {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}
.post-content ul li,
.post-content ol li {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px dashed var(--line);
}
.post-content ul li:last-child,
.post-content ol li:last-child { border-bottom: none; }
.post-content ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}
.post-content ol { counter-reset: oli; }
.post-content ol li {
  counter-increment: oli;
}
.post-content ol li::before {
  content: counter(oli);
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  top: 12px;
}
.post-content strong { color: var(--ink); font-weight: 500; }
.post-content em { color: var(--teal); font-style: italic; }
.post-content a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  text-decoration: none;
  transition: opacity 0.15s;
}
.post-content a:hover { opacity: 0.75; }

.post-callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-2);
  border-left: 3px solid var(--teal);
  font-size: 15px;
  line-height: 1.6;
}
.post-callout.warning {
  border-left-color: #ffd89e;
  background: rgba(255,216,158,0.05);
}
[data-theme="light"] .post-callout.warning { background: rgba(232,118,0,0.04); border-left-color: #e87600; }

.post-cta {
  margin: 56px 0 32px;
  padding: 40px 32px;
  background: linear-gradient(180deg, var(--bg-2) 0%, color-mix(in srgb, var(--teal) 8%, var(--bg-2)) 100%);
  border: 1px solid var(--teal);
  text-align: center;
}
.post-cta h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
}
.post-cta p {
  max-width: 580px;
  margin: 0 auto 24px;
}
.post-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  font-style: italic;
}

.post-related {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.post-related h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--teal);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-related li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.post-related li:last-child { border-bottom: none; }
.post-related a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}

/* nav link activo */
.nav-links a.active { color: var(--teal); }
