:root {
  color-scheme: dark;
  --bg: #09090c;
  --surface: linear-gradient(135deg, rgba(19, 20, 23, 0.92), rgba(9, 9, 12, 0.96));
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --accent: #d59b42;
  --accent-soft: rgba(213, 155, 66, 0.2);
  --error: #ff6b6b;
  --success: #4caf50;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(213, 155, 66, 0.12), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.agenda-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
}

.agenda-card {
  width: min(760px, 100%);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 40px 100px -60px rgba(213, 155, 66, 0.6);
  padding: clamp(2.5rem, 6vw, 3.4rem);
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.6rem);
}

header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  color: var(--accent);
}

header p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.agenda-alert {
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  background: rgba(19, 20, 23, 0.7);
  border: 1px solid var(--accent-soft);
  color: var(--text);
}

.agenda-alert.success {
  border-color: rgba(76, 175, 80, 0.35);
  background: rgba(76, 175, 80, 0.12);
}

.agenda-alert.error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
}

.agenda-alert ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.agenda-form {
  display: grid;
  gap: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

label {
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
}

input,
select,
textarea {
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(213, 155, 66, 0.25);
  background: rgba(9, 9, 12, 0.85);
  color: var(--text);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(213, 155, 66, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.btn-cta {
  margin-top: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #09090c;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -22px rgba(213, 155, 66, 0.55);
}

.agenda-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.obra-nota {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    border-left: 2px solid rgba(213, 155, 66, 0.4);
    padding-left: 0.8rem;
}

/* Cloudflare Turnstile Widget */
.cf-turnstile {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .agenda-card {
    border-radius: 18px;
    padding: 2rem;
  }

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