/* Páginas internas (blog, artículos y Sobre mí) · se carga después de home.css */

/* Encabezado de página */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 880px; margin-top: 10px; }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero .lead { margin-top: 18px; }

/* Blog: índice y categorías */
.blog-hero { padding: 52px 0 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a {
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background .2s;
}
.chips a span { font-size: 12px; font-weight: 500; opacity: .7; margin-left: 4px; }
.chips a:hover { background: rgba(255,255,255,.16); }
.chips a[aria-current] { background: var(--yellow); color: var(--yellow-ink); box-shadow: none; }
.search { margin-top: 18px; max-width: 440px; }
.search input { width: 100%; padding: 13px 16px; font: 400 15px var(--sans); border: 0; border-radius: 6px; background: #fff; color: #111820; }
.blog-list { padding: 48px 0 96px; }
.blog-list .note { text-align: left; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,59,92,.06); transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,59,92,.14); }
.post[hidden] { display: none; }
.post img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--line); }
.post .meta { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px 0; font-size: 12px; color: var(--muted); }
.post .meta span:first-child { color: var(--num); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post h3 { padding: 8px 20px 22px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.post:hover h3 { color: var(--num); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; gap: 20px; } }

/* Artículo */
.article-head { max-width: 820px; padding: 56px 24px 0; }
.crumbs { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--num); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 16px 0 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--yellow); }
.byline a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cover { max-width: 1000px; margin: 36px auto 0; }
.cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 10px; }

.article-body { max-width: 720px; margin: 44px auto 0; font-size: 18px; line-height: 1.75; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.8em; line-height: 1.2; }
.article-body h3 { font-size: 22px; margin-top: 1.6em; line-height: 1.25; }
.article-body h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.article-body a { color: var(--num); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body li::marker { color: var(--num); }
.article-body blockquote { font-size: 21px; font-style: italic; line-height: 1.45; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); }
.article-body blockquote p + p { margin-top: .6em; }
.article-body figure { margin: 1.8em 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 8px; }
.article-body figcaption, .article-body .caption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.article-body .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.article-body .gallery figure { margin: 0; }
.article-body .table { overflow-x: auto; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--soft); font-weight: 700; }
.article-body pre { white-space: pre-wrap; font-size: 15px; background: var(--soft); border: 1px solid var(--line); padding: 16px; border-radius: 6px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
@media (max-width: 600px) { .article-head { padding: 40px 16px 0; } .article-body { font-size: 17px; } .article-body blockquote { font-size: 19px; } }

.share { max-width: 720px; margin: 52px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.share button { font: 600 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.share button:hover { border-color: var(--yellow); background: var(--yellow); color: var(--yellow-ink); }

.feedback { max-width: 720px; margin: 52px auto 0; }
.feedback[hidden] { display: none; }
.feedback .eyebrow { color: var(--num); }
.rate { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.stars { display: inline-flex; gap: 4px; margin-top: 12px; }
.stars button { font-size: 34px; line-height: 1; padding: 4px; background: none; border: 0; cursor: pointer; color: var(--line); transition: color .15s, transform .15s; }
.stars button.on { color: var(--yellow); }
.stars button:hover { transform: scale(1.12); }
.rate-info { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 1.4em; }
.comments { margin-top: 44px; }
.comments h2 { font-size: clamp(24px, 3vw, 30px); }
.comment-list { list-style: none; padding: 0; margin: 20px 0 0; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .c-head { font-size: 14px; color: var(--muted); }
.comment-list .c-head b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.comment-list .c-text { margin-top: 6px; white-space: pre-line; }
.comment-list .c-empty { color: var(--muted); font-size: 15px; }
.comment-form { display: grid; gap: 14px; margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.comment-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.comment-form input, .comment-form textarea { font: 400 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--num); outline-offset: 1px; }
.comment-form .btn { justify-self: start; }
.comment-form .btn:disabled { opacity: .6; }
.comment-form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; color: var(--muted); }

.author-box { max-width: 720px; margin: 60px auto 0; display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--soft); border-radius: 10px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; border: 3px solid var(--yellow); }
.author-box b { font-size: 18px; font-weight: 800; }
.author-box p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.author-box a { color: var(--num); text-decoration: none; font-weight: 600; }

.post-cta { max-width: 720px; margin: 44px auto 96px; background: var(--navy); color: #fff; border-radius: 10px; padding: 36px; }
.post-cta h2 { font-size: clamp(24px, 3vw, 30px); margin: 10px 0 12px; }
.post-cta p:not(.eyebrow) { color: var(--on-dark-muted); }
.post-cta .ctas { margin-top: 24px; }
@media (max-width: 600px) { .post-cta { padding: 24px; margin-bottom: 72px; } }
.related { background: var(--soft); }
.related .eyebrow { color: var(--num); }

/* Sobre mí */
.about-hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 20px; }
.about-hero h1 em { font-style: normal; color: var(--yellow); }
@media (max-width: 860px) { .about-hero .wrap { grid-template-columns: 1fr; gap: 44px; } .about-hero .portrait-ring { order: -1; width: min(280px, 75%); } }

.story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.story .eyebrow, .sec-head .eyebrow { color: var(--num); }
.story h2 { margin: 10px 0 22px; }
.prose p { font-size: 17px; margin-bottom: 18px; }
.signature { font-size: 22px; font-weight: 800; font-style: italic; color: var(--navy); margin-top: 6px; }
.passions { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.passions li { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.facts { list-style: none; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 10px; padding: 8px 24px; box-shadow: 0 12px 32px rgba(20,59,92,.06); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--num); margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signature, :root:not([data-theme="light"]) .passions li { color: var(--ink); } }
:root[data-theme="dark"] .signature, :root[data-theme="dark"] .passions li { color: var(--ink); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 36px; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-top: 4px solid var(--yellow); border-radius: 8px; padding: 26px 24px; }
.principles h3 { color: var(--yellow); font-size: 22px; margin-bottom: 10px; }
.principles p { color: #DCE9E7; font-size: 15px; }
.band-teal .sec-head .eyebrow { color: var(--yellow); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.cat { display: flex; flex-direction: column; background: var(--navy); color: #fff; border-radius: 10px; padding: 26px 24px; }
.cat h3 { font-size: 20px; margin-bottom: 8px; }
.cat p { font-size: 14px; color: var(--on-dark-muted); }
.cat-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 20px; }
.textlink { color: var(--num); font-weight: 700; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.cat .textlink { color: var(--yellow); }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; } }
.more { margin-top: 36px; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 680px; margin: 10px auto 14px; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .ctas { justify-content: center; }

/* Blog: artículos recomendados */
.featured .eyebrow { color: var(--num); }
.featured h2 { margin: 8px 0 26px; font-size: clamp(24px, 3vw, 32px); }
.featured .all-title { margin: 56px 0 24px; padding-top: 40px; border-top: 1px solid var(--line); }
