/*
Theme Name: CASA DEL INKA.
Author: Jorge Quispe Chilo
Description: El tema, peronalizado y enfocado a los servicios que presta la Empresa con un diseño claro. La tipografía es sencilla, clara y legible en una gran variedad de tamaños de pantalla, además de disponible en multitud de idiomas. Lo hemos diseñado pensando primero en su uso móvil, lo que implica que tu contenido ocupará el centro de la escena independientemente de cómo lleguen tus visitantes, ya sea desde un móvil inteligente, una tableta, un portátil o un ordenador de escritorio.
Author URI: https://github.com/hanszio
version: 1.0
License: GNU General Public License v3 or later  
License URI: http://www.gnu.org/licenses/gpl-3.0.html  
Text Domain: projectzion
Tags: wordpress theme, hans designer, web developer
*/

/* GENERALES */

:root {
  --color-background: #fff;
  --color-white: #fff;
  --color-gray-1: #f0f0f0;
  --color-gray-2: #e9e5e5;
  --color-gray-3: #9c9c9c;
  --color-gray-4: #4e4f55;
  --color-gray-5: #272933;
  --color-gray-6: #1a1a1a;
  --color-black: #000;
  --color-blue: #337ab7;
  --color-blue-dark: #286090;
  --color-green: #5cb85c;
  --color-green-dark: #449d44;
  --color-yellow: #f0ad4e;
  --color-yellow-dark: #ec971f;
  --color-red: #d9534f;
  --color-red-dark: #c9302c;
  --color-vibe-green: #6ec207;
  --color-vibe-green-dark: #9dc08b;
  --color-vibe-yellow: #ffcc29;
  --color-vibe-yellow-dark: #f1c93b;
  --color-vibe-light: #f9f8f4;
  --color-vibe-black: #1f211f;
  --color-vibe-dark: #252b23;
  --color-vibe-dark-plus: #2c4260;
  --font-primary: "Work Sans", sans-serif;
  --font-secondary: "Work Sans", sans-serif;

  --casa-del-inka-bg: #fbf7f1;
  --color-alternative-color: #63a361;
  --color-alternative-color-dark: #265a69;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  margin: 0 !important;
}
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  position: relative;
  overflow-x: clip;
}
section {
  width: 90%;
  max-width: 140rem;
  margin: 0 auto;
  position: relative;
}
section p {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  font-style: normal;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 4rem;
  color: var(--dark);
}
h2 {
  font-weight: 500;
  font-size: 2.8rem;
}
h3 {
  font-weight: 400;
  font-size: 2.4rem;
}
h4 {
  font-weight: 300;
  font-size: 1.8rem;
}
p,
li,
a {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.6rem;
  text-align: center;
  color: var(--dark);
}
p:empty {
  display: none;
}
a {
  text-decoration: none;
}
li {
  text-align: left;
  list-style: disc outside;
  padding-top: 0;
}
hr {
  width: 100%;
  margin: 3rem 0;
  color: var(--black);
}
header {
  position: relative;
  z-index: 10;
}
main {
  position: relative;
  overflow-x: hidden;
}

/*----------------INICIO NAVBAR------------------*/
.header__frontpage, .header__innerpages {
  padding: 3rem 0 0rem;
  height: 13rem;
  .header__content {
    width: 100%;
    .header__nav {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2.3rem;
      .header__menu {
        width: 100%;
        display: flex;
        flex-direction: column;

        .menu__nav {
          display: flex;
          gap: 1rem;
          align-items: center;
          justify-content: center;
          margin-top: 2rem;
          flex-wrap: wrap;

          ul {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            li {
              list-style: none;
              min-width: 10rem;
              display: grid;
              place-items: center;
              a {
                text-transform: capitalize;
                font-weight: 500;
                white-space: nowrap;
              }
            }
          }
          a.button {
            text-transform: uppercase;
            padding: 1rem;
            background-color: var(--color-alternative-color);
            color: var(--color-gray-1);
            font-weight: 700;
            border-radius: 1rem;
            &:hover {
              background-color: var(--color-alternative-color-dark);
            }
          }
        }
      }
    }
  }
}
.gtranslate_wrapper{
    position: absolute;
    top: 1rem;
    right: 1rem;
}
main {
  .frontpage_slider-wrapper {
    overflow: hidden;
    width: 100%;
    min-height: 30rem;
    height: 80vh;
    max-height: 60rem;
    position: relative;
    transform: translateY(12rem);

    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .video-loader {
      position: absolute;
      inset: 0;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;

      &::after {
        content: "";
        width: 40px;
        height: 40px;
        border: 4px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spinner 0.7s linear infinite;
      }
    }
    &::after {
      content: "";
      width: 100%;
      height: 25rem;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgb(0, 0, 0) 100%
      );
      position: absolute;
      bottom: 0;
      right: 0;
      z-index: 1;
    }
  }

  .room_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    .room_container-titles {
      position: absolute;
      top: 0;
      transform: translateY(-10rem);
      display: flex;
      flex-direction: column;
      align-items: center;
      h2 {
        text-align: center;
        font-weight: 600;
        color: var(--color-white);
      }
      img.separator-img {
        display: block;
      }
    }
    .room_carousel {
      width: 100%;
      position: relative;
      display: grid;
      .room_carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgb(131, 131, 131);
        border: none;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        cursor: pointer;
        line-height: 1;
        transition: 0.3s ease;
        color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
          width: 2rem;
          height: 2rem;
          object-fit: contain;
          fill: white;
          stroke: white;
          path {
            fill: white;
          }
        }

        &:hover {
          background: var(--color-alternative-color-dark);
        }
        &.prev {
          left: 0.5rem;
        }
        &.next {
          right: 0.5rem;
        }
      }
      .room_carousel-viewport {
        place-self: center;
        overflow: hidden;
        width: 100%;
      }

      .room_carousel-track {
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
        padding-bottom: 5rem;

        .room_carousel-slide {
          flex: 0 0 auto;
          display: flex;
          justify-content: center;
          transition: transform 0.4s ease, opacity 0.4s ease;
          transform: scale(0.85);

          width: calc(100% / 1 - 1rem);

          @media (min-width: 560px) {
            width: calc(100% / 2 - 1rem);
          }

          @media (min-width: 900px) {
            width: calc(100% / 3 - 1rem);
          }

          &.active {
            transform: scale(1);
            opacity: 1;
            z-index: 2;
          }
        }
      }
    }
  }

  .frontpage__welcome__container {
    background: url("./assets/images/machupicchuFondo.png") center no-repeat;
    background-size: cover;
    .frontpage_comments-container {
      width: 100%;
      margin: 2rem auto 4rem;
    }
    .frontpage__welcome {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5rem;
      h1 {
        color: var(--color-alternative-color);
        font-size: 3.5rem;
        text-align: center;
      }
      figure {
        width: 27rem;
        img {
          width: 100%;
        }
        &:nth-child(3) {
          width: 100%;
          max-width: 70rem;
        }
      }
    }
    p {
      max-width: 97rem;
      padding-bottom: 15rem;
    }
  }
}

footer {
  background-color: var(--color-gray-4);
  * {
    color: var(--color-white);
  }
  .footer__widgets {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 4rem 0;
    gap: 2rem;
  }
  #block-10 div div {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  #block-9 {
    display: flex;
    gap: 4rem;
    img {
      width: 3.2rem;
      height: 3.2rem;
      object-fit: contain;
    }
  }

  .footer__copyright {
    .copy {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2rem 0;
      flex-wrap: wrap;
      gap: 2rem;
    }
    background-color: var(--color-vibe-black);
    * {
      color: var(--color-gray-4);
    }
  }
}
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;

  .custom-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .custom-modal__content {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    .custom-modal__close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 2rem;
      cursor: pointer;
      padding: 0;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      transition: all 0.3s ease;
      border-radius: 50%;
      border: 2px solid var(--color-alternative-color);

      &:hover {
        background: var(--color-alternative-color);
        color: white;
      }
    }

    h2,
    h3,
    h4,
    h5 {
      font-weight: 700;
      color: var(--color-alternative-color-dark);
      text-align: left;
      margin-bottom: 1rem;
    }

    h2 {
      font-size: 2.9rem;
      border-bottom: 3px solid var(--color-alternative-color);
      padding-bottom: 0.5rem;
      margin-bottom: 1.5rem;
    }

    h3 {
      font-size: 2rem;
      margin-top: 1.5rem;
    }

    h4 {
      font-size: 1.6rem;
    }

    h5 {
      font-size: 1.1rem;
    }

    .modal-body {
      line-height: 1.6;
      color: #333;
      text-align: left;

      .loading-spinner {
        text-align: center;
        padding: 2rem;
        color: #666;
        font-style: italic;
      }

      p {
        margin-bottom: 1rem;
        text-align: left;
      }

      ul,
      ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
        text-align: left;

        li {
          margin-bottom: 0.5rem;
          text-align: left;
        }
      }

      strong {
        color: var(--color-alternative-color-dark);
        font-weight: 700;
      }

      blockquote {
        border-left: 4px solid var(--color-alternative-color);
        padding-left: 1rem;
        margin: 1.5rem 0;
        font-style: italic;
        color: var(--color-alternative-color-dark);
      }

      .location-info {
        background: #f8f9fa;
        padding: 1.5rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        border-left: 4px solid var(--color-alternative-color);
      }

      .map-container {
        margin: 1.5rem 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 2px solid var(--color-alternative-color);
      }

      .location-tips {
        background: #fff9e6;
        padding: 1.5rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        border-left: 4px solid var(--color-alternative-color);
      }
    }
  }

  @media (max-width: 768px) {
    padding: 10px;

    .custom-modal__content {
      padding: 2rem 1.5rem;
      margin: 10px;

      h2 {
        font-size: 1.75rem;
      }

      h3 {
        font-size: 1.35rem;
      }

      .modal-body {
        .map-container {
          iframe {
            height: 300px;
          }
        }
      }
    }
  }
}
@media (max-width: 450px) {
  .header__frontpage {
    height: 20rem !important;
  }
}
