:root {
  --bg: #f3f7fb;
  --bg-gradient: radial-gradient(circle at 0 0, #e0f2fe 0, #f9fafb 45%, #eef2ff 100%);
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 255, 255, 0.96);
  --border-subtle: rgba(148, 163, 184, 0.5);

  --primary: #0284c7;
  --primary-soft: rgba(2, 132, 199, 0.08);
  --accent: #22c55e;

  --text-main: #0f172a;
  --text-soft: #4b5563;

  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* layout base */

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.96),
    rgba(248, 250, 252, 0.85),
    rgba(248, 250, 252, 0.6)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* language switcher */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-btn.active {
  background: radial-gradient(circle at 0 0, #22c55e, #0284c7);
  color: white;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.lang-btn:hover:not(.active) {
  background: rgba(226, 232, 240, 0.9);
}

/* PAGE */

.page {
  padding-bottom: 3rem;
}

/* HERO */

.hero {
  padding-top: 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr);
  gap: 1.75rem;
  align-items: stretch;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.hero-lead {
  color: var(--text-soft);
  max-width: 40rem;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.hero-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-steps li + li {
  margin-top: 0.25rem;
}

.hero-cta-text {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* hero card */

.hero-card {
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
  background: var(--card);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.highlight-title {
  font-weight: 600;
  margin-top: 0;
}

.highlight-body {
  font-size: 0.94rem;
}

/* BUTTONS */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  background: radial-gradient(circle at 0 0, #22c55e, #0284c7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  margin-top: 0.85rem;
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.26);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.btn-approve,
.btn-reset {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.7);
  color: #166534;
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.18);
}

.btn-reset {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.8);
  color: #b91c1c;
}

.btn-reset:hover {
  background: rgba(248, 113, 113, 0.16);
}

/* MANIFESTO */

.manifesto-section {
  margin-top: 1.9rem;
}

.manifesto-header {
  margin-bottom: 0.9rem;
}

.manifesto-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.manifesto-editor {
  border-radius: 18px;
  padding: 1rem 1.15rem;
  background: var(--card-strong);
  border: 1px solid var(--border-subtle);
  min-height: 320px;
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.7;
  white-space: pre-wrap;
  outline: none;
  box-shadow: var(--shadow-soft);
}

/* sugerencias inline */

.del {
  color: #b91c1c;
  text-decoration: line-through;
}

.ins {
  color: #15803d;
}

.hint {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.global-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* PARTICIPACIÓN */

.participation-section {
  margin-top: 2.3rem;
}

.participation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.participation-note {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.submission-form {
  background: var(--card-strong);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.submission-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.12rem;
}

.submission-form input[type="email"],
.submission-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #f9fafb;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
}

.submission-form input:focus,
.submission-form textarea:focus {
  outline: 1px solid var(--primary);
  border-color: transparent;
}

.submission-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(248, 250, 252, 0.9);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-secondary {
  opacity: 0.9;
}

/* RESPONSIVE */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .header-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .shell {
    padding-inline: 1.1rem;
  }

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