/* ===================================================================
   Familias Unidas de EJE — Stylesheet
   Palette:
     --navy   #1B2E5C  header, buttons, primary text
     --gold   #EDA33A  section backgrounds, accents
     --cream  #FAF3E3  card backgrounds, light sections
     --white  #FFFFFF  text on dark backgrounds
   =================================================================== */

:root {
  --navy: #1b2e5c;
  --navy-dark: #142347;
  --gold: #eda33a;
  --gold-dark: #d98d22;
  --cream: #faf3e3;
  --white: #ffffff;

  --font-heading: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius-pill: 999px;
  --radius-card: 24px;
  --shadow-soft: 0 10px 30px rgba(27, 46, 92, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Buttons & badges -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
}

/* -------------------- Header / Nav -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  color: var(--white);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.15s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--white);
}

/* -------------------- Hero -------------------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin-top: 12px;
}

/* -------------------- Section shells -------------------- */

.section {
  padding: 72px 0;
}

.section--gold {
  background: var(--gold);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section__heading {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.section--navy .section__heading {
  color: var(--white);
}

.section__subheading {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* -------------------- Why a PTO -------------------- */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.why-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}

.why-card__title {
  font-size: 1.2rem;
  color: var(--navy);
}

.why-card__text {
  margin: 0;
  color: var(--navy);
  opacity: 0.85;
}

/* -------------------- Sign-up form -------------------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid #e3dccb;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--navy);
}

.form-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-error {
  display: block;
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1.1em;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.radio-option input {
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  text-align: center;
  padding: 24px;
}

.form-success h3 {
  color: var(--navy);
}

/* -------------------- Events -------------------- */

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.event-card__date-badge {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  text-align: center;
  white-space: nowrap;
}

.event-card__title {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.event-card__meta {
  margin: 0;
  color: var(--navy);
  opacity: 0.75;
  font-size: 0.92rem;
}

.events-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* -------------------- Contact -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-card);
  padding: 26px;
  text-align: center;
}

.contact-card__label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
}

/* -------------------- Information -------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  grid-column: span 2;
}

.info-card + .info-card {
  grid-column: span 1;
}

.info-card h3 {
  color: var(--navy);
}

.info-card p {
  margin: 0;
  opacity: 0.85;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand__logo {
  width: 40px;
  height: 40px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  max-width: 320px;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--white);
  flex-shrink: 0;
}

.footer-qr__caption {
  font-weight: 700;
  color: var(--gold);
  max-width: 140px;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  .why-list {
    grid-template-columns: 1fr;
  }

  .events-list {
    grid-template-columns: 1fr;
  }

  .info-card,
  .info-card + .info-card {
    grid-column: span 1;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    text-align: center;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 721px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
  }
}
