:root {
  --green-950: #06291f;
  --green-900: #0a3a2d;
  --green-700: #116b4d;
  --green-500: #1d986d;
  --gold-600: #b88718;
  --gold-400: #d8b15f;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --ink: #18211e;
  --muted: #65716d;
  --line: #e4e8e1;
  --shadow: 0 22px 60px rgba(6, 41, 31, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  min-height: auto;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 41, 31, 0.98), rgba(17, 107, 77, 0.88)),
    url("../img/hero-upfim.svg") center / cover;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(6, 41, 31, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green-950);
  font-weight: 900;
  background: linear-gradient(135deg, #f7df96, var(--gold-400));
  border-radius: var(--radius);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-menu a {
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.section-pad {
  padding: 104px clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1360px;
  min-height: 88vh;
  margin: 0 auto;
  padding-top: 118px;
  padding-bottom: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-400);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 5vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-subtitle {
  color: var(--gold-400);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-logo {
  width: clamp(82px, 9vw, 118px);
  height: auto;
  margin-bottom: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--green-950);
  background: linear-gradient(135deg, #f8df94, var(--gold-400));
  box-shadow: 0 14px 34px rgba(216, 177, 95, 0.24);
}

.btn-secondary {
  color: #fff;
  background: var(--green-700);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(17, 107, 77, 0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost.dark {
  color: var(--green-900);
  background: #fff;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stat {
  position: absolute;
  display: grid;
  gap: 0;
  min-width: 132px;
  padding: 14px 16px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-stat strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-one {
  right: -18px;
  bottom: 32px;
}

.stat-two {
  top: 26px;
  left: -18px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--green-950);
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  color: #fff;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.quick-links a:hover {
  background: var(--gold-600);
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto;
}

.section-intro {
  grid-column: span 2;
  padding-right: 24px;
}

.section-intro p,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
}

.info-card,
.activity-card,
.tournament-card,
.event-card,
.contact-form,
.tournament-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(6, 41, 31, 0.08);
}

.info-card {
  min-height: 258px;
  padding: 24px;
}

.info-card i,
.tournament-card i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: 1.3rem;
  background: linear-gradient(135deg, #f8df94, var(--gold-400));
  border-radius: var(--radius);
}

.info-card p,
.activity-card p,
.tournament-card p,
.event-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 1360px;
  margin: 0 auto 34px;
}

.activities-section,
.events {
  background: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1360px;
  margin: 0 auto 24px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--green-700);
  border-color: var(--green-700);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
}

.activity-card {
  display: flex;
  flex-direction: column;
  min-height: 262px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 135, 24, 0.55);
  box-shadow: var(--shadow);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.35rem;
  background: var(--green-700);
  border-radius: var(--radius);
}

.tag {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--green-900);
  background: #edf7f2;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
}

.activity-card .btn {
  width: 100%;
  margin-top: auto;
}

.activity-card .activity-register-link {
  margin-top: 10px;
}

.registration-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
}

.registration-callout h2 {
  max-width: 840px;
}

.registration-callout p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.callout-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.callout-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.tournaments {
  background: linear-gradient(180deg, #f5f3eb 0%, #fff 100%);
}

.tournament-cards,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto 26px;
}

.tournament-card {
  padding: 24px;
}

.tournament-card strong {
  color: var(--green-700);
}

.tournament-panel {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.select-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(216, 177, 95, 0.16);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 16px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  color: var(--green-900);
  font-size: 1.6rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  background: var(--green-900);
  font-size: 0.85rem;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fbf8;
}

.achievements {
  color: #fff;
  background: var(--green-950);
}

.achievements .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto;
}

.timeline-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.timeline-item span,
.event-card span {
  color: var(--gold-400);
  font-weight: 900;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.72);
}

.event-card {
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.event-card div {
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: 230px;
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--green-900);
  border-radius: var(--radius);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 900;
  background: rgba(6, 41, 31, 0.76);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  max-width: 1360px;
  margin: 0 auto;
}

.contact-info {
  padding: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list i {
  color: var(--gold-400);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-weight: 800;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--green-950);
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.activity-modal {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.activity-modal::backdrop {
  background: rgba(6, 41, 31, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-900);
  background: #f4f7f3;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.6rem;
  background: var(--green-700);
  border-radius: var(--radius);
}

.modal-category {
  color: var(--gold-600);
  font-weight: 900;
}

.modal-register {
  width: 100%;
  margin-top: 12px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--green-700);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.registro-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(251, 250, 245, 0.94), rgba(241, 246, 240, 0.96)),
    url("../img/hero-upfim.svg") center / cover fixed;
}

.registro-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: #fff;
  background: rgba(6, 41, 31, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.registro-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.registro-topbar nav a {
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  font-weight: 800;
}

.registro-topbar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.registro-auth,
.registro-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.registro-auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 146px);
}

.login-card,
.registro-card,
.student-hero,
.activity-option,
.receipt {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 42px);
}

.login-card h1,
.student-hero h1 {
  color: var(--green-950);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.registro-form {
  display: grid;
  gap: 16px;
}

.registro-form label,
.filters-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-weight: 800;
}

.registro-form small {
  color: var(--muted);
  font-weight: 700;
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 800;
}

.alert-error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.alert-success {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.alert-info {
  color: #164e63;
  background: #cffafe;
  border: 1px solid #a5f3fc;
}

.student-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 38px);
}

.student-hero.compact h1 {
  margin-bottom: 8px;
}

.student-status {
  min-width: 240px;
  padding: 18px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.student-status span,
.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-status strong {
  color: var(--green-900);
  font-size: 1.25rem;
}

.student-status.done {
  background: #edf7f2;
  border-color: rgba(17, 107, 77, 0.25);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.summary-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(6, 41, 31, 0.07);
}

.summary-card i {
  color: var(--gold-600);
  font-size: 1.4rem;
}

.registro-card {
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 30px);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.detail-list p {
  margin: 0;
  padding: 12px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters-form {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.2fr 0.9fr auto;
  gap: 14px;
  align-items: end;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.activity-option h2 {
  margin-bottom: 4px;
  color: var(--green-950);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.activity-option p {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-900);
  font-weight: 800;
}

.capacity-box {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  gap: 8px;
}

.capacity-box span {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.capacity-box strong {
  color: var(--green-950);
  font-size: 1.35rem;
  line-height: 1;
}

.btn-disabled,
.btn-disabled:hover {
  color: #6b7280;
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.empty-state {
  display: grid;
  justify-items: start;
}

.empty-state i {
  color: var(--gold-600);
  font-size: 2rem;
}

.confirm-grid,
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.confirm-grid p,
.receipt-grid p {
  margin: 0;
  padding: 14px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt {
  padding: clamp(24px, 5vw, 44px);
}

.receipt-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--green-900);
}

.receipt-logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.receipt-head h1 {
  margin-bottom: 4px;
  color: var(--green-950);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.receipt-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-note {
  margin: 24px 0;
  padding: 16px;
  color: var(--green-900);
  background: #edf7f2;
  border: 1px solid rgba(17, 107, 77, 0.22);
  border-radius: var(--radius);
  font-weight: 800;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.registro-footer {
  padding: 22px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  background: var(--green-950);
}

@media print {
  .registro-topbar,
  .registro-footer,
  .receipt-actions {
    display: none !important;
  }

  .registro-page {
    background: #fff;
  }

  .registro-shell {
    width: 100%;
    padding: 0;
  }

  .receipt {
    box-shadow: none;
    border: 0;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    background: rgba(6, 41, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-visual {
    max-width: 720px;
  }

  .institution-grid,
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-callout,
  .filters-form,
  .activity-option,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .capacity-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section-pad {
    padding: 72px 18px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 168px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-actions .btn,
  .panel-actions .btn {
    width: 100%;
  }

  .quick-links,
  .institution-grid,
  .activity-grid,
  .tournament-cards,
  .event-grid,
  .timeline,
  .stats-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .section-intro {
    grid-column: auto;
    padding-right: 0;
  }

  .panel-top {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .registro-topbar,
  .student-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .registro-topbar nav {
    justify-content: flex-start;
  }

  .summary-grid,
  .detail-list,
  .confirm-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .capacity-box {
    grid-template-columns: 1fr;
  }

  .stat-one,
  .stat-two {
    position: static;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
