/* KRONAI · servicios — extiende index.css (tokens, nav, botones, tarjetas, .beam, .product, footer) y blog.css (.post-card) */

body.svc { background: var(--paper); }
.svc .post-card { background: var(--paper); }   /* se usa sobre fondo gris */
.svc .post-grid { padding-bottom: 0; margin-bottom: clamp(56px, 8vw, 96px); }

/* ─── migas ─── */
.svc .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: 13px; color: #86868b; list-style: none; }
.svc .crumbs a { color: #a1a1a6; }
.svc .crumbs a:hover { color: #fff; text-decoration: underline; }
.svc .crumbs li + li::before { content: "/"; margin-right: 6px; color: #48484a; }

/* ─── hero ─── */
.svc-hero { padding: calc(48px + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 104px); overflow: hidden; }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.svc-hero .title { font-size: clamp(40px, 6vw, 76px); margin-bottom: 22px; text-wrap: balance; }
.svc-hero .lede { max-width: 34ch; margin-bottom: 32px; }
.svc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.svc-hero-hub .title { max-width: 14ch; }
.svc-hero-hub .lede { max-width: 46ch; }
.svc-panel.product { margin: 0; max-width: none; }
.svc-panel .ops { border-right: 0; }
.svc-panel .ops-name { min-width: 0; }
.svc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.svc-stats b { display: block; font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.svc-stats span { display: block; margin-top: 6px; font-size: 15px; color: #86868b; max-width: 24ch; }

/* ─── problema / qué construimos ─── */
.svc .title { text-wrap: balance; }
.svc-num { display: block; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 36px; }
.svc .tile { background: var(--paper); }
.svc-card { min-height: 0; }
.svc-card p { max-width: 44ch; }

/* ─── proceso ─── */
.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.svc-steps li { padding: 28px 24px 32px; border-radius: var(--radius); background: var(--dark-3); border: 1px solid var(--line-dark); }
.svc-steps .step-num { display: block; font-size: clamp(56px, 6vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; margin-bottom: 40px; }
.svc-steps h3 { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.svc-steps p { font-size: 15px; line-height: 1.47; color: #a1a1a6; }

/* ─── resultado + stack ─── */
.svc-result { max-width: 760px; margin: 0 auto clamp(56px, 8vw, 96px); background: var(--paper); }
.svc-result .quote-num { font-size: clamp(64px, 8vw, 104px); }
.svc-stack h2, .svc-h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.svc-stack { text-align: center; }
.svc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.svc-chips li {
  padding: 10px 18px; border-radius: 999px; background: var(--paper);
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
}

/* ─── FAQ (details nativo, sin JS) ─── */
.svc-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.svc-faq-grid .head { position: sticky; top: 100px; margin-bottom: 0; }
.svc-faq-grid .title { font-size: clamp(36px, 4.6vw, 60px); }
.svc-faq details { border-bottom: 1px solid var(--line-light); }
.svc-faq details:first-child { border-top: 1px solid var(--line-light); }
.svc-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary h3 { font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.svc-faq summary::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat;
  transition: transform .25s var(--ease-out);
}
.svc-faq details[open] summary::after { transform: rotate(90deg); background-size: 100% 1.6px, 0 0; }
.svc-faq details p { padding: 0 40px 24px 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* ─── tarjetas de otros servicios ─── */
.svc-related .card { min-height: 0; }
.svc-related .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* tarjeta entera clicable */
.svc-related .card h3, .svc-related .card h2 { font-size: clamp(22px, 2vw, 26px); }
.svc-related .card p { margin-bottom: 24px; }
.svc-related .link-arrow { margin-top: auto; }
.svc-h2 + .svc-related, .svc-h2 + .post-grid { margin-top: 0; }

/* ─── CTA final ─── */
.svc-cta { padding: calc(var(--section) * .9) 0; }
.svc-cta .cta-title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 18px; text-wrap: balance; }
.svc-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.svc-cta .card-note { color: #86868b; }

.svc .gnav-links a[aria-current="page"] { opacity: 1; }

@media (max-width: 1000px) {
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 833px) {
  .svc-hero-grid, .svc-faq-grid { grid-template-columns: 1fr; }
  .svc-faq-grid { gap: 0; }
  .svc-faq-grid .head { position: static; margin-bottom: 32px; }
  .svc-stats { grid-template-columns: 1fr; gap: 20px; }
  .svc .grid-2, .svc .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .svc-steps { grid-template-columns: 1fr; }
}

/* tarjetas sobre fondo gris: superficie blanca para que se distingan */
.svc .theme-gray .card { background: var(--paper); }
