/*
Theme Name: CaermaTech
Theme URI: https://caermatech.co.mz
Author: CaermaTech Team
Author URI: https://caermatech.co.mz
Description: Tema editorial para o blog CaermaTech — tecnologia, notícias e dicas em Moçambique.
Version: 3.0
License: GPLv2 or later
Text Domain: caermatech
*/

/* ============================================
   1. ROOT VARIABLES
   ============================================ */
:root {
    --navy: #0B1F3A;
    --navy-soft: #13294B;
    --blue: #2563EB;
    --blue-dark: #1748C7;
    --white: #FFFFFF;
    --gold: #C69E46;
    --gold-soft: #D8B164;
    --bg-soft: #F6F8FB;
    --bg-card: #FFFFFF;
    --line: #E3E8F0;
    --ink: #0F172A;
    --ink-muted: #5B6B84;
    --ink-faint: #8996A9;
    --measure: 68ch;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(11,31,58,0.04), 0 4px 12px -6px rgba(11,31,58,0.08);
    --shadow: 0 20px 60px -20px rgba(15,23,42,0.12);
    --header-h: 64px;
    --utility-h: 38px;
    --transition: 0.2s ease;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, .serif { font-family: 'Merriweather', Georgia, serif; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.25; word-wrap: break-word; overflow-wrap: break-word; }
a { color: #1a4c8a; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }
img, svg { max-width: 100%; display: block; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ============================================
   3. UTILITY CLASSES
   ============================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: var(--white);
    padding: 12px 18px;
    z-index: 300;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   4. CAPULANA RULE (motivo decorativo)
   ============================================ */
.capulana-rule { display: flex; gap: 6px; align-items: center; height: 8px; margin: 0; }
.capulana-rule span { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: 0 0 auto; opacity: .9; }
.capulana-rule.line::before { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.capulana-rule.full { justify-content: center; }
.capulana-rule.full span { opacity: .55; }
.capulana-rule.full span:nth-child(3n) { opacity: 1; background: var(--blue); }

/* ============================================
   5. HEADER (utility bar + masthead) — FIXO, SEM HACKS
   ============================================
   Usamos position: sticky num wrapper único, por isso não
   há necessidade de "padding-top" artificial no body nem
   de sobrepor !important em cascata. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.utility-bar { background: var(--navy); color: #C9D4E5; font-size: 13px; }
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: var(--utility-h); }
.utility-bar .edition { letter-spacing: .04em; }
.utility-bar .edition strong { color: var(--gold); font-weight: 600; }
.utility-bar nav a { margin-left: 18px; color: #C9D4E5; font-size: 12.5px; }
.utility-bar nav a:hover { color: var(--white); }

header.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; min-height: var(--header-h); }

.logo { font-family: 'Merriweather', serif; font-weight: 900; font-size: 24px; color: var(--navy); letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; text-decoration: none; }
.logo .dot { color: var(--gold); }
.logo img.custom-logo { max-height: 44px; width: auto; height: auto; }

.primary-nav { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.primary-nav a { font-size: 14.5px; font-weight: 500; color: var(--navy); padding: 10px 16px; border-bottom: 2px solid transparent; text-decoration: none; transition: color var(--transition), border-color var(--transition); }
.primary-nav a:hover { color: var(--blue); }
.primary-nav a.active { border-bottom-color: var(--gold); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-ghost { font-size: 14px; font-weight: 600; color: var(--navy); padding: 9px 12px; text-decoration: none; }
.btn-gold { background: var(--blue); color: var(--white); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--blue); text-decoration: none; }
.btn-gold:hover { background: var(--blue-dark); color: var(--white); }

/* Botão hambúrguer */
.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; width: 38px; height: 38px; position: relative; z-index: 2; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   6. MAIN / SECTIONS
   ============================================ */
main { display: block; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); color: var(--navy); }
.section-head .see-all { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; }

.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.kicker .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: 0 0 auto; }
.kicker.on-dark { color: #9FC0FF; }

/* ============================================
   7. HERO
   ============================================ */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 56px 0; align-items: stretch; }
.hero-visual { border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 140% at 15% 15%, #14315c 0%, #0B1F3A 55%, #08172c 100%); position: relative; min-height: 260px; display: flex; align-items: flex-end; }
.hero-visual .motif { position: absolute; inset: 0; opacity: .5; }
.hero-visual .tag-float { position: relative; margin: 20px; padding: 8px 12px; background: rgba(255,255,255,0.08); backdrop-filter: blur(2px); color: var(--white); font-size: 12px; letter-spacing: .05em; border: 1px solid rgba(198,158,70,.5); border-radius: var(--radius-sm); }
.hero-main h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 16px; }
.hero-main .dek { font-size: 18px; color: var(--ink-muted); margin-bottom: 20px; max-width: 56ch; }

.meta-row { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #4a5a6a; flex-wrap: wrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Merriweather', serif; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.meta-row .dot-sep::before { content: "·"; margin: 0 2px; color: #8a9aaa; }

.hero-side { display: flex; flex-direction: column; gap: 0; }
.hero-side-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item h3 { font-size: 17px; margin-bottom: 8px; }
.hero-side-item .cat-tag { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; }

/* ============================================
   8. CATEGORY STRIP
   ============================================ */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-strip a, .cat-pill { border: 1px solid var(--line); padding: 9px 16px; border-radius: 20px; font-size: 13.5px; font-weight: 600; color: var(--navy); display: inline-block; }
.cat-strip a:hover, .cat-pill:hover { border-color: var(--blue); color: var(--blue); }

/* ============================================
   9. CARD GRID
   ============================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; }
.card-visual { aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 16px; position: relative; overflow: hidden; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-visual.v1 { background: linear-gradient(135deg, #0B1F3A, #2563EB); }
.card-visual.v2 { background: linear-gradient(135deg, #13294B, #0B1F3A 70%); }
.card-visual.v3 { background: linear-gradient(135deg, #2563EB, #0B1F3A); }
.card-visual:not(:has(img))::after { content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; background: radial-gradient(circle at 100% 100%, rgba(198,158,70,.35), transparent 60%); }
.card h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.4; }
.card p.excerpt { font-size: 15px; color: var(--ink-muted); margin: 0 0 12px; }
.card .cat-tag { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; display: block; }
.card .meta-row { font-size: 12.5px; }

/* ============================================
   10. LATEST LIST
   ============================================ */
.latest-list { display: flex; flex-direction: column; }
.latest-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.latest-item:first-child { padding-top: 0; }
.latest-thumb { width: 120px; aspect-ratio: 4/3; border-radius: var(--radius-sm); background: linear-gradient(160deg, #0B1F3A, #1d3a66); position: relative; overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-thumb:not(:has(img))::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(198,158,70,.25), transparent 60%); }
.latest-body h3 { font-size: 18px; margin-bottom: 6px; }
.latest-body p { font-size: 14.5px; color: var(--ink-muted); margin: 0 0 8px; max-width: 62ch; }
.read-time-tag { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; text-align: right; }

/* ============================================
   11. NEWSLETTER
   ============================================ */
.newsletter { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.newsletter p { color: #c8d4e8; font-size: 15px; max-width: 48ch; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); font-size: 14.5px; }
.newsletter input::placeholder { color: #8a9aaa; }
.newsletter input:focus { outline: 2px solid var(--gold); }
.newsletter button { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 14.5px; padding: 13px 20px; border-radius: var(--radius-sm); border: none; white-space: nowrap; }
.newsletter button:hover { background: var(--gold-soft); }
.newsletter .fineprint { font-size: 12px; color: #7C90B0; margin-top: 10px; max-width: none; }
.newsletter .form-feedback { font-size: 13px; color: var(--gold); margin-top: 8px; }

/* ============================================
   12. FOOTER
   ============================================ */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { font-size: 14px; color: #4a5a6a; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 12px; }

/* ============================================
   13. BREADCRUMB / ARTICLE HEADER
   ============================================ */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); width: 0%; z-index: 1000; transition: width .1s linear; }
.article-header { padding: 44px 0 0; }
.breadcrumb { font-size: 13px; color: #6a7a8a; margin-bottom: 18px; }
.breadcrumb a { color: #1a4c8a; }
.breadcrumb a:hover { color: var(--blue); }
.article-header h1 { font-size: clamp(24px, 4vw, 38px); margin-bottom: 18px; max-width: 100%; }
.article-header .dek { font-size: 19px; color: var(--ink-muted); max-width: var(--measure); margin-bottom: 22px; }
.article-cover { aspect-ratio: 21/9; border-radius: var(--radius); margin: 32px 0; position: relative; overflow: hidden; background: radial-gradient(130% 160% at 80% 0%, #1d3a66 0%, #0B1F3A 55%, #08172c 100%); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .caption { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; font-style: italic; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: flex-start; }
.article-main { min-width: 0; max-width: 100%; }

/* ============================================
   14. TABLE OF CONTENTS
   ============================================ */
.toc { position: relative; padding: 16px 20px; margin-bottom: 32px; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.toc h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 700; }
.toc ul { display: flex; flex-direction: column; gap: 4px; }
.toc a { font-size: 14px; color: var(--ink-muted); padding: 6px 0; display: flex; gap: 10px; align-items: center; text-decoration: none; transition: color var(--transition); }
.toc a .diamond { width: 6px; height: 6px; background: var(--line); transform: rotate(45deg); flex: 0 0 auto; transition: background var(--transition); }
.toc a:hover { color: var(--blue); }
.toc a.active { color: var(--navy); font-weight: 600; }
.toc a.active .diamond { background: var(--gold); }
.toc .reading-time { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.toc[hidden], .toc.is-empty { display: none; }

/* ============================================
   15. ARTICLE BODY
   ============================================ */
.article-body { max-width: var(--measure); font-size: 18px; line-height: 1.8; color: var(--ink); }
.article-body h2 { font-size: 28px; margin: 48px 0 16px; scroll-margin-top: 96px; color: var(--navy); }
.article-body h3 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 96px; color: var(--navy); }
.article-body h4 { font-size: 19px; color: var(--navy); margin: 28px 0 10px; }
.article-body p { margin: 0 0 24px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius-sm); margin: 8px 0; }
.article-body a { color: #1a4c8a; text-decoration: underline; text-decoration-color: #8ab4f8; text-underline-offset: 4px; font-weight: 500; }
.article-body a:hover { color: var(--blue); text-decoration-color: var(--blue); }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 24px; margin: 36px 0; font-family: 'Merriweather', serif; font-style: italic; font-size: 22px; color: var(--navy); line-height: 1.5; }
.article-body code { background: var(--bg-soft); padding: 2px 8px; border-radius: var(--radius-sm); font-size: .9em; color: var(--navy); }
.article-body pre { background: var(--navy); color: #E8EDF4; padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }

/* ============================================
   16. AUTHOR BOX
   ============================================ */
.author-box { display: flex; gap: 18px; padding: 28px; margin: 56px 0 0; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--line); max-width: var(--measure); }
.author-box .avatar { width: 56px; height: 56px; font-size: 18px; }
.author-box h3 { font-size: 17px; margin-bottom: 4px; }
.author-box .role { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.author-box p { font-size: 14.5px; color: var(--ink-muted); margin: 0; }

.related-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ============================================
   17. ARTICLE SIDEBAR
   ============================================ */
.article-sidebar { position: sticky; top: calc(var(--header-h) + var(--utility-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--line); }
.sidebar-widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); font-family: 'Inter', sans-serif; color: var(--navy); }
.popular-list { display: flex; flex-direction: column; }
.popular-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item:first-child { padding-top: 0; }
.popular-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.popular-thumb { flex: 0 0 60px; width: 60px; height: 60px; border-radius: var(--radius-sm); background-size: cover; background-position: center; background-color: #E8EDF4; }
.popular-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--navy); transition: color var(--transition); }
.popular-link:hover .popular-title { color: var(--blue); }
.sidebar-newsletter-text { font-size: 14px; margin-bottom: 14px; color: var(--ink-muted); }
.sidebar-newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.sidebar-newsletter-form input { padding: 10px 14px; border: 1px solid #D9E2EC; border-radius: var(--radius-sm); font-size: 14px; background: var(--white); }
.sidebar-newsletter-form input:focus { outline: none; border-color: var(--blue); }
.sidebar-newsletter-form button { background: var(--blue); color: var(--white); padding: 10px 14px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.sidebar-newsletter-form button:hover { background: var(--blue-dark); }
.sidebar-categories-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sidebar-categories-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-categories-list a { font-size: 14px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-muted); }
.sidebar-categories-list a:hover { color: var(--blue); }
.cat-count { font-size: 12px; color: var(--ink-faint); }

/* ============================================
   18. COMMENTS
   ============================================ */
.comments-wrapper { margin-top: 48px; }
.comments-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 24px; font-family: 'Merriweather', serif; }
.comments-list { margin-bottom: 40px; }
.comment-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #F1F5F9; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.comment-author { font-weight: 600; color: var(--navy); font-size: 15px; }
.comment-date { font-size: 13px; color: var(--ink-faint); }
.comment-moderate { font-size: 12px; color: var(--gold); font-weight: 600; background: #FFF8E6; padding: 2px 8px; border-radius: var(--radius-sm); }
.comment-reply a { font-size: 13px; color: var(--blue); font-weight: 500; }
.comment-reply a:hover { text-decoration: underline; }
.comment-text { font-size: 15px; color: var(--ink); line-height: 1.7; }
.comment-text p { margin: 8px 0 0; }
.children { margin-left: 66px; list-style: none; padding: 0; }

.comment-form-wrapper { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 32px 36px; border: 1px solid var(--line); }
.comment-form-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.comment-form-title { font-size: 18px; font-weight: 700; color: var(--navy); font-family: 'Merriweather', serif; }
.comment-form-subtitle { font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .comment-form-field { position: relative; grid-column: 1 / -1; }
.comment-form .comment-form-field.comment-form-author,
.comment-form .comment-form-field.comment-form-email,
.comment-form .comment-form-field.comment-form-url { grid-column: span 1; }
.comment-form .field-icon { position: absolute; left: 14px; top: 22px; pointer-events: none; }
.comment-form label { display: none; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid #D9E2EC; border-radius: var(--radius-sm); font-size: 14px; background: var(--white); box-sizing: border-box; color: var(--ink); }
.comment-form textarea { padding: 14px 16px; min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.comment-form .comment-form-message textarea { padding-left: 16px; }
.comment-form .btn-submit-comment { grid-column: 1 / -1; background: var(--blue); color: var(--white); padding: 14px 32px; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; width: 100%; max-width: 260px; justify-self: start; transition: all var(--transition); }
.comment-form .btn-submit-comment:hover { background: var(--blue-dark); transform: translateY(-2px); }
.comment-form .logged-in-as { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); margin: 0 0 8px; }
.comment-form .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form .cancel-comment-reply-link { grid-column: 1 / -1; font-size: 13px; color: var(--blue); }
.comment-navigation { margin: 24px 0; display: flex; gap: 8px; }
.comment-navigation a, .comment-navigation .page-numbers.current { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); font-size: 14px; }
.comment-navigation .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.comment-navigation a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================
   19. PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .page-numbers:hover:not(.current) { background: var(--bg-soft); }

/* ============================================
   20. PÁGINAS ESTÁTICAS (Sobre / Contacto)
   ============================================ */
.static-hero { padding: 80px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.static-hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
.static-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: #EFF6FF; padding: 6px 16px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 20px; }
.static-hero-content h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: -.02em; }
.static-hero-content p { font-size: 19px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 30px; }
.hero-line { width: 60px; height: 3px; background: var(--blue); border-radius: var(--radius-sm); margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-content-full { background: var(--white); padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.about-text p { font-size: 17px; line-height: 1.8; color: #334155; margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--ink); }
.about-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-icon { width: 48px; height: 48px; background: #EFF6FF; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.value-item h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.value-item p { font-size: 14px; color: var(--ink-faint); margin: 0; line-height: 1.5; }

.contact-section { padding: 60px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.contact-form-wrapper { background: var(--white); padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-form-wrapper h2 { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-subtitle { font-size: 15px; color: var(--ink-faint); margin-bottom: 32px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; background: var(--white); border: 1px solid #D9E2EC; border-radius: var(--radius); padding: 16px 18px; font-size: 15px; transition: all var(--transition); color: var(--ink); box-sizing: border-box; }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.btn-submit { width: 100%; height: 56px; border: none; border-radius: var(--radius); background: var(--blue); color: var(--white); font-size: 16px; font-weight: 600; transition: all var(--transition); }
.btn-submit:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 15px 35px rgba(37,99,235,.25); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.feedback-message { margin-top: 16px; font-size: 14px; text-align: center; display: none; }
.feedback-message.success { display: block; color: #16A34A; }
.feedback-message.error { display: block; color: #DC2626; }
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.info-card, .social-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.info-card h3, .social-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-icon { width: 46px; height: 46px; background: #EFF6FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.info-item p { margin: 4px 0 0; font-size: 14px; color: var(--ink-faint); }
.info-item a { color: var(--blue); }
.info-item a:hover { text-decoration: underline; }
.social-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #334155; font-size: 15px; font-weight: 500; border-bottom: 1px solid #F1F5F9; transition: all var(--transition); }
.social-link:last-child { border-bottom: none; padding-bottom: 0; }
.social-link:first-child { padding-top: 0; }
.social-link .social-icon { width: 38px; height: 38px; background: #F1F5F9; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.social-link .social-arrow { margin-left: auto; color: #CBD5E1; font-size: 18px; transition: all var(--transition); }
.social-link:hover { color: var(--blue); }
.social-link:hover .social-icon { background: var(--blue); }
.social-link:hover .social-icon svg { fill: var(--white); }
.social-link:hover .social-arrow { color: var(--blue); transform: translateX(4px); }

/* ============================================
   21. WORDPRESS SPECIFIC
   ============================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.article-body .wp-block-image img { height: auto; max-width: 100%; }
.bypostauthor { display: block; }

/* ============================================
   22. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 320px; gap: 40px; }
    .article-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .primary-nav { display: none; position: fixed; inset: 0; top: calc(var(--utility-h) + var(--header-h)); background: var(--white); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 12px 24px; overflow-y: auto; z-index: 998; }
    .admin-bar .primary-nav { top: calc(var(--utility-h) + var(--header-h) + 32px); }
    body.nav-open .primary-nav { display: flex; }
    body.nav-open { overflow: hidden; }
    .primary-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; width: 100%; }
    .primary-nav a.active { border-bottom: 1px solid var(--line); color: var(--gold); }
    .menu-toggle { display: block; }
    .utility-bar nav { display: none; }
}
@media (max-width: 768px) {
    .article-header h1 { font-size: 28px; }
    .hero-main h1 { font-size: 26px; }
    .card h3 { font-size: 17px; }
    .section-head h2 { font-size: 24px; }
    .article-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .about-values { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; padding-top: 30px; }
    .about-content-full { padding: 32px 24px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .static-hero { padding: 60px 0 30px; }
    .contact-form-wrapper { padding: 32px 24px; }
    .contact-section { padding: 40px 0 60px; }
    .info-card, .social-card { padding: 28px 24px; }
    .contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .comment-form-wrapper { padding: 24px 20px; }
    .comment-form { grid-template-columns: 1fr; }
    .comment-form .comment-form-field.comment-form-author,
    .comment-form .comment-form-field.comment-form-email,
    .comment-form .comment-form-field.comment-form-url { grid-column: 1 / -1; }
    .comment-form .btn-submit-comment { max-width: 100%; }
    .children { margin-left: 40px; }
}
@media (max-width: 680px) {
    .card-grid { grid-template-columns: 1fr; }
    .latest-item { grid-template-columns: 80px 1fr; }
    .read-time-tag { grid-column: 2/3; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-main h1 { font-size: 24px; }
    .article-header h1 { font-size: 24px; }
    .newsletter form { flex-direction: column; }
    .newsletter { padding: 28px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .article-body h3 { font-size: 18px; }
    .article-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .article-header h1 { font-size: 20px; }
    .hero-main h1 { font-size: 20px; }
    .article-body { font-size: 15px; }
    .static-hero-content h1 { font-size: 28px; }
    .static-hero-content p { font-size: 16px; }
    .contact-form-wrapper { padding: 24px 16px; }
    .form-group input, .form-group textarea { padding: 14px 16px; font-size: 14px; }
    .btn-submit { height: 52px; font-size: 15px; }
    .contact-sidebar { grid-template-columns: 1fr; gap: 20px; }
    .info-card, .social-card { padding: 24px 20px; }
    .about-content-full { padding: 24px 16px; }
    .about-text p { font-size: 15px; }
    .comment-form-wrapper { padding: 16px 14px; }
    .children { margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
