/* Blog DASER. Tokens de marca idénticos al sitio www.daser.mx.
   Solo colores del manual: #E00E31, #54697F, #698291 y degradado #941935 → #DF1E32. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/outfit-light.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/outfit-bold.woff2") format("woff2"); }

:root {
  --color-red: #e00e31;
  --color-red-deep: #941935;
  --color-red-bright: #df1e32;
  --color-slate: #54697f;
  --color-blue-gray: #698291;
  --color-white: #ffffff;
  --tint: rgba(105, 130, 145, 0.08);
  --line-soft: rgba(105, 130, 145, 0.3);
  --gradient-highlight: linear-gradient(115deg, var(--color-red-deep) 0%, var(--color-red-bright) 100%);
  --font-family: "Outfit", "Avenir Next", "Century Gothic", sans-serif;
  --bold: 700;
  --light: 300;
  --rule: 1px solid var(--color-red);
  --page: 1120px;
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-white); color: var(--color-slate);
  font-family: var(--font-family); font-weight: var(--light);
  font-size: 1.125rem; line-height: 1.7; font-synthesis: none;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b, .eyebrow, .btn, .nav a, .footer-label, .section-title, .meta strong { font-weight: var(--bold); }
h1, h2 { text-wrap: balance; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-slate); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18em; }
h1 span { display: block; color: var(--color-red); }
:focus-visible { outline: 2px solid var(--color-red); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-120%); z-index: 40; background: var(--color-red); color: var(--color-white); padding: 0.6rem 0.9rem; text-decoration: none; font-weight: var(--bold); }
.skip:focus { transform: translateY(1rem); }
.wrap { width: min(var(--page), calc(100% - 2.5rem)); margin-inline: auto; }
.eyebrow { margin: 0 0 0.85rem; color: var(--color-red); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.rule { display: block; width: 3rem; height: 1px; margin-bottom: 1rem; background: var(--color-red); }
.lead { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; }
.section-title { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-slate); padding-bottom: 0.9rem; border-bottom: var(--rule); margin-bottom: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.2rem; border: 1px solid var(--color-red);
  background: var(--color-red); color: var(--color-white); text-decoration: none;
  font-size: 0.9375rem; letter-spacing: 0.02em; line-height: 1.1;
}
.btn:hover { background: var(--color-red-deep); border-color: var(--color-red-deep); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn-light { background: var(--color-white); border-color: var(--color-white); color: var(--color-red); }
.btn-light:hover { background: rgba(255, 255, 255, 0.88); border-color: transparent; color: var(--color-red-deep); }
.btn-outline-light { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--color-white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--color-white); border-bottom: var(--rule); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; line-height: 0; }
.brand img { width: 8.5rem; height: auto; }
.brand-tag { line-height: 1; padding-left: 0.75rem; border-left: var(--rule); color: var(--color-red); font-weight: var(--bold); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--color-slate); font-size: 0.95rem; padding: 0.4rem 0; }
.nav a:not(.btn):hover { color: var(--color-red); }
.nav-hide-sm { display: none !important; }
.nav-home { white-space: nowrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.25rem 0 3rem; border-bottom: 1px solid var(--line-soft); }
.hero-mark { position: absolute; right: -3rem; top: 50%; transform: translateY(-50%); width: 16rem; opacity: 0.07; pointer-events: none; }
.hero .wrap { position: relative; }
.latest { padding: 3rem 0 0.5rem; }

/* Tarjetas */
.card-grid { display: grid; gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.35rem; border: 1px solid var(--line-soft); border-top: 3px solid var(--color-red); background: var(--color-white); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: 0 10px 30px rgba(84, 105, 127, 0.14); transform: translateY(-2px); }
.card-cat { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--bold); color: var(--color-red); position: relative; z-index: 2; }
.card-cat a { text-decoration: none; }
.card-cat a:hover { text-decoration: underline; }
.card-title { margin-top: 0.6rem; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--color-slate); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--color-red); }
.card-desc { margin-top: 0.6rem; font-size: 1rem; }
.card .meta { margin-top: 1rem; }
.card-more { margin-top: 0.9rem; color: var(--color-red); font-weight: var(--bold); text-decoration: none; font-size: 0.95rem; }
.meta { font-size: 0.9rem; color: var(--color-slate); }

@media (min-width: 720px) {
  .card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 3rem; padding: 2rem 2.25rem; }
  .card-featured > * { grid-column: 1; }
  .card-featured .card-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
  .card-featured .card-desc { font-size: 1.1rem; }
  .card-featured::after { content: ""; grid-column: 2; grid-row: 1 / span 5; align-self: stretch; min-height: 12rem; background: url("../assets/brand/logo-icon.svg") center / contain no-repeat; opacity: 0.12; }
}

/* Temas */
.topics { padding: 3.25rem 0 0.5rem; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.topic { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1.1rem 1.2rem; border-left: 3px solid var(--color-red); background: var(--tint); text-decoration: none; }
a.topic:hover, .topic.is-active { background: rgba(224, 14, 49, 0.06); }
a.topic:hover .topic-name { color: var(--color-red); }
.topic-name { font-weight: var(--bold); font-size: 1.1rem; color: var(--color-slate); }
.topic-desc { font-size: 0.95rem; line-height: 1.5; }
.topic-count { margin-top: 0.35rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--bold); color: var(--color-red); }
.topic.is-empty { border-left-color: var(--color-blue-gray); }
.topic.is-empty .topic-count { color: var(--color-slate); }

/* CTA */
.cta { position: relative; overflow: hidden; margin: 3.5rem 0 4rem; padding: 2.25rem 1.5rem; background: var(--gradient-highlight); color: var(--color-white); }
.cta h2 { color: var(--color-white); font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 20em; position: relative; }
.cta p { position: relative; max-width: 36rem; margin-top: 0.75rem; }
.eyebrow-light { color: var(--color-white); }
.cta-mark { position: absolute; right: -1.5rem; bottom: -2rem; width: 11rem; opacity: 0.14; pointer-events: none; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Breadcrumbs y encabezados */
.breadcrumbs { padding-top: 1.5rem; font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "›"; color: var(--color-red); }
.breadcrumbs a { text-decoration: none; color: var(--color-red); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-slate); }
.page-head { padding: 2rem 0 2.5rem; }

/* Artículo */
.post { max-width: var(--measure); margin-inline: auto; }
.post-head { padding: 2rem 0 1.75rem; border-bottom: var(--rule); }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.post-head .meta { margin-top: 1.25rem; }
.toc { margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--tint); border-left: 3px solid var(--color-red); }
.toc-title { font-weight: var(--bold); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.toc ul { margin: 0.6rem 0 0; padding-left: 1.1rem; list-style: square; }
.toc li { margin-top: 0.25rem; font-size: 1rem; }
.toc li::marker { color: var(--color-red); font-weight: var(--bold); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--color-red); text-decoration: underline; }
.prose { padding-top: 0.5rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 2.6vw, 1.95rem); scroll-margin-top: 6rem; }
.prose h3 { margin-top: 2rem; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--color-slate); scroll-margin-top: 6rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose p, .prose li { max-width: none; }
.prose a { color: var(--color-red); }
.prose strong { color: var(--color-slate); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 0; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--color-red); }
.prose ul:has(> li > input[type="checkbox"]) { list-style: none; padding: 1.1rem 1.25rem; background: var(--tint); border-left: 3px solid var(--color-red); }
.prose li:has(> input[type="checkbox"]) { display: flex; gap: 0.65rem; align-items: baseline; }
.prose input[type="checkbox"] { accent-color: var(--color-red); width: 1rem; height: 1rem; flex: none; transform: translateY(0.15rem); }
.prose blockquote { margin-left: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--color-red); font-size: 1.2rem; }
.prose img { display: block; margin-inline: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 0.6rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose hr { border: 0; border-top: var(--rule); margin: 2.5rem 0; }

.share { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--rule); }
.share-title { font-weight: var(--bold); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.share ul { list-style: none; margin: 0.85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--color-red); background: var(--color-white); color: var(--color-red); font: inherit; font-weight: var(--bold); font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--color-red); color: var(--color-white); }
.share svg { width: 1.15rem; height: 1.15rem; }
.disclaimer { margin-top: 1.75rem; font-size: 0.9rem; font-style: italic; }
.related { padding-bottom: 4rem; }

/* 404 */
.missing { padding: 4rem 0 5rem; }
.missing .btn { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--color-slate); color: var(--color-white); border-top: var(--rule); padding: 2.75rem 0 1.5rem; }
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer img { width: 10.5rem; height: auto; }
.site-footer p { margin-top: 0.6rem; font-size: 1rem; }
.footer-label { margin: 0 0 0.6rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-label-gap { margin-top: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.2rem; }
.footer-links a { display: inline-flex; min-height: 2.25rem; align-items: center; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.social-list a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; font-weight: var(--bold); font-size: 0.95rem; }
.social-list svg { width: 1.3rem; height: 1.3rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.footer-base p { margin: 0; font-size: 0.85rem; max-width: 46rem; }

@media (min-width: 720px) {
  .wrap { width: min(var(--page), calc(100% - 4rem)); }
  .nav-hide-sm { display: inline-flex !important; }
  .brand img { width: 10.5rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 3rem 3rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .hero-mark { width: 22rem; right: 2rem; }
}
@media (min-width: 980px) {
  .brand img { width: 12.5rem; }
  .nav { gap: 1.75rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 0.9fr 1.3fr; gap: 2.5rem; }
}
@media (max-width: 380px) {
  .brand img { width: 7rem; }
  .brand { gap: 0.5rem; }
  .brand-tag { padding-left: 0.5rem; font-size: 0.75rem; }
  .nav { gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media print { .site-header, .share, .cta, .site-footer { display: none; } }
