@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --orange:   #F06A00;
  --orange2:  #D45A00;
  --orange3:  #FF8C2A;
  --orangeXL: #FFF3E8;
  --orangeL:  #FFE0C0;
  --yellow:   #FFB830;
  --white:    #FFFFFF;
  --bg:       #FFF8F2;
  --bg2:      #FFF0E0;
  --text:     #1A0F00;
  --muted:    #7A5A3A;
  --line:     #F0D8C0;
  --shadow:   0 8px 32px rgba(240,106,0,.10);
  --max:      1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit }
img { display: block; max-width: 100% }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(240,106,0,.07);
  transition: background .3s;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px; font-weight: 800; color: var(--text);
}
.nav-logo span { color: var(--orange) }

.nav-links { display: flex; gap: 32px; list-style: none; font-size: 14px; font-weight: 600 }
.nav-links a { color: var(--muted); transition: color .2s }
.nav-links a:hover { color: var(--orange) }

.nav-cta {
  padding: 10px 22px; border-radius: 8px;
  background: var(--orange); color: #fff !important;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 20px rgba(240,106,0,.30);
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px) }

@media (max-width:768px) { .nav-links { display: none } nav { padding: 0 20px } }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/img/img1.jpg") center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(26,15,0,.92) 40%, rgba(26,15,0,.55) 100%),
    linear-gradient(180deg, transparent 55%, rgba(26,15,0,1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 140px 40px 80px; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(240,106,0,.40);
  background: rgba(240,106,0,.15);
  font-size: 12px; font-weight: 700;
  color: var(--orange3); letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange3); box-shadow: 0 0 8px var(--orange3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.5px;
  color: #fff; max-width: 700px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--orange3), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 20px; font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,.65); max-width: 500px;
}
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px }
.htag {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px }

.btn-primary {
  padding: 14px 28px; border-radius: 9px;
  background: var(--orange); color: #fff;
  font-weight: 700; font-size: 14px; border: none;
  box-shadow: 0 10px 30px rgba(240,106,0,.40);
  cursor: pointer; transition: background .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px) }

.btn-ghost {
  padding: 14px 28px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--orange3); background: rgba(240,106,0,.12) }

.btn-outline {
  padding: 14px 28px; border-radius: 9px;
  border: 1.5px solid var(--line); background: var(--white);
  color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .2s, color .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange) }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--orange3), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); margin-top: 5px; text-transform: uppercase; letter-spacing: .5px }

@media (max-width:768px) { .hero-content { padding: 120px 20px 60px } .hero-stats { gap: 20px } }

/* ── SECTIONS ── */
section { padding: 96px 40px }
.container { max-width: var(--max); margin: 0 auto }

.section-label {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; color: var(--text);
}
.section-sub { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 540px }
.orange-line {
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  margin: 14px 0 0;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }

@media (max-width:768px) { section { padding: 64px 20px } }

/* ── DATOS ── */
.datos { background: var(--bg) }
.tiles {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px; margin-top: 48px;
}
.tile {
  padding: 22px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(240,106,0,.12); border-color: rgba(240,106,0,.30) }
.tile-icon { font-size: 26px; margin-bottom: 12px }
.tile small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px }
.tile strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3 }
.tile .hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500 }

@media (max-width:980px) { .tiles { grid-template-columns: repeat(2,1fr) } }
@media (max-width:520px) { .tiles { grid-template-columns: 1fr } }

/* ── GALLERY ── */
.gallery-section { background: var(--white) }
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px; margin-top: 48px;
}
.gallery a {
  display: block; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery a:first-child { grid-row: 1 / 3 }
.gallery a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease }
.gallery a:hover img { transform: scale(1.05) }
.gallery a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,15,0,.45) 100%);
  pointer-events: none;
}
.gallery .cap {
  position: absolute; bottom: 12px; left: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(240,106,0,.85);
  color: #fff; font-size: 12px; font-weight: 700; z-index: 1;
}
@media (max-width:768px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto } .gallery a:first-child { grid-row: auto } }
@media (max-width:480px) { .gallery { grid-template-columns: 1fr } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(26,15,0,.85); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9999 }
.lightbox.open { display: flex }
.lb-img { max-width: min(1100px,96vw); max-height: 86vh; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.5) }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.10); color: #fff; font-size: 18px; cursor: pointer; font-weight: 800; display: grid; place-items: center }

/* ── HISTORIA ── */
.historia { background: var(--bg) }
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center }
.hist-img { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(240,106,0,.12) }
.hist-img img { width: 100%; height: 440px; object-fit: cover; display: block }
.hist-badge {
  position: absolute; bottom: 22px; left: 22px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hist-badge strong { display: block; font-size: 22px; font-weight: 800; color: var(--orange) }
.hist-badge span { font-size: 12px; color: var(--muted); font-weight: 600 }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px }
.tab {
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white); font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.tab.active { border-color: var(--orange); background: var(--orangeXL); color: var(--orange) }
.tab:hover:not(.active) { border-color: rgba(240,106,0,.30); color: var(--orange) }

.panels { margin-top: 20px }
.panel { display: none }
.panel.active { display: block }
.panel-text { font-size: 14px; line-height: 1.75; color: var(--muted) }
.check-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.check-list li::before {
  content: "✓"; width: 20px; height: 20px; border-radius: 6px;
  background: var(--orangeXL); border: 1px solid rgba(240,106,0,.20);
  color: var(--orange); font-size: 10px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
@media (max-width:860px) { .hist-grid { grid-template-columns: 1fr; gap: 36px } }

/* ── LUGARES ── */
.lugares { background: var(--white) }
.places-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 48px }
.place {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.place:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(240,106,0,.12); border-color: rgba(240,106,0,.25) }
.place-img { height: 160px; background: center/cover no-repeat; position: relative }
.place-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,15,0,.35) 100%) }
.place-cat {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; z-index: 1;
}
.place-body { padding: 18px 20px }
.place-body h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px }
.place-body p { font-size: 13px; color: var(--muted); line-height: 1.5 }
@media (max-width:860px) { .places-grid { grid-template-columns: repeat(2,1fr) } }
@media (max-width:520px) { .places-grid { grid-template-columns: 1fr } }

/* ── NOTICIAS ── */
.noticias { background: var(--bg) }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 24px; margin-top: 48px;
}
.news-card {
  background: var(--white); border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(240,106,0,.12); border-color: rgba(240,106,0,.25) }
.news-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--orangeXL);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.news-card:hover .news-card-img img { transform: scale(1.05) }
.news-card-body { padding: 18px 20px }
.news-card-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.news-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.35;
  color: var(--text); margin-bottom: 8px;
}
.news-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px }
.news-card-meta { font-size: 11px; color: var(--muted); font-weight: 500 }
.news-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  grid-column: 1/-1;
}
.news-empty-icon { font-size: 48px; margin-bottom: 14px }

/* Paginación noticias */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-top: 40px;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--white); color: var(--muted);
  transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange) }
.page-btn.dots { border: none; background: transparent; cursor: default }

/* ── STATS BAND ── */
.stats-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 50%, #B34500 100%);
  padding: 72px 40px;
}
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); max-width: var(--max); margin: 0 auto }
.sstat { padding: 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.20) }
.sstat:last-child { border-right: none }
.sstat-icon { font-size: 28px; margin-bottom: 12px }
.sstat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 48px; font-weight: 800; color: #fff; line-height: 1 }
.sstat-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.70); margin-top: 8px; text-transform: uppercase; letter-spacing: .5px }
@media (max-width:860px) { .stats-inner { grid-template-columns: repeat(2,1fr) } .sstat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.20) } }
@media (max-width:480px) { .stats-inner { grid-template-columns: 1fr } }

/* ── MAPA ── */
.mapa { background: var(--bg) }
.mapa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px }
.mapa-box { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow) }
.mapa-bar { padding: 14px 18px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center }
.mapa-bar span { font-size: 13px; font-weight: 700; color: var(--muted) }
.mapa-placeholder { height: 280px; background: linear-gradient(135deg, var(--orangeXL), var(--bg2)); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 14px }
.info-cards { display: flex; flex-direction: column; gap: 14px }
.info-card {
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.info-card:hover { border-color: rgba(240,106,0,.30); transform: translateX(3px) }
.info-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--orangeXL); border: 1px solid rgba(240,106,0,.15); display: grid; place-items: center; font-size: 18px; flex-shrink: 0 }
.info-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 3px; line-height: 1.4 }
@media (max-width:860px) { .mapa-grid { grid-template-columns: 1fr } }

/* ── CTA ── */
.cta {
  background: linear-gradient(105deg, rgba(240,106,0,.08) 0%, transparent 60%), var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 80px 40px; text-align: center;
}

/* ── ARTÍCULO DETALLE ── */
.art-header {
  padding-top: 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.art-header-inner { max-width: var(--max); margin: 0 auto; padding: 48px 40px 0 }
.art-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
}
.art-breadcrumb a:hover { color: var(--orange) }
.art-breadcrumb span { color: var(--orange); font-weight: 600 }
.art-cat {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.art-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px;
}
.art-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--muted); padding-bottom: 32px; flex-wrap: wrap;
}
.art-meta span { display: flex; align-items: center; gap: 5px }
.art-cover {
  width: 100%; max-height: 500px; object-fit: cover;
  border-radius: 16px; box-shadow: 0 8px 40px rgba(240,106,0,.10);
  margin: 32px 0; display: block;
}
.art-content {
  font-size: 15px; line-height: 1.85; color: var(--text); margin-bottom: 48px;
}
.art-content p { margin-bottom: 14px }
.art-content h2, .art-content h3 { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700; margin: 24px 0 10px }
.art-content img { border-radius: 12px; margin: 16px 0 }
.art-wrap { max-width: var(--max); margin: 0 auto; padding: 32px 40px 80px }
@media(max-width:768px){ .art-header-inner,.art-wrap{ padding-left:20px;padding-right:20px } }

/* Related */
.related-section { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 20px }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-top: 20px }
.rel-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(240,106,0,.12) }
.rel-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--orangeXL); display:flex;align-items:center;justify-content:center;font-size:32px }
.rel-card-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s }
.rel-card:hover .rel-card-img img { transform:scale(1.05) }
.rel-card-body { padding: 14px 16px }
.rel-card-cat { font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--orange);margin-bottom:4px }
.rel-card-title { font-family:'Plus Jakarta Sans',sans-serif;font-size:13px;font-weight:700;line-height:1.35;color:var(--text) }

/* 404 */
.page-404 { text-align:center;padding:140px 20px 100px }
.page-404 .code { font-size:80px;font-weight:800;color:var(--orange);line-height:1 }
.page-404 h2 { font-size:22px;font-weight:700;margin:16px 0 10px }
.page-404 p { color:var(--muted);font-size:14px;margin-bottom:28px }

/* ── FOOTER ── */
footer { background: var(--text); padding: 36px 40px }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: #fff }
.footer-logo span { color: var(--orange3) }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.40) }
.footer-links { display: flex; gap: 24px; list-style: none; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.40); text-transform: uppercase; letter-spacing: .5px }
.footer-links a:hover { color: var(--orange3) }
@media (max-width:560px) { footer { padding: 28px 20px } }
