:root {
  --bg: #f5f2ec;
  --paper: #fdfbf7;
  --olive: #67754d;
  --olive-dark: #556142;
  --text: #2e3a2f;
  --muted: #6f716b;
  --line: #e5e0d8;
  --shadow: 0 28px 70px rgba(46,58,47,.16);
  --shadow-soft: 0 14px 34px rgba(46,58,47,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103,117,77,.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(103,117,77,.08), transparent 22%),
    var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253,251,247,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #6b7650;
  color: #f5f2ec;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(103,117,77,.18);
}
.brand-mark.small { width: 38px; height: 38px; font-size: .9rem; }
.brand-word {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: .92;
  color: var(--olive-dark);
}
.brand-word.small { font-size: 1.3rem; }

.nav { display: flex; gap: 28px; align-items: center; font-size: .95rem; }
.nav a { opacity: .82; transition: opacity .2s ease; }
.nav a:hover { opacity: 1; }

.hero { padding: 22px 0 26px; }
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  border-radius: 38px;
  background: #1f261f;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.btn-wa {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  padding: 22px 40px;
  border-radius: 34px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(6px);
  color: var(--olive-dark);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0,0,0,.22);
  background: rgba(255,255,255,.96);
}
.wa-icon-wrap {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.wa-text {
  line-height: 1;
  letter-spacing: .01em;
  font-weight: 700;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.86);
  font-size: .82rem;
}
.mouse {
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.62);
  border-radius: 20px;
  position: relative;
}
.mouse::after {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  25% { opacity: 1; }
  70% { opacity: 0; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 0; }
}

.section { padding: 78px 0; }
.section-kicker {
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 12px;
}
.section-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: .96;
  max-width: 13ch;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.prose p + p { margin-top: 16px; }

.nosotros-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.eventos-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.eventos-intro {
  position: sticky;
  top: 100px;
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.accordion-item {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(253,251,247,.98));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(46,58,47,.08);
  position: relative;
  overflow: hidden;
}
.accordion-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olive), rgba(103,117,77,.18));
}
.accordion-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 28px 32px 24px;
  cursor: pointer;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.item-num {
  color: var(--olive);
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
}
.item-title {
  font-family: Georgia, serif;
  font-size: 2.1rem;
  line-height: .95;
  color: var(--olive-dark);
}
.item-action {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.accordion-item[open] .item-action { color: var(--olive); }
.item-body { padding: 0 32px 30px; }
.item-body p { margin: 16px 0 0; }
.item-body p + p {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(229,224,216,.8);
}
.item-body strong {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery {
  columns: 3 280px;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-form { display: block; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-full { grid-column: 1 / -1; }
.field span {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  outline: none;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  width: 100%;
  margin-top: 16px;
  background: var(--olive);
  color: white;
  border: none;
  border-radius: 18px;
  padding: 15px 20px;
  box-shadow: 0 18px 34px rgba(103,117,77,.22);
  cursor: pointer;
}

.footer {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: .92rem;
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.16);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nosotros-grid,
  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .eventos-intro { position: static; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 84vh; }
}
@media (max-width: 760px) {
  .hero-slider { min-height: 76vh; border-radius: 24px; }
  .wrap { width: min(1180px, calc(100% - 20px)); }
  .card { padding: 22px; }
  .brand-word { font-size: 1.35rem; }
  .btn-wa { min-width: 220px; padding: 18px 24px; }
  .wa-icon, .wa-icon-wrap { width: 36px; height: 36px; }
  .accordion-item summary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 22px 18px;
  }
  .item-body { padding: 0 22px 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
