:root{
  --bg: #F2F5F0;
  --ink: #17261F;
  --brand: #2F6F5E;
  --brand-dark: #1F4B3F;
  --accent: #D89B2E;
  --card: #E4EEE3;
  --card-line: #C7D8C3;
  --paper: #FFFFFF;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  line-height:1.6;
}
h1,h2,h3,.display{
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-weight:700;
  letter-spacing:-0.01em;
}
.mono{
  font-family:'Courier New', Courier, monospace;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1080px; margin:0 auto; padding:0 24px;}
.wrap-narrow{max-width:760px; margin:0 auto; padding:0 24px;}

/* Header */
header{background:var(--brand-dark); color:var(--paper); padding:18px 0;}
header .wrap{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;}
.logo{display:flex; align-items:baseline; gap:8px; font-size:22px; font-weight:700;}
.logo .cross{display:inline-block; width:16px; height:16px; background:var(--accent); position:relative; border-radius:2px;}
.logo .cross::before, .logo .cross::after{content:""; position:absolute; background:var(--brand-dark);}
.logo .cross::before{ top:6px; left:2px; right:2px; height:4px; }
.logo .cross::after{ left:6px; right:6px; top:2px; bottom:2px; }
nav ul{list-style:none; display:flex; gap:22px; flex-wrap:wrap; font-size:14px;}
nav a{opacity:0.88; padding:4px 0; border-bottom:2px solid transparent;}
nav a:hover{opacity:1; border-color:var(--accent);}

/* Breadcrumb / article header */
.article-head{background:var(--brand); color:var(--paper); padding:40px 0 36px;}
.article-head .crumb{font-size:12px; color:#CFE6DB; margin-bottom:14px;}
.article-head .crumb a{border-bottom:1px solid rgba(255,255,255,0.4);}
.article-head h1{font-size:32px; color:var(--paper); max-width:680px;}
.article-head .meta{margin-top:14px; font-size:12px; color:#CFE6DB;}

/* Article body */
.article-body{padding:44px 0 20px;}
.article-body p{margin-bottom:16px; font-size:16px; color:#233A30;}
.article-body h2{font-size:22px; color:var(--brand-dark); margin:32px 0 12px;}
.article-body ul, .article-body ol{margin:0 0 16px 22px;}
.article-body li{margin-bottom:8px; font-size:15.5px; color:#233A30;}
.article-body table{width:100%; border-collapse:collapse; margin:16px 0 24px; font-size:14.5px;}
.article-body th, .article-body td{border:1px solid var(--card-line); padding:10px 12px; text-align:left;}
.article-body th{background:var(--card); color:var(--brand-dark);}
.article-body strong{color:var(--brand-dark);}

.disclaimer{
  background:#FBF2DD; border:1px solid #EAD7A0; color:#5C4A1E;
  border-radius:10px; padding:18px 20px; font-size:13.5px; margin:36px 0;
}

/* Related */
.related{padding:8px 0 48px;}
.related h3{font-size:15px; color:var(--brand-dark); margin-bottom:14px;}
.related-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px;}
.related-card{
  background:var(--paper); border:1px solid var(--card-line); border-radius:8px; padding:14px 16px;
  border-left:3px solid var(--accent);
}
.related-card .mono{font-size:10px; color:var(--brand); display:block; margin-bottom:6px;}
.related-card span.title{font-size:14px; font-weight:600; color:var(--ink);}

footer{background:var(--brand-dark); color:#CFE6DB; padding:36px 0; font-size:13px; margin-top:20px;}
footer .wrap{display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px;}

/* Homepage-specific */
.hero{background:var(--brand); color:var(--paper); padding:64px 0 56px;}
.hero .eyebrow{font-size:12px; color:#CFE6DB; margin-bottom:14px;}
.hero h1{font-size:42px; max-width:680px; margin-bottom:16px; color:var(--paper);}
.hero p{max-width:520px; font-size:17px; color:#DCEEE4; margin-bottom:28px;}
.search-bar{display:flex; max-width:520px; background:var(--paper); border-radius:8px; overflow:hidden; box-shadow:0 6px 20px rgba(0,0,0,0.18);}
.search-bar input{flex:1; border:none; padding:14px 16px; font-size:15px; color:var(--ink); outline:none;}
.search-bar button{border:none; background:var(--accent); color:var(--brand-dark); font-weight:700; padding:0 22px; cursor:pointer; font-size:14px;}

.section{padding:56px 0;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:10px;}
.section-head h2{font-size:26px;}
.section-head .mono{font-size:11px; color:var(--brand);}

.cat-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px;}
.cat-card{background:var(--card); border:1px solid var(--card-line); border-radius:10px; padding:20px; position:relative;}
.cat-card .mono{font-size:10px; color:var(--brand-dark); opacity:0.65; display:block; margin-bottom:10px;}
.cat-card h3{font-size:18px; margin-bottom:8px; color:var(--brand-dark);}
.cat-card p{font-size:13.5px; color:#3B4C43;}

.fichas{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:0; border-top:1px dashed var(--card-line);}
.ficha{background:var(--paper); border-bottom:1px dashed var(--card-line); border-right:1px dashed var(--card-line); padding:22px 20px; position:relative; transition:background 0.15s ease;}
.ficha:hover{background:var(--card);}
.ficha::before{content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; background:var(--accent);}
.ficha .num{font-family:'Courier New', monospace; font-size:11px; color:var(--brand); display:block; margin-bottom:8px;}
.ficha h4{font-size:16px; margin-bottom:8px; line-height:1.35;}
.ficha h4 a{border-bottom:1px solid transparent;}
.ficha h4 a:hover{border-color:var(--brand-dark);}
.ficha p{font-size:13px; color:#4A5A50;}
.ficha .tag{display:inline-block; margin-top:12px; font-size:10.5px; padding:3px 8px; border-radius:20px; background:var(--card); color:var(--brand-dark); font-family:'Courier New',monospace; letter-spacing:0.03em; text-transform:uppercase;}

@media(max-width:640px){
  .article-head h1{font-size:26px;}
  .hero h1{font-size:30px;}
  nav ul{gap:14px; font-size:13px;}
}
