/* =========================
   STA Instagram Feed
========================= */

.sta-ig2{
  padding:26px 0 22px;
}

.sta-ig2--full{
  width:100%;
  margin:0;
}

.sta-ig2__wrap{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 34px;
  position:relative;
  display:block;
}

.sta-ig2__title{
  position:absolute;
  top:0;
  left:22px;
  z-index:4;
  margin:0 !important;
  text-align:left !important;
  font-family:"Italiana","Times New Roman",serif;
  font-weight:400;
  letter-spacing:.02em;
  color:#C3A890;
  font-size:clamp(54px, 7.8vw, 140px);
  line-height:.92;
  pointer-events:none;
  width:fit-content;
}

.sta-ig2__rail{
  position:relative;
  z-index:1;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-top:92px;
}

.sta-ig2__rail::-webkit-scrollbar{
  display:none;
}
.sta-ig2__track{
  box-sizing:border-box;
}

.sta-ig2__track{
  --sta-ig-gap: 22px;
  display:grid !important;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--sta-ig-gap) * 5)) / 6);
  gap:var(--sta-ig-gap) !important;
  align-items:stretch !important;
  width:100%;
  padding:0 0 8px;
}

.sta-ig2__card{
  width:100% !important;
  border-radius:22px !important;
  overflow:hidden !important;
  background:#000 !important;
  display:block !important;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}

.sta-ig2__card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(0,0,0,.16);
}

.sta-ig2__img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:4 / 5 !important;
  object-fit:cover !important;
  display:block !important;
}

.sta-ig2__cta{
  display:flex;
  justify-content:center;
  margin-top:14px;
}

.sta-ig2__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:10px;
  background:#3D7031;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
}

.sta-ig2__btn:hover{
  background:#C3A890;
  color:#1F2A20 !important;
}

.sta-ig2__fallback{
  text-align:center;
  margin-top:14px;
}

@media (max-width:1024px){
  .sta-ig2__wrap{
    padding:0 22px;
  }

  .sta-ig2__title{
    left:22px;
    top:0;
    font-size:clamp(48px, 10vw, 96px);
    line-height:.9;
  }

  .sta-ig2__rail{
    padding-top:54px;
    padding-right:22px;
    overflow-x:auto;
    overflow-y:hidden;
  }

  .sta-ig2__track{
    display:flex !important;
    gap:16px !important;
    width:max-content !important;
    min-width:100%;
    padding:0 0 8px;
  }

  .sta-ig2__card{
    flex:0 0 calc((100vw - 44px - 48px - 50px) / 4) !important;
    width:calc((100vw - 44px - 48px - 50px) / 4) !important;
    max-width:210px !important;
  }
}

@media (max-width:768px){
  .sta-ig2__wrap{
    padding:0 16px;
  }

  .sta-ig2__title{
    left:16px;
    top:0;
    font-size:clamp(42px, 12vw, 72px);
    line-height:.9;
  }

  .sta-ig2__rail{
    padding-top:42px;
    padding-right:16px;
    overflow-x:auto;
    overflow-y:hidden;
  }

  .sta-ig2__track{
    display:flex !important;
    gap:12px !important;
    width:max-content !important;
    min-width:100%;
    padding:0 0 8px;
  }

  .sta-ig2__card{
    flex:0 0 calc((100vw - 32px - 36px - 44px) / 4) !important;
    width:calc((100vw - 32px - 36px - 44px) / 4) !important;
    max-width:none !important;
  }
}

/* Opcional seguridad horizontal */
html, body{
  overflow-x:clip;
}
/*Boton contacto*/
.sta-contact-btn-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto;
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

.sta-contact-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:300px;
  padding:14px 22px;
  border-radius:10px;
  text-decoration:none !important;
  font-weight:500;
  letter-spacing:.02em;
  border:2px solid #3D7031;
  background:#3D7031;
  color:#ffffff !important;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  box-sizing:border-box;
}

.sta-contact-btn:hover,
.sta-contact-btn:focus{
  background:#C3A890;
  color:#000 !important;
  border-color:#C3A890;
  transform:translateY(-1px);
}

html{
  scroll-behavior:smooth;
}

#contacto{
  scroll-margin-top:120px;
}

@media (max-width:520px){
  .sta-contact-btn{
    width:min(92vw, 360px);
  }
}
.sta-service{
  display:block;
  text-decoration:none;
  color:inherit;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
  cursor:pointer;
}


.sta-service:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(61,112,49,.18);
}
/* =========================
   GLOBAL LIGHTBOX
========================= */

.sta-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(10,14,12,.88);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.sta-lightbox.is-open{
  display:flex;
}

.sta-lightbox[aria-hidden="false"]{
  display:flex;
}

.sta-lightbox .sta-frame-gold{
  position:relative;
  width:min(92vw, 1100px);
  max-height:90vh;
  padding:14px;
  border:none;
  border-radius:24px;
  background:rgba(18,24,20,.78);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.sta-lightbox .sta-lightbox__img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:72vh;
  border-radius:16px;
  object-fit:contain;
  transition:opacity .22s ease;
  box-shadow:0 10px 34px rgba(0,0,0,.22);
}

.sta-lightbox .sta-lightbox__caption{
  margin-top:14px;
  text-align:center;
  color:#E8E3D5;
  font-size:15px;
  line-height:1.6;
  max-width:900px;
}

/* cerrar */
.sta-lightbox .sta-lightbox__close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1.8px solid rgba(255,255,255,.92);
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  color:#fff !important;
  font-size:20px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  box-shadow:none !important;
  appearance:none;
  -webkit-appearance:none;
  transition:
    background-color .2s ease,
    transform .2s ease,
    border-color .2s ease;
}

.sta-lightbox .sta-lightbox__close:hover,
.sta-lightbox .sta-lightbox__close:focus{
  background:rgba(255,255,255,.12) !important;
  border-color:#fff !important;
  transform:scale(1.04);
  outline:none;
}

/* flechas */
.sta-lightbox .sta-lightbox__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:2px solid rgba(255,255,255,.95);
  border-radius:50%;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  appearance:none;
  -webkit-appearance:none;
  transition:
    background-color .2s ease,
    transform .2s ease,
    border-color .2s ease;
}

.sta-lightbox .sta-lightbox__btn:hover,
.sta-lightbox .sta-lightbox__btn:focus{
  background:rgba(255,255,255,.14) !important;
  border-color:#fff !important;
  outline:none;
}

.sta-lightbox .sta-lightbox__btn::before{
  content:"";
  display:block;
  width:10px;
  height:10px;
  border-top:2.5px solid #fff;
  border-right:2.5px solid #fff;
  box-sizing:border-box;
}

.sta-lightbox .sta-prev{
  left:24px;
}

.sta-lightbox .sta-next{
  right:24px;
}

.sta-lightbox .sta-prev::before{
  transform:rotate(-135deg);
  margin-left:3px;
}

.sta-lightbox .sta-next::before{
  transform:rotate(45deg);
  margin-right:3px;
}

.sta-lightbox .sta-lightbox__btn::after{
  content:none !important;
}

/* estados de foco */
.sta-lightbox .sta-lightbox__btn:focus-visible,
.sta-lightbox .sta-lightbox__close:focus-visible{
  box-shadow:0 0 0 3px rgba(255,255,255,.18) !important;
}

/* móvil */
@media (max-width:767px){
  .sta-lightbox{
    padding:14px;
  }

  .sta-lightbox .sta-frame-gold{
    width:min(96vw, 1100px);
    padding:10px;
    border-radius:18px;
  }

  .sta-lightbox .sta-lightbox__img{
    max-height:62vh;
    border-radius:12px;
  }

  .sta-lightbox .sta-lightbox__caption{
    margin-top:10px;
    font-size:14px;
    line-height:1.5;
  }

  .sta-lightbox .sta-lightbox__btn{
    width:42px;
    height:42px;
  }

  .sta-lightbox .sta-lightbox__btn::before{
    width:10px;
    height:10px;
    border-top-width:2.2px;
    border-right-width:2.2px;
  }

  .sta-lightbox .sta-prev{
    left:10px;
  }

  .sta-lightbox .sta-next{
    right:10px;
  }

  .sta-lightbox .sta-lightbox__close{
    top:8px;
    right:8px;
    width:36px;
    height:36px;
    font-size:22px;
  }
}

html[lang="zh-CN"] .sta-ig2__title,
html[lang="zh-CN"] .sta-ig2__btn,
html[lang="zh-CN"] .sta-ig2__fallback{
  font-family:var(--sta-font-zh-cn-sans) !important;
  letter-spacing:0 !important;
  font-synthesis:none;
}

html[lang="zh-CN"] .sta-ig2__title{
  font-weight:700 !important;
}
