:root {
  --bg: #F9FAF5;
  --text: #1A324A;
  --muted: #3b4d5f;
  --card: rgba(255,255,255,.86);
  --stroke: rgba(26,50,74,.14);
  --accent: #AFA91D;
  --accent2: #D9D895;
  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip {
  position:absolute; left:-999px; top: 12px;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 12px; z-index: 9999;
}
.skip:focus { left: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249,250,245,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.topbar__inner {
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand { display:flex; align-items:center; gap: 12px; }
.brand__logo {
  width: 42px; height: 42px; border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--stroke);
  background: #fff;
}
.brand__text strong { display:block; font-size: 15px; letter-spacing: .2px; }
.brand__text small { display:block; font-size: 12px; color: rgba(26,50,74,.78); }

.nav__toggle {
  display:none;
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px;
  cursor: pointer;
}
.nav__toggle span {
  display:block; width: 22px; height: 2px; background: var(--text);
  margin: 4px 0; border-radius: 2px;
}

.nav__list {
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap: 10px;
}
.nav__list a {
  display:inline-flex; align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
}
.nav__list a:hover {
  background: rgba(175,169,29,.12);
  text-decoration: none;
}

.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
  border: 1px solid rgba(26,50,74,.15);
  box-shadow: none;
  font-weight: 650;
  letter-spacing: .2px;
}
.btn:hover { filter: brightness(1.05); text-decoration:none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn--sm { padding: 9px 12px; border-radius: 14px; }

.hero {
  position: relative;
  min-height: 78vh;
  display:flex;
  align-items: stretch;
  isolation: isolate;
}
.hero__bg {
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero__overlay {
  position:absolute; inset: 0;
  z-index: -1;
  /* Mantener imagen clara: gradiente sutil */
  background: linear-gradient(110deg,
    rgba(249,250,245,.92) 0%,
    rgba(249,250,245,.72) 34%,
    rgba(249,250,245,.32) 70%,
    rgba(249,250,245,.10) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 44px 0 34px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 22px;
}
.hero__copy h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: .3px;
}
.hero__copy p {
  margin: 0 0 18px;
  font-size: 16px;
  max-width: 60ch;
  color: rgba(26,50,74,.92);
}
.hero__cta { display:flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.badges { display:flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.76);
  font-size: 12px;
}

.hero__card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
}
.hero__card h3 { margin: 0 0 10px; }
.hero__card p { margin: 8px 0; color: rgba(26,50,74,.88); }
.hero__social { margin-top: 12px; display:flex; flex-wrap:wrap; gap: 10px; }

.chip {
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(175,169,29,.10);
}
.dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--accent);
}

.section {
  padding: 62px 0;
}
.section--alt {
  background: rgba(26,50,74,.04);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 36px);
}
.section__head p {
  margin: 0 0 20px;
  max-width: 70ch;
  color: rgba(26,50,74,.78);
}

.grid { display:grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
}
.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 12px; color: rgba(26,50,74,.86); }

.check { margin: 0; padding-left: 18px; color: rgba(26,50,74,.86); }
.check li { margin: 6px 0; }

.cta-bar {
  margin-top: 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  background: rgba(175,169,29,.10);
  border: 1px solid rgba(175,169,29,.28);
  border-radius: var(--radius);
  padding: 18px;
}
.cta-bar h3 { margin: 0 0 4px; }
.cta-bar p { margin: 0; color: rgba(26,50,74,.85); }
.cta-bar__actions { display:flex; gap: 10px; flex-wrap: wrap; }

.gallery {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery__item {
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow:hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--stroke);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

.video-wrap {
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: #000;
}
.video-wrap iframe {
  width: 100%;
  height: min(62vh, 520px);
}

.social-grid { grid-template-columns: 1.2fr .8fr; }
.fb-embed {
  margin: 12px 0;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: #fff;
}
.fb-embed iframe {
  width: 100%;
  height: 560px;
}
.ig-preview {
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  margin: 12px 0;
}
.ig-preview img { width: 100%; height: 280px; object-fit: cover; }

.hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(26,50,74,.72);
}

.contact-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.info { list-style:none; padding:0; margin:0; }
.info li { padding: 8px 0; border-bottom: 1px dashed rgba(26,50,74,.16); }
.info li:last-child { border-bottom: 0; }
.actions { margin-top: 12px; display:flex; gap: 10px; flex-wrap: wrap; }

.form { display:grid; gap: 12px; }
label { display:grid; gap: 6px; font-weight: 650; }
input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  font: inherit;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(175,169,29,.55);
  box-shadow: 0 0 0 3px rgba(175,169,29,.16);
}

.map {
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: #fff;
}
.map iframe { width: 100%; height: 340px; border:0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,14,20,.75);
  display:grid;
  place-items:center;
  padding: 18px;
}
/* Respetar el atributo hidden (evita que el lightbox se muestre al cargar) */
.lightbox[hidden] { display: none !important; }
.lightbox__img {
  max-width: min(1000px, 96vw);
  max-height: 84vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: #000;
}
.lightbox__close {
  position:absolute;
  top: 16px;
  right: 16px;
  width: 46px; height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); }

.footer {
  border-top: 1px solid var(--stroke);
  padding: 22px 0;
}
.footer__inner {
  display:flex; align-items:center; justify-content:space-between; gap: 14px;
  flex-wrap: wrap;
}
.footer__brand { margin: 0; font-weight: 750; }
.footer__links { margin: 0; color: rgba(26,50,74,.78); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: #22c55e;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.08);
  z-index: 60;
}
.wa-float:hover { filter: brightness(1.03); }

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

@media (max-width: 980px) {
  .hero__content { grid-template-columns: 1fr; align-items: start; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .nav__toggle { display: inline-grid; }
  .nav__list {
    position: absolute;
    right: 20px;
    top: 64px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 10px;
    display: none;
    flex-direction: column;
    min-width: 220px;
  }
  .nav__list.is-open { display:flex; }
}