/* ---------- TOKENS ---------- */
:root {
  --bg: #f3f6f0;
  --bg-soft: #e8efe6;
  --bg-deep: #0b1a12;

  --ink: #121a14;
  --ink-soft: #2d3a30;
  --muted: #637066;
  --line: #d4ddd0;

  --accent: #006d49;          /* verde institucional Grupo Gamma */
  --accent-deep: #04553a;     /* hover / contraste alto */
  --accent-soft: #b9e4d3;     /* tint para subrayados */
  --accent-tint: #ecf7f1;     /* tint para chips / fondos suaves */

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-pop:  0 4px 12px rgba(4, 85, 58, 0.18), 0 18px 40px rgba(4, 85, 58, 0.10);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --max-narrow: 760px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--max-narrow); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 240, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand-divider {
  color: var(--line);
  font-weight: 300;
}
.brand-event {
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  .brand-logo { height: 28px; }
  .brand-divider, .brand-event { display: none; }
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  position: relative; padding: 6px 2px;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

@media (max-width: 600px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 140px) 0 clamp(72px, 14vw, 160px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(151, 215, 0, 0.25);
  border: 1px solid rgba(151, 215, 0, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 28px;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 28px;
  max-width: 20ch;
}
.hero-em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.plus {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  transform: translateY(-0.03em);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.hero-deco {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 109, 73, 0.07), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(151, 215, 0, 0.06), transparent 60%);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-weight: 600; font-size: 15px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* ---------- SECTIONS COMMON ---------- */
.section {
  padding: clamp(72px, 11vw, 130px) 0;
  border-top: 1px solid var(--line);
}
.kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin: 0 0 18px;
}
.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 28ch;
}
.u-accent {
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent-deep) 0%, #97d700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.lede em { color: var(--accent-deep); font-style: italic; font-family: var(--serif); }
.inline-link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.inline-link:hover { color: var(--ink); }

/* ---------- TRACKS ---------- */
.section-tracks { background: var(--bg); }
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 44px 0 36px;
}
@media (min-width: 820px) {
  .tracks-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.track {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.track:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-soft);
}
.track-head { display: flex; flex-direction: column; gap: 12px; }
.track-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(151, 215, 0, 0.25);
  border: 1px solid rgba(151, 215, 0, 0.5);
  padding: 5px 10px;
  border-radius: 999px;
}
.track-title {
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
}
.track-body { color: var(--ink-soft); margin: 0; }
.track-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.tracks-cta {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--ink);
  margin: 12px 0 0;
}

/* ---------- AGENDA ---------- */
.agenda-list {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 14px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.agenda-item:hover {
  border-color: var(--accent-soft);
  background: var(--accent-tint);
}
.agenda-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.agenda-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.agenda-text { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- LOGÍSTICA ---------- */
.section-logistica { background: var(--bg-deep); color: #f6f7f7; border-top-color: var(--bg-deep); }
.section-logistica .kicker { color: rgba(246, 247, 247, 0.55); }
.logi-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 720px) {
  .logi-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}
.logi-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 720px) {
  .logi-item { padding: 36px 28px; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .logi-item:first-child { padding-left: 0; }
  .logi-item:last-child { border-right: 0; padding-right: 0; }
}
.logi-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #97d700;
  margin: 0 0 10px;
  font-weight: 600;
}
.logi-value {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #fff;
}
.logi-sub { margin: 0; color: rgba(246, 247, 247, 0.7); font-size: 0.95rem; }

/* ---------- RSVP ---------- */
.section-rsvp { background: var(--bg); }
.rsvp-form {
  margin-top: 44px;
  display: grid;
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.field { display: grid; gap: 8px; }
.field label, .field legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.optional { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font: inherit;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-radio { border: 0; padding: 0; margin: 0; }
.field-radio legend { margin-bottom: 8px; padding: 0; }
.radio {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.radio:hover { border-color: var(--accent); background: var(--accent-tint); }
.radio input { accent-color: var(--accent); }
.radio span { font-size: 14.5px; }

.form-note {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--muted);
}
.form-note.error { color: #b91c1c; }
.form-note.success { color: var(--accent-deep); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
}
.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}
.footer-tagline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.footer-meta { color: var(--muted); margin: 0; font-size: 13px; }
@media (max-width: 520px) {
  .footer-tagline { display: none; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .track, .nav-cta, .agenda-item { transition: none; }
}

/* ---------- SELECTION & FOCUS ---------- */
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
