:root {
  --navy: #0a2a4e;
  --gold: #c6921e;
  --cream: #f7efe0;
  --paper: #fffaf0;
  --ink: #12233a;
  --muted: #607086;
  --line: #eadcc4;
  --green: #527a56;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  min-height: 560px;
  padding: 26px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(
      90deg,
      rgba(247, 239, 224, 0.98) 0%,
      rgba(247, 239, 224, 0.88) 48%,
      rgba(10, 42, 78, 0.12) 100%
    ),
    url("https://images.unsplash.com/photo-1518098268026-4e89f1a2cd8e?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center right;
  border-bottom: 10px solid var(--navy);
}

.topbar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  border: 1px solid rgba(10, 42, 78, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
  margin-top: 45px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.88;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.05em;
}

.hero h1 span {
  font-family: cursive;
  color: var(--gold);
  font-size: 0.72em;
  letter-spacing: 0;
}

.subtitle {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 800;
  margin-top: 28px;
  color: var(--navy);
}

.stamp {
  width: 148px;
  height: 148px;
  border: 4px solid var(--navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  font-weight: 900;
  transform: rotate(8deg);
  background: rgba(255, 250, 240, 0.65);
}

.stamp span {
  font-size: 0.88rem;
}

.stamp strong {
  font-size: 1.35rem;
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: -56px auto 0;
}

.card,
.progress-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 20px 60px rgba(10, 42, 78, 0.12);
  margin-bottom: 22px;
}

.intro p {
  text-align: justify;
  font-size: 1.08rem;
}

.intro h2,
.progress-card h2,
.card h2 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.progress-card {
  background: var(--navy);
  color: white;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.progress-head h2 {
  color: white;
  margin: 0;
}

.percent {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
}

.progress-bar {
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f2c65d);
  border-radius: 999px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-top: 8px;
}

.daily-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.daily-note p {
  margin: 0.35rem 0;
}

.daily-note small {
  color: rgba(255, 255, 255, 0.7);
}

/* BLOQUE DE RUTA */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.route-card {
  overflow: hidden;
}

.route-image {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(10, 42, 78, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.route-image:hover {
  transform: scale(1.015);
}

/* DONACIONES */

.donate p {
  font-size: 1.1rem;
}

.bizum-box {
  margin: 24px 0;
  padding: 22px;
  border-radius: 24px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bizum-box span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.bizum-box a {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
}

.bizum-box small {
  font-weight: 700;
}

.button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 950;
}

.follow {
  display: flex;
  gap: 18px;
  align-items: center;
}

.instagram-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 3rem;
  background: radial-gradient(
    circle at 30% 110%,
    #feda75,
    #fa7e1e 26%,
    #d62976 52%,
    #962fbf 74%,
    #4f5bd5
  );
}

.follow p {
  margin: 0;
}

.follow a {
  font-weight: 900;
  color: var(--gold);
}

/* FOOTER */

footer {
  width: min(1120px, calc(100% - 28px));
  margin: 24px auto 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-weight: 800;
}

.crest {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

footer span {
  display: block;
  color: var(--gold);
}

/* ADMIN */

.admin-body {
  background: linear-gradient(135deg, var(--navy), #153f69);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-wrap {
  width: min(520px, 100%);
  margin: 0;
}

.admin-card {
  background: white;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.admin-card h1 {
  margin: 0 0 8px;
  color: var(--navy);
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-weight: 900;
  color: var(--navy);
}

.form input,
.form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  font: inherit;
}

.form button {
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--gold);
  font-weight: 950;
  color: #111;
  font-size: 1rem;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 12px 0;
  font-weight: 800;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.admin-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.admin-links a {
  font-weight: 900;
  color: var(--navy);
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .hero {
    min-height: 520px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stamp {
    display: none;
  }

  .topbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .progress-head {
    align-items: flex-start;
  }

  .follow {
    align-items: flex-start;
  }

  .route-image {
    border-radius: 20px;
  }

  footer {
    align-items: flex-start;
  }

  .crest {
    width: 60px;
    height: 60px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}