/*
Theme Name: Ruta Sur
Theme URI: https://example.com/ruta-sur
Author: Estudiante IFD2203
Description: Tema académico para un blog de turismo responsable por Chile.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ruta-sur
*/

:root {
  --ink: #17212b;
  --muted: #5b6875;
  --paper: #ffffff;
  --mist: #eef4f2;
  --forest: #175c4b;
  --forest-dark: #0f4337;
  --sun: #e7a83b;
  --line: #dce5e1;
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7faf8; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: var(--forest); }
img { max-width: 100%; height: auto; display: block; }
.site-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); }
.custom-logo { max-height: 48px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; }
.menu a:hover, .menu .current-menu-item > a { color: var(--forest); }
.hero { padding: 76px 0 54px; background: linear-gradient(135deg, #e2f0eb, #fff8e9); }
.eyebrow { color: var(--forest); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 16px; }
h1 { font-size: clamp(2.25rem, 6vw, 4.75rem); max-width: 850px; }
.hero p { max-width: 700px; font-size: 1.18rem; color: var(--muted); }
.content-area { padding: 54px 0 72px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16, 53, 43, .06); }
.card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--forest), #62a693); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 1.45rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.button { display: inline-block; margin-top: 10px; padding: 10px 16px; color: white; background: var(--forest); border-radius: 999px; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--forest-dark); }
.single { max-width: 820px; margin: 0 auto; background: var(--paper); padding: clamp(26px, 5vw, 58px); border-radius: var(--radius); border: 1px solid var(--line); }
.single h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.entry-content > * { max-width: 70ch; }
.entry-content h2 { margin-top: 34px; }
.archive-title { font-size: clamp(2rem, 4vw, 3.5rem); }
.pagination { margin-top: 36px; }
.site-footer { padding: 34px 0; color: #dceae5; background: var(--forest-dark); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: white; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
}
