/* Parkland Voyage — Estilos v3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}



:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --blue: #1d3557;
  --blue-mid: #457b9d;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --t: .25s cubic-bezier(.4,0,.2,1);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ──────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: transform .3s ease, padding .3s ease, background .3s ease, box-shadow .3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}
header.scrolled {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .7rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

nav { display: flex; align-items: center; gap: .1rem; }
nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--t);
}
nav a:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: .4rem .9rem !important;
  border-radius: 99px !important;
  font-weight: 700 !important;
  margin-left: .4rem;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10,20,40,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }
  nav.open { display: flex; }
  nav a {
    padding: .9rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 1rem;
    width: 100%;
  }
  nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin: .75rem 0 0;
    text-align: center;
    border-radius: var(--radius-sm) !important;
    padding: .75rem !important;
  }
}

/* ── HERO — pantalla completa ────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg,
      rgba(10,15,30,.88) 0%,
      rgba(20,40,80,.75) 50%,
      rgba(30,70,120,.65) 100%),
    url('https://cdn.jsdelivr.net/gh/arsg93/Assets/parklandvoyage/img/hero-bg.jpg') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 6rem;
  max-width: 780px;
  will-change: transform;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #f9c74f, #f4845f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  padding: .9rem 2.2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--t);
  box-shadow: 0 4px 20px rgba(230,57,70,.4);
}
.hero-cta::after { content: '↓'; font-size: 1.1rem; }
.hero-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,57,70,.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: .3rem;
}

/* ── MAIN ────────────────────────────────────────────── */
main { padding: 0 0 6rem; }

/* Offset anchors para header fixed */
.section-header {
  scroll-margin-top: 80px;
}

/* ── SECTION HEADERS ─────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.03em;
  margin: 0;
}
.section-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
  border: 1.5px solid var(--blue-mid);
  padding: .3rem .8rem;
  border-radius: 99px;
  transition: all var(--t);
}
.section-link:hover { background: var(--blue-mid); color: #fff; }

/* ── GRID ────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── CARD ────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover img { transform: scale(1.04); }

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.card-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.card h2 a { color: var(--blue); text-decoration: none; transition: color var(--t); }
.card h2 a:hover { color: var(--red); }
.card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card--featured {
  box-shadow: 0 0 0 2px var(--red), var(--shadow-sm);
  border-color: transparent;
}
.card--featured:hover {
  box-shadow: 0 0 0 2px var(--red), var(--shadow-lg);
}

/* ── ARTICLE HEADER ──────────────────────────────────── */
.article-header {
  padding-top: 80px; /* offset fixed header */
  background: linear-gradient(160deg, #0a0f1e 0%, #1d3557 60%, #2e6d9e 100%);
  color: #fff;
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.article-header .container { position: relative; padding-top: 3rem; }

.article-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto .8rem;
}

.article-header .meta { opacity: .55; font-size: .85rem; font-weight: 500; }

/* ── ARTICLE BODY ────────────────────────────────────── */
.article-body {
  max-width: 760px;
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem;
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-body > * + * { margin-top: 1.3rem; }
.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-top: 2.8rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 2rem;
}
.article-body p { margin-bottom: 1rem; color: #2d2d44; }
.article-body strong { font-weight: 700; color: var(--blue); }
.article-body a { color: var(--blue-mid); }
.article-body a:hover { color: var(--red); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body img {
  width: 100%; border-radius: var(--radius);
  margin: 2rem 0; box-shadow: var(--shadow-md);
}

/* Tablas */
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: .94rem; margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body th {
  background: var(--blue); color: #fff;
  padding: .75rem 1rem; text-align: left;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.article-body td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: #f8fafc; }

/* Tip */
.article-body .tip {
  background: linear-gradient(135deg, #eef6fd, #e8f4fb);
  border-left: 4px solid var(--blue-mid);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .97rem;
  color: #2a4a6b;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #0a0f1e;
  color: rgba(255,255,255,.4);
  padding: 3rem 0;
  text-align: center;
}
.footer-tagline {
  color: rgba(255,255,255,.7);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .6rem;
}
footer a { color: rgba(255,255,255,.5); text-decoration: none; margin: 0 .4rem; transition: color var(--t); }
footer a:hover { color: #fff; }

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
header { transition: all .3s ease; }

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section-header { margin-top: 3rem; }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  main { padding-bottom: 4rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.8rem; }
  nav a { padding: .35rem .45rem; font-size: .82rem; }
}

/* ── Info Box ────────────────────────────────────────── */
.info-box {
  background: linear-gradient(135deg, #f0f7ff, #e8f4fb);
  border: 1px solid #c8dff0;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.info-box-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.info-box-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-mid);
}
.info-box-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Article hero image ──────────────────────────────── */
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  display: block;
}

/* ── Read time badge ─────────────────────────────────── */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-top: .5rem;
}

/* ── Filter bar ──────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border-bottom: 2px solid #eef0f4;
  padding: .6rem 0;
  position: sticky;
  top: 60px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filter-bar .container {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  border: 2px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all .2s;
  background: #f8fafc;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}
.filter-btn.active {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(30,92,163,.25);
}
