/* ============================================================
   site.css — Estilos compartidos por index / insolvencia / contacto.
   Escritos a mano: el build de Tailwind (index.css, contacto.css)
   esta purgado y no incluye clases nuevas.
   ============================================================ */

:root {
    --tm-primary: #0020e6;
    --tm-primary-dark: #0019b4;
    --tm-ink: #111318;
    --tm-muted: #4b5a74;
    --tm-line: #dbdfe6;
    --tm-surface: #ffffff;
    --tm-bg: #f5f5f6;
    --tm-header-h: 5rem;
}

/* --- Anclas: el header sticky de 80px tapaba el destino de cada #hash --- */
html {
    scroll-behavior: smooth;
}

:target,
[id] {
    scroll-margin-top: calc(var(--tm-header-h) + 1.5rem);
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- Foco visible: el sitio no tenia ningun indicador de teclado --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--tm-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Enlace de salto --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    border-radius: 0 0 .5rem 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* --- Tarjetas de servicio: ahora son enlaces reales --- */
.tm-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tm-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tm-primary);
}

.tm-card-cta::after {
    content: "→";
    transition: transform .2s ease;
}

.tm-card-link:hover .tm-card-cta,
.tm-card-link:hover .tm-card-cta::after {
    color: #fff;
}

.tm-card-link:hover .tm-card-cta::after {
    transform: translateX(3px);
}

/* --- Boton secundario (contorno) para CTAs pareadas --- */
.tm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 2rem;
    border: 2px solid var(--tm-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--tm-ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.tm-btn-outline:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

/* --- Migas de pan --- */
.tm-breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
    font-size: .8125rem;
    color: var(--tm-muted);
}

.tm-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-breadcrumb li+li::before {
    content: "/";
    margin-right: .5rem;
    color: #a8b2c1;
}

.tm-breadcrumb a {
    color: var(--tm-muted);
    text-decoration: none;
}

.tm-breadcrumb a:hover {
    color: var(--tm-primary);
    text-decoration: underline;
}

.tm-breadcrumb [aria-current="page"] {
    color: var(--tm-ink);
    font-weight: 600;
}

/* --- Llamada a la accion al cierre del articulo --- */
.tm-article-cta {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 2.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #001034 0%, #0020e6 100%);
    color: #fff;
}

.tm-article-cta h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}

.tm-article-cta p {
    margin: 0 0 1.5rem;
    max-width: 46rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
}

.tm-article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.tm-article-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0 1.75rem;
    border-radius: .5rem;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    background: #fff;
    color: var(--tm-primary);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tm-article-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.tm-article-cta__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
}

.tm-article-cta__btn--ghost:hover {
    border-color: #fff;
}

/* ============================================================
   Pie de pagina
   ============================================================ */
.tm-footer {
    margin-top: 5rem;
    background: #ffffff;
    border-top: 1px solid var(--tm-line);
}

.tm-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}

@media (min-width: 1024px) {
    .tm-footer__inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.tm-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .tm-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tm-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 3rem;
    }
}

.tm-footer__brand img {
    height: 34px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.tm-footer__brand p {
    margin: 0;
    max-width: 34rem;
    color: var(--tm-muted);
    font-size: .875rem;
    line-height: 1.7;
}

.tm-footer__heading {
    margin: 0 0 1.125rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tm-primary);
}

.tm-footer__nav {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.tm-footer__nav a {
    color: var(--tm-muted);
    font-size: .875rem;
    text-decoration: none;
    transition: color .18s ease;
}

.tm-footer__nav a:hover {
    color: var(--tm-primary);
    text-decoration: underline;
}

.tm-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.875rem;
    padding: 0 1.5rem;
    margin-top: .5rem;
    border-radius: .5rem;
    background: var(--tm-primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease;
}

.tm-footer__cta:hover {
    background: var(--tm-primary-dark);
}

.tm-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef0f3;
    text-align: center;
}

@media (min-width: 768px) {
    .tm-footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

.tm-footer__bottom p {
    margin: 0;
    font-size: .75rem;
    color: var(--tm-muted);
}

.tm-footer__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tm-footer__meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--tm-muted);
}

.tm-footer__top-btn {
    border: 0;
    background: none;
    padding: 0;
    font-size: .75rem;
    font-weight: 700;
    color: var(--tm-primary);
    cursor: pointer;
}

.tm-footer__top-btn:hover {
    text-decoration: underline;
}

/* --- Item de navegacion activo --- */
[aria-current="page"].tm-nav-link {
    color: var(--tm-primary);
}

/* --- Encabezado fijo: estaba al 95% de opacidad sin desenfoque, y el contenido
       se transparentaba por debajo al hacer scroll. --- */
body>.sticky.top-0 {
    background-color: var(--tm-bg);
    box-shadow: 0 1px 0 rgba(17, 19, 24, .04), 0 6px 18px -12px rgba(17, 19, 24, .35);
}

@supports (backdrop-filter: blur(10px)) {
    body>.sticky.top-0 {
        background-color: rgba(245, 245, 246, .88);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
    }
}

/* ============================================================
   Enlace cruzado entre guias (usado por insolvencia.html y laboral.html)
   ============================================================ */
.blog-related{
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  border:1px dashed #c9d3ea;
  border-radius:14px;
  padding:18px 20px;
  background:#fbfcff;
}

.blog-related p{
  margin:0;
  flex:1 1 260px;
  font-size:18px;
  line-height:1.55;
  color:#2a3548;
}

.blog-related a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:2.75rem;
  padding:0 1.35rem;
  border-radius:.5rem;
  border:2px solid #0020e6;
  color:#0020e6;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  transition:background-color .18s ease,color .18s ease;
}

.blog-related a:hover{
  background:#0020e6;
  color:#fff;
}

@media (max-width:768px){
  .blog-related{padding:15px 16px}
  .blog-related p{font-size:16px}
}
