/* =========================================================
   R&S Time Work — hoja de estilos principal (rediseño 2026)
   Sin frameworks: variables CSS, grid y flexbox.
   ========================================================= */

/* Fuentes alojadas en el sitio (sin depender de Google Fonts). Licencia en /fonts/LICENCIA.txt */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.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: "Manrope"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/manrope-latin.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 {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13355f;
  --blue-600: #1f6feb;
  --blue-500: #3b82f6;
  --link: #1757c2; /* contraste ≥ 4,5:1 sobre blanco y sobre --bg-soft */
  --blue-100: #e6efff;
  --cyan-400: #38bdf8;
  --green-wa: #1fa855;
  --green-wa-hover: #188a45;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-800); color: #dbe7f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.section--dark .lead { color: #b9cbe4; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--wa { background: var(--green-wa); color: #fff; box-shadow: 0 8px 22px -10px rgba(31, 168, 85, .8); }
.btn--wa:hover { background: var(--green-wa-hover); color: #fff; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: #1a5fd0; color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; }
  .nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dbe7f7;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31, 111, 235, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero::after { /* grilla sutil de fondo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan-400); }
.hero h1 .accent { background: linear-gradient(90deg, #7cc4ff, var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b9cbe4; max-width: 38rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #c9d8ec; }
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust .icon { color: var(--cyan-400); }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-badge {
  position: absolute; left: -1.5rem; bottom: 1.8rem;
  display: flex; align-items: center; gap: .8rem;
  background: #fff; color: var(--ink); padding: .9rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); font-size: .92rem; line-height: 1.3;
}
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge .badge-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .container { gap: 2.5rem; }
  .hero-visual { max-width: 520px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-badge { left: .8rem; bottom: .8rem; }
}

/* ---------- Tarjetas genéricas ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdcf0; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card--pain .card-icon { background: #fdecec; color: #d93636; }

/* ---------- Solución ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; margin-top: .1rem; }
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; color: var(--ink); }
.checklist span { color: var(--ink-soft); }
.media-frame { background: linear-gradient(145deg, var(--blue-100), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-md); }
.media-frame img { border-radius: 10px; width: 100%; }

/* ---------- Productos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.section-head--center + .filters { justify-content: center; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: .5rem 1rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product[hidden] { display: none; }
.product-media { background: linear-gradient(180deg, #f4f7fb, #fff); display: grid; place-items: center; padding: 1.4rem; aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.product-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .25rem .6rem; border-radius: 6px; background: var(--bg-soft); color: var(--navy-700); border: 1px solid var(--line); }
.product-meta { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.product .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Pasos ---------- */
.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { counter-increment: paso; position: relative; padding: 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.steps li::before {
  content: counter(paso, decimal-leading-zero); display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--cyan-400); margin-bottom: .9rem;
}
.steps p { margin: 0; color: #b9cbe4; font-size: 1rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Software ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.feature-list li { display: flex; gap: .55rem; align-items: center; font-weight: 600; }
.feature-list .icon { color: var(--blue-600); }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Guía (contenido largo) ---------- */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.guide-toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 1.2rem; }
.guide-toc p { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.guide-toc a { color: var(--ink-soft); }
.guide-toc a:hover { color: var(--blue-600); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #334155; }
.prose li { margin-bottom: .55rem; }
.prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--blue-600); background: var(--blue-100); border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy-700); font-weight: 500; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .guide-toc { position: static; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-600); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.2rem; margin: 0; }

/* ---------- CCTV ---------- */
.cctv-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.cctv-photo img { width: 100%; }

/* ---------- Banda de cierre y contacto ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem);
  background: radial-gradient(700px 300px at 100% 0%, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #e3eeff; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #d6e5ff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list .card-icon { margin: 0; width: 44px; height: 44px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb3cf; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #cfe0f5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(31, 168, 85, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { /* pulso suave */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-wa);
  animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación al hacer scroll (solo si hay JS y el usuario no pidió menos movimiento) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .card, .product, .btn { transition: none; }
}

/* =========================================================
   Páginas internas: blog y artículos
   ========================================================= */
.page-hero {
  color: #dbe7f7; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.8rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(56, 189, 248, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lead { color: #b9cbe4; max-width: 62ch; margin: 0; }
.page-hero .lead strong { color: #fff; }
.page-hero .eyebrow { color: var(--cyan-400); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.6rem; font-size: .9rem; color: #9fb3cf; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: #cfe0f5; }

.section--article { padding-top: clamp(2.5rem, 5vw, 4rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-layout .prose { max-width: 74ch; }
.prose h3 { margin-top: 1.8rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .closing { font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 2.5rem; }
.byline { font-size: .9rem; color: var(--ink-soft); margin-top: 2rem; }
.toc-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.toc-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.toc-box li { margin: 0; }
.toc-box a { text-decoration: none; font-weight: 500; }
.toc-box a:hover { text-decoration: underline; }
.toc-box--next { background: var(--blue-100); border-color: #cfe0ff; }
.toc-title { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .8rem; }
.aside-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; gap: .9rem; }
.aside-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.aside-card .toc-title { margin: 0; }
.aside-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

.post-card { display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-media { display: grid; place-items: center; background: linear-gradient(180deg, #f4f7fb, #fff); padding: 1rem; border-right: 1px solid var(--line); }
.post-media img { mix-blend-mode: multiply; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.post-body .eyebrow { margin: 0; font-size: .72rem; }
.post-body p { color: var(--ink-soft); margin: 0; }
.post-title { font-size: 1.25rem; margin: 0; }
.post-title a { color: var(--ink); }
.post-body .aside-link { margin-top: auto; }
@media (max-width: 620px) {
  .post-card { grid-template-columns: 1fr; }
  .post-media { border-right: 0; border-bottom: 1px solid var(--line); }
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulario de contacto ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31, 111, 235, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d93636; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 0; }
