:root {
  --ink: #17231f;
  --muted: #63716c;
  --green: #1d6b50;
  --green-dark: #0f3f31;
  --green-soft: #e8f3ee;
  --gold: #d2a83b;
  --surface: #ffffff;
  --line: #dfe7e3;
  --soft: #f5f8f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

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

.site-hero {
  min-height: 92vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 63, 49, .96) 0%, rgba(15, 63, 49, .5) 48%, rgba(15, 63, 49, .48) 100%),
    url("../../recursos/images/fondo-header.png") center / cover no-repeat;
}

.hero-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 32px;
}

.brand img {
  width: min(250px, 40vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .16));
}

.nav-actions {
  position: absolute;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.nav-actions a:not(.btn) {
  opacity: .9;
}

.nav-actions a:not(.btn):hover {
  opacity: 1;
}

.hero-content {
  min-height: calc(92vh - 104px);
  display: flex;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  line-height: .9;
  font-weight: 900;
}

.hero-copy .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.35;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 34px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  font-weight: 800;
}

.btn-outline-light {
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.register-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 900;
}

.section-summary,
.section-agenda,
.section-dates,
.section-organizer {
  background: var(--surface);
}

.summary-grid,
.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.summary-grid article,
.dates-grid article,
.cost-card,
.payment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 35, 31, .07);
}

.summary-grid article,
.dates-grid article {
  padding: 24px;
}

.summary-grid span,
.dates-grid span {
  display: block;
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid strong,
.dates-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.summary-grid p,
.dates-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-topics {
  background: var(--green-soft);
}

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

.topic-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  min-height: 82px;
  padding: 18px 22px;
  border: 1px solid rgba(29, 107, 80, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.topic-item span {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 900;
}

.topic-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.45;
}

.agenda-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.event-data-grid article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.event-data-grid span {
  display: block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-data-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.event-data-wide {
  grid-column: span 4;
}

.agenda-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, .9fr) 1.4fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.agenda-row:last-child {
  border-bottom: 0;
}

.agenda-row span {
  color: var(--green);
  font-weight: 900;
}

.agenda-row strong {
  font-size: 1.05rem;
}

.agenda-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-costs {
  background: var(--soft);
}

.cost-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
}

.cost-card {
  overflow: hidden;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}

.cost-row:last-child {
  border-bottom: 0;
}

.cost-row strong {
  color: var(--green);
  font-size: 1.25rem;
  white-space: nowrap;
}

.payment-card {
  padding: 26px;
}

.payment-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.payment-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.payment-card .note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

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

.certificate-note {
  margin-top: 22px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.certificate-note p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.certificate-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-register {
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), #123a42);
}

.register-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.register-header h2,
.register-header p:not(.eyebrow) {
  color: #fff;
}

.register-header p:not(.eyebrow) {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
}

.registration-form {
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.registration-form fieldset {
  margin: 0 0 28px;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.registration-form fieldset:last-of-type {
  margin-bottom: 24px;
}

.registration-form legend {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-control,
.form-select {
  border-color: #cbd8d3;
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .2rem rgba(29, 107, 80, .15);
}

.iti {
  width: 100%;
}

#tema {
  min-height: 96px;
}

.submit-btn {
  min-width: 220px;
}

.section-organizer {
  text-align: center;
}

.organizer-text {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.section-organizer img {
  width: min(360px, 86vw);
  height: auto;
}

.site-footer {
  padding: 28px 16px;
  color: #fff;
  background: var(--green-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 991px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-layout {
    grid-template-columns: 1fr;
  }

  .agenda-row {
    grid-template-columns: 96px 1fr;
  }

  .agenda-row p {
    grid-column: 2;
  }

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

  .event-data-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .site-hero {
    min-height: auto;
  }

  .hero-nav {
    align-items: flex-start;
    padding: 18px;
  }

  .nav-actions {
    right: 18px;
  }

  .nav-actions {
    justify-content: flex-end;
    gap: 10px;
    font-size: .9rem;
  }

  .nav-actions a:not(.btn) {
    display: none;
  }

  .hero-content {
    min-height: auto;
    padding: 48px 18px 64px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .section {
    padding: 56px 0;
  }

  .summary-grid,
  .dates-grid {
    grid-template-columns: 1fr;
  }

  .topic-item {
    grid-template-columns: 54px 1fr;
    padding: 16px;
  }

  .agenda-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .agenda-row p {
    grid-column: auto;
  }

  .event-data-grid {
    grid-template-columns: 1fr;
  }

  .event-data-wide {
    grid-column: auto;
  }

  .cost-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .registration-form {
    padding: 20px;
  }

  .submit-btn {
    width: 100%;
  }
}
