:root {
  --green: #2f6f4e;
  --blue: #167a91;
  --yellow: #f4bd4a;
  --orange: #e8763d;
  --dark: #1d2524;
  --muted: #61706c;
  --bg: #f8f6ef;
  --line: #dbe4de;
  --shadow: 0 14px 34px #18302b24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
img, iframe { max-width: 100%; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: #f8f6eff0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand, .nav, .btn, .music-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}
.brand { gap: 9px; margin-right: auto; }
.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
}
.nav { gap: 6px; }
.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.nav a:hover, .nav a:focus-visible { color: white; background: var(--green); outline: 0; }
.menu-btn { display: none; }
.music-btn {
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: .82rem;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 6px 14px #167a912b;
  cursor: pointer;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: 100px clamp(18px, 5vw, 72px) 58px;
  color: white;
  background:
    linear-gradient(90deg, #142a21d9, #142a2155),
    url("https://escapadas.mexicodesconocido.com.mx/wp-content/uploads/2022/08/presa-en-huauchinango-puebla.jpg") center/cover;
}
.hero-text { max-width: 780px; }
.tag {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.hero .tag { color: var(--yellow); animation: pulse 2.8s infinite; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .96; }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }
.hero p { max-width: 680px; font-size: 1.12rem; color: #ffffffe8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  min-height: 46px;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--dark);
  background: var(--yellow);
  box-shadow: 0 8px 18px #00000022;
  transition: transform .18s, box-shadow .18s;
}
.btn.primary { color: white; background: linear-gradient(135deg, var(--orange), #c9502b); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #0000002b; }
.yt-btn::before { content: "▶"; margin-right: 8px; }

.section { padding: 72px clamp(18px, 5vw, 72px); }
.split, .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}
.section p { color: var(--muted); }
.photo, .card, .stats article, .actions article, .video {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.stats, .actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 18px;
}
.stats article, .actions article, .card { padding: 22px; }
.stats strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}
.stats span { color: var(--muted); }

.bar {
  display: grid;
  grid-template-columns: 105px 1fr 45px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: .92rem;
}
.bar::before {
  content: "";
  height: 22px;
  width: calc(var(--v) * 1%);
  min-width: 22px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  border-radius: 999px;
  animation: grow 1s both;
}
.bar b { color: var(--green); }

.soft { background: #eaf1ec; }
.table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: white; }
th, td { padding: 13px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: white; background: var(--green); }

.actions { grid-template-columns: repeat(4, 1fr); }
.actions b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
}
.video { overflow: hidden; background: #111; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; object-fit: cover; }

.challenge { color: white; background: var(--dark); }
.challenge .tag { color: var(--yellow); }
.challenge ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  max-width: 880px;
  padding-left: 24px;
}
.challenge li { padding: 6px 0; }
.footer { padding: 26px clamp(18px, 5vw, 72px); color: #d9e2dc; background: #14211f; }
.footer p { margin: 6px 0; }
.footer a { color: var(--yellow); }

@keyframes pulse { 50% { opacity: .65; } }
@keyframes grow { from { width: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .menu-btn {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    font-size: 1.25rem;
  }
  .nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .split, .info-grid, .stats, .actions, .challenge ol { grid-template-columns: 1fr; }
  .music-btn { order: 3; margin-left: auto; padding: 6px 10px; font-size: .78rem; }
}
@media (max-width: 600px) {
  .header { padding: 10px 14px; }
  .brand { font-size: .9rem; }
  .music-btn { padding: 6px 9px; font-size: .74rem; }
  .hero { min-height: 82vh; padding: 92px 18px 42px; }
  .hero-actions, .btn { width: 100%; }
  .section { padding: 54px 18px; }
  .bar { grid-template-columns: 88px 1fr 40px; font-size: .82rem; }
}
