* { box-sizing: border-box; }

:root {
  --green: #23483d;
  --green-dark: #18372f;
  --green-soft: #e9efea;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --gold: #c49a59;
  --gold-soft: #e8dcc8;
  --ink: #26352f;
  --muted: #69756e;
  --line: #e4e8e1;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --max-width: 1120px;
  --space: clamp(16px, 3vw, 28px);
  --radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* Focus visible for keyboard navigation */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Topbar */
.topbar {
  height: 84px;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(35,72,61,.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand strong { font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav a {
  color: #43544b;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  white-space: nowrap;
}
nav a:hover,
nav a:focus,
.inline-link:hover,
.inline-link:focus { color: var(--gold); }

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.menu-toggle:focus-visible { outline-offset: 4px; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 14;
  opacity: 0;
  transition: opacity .2s;
}
.nav-overlay.visible { display: block; opacity: 1; }

/* Hero - gradient background instead of external image */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #1a3d32 0%, #23483d 50%, #18372f 100%);
  min-height: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 690px;
  object-fit: contain;
  object-position: center;
  background: #e9e2d3;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--space) clamp(48px, 6vw, 72px);
}

.eyebrow, .section-kicker {
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow { color: #e4c994; margin-bottom: 16px; display: block; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.12;
  font-weight: 500;
  margin: 16px 0 20px;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.hero-content > p {
  color: rgba(255,255,255,.88);
  max-width: 540px;
  font-size: clamp(15px, 1.8vw, 18px);
  margin: 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s, background .2s, box-shadow .2s;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.button:focus-visible { outline-offset: 3px; }
.button-light { background: var(--paper); color: var(--green); }
.button-light:hover { background: #f5f3eb; }
.button-green { background: var(--green); color: white; }
.button-green:hover { background: var(--green-dark); }

.text-link {
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s;
}
.text-link:hover { opacity: .8; }

.hero-note {
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: clamp(20px, 4vw, 40px);
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.note-mark { color: #e4c994; font-size: 23px; line-height: 1; }
.hero-note i { color: #d9bd88; font-style: normal; margin: 0 5px; }

/* Section wrapper */
.section-wrap { max-width: var(--max-width); margin: auto; padding-left: var(--space); padding-right: var(--space); }

/* Welcome */
.welcome { padding-top: clamp(80px, 10vw, 110px); padding-bottom: clamp(80px, 10vw, 110px); }
.section-kicker { color: #9a7947; margin-bottom: 18px; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: start; }

h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.5vw, 43px); line-height: 1.2; color: var(--green); margin: 0; }

.welcome-grid p { margin: 8px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #c9d4cb;
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.inline-link:hover { border-color: var(--gold); }
.inline-link span { margin-left: 4px; transition: transform .2s; }
.inline-link:hover span { transform: translateX(3px); }

/* Schedule */
.schedule-section { background: var(--cream); padding: clamp(70px, 8vw, 90px) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 38px; flex-wrap: wrap; }
.section-heading > p { max-width: 380px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.activity-card {
  background: var(--paper);
  padding: 28px 24px 30px;
  border: 1px solid #eceee8;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.activity-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,61,48,.08); border-color: var(--gold-soft); }
.activity-card::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: var(--gold); border-radius: 2px 2px 0 0; }

.activity-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #7b877f; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; flex-wrap: wrap; }
.activity-type { color: #638071; background: var(--green-soft); padding: 4px 10px; border-radius: 999px; font-size: 9px; white-space: nowrap; }
.activity-time { font-family: var(--serif); color: var(--gold); font-size: clamp(24px, 3vw, 32px); margin: 8px 0 4px; line-height: 1.2; }
.activity-card h3 { font-family: var(--serif); font-size: 20px; color: var(--green); margin: 0 0 8px; font-weight: 600; line-height: 1.3; }
.activity-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; flex-grow: 1; }

.updated-line { margin: 20px 0 0; color: #879087; font-size: 11px; text-align: center; }

/* Participate */
.participate { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10%; align-items: center; padding-top: clamp(80px, 10vw, 110px); padding-bottom: clamp(80px, 10vw, 110px); }
.participate-copy p { color: var(--muted); font-size: 15px; max-width: 520px; margin: 20px 0 28px; line-height: 1.7; }
.participate-side { background: var(--green); color: white; padding: clamp(36px, 5vw, 48px); min-height: 240px; position: relative; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; }
.quote-symbol { color: #d8bd8b; font-family: var(--serif); font-size: 70px; line-height: .8; margin-bottom: 8px; }
.participate-side p { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 28px); line-height: 1.35; margin: 0 0 16px; }
.participate-side small { color: rgba(255,255,255,.65); font-size: 12px; }

/* Other Links */
.other-links { background: #f2f4ef; padding: clamp(70px, 8vw, 90px) 0; }
.other-links h2 { margin-bottom: 34px; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { background: var(--paper); border: 1px solid #e7ebe4; padding: 24px 22px; border-radius: var(--radius); min-height: 190px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; text-decoration: none; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,61,48,.08); border-color: var(--gold-soft); }
.resource-card:focus-visible { outline-offset: 3px; }
.resource-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); font-size: 18px; margin-bottom: 12px; flex-shrink: 0; transition: background .2s, color .2s; }
.resource-card:hover .resource-icon { background: var(--green); color: white; }
.resource-card h3 { color: var(--green); font-family: var(--serif); font-size: 19px; margin: 0 0 6px; font-weight: 600; line-height: 1.3; }
.resource-card p { color: var(--muted); font-size: 12px; margin: 0 0 16px; line-height: 1.6; flex-grow: 1; }
.resource-link { display: inline-flex; align-items: center; gap: 6px; color: #9a7947; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: color .2s; }
.resource-card:hover .resource-link { color: var(--gold); }

/* Contact */
.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7%; align-items: start; padding-top: clamp(80px, 10vw, 110px); padding-bottom: clamp(80px, 10vw, 110px); }
.contact-copy h2 { max-width: 400px; }
.contact-copy > p { color: var(--muted); font-size: 14px; margin: 20px 0 8px; line-height: 1.6; }
.contact-copy .contact-detail { font-size: 12px; margin-top: 5px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.map-frame { height: 360px; overflow: hidden; background: var(--green-soft); border-radius: var(--radius); }
.map-frame iframe { border: 0; width: 100%; height: 100%; display: block; }

/* Footer institucional */
.site-footer { background: var(--green-dark); color: white; padding: 64px var(--space) 24px; }
.footer-inner { max-width: var(--max-width); margin: auto; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.1fr 1.1fr; gap: clamp(24px, 4vw, 54px); padding-bottom: 48px; }
.footer-about { min-width: 0; }
.footer-brand { display: flex; gap: 13px; align-items: center; color: white; font-family: var(--serif); font-size: 18px; line-height: 1.25; font-weight: 600; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer-about h2 { color: #f2e8d6; font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; margin: 25px 0 12px; }
.footer-about > p { color: rgba(255,255,255,.66); font-size: 13px; max-width: 330px; line-height: 1.75; margin: 0 0 25px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-column h3 { color: #e4c994; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 10px; }
.footer-column a, .footer-column p { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; margin: 0; transition: color .2s; }
.footer-column a:hover, .footer-column a:focus-visible { color: #f0d8b8; }
.footer-contact p { margin-bottom: 2px; }
.footer-instagram { display: inline-flex; align-items: center; gap: 12px; color: #f4dfbd; width: fit-content; padding: 10px 15px 10px 12px; border: 1px solid rgba(228,201,148,.42); border-radius: 4px; transition: background .2s, border-color .2s, transform .2s; }
.footer-instagram:hover { background: rgba(228,201,148,.1); border-color: #e4c994; transform: translateY(-2px); }
.footer-instagram svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-instagram .instagram-dot { fill: currentColor; stroke: none; }
.footer-instagram span:nth-child(2) { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.footer-social-arrow { font-size: 15px; opacity: .8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; color: rgba(255,255,255,.52); font-size: 11px; flex-wrap: wrap; gap: 12px; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  z-index: 15;
  right: var(--space);
  bottom: var(--space);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #287b55;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
  animation: pulse 2.5s ease-in-out infinite;
}
.floating-whatsapp:hover { transform: scale(1.08); background: #226b48; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.floating-whatsapp:focus-visible { outline-offset: 4px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 24px rgba(40,123,85,.4); } 50% { box-shadow: 0 6px 24px rgba(40,123,85,.2); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .welcome-grid { gap: 8%; }
  .participate { gap: 8%; }
  .contact-section { gap: 5%; }
}

@media (max-width: 760px) {
  .topbar { height: 72px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .menu-toggle { display: block; z-index: 16; }
  nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(24px, 5vh, 40px) var(--space) clamp(32px, 8vh, 50px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    z-index: 15;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
  }
  nav.open { display: flex; }
  nav a { font-size: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); width: 100%; }
  nav a:last-child { border-bottom: none; }

  .hero { min-height: 0; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-content > p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-note { left: var(--space); right: var(--space); bottom: 16px; justify-content: center; }

  .welcome, .participate, .contact-section { padding-top: clamp(60px, 8vw, 80px); padding-bottom: clamp(60px, 8vw, 80px); }
  .welcome-grid, .participate, .contact-section { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 36px); }
  .welcome-grid > div:first-child { text-align: center; }
  .welcome-grid h2 { text-align: center; }
  .welcome-grid .inline-link { margin: 0 auto; }

  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }

  .schedule-section, .other-links { padding: clamp(60px, 8vw, 80px) 0; }
  .schedule-grid, .links-grid { grid-template-columns: 1fr; }
  .activity-card { min-height: auto; }
  .participate-side { padding: clamp(28px, 5vw, 36px); text-align: center; }
  .quote-symbol { font-size: 56px; }
  .participate-side p { font-size: clamp(20px, 4vw, 24px); }
  .map-frame { height: 280px; }
  .contact-actions { justify-content: center; }
  .contact-copy { text-align: center; }
  .contact-copy h2 { max-width: 100%; margin: 0 auto; }
  .contact-copy > p { max-width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about > p { max-width: 520px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 26px; }
}

@media (max-width: 480px) {
  :root { --space: 16px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .button { padding: 12px 18px; font-size: 12px; }
  .activity-card { padding: 22px 18px; }
  .resource-card { padding: 20px 18px; }
  .participate-side { padding: 24px; }
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .footer-about { grid-column: auto; }
  .footer-brand { font-size: 16px; }
  .footer-bottom { flex-direction: column; }
}