@import url('/css/contact.css');
@import url('/css/menu.css');
@import url('/css/points.css');
@import url('/css/scrollAFK.css');
@import url('/css/langsystem.css');
@import url('/css/controls.css');

:root {
  --cream: #DEC38A;
  --green: #636B5B;
  --ink: #1f1f1a;
  /* texto principal */
  --overlay: 0, 0, 0;
  /* base black for rgba */
}

* {
  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-weight: 400;
}

body {
  margin: 0;
  overflow: hidden;
}

.zoom-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.zoom-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transform-origin: center 50px;
  will-change: transform, background-position;
  transition: transform 0.3s ease;
  z-index: 1;
  display: none;
  transform: perspective(1px);
}

#cielo {
  z-index: 1;
}

#fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-image: url('/imgs/fondo.webp');
  background-repeat: repeat;
  transform: scale(1.8);
  will-change: transform, background-position;
  transition: transform 0.3s ease, background-position 0.3s ease;
  backface-visibility: hidden;
}

#porta {
  background-size: contain;
  width: 5000px;
  transform-origin: 905px 50px;
  position: relative;
  transition:
    transform 0.22s ease,
    background-position 0.22s ease;
}

#porta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  z-index: 1;
  pointer-events: none;
}

#nubol {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  will-change: transform, background-position;
  background-image: url('/imgs/nubol.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100vw;
  transform: translateX(10vh) scale(1);
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  z-index: 1;
}


#nubol h2 {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -700%);
  width: max-content;
  font-size: 1.35vw;
}

#SocialMedia {
  position: fixed;
  bottom: 2.19vh;
  right: 1.04vw;
  z-index: 1000;
  height: auto;
  min-height: 3.20vh;
  display: flex;
  justify-content: center;
  gap: 1vw;
  align-items: center;
  background: linear-gradient(135deg, rgba(222, 196, 138, 0.95), rgba(222, 196, 138, 0.8));
  border-radius: 50px;
  padding: .5vh 1.04vw;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#SocialMedia:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(222, 196, 138, 1), rgba(222, 196, 138, 0.9));
}

#SocialMedia a {
  height: 3.5vh;
  width: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.8;
}

#SocialMedia a:hover {
  transform: scale(1.1);
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

#SocialMedia a img,
#SocialMedia a svg {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#imageModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: clamp(40px, 6vh, 80px) 24px 24px;
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(222, 195, 138, 0.12), transparent 60%),
    linear-gradient(0deg, rgba(var(--overlay), 0.78), rgba(var(--overlay), 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: auto;
  animation: modal-fade 320ms ease-out both;
}

#imageModal .close {
  position: absolute;
  top: clamp(10px, 2vh, 18px);
  right: clamp(12px, 2vw, 24px);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;

  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(222, 196, 138, 1), rgba(222, 196, 138, 0.9));
  border: 1px solid color-mix(in oklab, var(--cream), black 25%);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}



#imageModal .close:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(222, 196, 138, 1), rgba(222, 196, 138, 1));
  color: var(--green);
}

#imageModal .close:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px rgba(222, 195, 138, 0.45),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

#imageModal .modal-content {
  margin: 0 auto;
  display: block;
  max-height: 76vh;

  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--green), white 70%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  object-fit: contain;
  background-color: #0f0f0f;
  animation: modal-zoom 360ms cubic-bezier(.2, .8, .2, 1) both;
  position: relative;
}



#imageModal #caption {
  display: none;
  margin: clamp(14px, 2vh, 20px) auto 0;
  max-width: min(92vw, 900px);
  text-align: center;
  color: var(--cream);
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing: 0.02em;
  line-height: 1.55;
  padding: 10px 14px;

  /* franja sutil con tonos de marca */
  background:
    linear-gradient(180deg, rgba(99, 107, 91, 0.15), rgba(99, 107, 91, 0.08));
  border: 1px solid color-mix(in oklab, var(--green), white 75%);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#imageModal .modal-content::after,
#imageModal .modal-content::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in oklab, var(--cream), black 20%);
  opacity: 0.8;
  pointer-events: none;
}

#imageModal .modal-content::before {
  top: -10px;
  left: -10px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0 0;
}

#imageModal .modal-content::after {
  bottom: -10px;
  right: -10px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 8px 0;
}

#porta {
  background-size: contain;
  width: 5000px;
  transform-origin: 911px 50px;
  position: relative;
}

#porta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  z-index: 1;
  pointer-events: none;
}

.doorGates {
  position: absolute;
  transition: all 0.22s ease;
  width: 255px;
  height: 473px;
  bottom: 13.5%;
  z-index: 0;
}

#d1.doorGates {
  left: 698px;
}

#d2.doorGates {
  left: 1022px;
  z-index: -1;
}

#d3.doorGates {
  left: 1344px;
  z-index: -2;
}

#d4.doorGates {
  left: 1666px;
  z-index: -3;
}

.title {
  font-weight: bolder;
}

.mail {
  font-size: 1em;
}

#INOUT-PREFAB {
  position: fixed;
  bottom: 2%;
  left: 1%;
  z-index: 1000;
  background-color: var(--cream);
  border: none;
  color: #33372f;
  padding: 10px 15px;
  margin: 0 5px;
  font-weight: bolder;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

@media (max-width: 640px) {
  #imageModal {
    padding-top: 56px;
  }

  #imageModal .close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #imageModal .modal-content {
    max-height: 68vh;
    border-radius: 14px;
  }

  #INOUT-PREFAB {
    font-size: 0.6rem;
    text-wrap: wrap;
    padding: 8px 10px;
    border-radius: 5px;
  }
}

/* Animaciones */
@keyframes modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-zoom {
  from {
    transform: scale(0.985);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Media Queries para Social Media y Modal */
@media (max-width: 1350px) {
  #SocialMedia a {
    height: 3.5vh;
    width: 3vw;
  }
}

@media (max-width: 1060px) {
  #SocialMedia a {
    height: 3.5vh;
    width: 3vw;
  }
}

@media (max-width: 900px) {
  #SocialMedia a {
    height: 3.5vh;
    width: 5vw;
  }
}

@media (max-width: 850px) {
  #SocialMedia a {
    height: 3.5vh;
    width: 3.5vw;
  }
}

@media (max-width: 830px) {
  #SocialMedia a {
    height: 3.2vh;
    width: 4svw;
  }
}

@media (max-width: 768px) {
  #SocialMedia a {
    height: 3vh;
    width: 4.5vw;
  }

  #fondo {
    background-size: 200vh;
  }

  #nubol {
    background-size: 100vh;
  }

  #nubol h2 {
    transform: translate(-60%, -500%);
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  #SocialMedia a {
    height: 3vh;
    width: 6vw;
  }
}

@media (max-width: 450px) {
  #SocialMedia a {
    height: 3vh;
    width: 7vw;
  }
}

@media (max-width: 340px) {
  #SocialMedia a {
    height: 3vh;
    width: 9vw;
  }
}

@media (max-width: 600px) {
  #imageModal .modal-content {
    max-width: min(92vw, 1100px);
  }
}

@media (min-width: 2000px) {
  #imageModal .close {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
  }
}

@media (min-width: 3000px) {
  #imageModal .close {
    width: 4rem;
    height: 4rem;
    font-size: 4rem;
  }
}

.grecaptcha-badge {
  visibility: hidden;
}