@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #1c3d1c;
  --green-mid: #2a5c2a;
  --orange: #e85d04;
  --orange-light: #ff7b2e;
  --cream: #f8f5f0;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  transition: color 0.3s;
}

nav.scrolled .logo {
  color: var(--green);
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

nav.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--orange) !important;
}

#admin-nav {
  display: none;
}

.btn-nav {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-nav:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('/public/hero.png') center 38% / cover no-repeat;
  animation: slowzoom 20s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-bg {
  display: none;
}

@keyframes slowzoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 25, 10, 0.75) 0%,
      rgba(10, 25, 10, 0.45) 50%,
      rgba(20, 10, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.5);
  color: var(--orange-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeup 0.8s ease both;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 750px;
  animation: fadeup 0.8s 0.15s ease both;
}

.hero-content h1 .highlight {
  color: var(--orange-light);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 44px;
  animation: fadeup 0.8s 0.3s ease both;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeup 0.8s 0.45s ease both;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232, 93, 4, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  position: absolute;
  bottom: 48px;
  left: 24px;
  right: 24px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  z-index: 2;
  animation: fadeup 0.8s 0.6s ease both;
}

.hero-stat {
  color: var(--white);
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-light);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */
.about-section {
  padding: 120px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: white;
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.about-badge strong {
  display: block;
  font-size: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.about-text h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.trail-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.trail-type {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.trail-type:hover {
  transform: translateY(-3px);
}

.trail-type.day {
  border-color: var(--orange);
}

.trail-type.night {
  border-color: #3a3a8a;
}

.trail-type .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.trail-type h4 {
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--green);
}

.trail-type p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════
   EVENTS SECTION
═══════════════════════════════════════ */
.events-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--green);
  margin-top: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 16px auto 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-img-wrap {
  position: relative;
}

.event-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.event-info {
  padding: 24px;
}

.event-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-meta svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.btn-card {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-card:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════════════════════════
   HISTORY SECTION
═══════════════════════════════════════ */
.history-section {
  padding: 100px 0;
  background: var(--green);
}

.history-section .section-header h2 {
  color: white;
}

.history-section .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.history-section .eyebrow {
  color: var(--orange-light);
}

.history-section .eyebrow::before {
  background: var(--orange-light);
}

.history-section .event-card {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: #0e1f0e;
  color: white;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-logo {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalin 0.3s ease both;
}

.modal-box.wide {
  max-width: 720px;
}

@keyframes modalin {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-box h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
  background: white;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.form-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.form-link:hover {
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ADMIN ITEMS
═══════════════════════════════════════ */
.admin-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 10px;
}

.admin-event-item strong {
  font-weight: 700;
  color: var(--green);
}

.admin-event-item small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #e53935;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-delete:hover {
  background: #ffeaea;
}

/* ═══════════════════════════════════════
   EVENT DETAIL MODAL
═══════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.detail-grid img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.detail-right h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}

.detail-right p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0f0;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.register-success {
  background: rgba(44, 124, 44, 0.08);
  border: 1px solid rgba(44, 124, 44, 0.25);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #1e5f1e;
}

.register-success h4 {
  font-size: 1.1rem;
  margin: 10px 0 6px;
}

.photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.photos-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

/* ═══════════════════════════════════════
   PRICE PILLS (cards de evento)
═══════════════════════════════════════ */
.price-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.price-pill {
  display: inline-block;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 50px;
  background: #f0f7f0;
  color: var(--green);
  font-weight: 600;
  border: 1px solid rgba(28, 61, 28, 0.15);
}

.price-pill.required {
  background: rgba(232, 93, 4, 0.08);
  color: var(--orange);
  border-color: rgba(232, 93, 4, 0.2);
}

/* DETAIL MODAL */
.detail-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.detail-info-row span {
  color: var(--text);
}

.detail-info-row strong {
  color: var(--green);
}

.price-block {
  background: #f8f5f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.price-block h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row span {
  color: var(--text-muted);
}

.price-row strong {
  color: var(--green);
  font-weight: 700;
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  border-bottom: 2px solid #eee;
}

.admin-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.admin-tab.active {
  color: var(--green);
  border-bottom-color: var(--orange);
}

.admin-tab:hover {
  color: var(--green);
}

/* PARTICIPANTS TABLE */
.participants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.participants-table th {
  background: var(--green);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.participants-table th:first-child {
  border-radius: 8px 0 0 0;
}

.participants-table th:last-child {
  border-radius: 0 8px 0 0;
}

.participants-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
  white-space: nowrap;
}

.participants-table tr:nth-child(even) td {
  background: #fafafa;
}

.participants-table tr:hover td {
  background: #f0f7f0;
}

.btn-view-regs {
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-view-regs:hover {
  background: var(--green-mid);
}

.btn-export {
  background: #f0f7f0;
  color: var(--green);
  border: 1.5px solid rgba(28, 61, 28, 0.2);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-export:hover {
  background: #d8eed8;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {

  .about-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .about-badge {
    bottom: -14px;
    right: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .footer-brand {
    grid-column: 1/-1;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 28px 20px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }
}