@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300i,600i|Raleway:600,700,800&display=swap");

/* ============================================================
   Actualidades Ruralicos — estilo alineado con el landing
   Paleta: crema #f3dcba · texto #14110c · verde #1B5133 · teal #43d9b8
   ============================================================ */

:root {
	--bg: #f3dcba;
	--surface: #fffdf8;
	--ink: #1d1a14;
	--muted: #6a6152;
	--brand: #1B5133;
	--brand-2: #2f7a4f;
	--accent: #43d9b8;
	--line: rgba(27, 81, 51, 0.14);
	--shadow: 0 18px 45px -25px rgba(30, 25, 12, 0.55);
	--radius: 14px;
	--max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 1.05rem;
	line-height: 1.75;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Topbar ---------- */
.topbar {
	position: sticky; top: 0; z-index: 20;
	background: rgba(243, 220, 186, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-mark { display: flex; align-items: center; gap: 0.6rem; font-family: "Raleway", sans-serif; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-size: 1.15rem; }
.brand-mark img { height: 34px; width: auto; }
.topnav { display: flex; gap: 1.4rem; align-items: center; font-family: "Raleway", sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.topnav a { color: var(--ink); border-bottom: 2px solid transparent; padding-bottom: 3px; }
.topnav a:hover, .topnav a.active { color: var(--brand); border-bottom-color: var(--accent); }

/* ---------- Tags / meta ---------- */
.tag {
	display: inline-block; font-family: "Raleway", sans-serif; font-weight: 700;
	font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--brand); background: rgba(67, 217, 184, 0.22);
	border: 1px solid rgba(27, 81, 51, 0.18);
	padding: 0.28rem 0.7rem; border-radius: 999px;
}
.meta { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
.meta .dot { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Index hero ---------- */
.page-hero { padding: 3.2rem 0 1.4rem; }
.page-hero .eyebrow { font-family: "Raleway", sans-serif; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-2); font-size: 0.8rem; margin-bottom: 0.8rem; }
.page-hero h1 { font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 1rem; color: var(--ink); }
.page-hero p.lead { font-size: 1.18rem; max-width: 720px; color: #3a352b; }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; padding: 1.2rem 0 4rem; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 55px -28px rgba(30, 25, 12, 0.6); }
.card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card h2 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 0.2rem 0 0; letter-spacing: 0; }
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.card .more { margin-top: auto; font-family: "Raleway", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--brand); }
.card .more i { transition: transform 0.2s ease; }
.card:hover .more i { transform: translateX(4px); }

/* ---------- Article ---------- */
.article { background: var(--surface); }
.article-hero { position: relative; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.article-hero .credit {
	position: absolute; bottom: 0; right: 0; background: rgba(20, 17, 12, 0.6); color: #fff;
	font-size: 0.7rem; padding: 0.25rem 0.6rem; letter-spacing: 0.02em;
}
.article-hero .credit a { color: #cfeee2; text-decoration: underline; }

.breadcrumb { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; padding: 1.4rem 0 0; text-transform: uppercase; font-family: "Raleway", sans-serif; font-weight: 700; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.article .content { max-width: 760px; margin: 0 auto; padding: 1rem 1.5rem 3.5rem; }
.article h1 { font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 1rem 0 0.9rem; color: var(--ink); }
.article .article-meta { margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.article .lead { font-size: 1.22rem; line-height: 1.7; color: #33302a; font-weight: 400; border-left: 4px solid var(--accent); padding-left: 1.1rem; margin: 0 0 2rem; }
.article h2 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.3; letter-spacing: 0; margin: 2.4rem 0 0.9rem; color: var(--brand); }
.article p { margin: 0 0 1.3rem; }
.article ul { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.article ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(67, 217, 184, 0.2); }
.article strong { font-weight: 600; }

.source-box { background: #f4efe4; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 2rem 0; font-size: 0.95rem; }
.source-box .label { font-family: "Raleway", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--brand-2); display: block; margin-bottom: 0.4rem; }
.source-box a { word-break: break-word; border-bottom: 1px dotted; }

/* CTA */
.cta {
	margin: 2.6rem 0 0.5rem; background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #eefaf3; border-radius: var(--radius); padding: 1.8rem 1.7rem; box-shadow: var(--shadow);
}
.cta h3 { font-family: "Raleway", sans-serif; font-weight: 800; color: #fff; margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: 0; }
.cta p { color: #d6efe1; margin: 0 0 1.2rem; }
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Raleway", sans-serif; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem;
	background: var(--accent); color: #123; padding: 0.75rem 1.4rem; border-radius: 999px;
	transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: #6fe9cd; color: #123; }

/* Related */
.related { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1.8rem; }
.related h3 { font-family: "Raleway", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--brand-2); margin: 0 0 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.related li::before { display: none; }
.related a { font-family: "Raleway", sans-serif; font-weight: 600; color: var(--ink); }
.related a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #14110c; color: #cbbfa8; margin-top: 3rem; }
.site-footer .wrap { padding: 2.6rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; }
.site-footer h4 { font-family: "Raleway", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: #fff; margin: 0 0 0.7rem; }
.site-footer a { color: #9fe6cd; }
.site-footer .fine { font-size: 0.78rem; color: #8a7f6c; }
.site-footer .credits { font-size: 0.72rem; color: #7d735f; line-height: 1.6; }
.copyright { text-align: center; font-size: 0.78rem; color: #8a7f6c; padding: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.topnav { gap: 0.9rem; font-size: 0.72rem; }
	.brand-mark span { display: none; }
	.article-hero img { max-height: 300px; }
}
