@font-face {
  font-family: 'Titillium Web';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/TitilliumWeb-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/TitilliumWeb-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('fonts/TitilliumWeb-Black.ttf') format('truetype');
}

:root {
  --green-900: #1f3d17;
  --green-700: #3a5a2c;
  --green-500: #6a9b46;
  --green-300: #b9d49a;
  --earth-700: #543b2b;
  --bg: #fcfaf6;
  --bg-alt: #f3efe6;
  --text: #2b2b2b;
  --muted: #5b6357;
  --border: #e3ddcf;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 61, 23, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Titillium Web', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--earth-700); }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--green-900);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 1000;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(252, 250, 246, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
.site-header nav {
  margin-left: auto;
}
.site-header nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  color: var(--green-900);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--green-500); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--green-900);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-header nav.is-open { display: block; }
  .site-header nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .site-header nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 56px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 22ch;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 60ch;
  margin: 0 0 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
}
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-ghost-dark {
  background: #fff;
  color: var(--green-900);
  border-color: var(--green-700);
}
.btn-ghost-dark:hover { background: var(--green-700); color: #fff; }

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

/* Sections */
main section {
  padding: 72px 0;
}
main section:nth-of-type(even) {
  background: var(--bg-alt);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--green-900);
  margin: 0 0 12px;
  line-height: 1.2;
}
h3 {
  color: var(--earth-700);
  margin: 24px 0 8px;
  font-size: 1.2rem;
}
.section-intro {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.figure figcaption {
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--muted);
}

.principles {
  margin: 0 0 0 18px;
  padding: 0;
}
.principles li { margin: 4px 0; }

/* Galleries */
.gallery-title {
  margin-top: 36px;
  color: var(--earth-700);
}
.gallery {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery li {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 3 / 2;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery li:hover img {
  transform: scale(1.04);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); }

.actividades-banner {
  margin: 36px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.actividades-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.card h3 {
  margin-top: 0;
  color: var(--green-700);
  border-bottom: 2px solid var(--green-300);
  padding-bottom: 6px;
  display: inline-block;
}

/* Calendar & maps */
.calendar-wrap, .map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.map-wrap { margin-top: 28px; }

/* Rooms list */
.rooms {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rooms li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.rooms li:last-child { border-bottom: 0; }

/* Form */
.signup {
  display: grid;
  gap: 16px;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 700; color: var(--green-900); }
.form-row input,
.form-row select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-row small { color: var(--muted); font-size: .85rem; }

.interests {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px 18px;
  display: grid;
  gap: 12px;
  margin: 0;
}
.interests legend {
  padding: 0 6px;
  font-weight: 700;
  color: var(--green-900);
}
.hp { position: absolute; left: -5000px; }

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.downloads a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--green-900);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.downloads a:hover { background: var(--green-300); color: var(--green-900); }
.downloads a strong { display: block; }
.downloads a small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}
.docs-cta {
  margin-top: 24px;
  padding: 14px 18px;
  background: #fff;
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cta-box {
  margin-top: 36px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--green-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-box h3 {
  margin-top: 0;
  color: var(--green-900);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}

.emphasis {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--green-300);
  border-radius: var(--radius);
  color: var(--green-900);
}
.emphasis a { color: var(--green-900); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #f0ead8;
  padding: 36px 0;
  margin-top: 40px;
}
.site-footer a {
  color: #f0ead8;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.footer-inner .copy {
  align-self: end;
  font-size: .9rem;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
