:root {
  --bg: #ffffff;
  --bg-2: #f0f4f8;
  --accent-color: #1a69ae;
  --accent-color-active: #967926;
  --accent-color-translucent: hsla(208, 74%, 39%, 0.1);
  --accent-bg: #1a69ae;
  --accent-bg-2: #175e9d;
  --active-color: #000000;
  --active-color-2: #ffffff;
  --inactive-color: #6b6a6f;
  --inactive-bg: #6b6a6f;
  --overlay: rgba(0, 0, 0, 0.6);
  --brightness: brightness(100%);
  --brightness-icon: brightness(40%);
  --invert-color: invert(100%);
  --border: rgba(0, 0, 0, 0.2);
  --primary-font: Georgia, Times, "Times New Roman", serif;
  --secondary-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --testimonials-time: 25s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #08121c;
    --accent-color: #1a69ae;
    --accent-color-translucent: hsla(208, 74%, 39%, 0.4);
    --accent-bg: #0f3c66;
    --accent-bg-2: #0c3052;
    --active-color: #c7c9cd;
    --active-color-2: #c7c9cd;
    --inactive-color: #7e7d83;
    --inactive-bg: #3f3e42;
    --overlay: rgba(0, 0, 0, 0.6);
    --brightness: brightness(75%);
    --brightness-icon: brightness(160%);
    --invert-color: invert(0%);
    --border: rgba(255, 255, 255, 0.15);
  }
}

.no-animation * {
  transition: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--secondary-font);
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  background-color: var(--bg);
  color: var(--active-color);
}

.wrapper {
  width: 80vw;
  max-width: 1536px;
  margin-inline: auto;
}

main {
  margin-top: 58px;
}

h1,
h2,
h3 {
  font-family: var(--primary-font);
  text-wrap: balance;
}

h1,
h2,
h3 {
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 400;
}

h1,
h2,
h3,
p,
.b-ul {
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(25px, 9vw, 60px);
}

h2 {
  font-size: clamp(20px, 8vw, 35px);
}

h3 {
  font-size: clamp(16px, 6vw, 20px);
  font-weight: 300;
}

p,
blockquote {
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5rem;
}

.p-center {
  text-align: center;
}

p,
.b-ul li {
  margin-bottom: 0.7rem;
}

.b-ul li {
  font-size: clamp(1.2rem, 1.25vw, 1.5rem);
  font-weight: 300;
  margin-left: 20px;
}

header {
  /*background: linear-gradient(to right, var(--bg-2) 50%, rgba(255, 255, 255, 0) 50%);*/
  height: 30svh;
  display: grid;
  place-items: center;
}

header h1 {
  margin-bottom: 0;
  z-index: 100;
  color: var(--active-color);
  text-align: center;
  max-width: 80%;
}

.diagonal-background {
  background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, transparent 10px, transparent 20px);
}

.t-center {
  text-align: center;
}

.t-left {
  text-align: left;
}

.t-right {
  text-align: right;
}

.two-col {
  display: flex;
  gap: 3%;
}

.col {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col .col img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

a {
  color: var(--active-color);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: var(--secondary-font);
  font-size: inherit;
}

.clients .wrapper ul {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  gap: 2rem;
}

.clients .wrapper ul li a {
  display: inline-block;
  aspect-ratio: 4 / 3;
  width: 15vw;
  max-width: 200px;
  min-width: 100px;
  border-radius: 10px;
  border: solid 2px rgba(0, 0, 0, 0);
}

.clients .wrapper ul li a:hover {
  border: solid 2px var(--accent-color);
  background-color: var(--accent-color-translucent);
}

.clients .wrapper ul li a img {
  width: 100%;
  border-radius: 10px;
}

section {
  padding-block: 4rem;
}

button,
.modal-button,
.btn {
  display: inline-block;
  background-color: var(--accent-bg);
  color: var(--active-color-2);
  text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5);
  font-weight: 400;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  max-width: fit-content;
}

button:hover,
.btn:hover {
  background-color: var(--inactive-bg);
}

.section-bg {
  background-color: var(--bg-2);
}

.white-svg {
  filter: var(--invert-color);
}

/*sección "Promesas"*/

.promesas {
  text-align: center;
}

.promesas ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  text-align: center;
  justify-content: space-around;
}

.promesas ul li {
  width: 20%;
  min-width: 150px;
}

.promesas ul li svg {
  width: 150px;
  aspect-ratio: 1 / 1;
}

.promesas ul li h3 {
  margin-bottom: 1rem;
}

.animate {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.promesas ul li.animate:nth-child(1) {
  transition-delay: 0s;
}

.promesas ul li.animate:nth-child(2) {
  transition-delay: 0.2s;
}

.promesas ul li.animate:nth-child(3) {
  transition-delay: 0.4s;
}

.promesas ul li.animate:nth-child(4) {
  transition-delay: 0.6s;
}

.service {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.service > h3 {
  margin-bottom: 0;
}

.services > ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 3rem 4rem;
}

.services > ul > li > ul {
  list-style-type: disc;
  margin-top: 20px;
}

/***************************************PRODUCTOS*****************************************/

.productos {
  background-color: var(--bg-2);
}

.productos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 2rem;
  list-style-type: none;
}

.product {
  background-color: var(--bg);
  padding: 1rem;
  border: 1px solid var(--border);
  opacity: 0;
  border-radius: 10px;
}

.product-name {
  margin-bottom: 0;
}

.product-description,
.product-brand {
  line-height: normal;
  margin-bottom: 0;
  font-size: 1rem;
}

.product-brand {
  font-size: 0.8rem;
  opacity: 0.6;
}

.product-image {
  max-width: 100%;
  height: auto;
  margin-block: 1px solid var(--border);
}

.product-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: #3f7cab;
  font-weight: bold;
  margin-bottom: 0;
}

.product-description {
  display: flex;
}

/* CONTACT ****************************************************************/

.contact-method {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  gap: 4rem;
}

.contact-method li a {
  color: var(--active-color-2);
}

.contact-method li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100px;
  height: 100px;
  background-color: var(--accent-color);
  border-radius: 15px;
}

.contact-method li a img {
  aspect-ratio: 1 / 1;
  width: 50px;
  height: 50px;
  margin-top: -5px;
}

.utah-map {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
}

.contact-social {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  gap: 1rem;
}

.contact-social li a {
  display: flex;
  height: 40px;
  width: 40px;
  border-radius: 23px;
  background-color: var(--accent-color);
}

.contact-social li a img {
  width: 30px;
  height: 30px;
}

/* PACKAGES **************************************************************/

.packages > .wrapper > ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 3vw;

  > li {
    border-radius: 12px;
    background-color: var(--bg-2);
    text-align: left;
    transition:
      transform 0.2s ease-in-out,
      box-shadow 0.2s ease-in-out;
  }

  > li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  > li .package-title {
    position: relative;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    color: white;
    text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }

  > li .package-title img {
    position: absolute;
    top: -30px;
    right: 0;
    height: 191px;
    max-width: 115px;
    transform: rotate(-0.125turn);
    opacity: 0.4;
  }

  > li .package-title.bronze {
    background-image: linear-gradient(to right, #614327, #72583d, #d9b6a0, #a17c61, #4e311f);
  }

  > li .package-title.silver {
    background-image: linear-gradient(to right, #7a7f85, #a3a6ab, #fcfcfa, #7c7d85, #464850);
  }

  > li .package-title.gold {
    background-image: linear-gradient(to right, #866b36, #d2ad61, #fad08a, #634d24, #5c4a26);
  }

  > li .package-title.platinum {
    background-image: linear-gradient(to right, #9e989a, #e2ddae, #9e65bd, #36b1c9, #57514e);
  }

  > li .content {
    padding: 20px;
  }

  > li img {
    border-radius: 10px 10px 0 0;
    aspect-ratio: 2/1;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  > li span {
    font-size: 2rem;
    font-weight: 600;
  }

  > li a button {
    display: block;
    color: var(--accent-color-text);
    font-size: 0.8rem;
    padding: 0 1rem 1rem 1rem;
  }

  > li ul {
    list-style-type: none;
    padding-left: 20px;
  }

  > li ul li {
    text-indent: -20px;
    font-size: 1rem;
    font-weight: 300;
    padding-block: 6px;
    line-height: 1.5rem;
  }

  > li ul li:before {
    content: "✓";
    color: var(--accent-color-active);
    font-weight: 800;
    margin-right: 5px;
  }
}

/* TESTIMONIALS *********************************************************/

.testimonials-slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);

  .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
    list-style-type: none;
  }

  .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun var(--testimonials-time) linear infinite;
    animation-delay: calc((var(--testimonials-time) / var(--quantity)) * (var(--position) - 1) - var(--testimonials-time)) !important;
    display: flex;
    align-items: center;

    figure {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      color: var(--active-color);
      background-color: var(--bg-2);
      width: 100%;
      text-align: center;
      font-size: 16px;
      padding: 25px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    }

    figure:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    figure h3 {
      margin-bottom: 0;
    }

    figure h4 {
      font-weight: 300;
    }

    figure .profile {
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      margin-bottom: 10px;
      display: inline-block;
    }

    figure .profile .profile-img {
      width: 100%;
      border-radius: 50%;
      border: solid 4px var(--accent-color);
    }

    figure .G {
      position: absolute;
      width: 24px;
      height: 24px;
      bottom: 0;
      right: 0;
    }

    figure figcaption .star-rating {
      width: 100px;
      height: 20px;
      background-image: url("/assets/images/star.png");
      background-repeat: repeat-x;
      background-size: 20px 20px;
      margin: 0 auto;
      margin-block: 20px 10px;
    }

    figure figcaption blockquote {
      color: var(--active-color);
      border-radius: 10px;
      position: relative;
      font-size: 1rem;
    }
  }
}

@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}
.testimonials-slider:hover .item {
  animation-play-state: paused !important;
}
.testimonials-slider[reverse="true"] .item {
  animation: reversePlay var(--testimonials-time) linear infinite;
}
@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }
  to {
    left: 100%;
  }
}

/* MOBILE **************************************************************/
@media (max-width: 899px) {
  main {
    margin: 58px auto 0;
  }
  main > h1 {
    text-align: center;
  }
  .wrapper {
    width: 90vw;
  }

  .clients .wrapper ul {
    gap: 0.5rem !important;
  }

  .t-left,
  .t-right,
  .t-center {
    text-align: center;
  }
  .two-col {
    flex-direction: column;
  }

  .col {
    width: 100%;
    > h2 {
      margin-top: 20px;
    }
  }

  .col-a {
    order: 1;
  }

  .col-b {
    order: 2;
  }

  .form-group:nth-child(2),
  .form-group:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .contact-social {
    justify-content: center;
  }

  .contact-method {
    gap: 1rem;
  }
}

@media (max-width: 535px) {
  section {
    padding-block: 2rem;
  }
  header {
    height: 20svh;
  }
  .packages > .wrapper > ul {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 1rem;
    > li .content {
      padding: 5px;
    }
    > li ul li {
      font-size: 0.8rem;
      padding-block: 4px;
      line-height: 1.2rem;
    }
  }

  :root {
    --testimonials-time: 60s;
  }
}
