/* ============================================================
   Estilos compartidos por las páginas de servicio.
   La home mantiene su CSS embebido (está muy acoplado a su
   estructura); estas páginas comparten un archivo para que se vea
   todo igual y se descargue una sola vez.
   Tokens copiados de index.html — si cambian allá, cambiar aquí.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.05);
  --line-strong: rgba(15, 23, 42, 0.12);
  --violet: #8242f5;
  --violet-ink: #6a2fe0;
  --violet-soft: rgba(130, 66, 245, 0.06);
  --dark: #0b0b0e;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --maxw: 1380px;
  --pad: clamp(1.25rem, 4vw, 3.75rem);
  --r-lg: 24px;
  --r-md: 16px;
  --r-btn: 99px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.narrow {
  max-width: 980px;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}

.nav img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--violet);
}

/* En móvil los enlaces pasan a una segunda fila deslizable en vez de
   desaparecer: con cuatro servicios, esconderlos dejaría la navegación
   prácticamente vacía y no vale la pena un menú hamburguesa para esto. */
@media (max-width:860px) {
  .nav .wrap {
    flex-wrap: wrap;
    row-gap: .7rem;
    padding-bottom: .6rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 1.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 14px;
  }

  .nav .btn {
    padding: .6rem 1.2rem;
    font-size: 13.5px;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: .85rem 1.7rem;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-violet {
  background: var(--violet);
  color: #fff;
}

.btn-violet:hover {
  background: var(--violet-ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ---------- Migas ---------- */
.migas {
  padding-top: 1.6rem;
  font-size: 13px;
  color: var(--ink-faint);
}

.migas a {
  color: var(--ink-faint);
  text-decoration: none;
}

.migas a:hover {
  color: var(--violet);
}

.migas span {
  margin-inline: .45rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 20ch;
  margin-bottom: 1.4rem;
}

.hero h1 .dot {
  color: var(--violet);
}

.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 2.2rem;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Secciones ---------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section.alt {
  background: #fafafa;
  border-block: 1px solid var(--line);
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.section h2 .dot {
  color: var(--violet);
}

.section .desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 2.6rem;
  text-wrap: pretty;
}

.prosa p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  max-width: 68ch;
}

.prosa p+p {
  margin-top: 1.1rem;
}

.prosa strong {
  color: var(--ink);
  font-weight: 650;
}

.prosa a {
  color: var(--violet);
  font-weight: 650;
}

/* ---------- Rejilla de tarjetas ---------- */
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}

.tarjeta {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.7rem;
  background: var(--surface);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.tarjeta:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.tarjeta .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.tarjeta h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .55rem;
  text-wrap: balance;
}

.tarjeta p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Pasos del proceso ---------- */
.pasos {
  display: grid;
  gap: 0;
  counter-reset: paso;
}

.paso {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.4rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line-strong);
}

.paso:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.paso::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--violet);
  line-height: 1.4;
}

.paso h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.paso p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Lista con chulos ---------- */
.chulos {
  list-style: none;
  display: grid;
  gap: .85rem;
}

.chulos li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.chulos svg {
  flex-shrink: 0;
  margin-top: .32em;
  color: var(--violet);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line-strong);
  max-width: 900px;
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--violet);
}

.faq-item summary h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  text-wrap: balance;
}

.faq-icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet);
}

.faq-answer {
  padding: 0 0 1.5rem;
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-answer p+p {
  margin-top: .8rem;
}

.faq-answer strong {
  color: var(--ink);
  font-weight: 650;
}

.faq-answer a {
  color: var(--violet);
  font-weight: 650;
}

/* ---------- Cierre ---------- */
.cierre {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.cierre h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.cierre h2 .dot {
  color: var(--violet);
}

.cierre p {
  color: rgba(255, 255, 255, .68);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}

.cierre .btn-ghost {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: transparent;
}

.cierre .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* ---------- Otros servicios ---------- */
.otros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: .9rem;
}

.otros a {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.2rem 1.35rem;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.otros a:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.otros strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}

.otros span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Pie ---------- */
.pie {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.pie .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.pie p,
.pie a {
  font-size: 13.5px;
  color: var(--ink-faint);
}

.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}

.pie a {
  text-decoration: none;
}

.pie a:hover {
  color: var(--violet);
}

/* ================= BLOG ================= */
.post-lista {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  max-width: 900px;
}

.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: padding-left .3s var(--ease);
}

.post-item:hover {
  padding-left: 1rem;
}

.post-meta {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: .5rem;
  display: flex;
  gap: .6rem;
  align-items: center;
}

.post-tag {
  color: var(--violet);
  font-weight: 650;
}

.post-item h2 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .5rem;
  text-wrap: balance;
  transition: color .2s var(--ease);
}

.post-item:hover h2 {
  color: var(--violet);
}

.post-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.post-flecha {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: all .3s var(--ease);
}

.post-item:hover .post-flecha {
  border-color: var(--violet);
  color: var(--violet);
  transform: scale(1.08);
}

/* ---- artículo ---- */
.articulo {
  max-width: 720px;
}

.articulo .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}

.articulo h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: 2.8rem 0 1rem;
  text-wrap: balance;
}

.articulo h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 .7rem;
}

.articulo p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.articulo p+p {
  margin-top: 1.1rem;
}

.articulo ul,
.articulo ol {
  margin: 1.1rem 0 0 1.3rem;
}

.articulo li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.articulo li+li {
  margin-top: .55rem;
}

.articulo strong {
  color: var(--ink);
  font-weight: 650;
}

.articulo a {
  color: var(--violet);
  font-weight: 650;
}

.articulo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.articulo th,
.articulo td {
  text-align: left;
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.articulo th {
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
  border-bottom-color: var(--line-strong);
}

.articulo td {
  color: var(--ink-soft);
}

.nota {
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}

.nota p {
  font-size: 15.5px;
  margin: 0;
}

.fecha {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
