/*
Theme Name: JavelDev Responsive Theme V2.2
Theme URI: https://www.linkedin.com/in/javeldev/
Author: José Avello (JavelDev)
Author URI: https://www.linkedin.com/in/javeldev/
Text Domain: javeldev
*/
:root {
  --page-width: 87.5rem;
  --z-index-base: 0;
  --z-index-overlay: 50;
  --z-index-header: 100;
  --primary-color: 9, 1, 48, 1;
  box-sizing: border-box;
  scroll-behavior: smooth;

  --global-padding-mb: 2.5rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Avenir';
  src: url('./assets/Avenir-Book.ttf');
}
@font-face {
  font-family: 'Avenir';
  font-weight: 500;
  src: url('./assets/Avenir-Medium.ttf');
}
@font-face {
  font-family: 'Avenir';
  font-weight: bold;
  src: url('./assets/Avenir-Black.ttf');
}

body {
  font-family: 'Avenir', sans-serif;
  padding: 0;
  margin: 0;
}
* {
  font-family: 'Avenir', sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Avenir', sans-serif;
  text-transform: uppercase;
}

/* Utility classes */
.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
}
@media (max-width: 87.5rem) {
  .javel-parallax-img-text__item p,
  .javel-featured-products__description,
  .javel-featured-products__preheading,
  .jvl-contact-form__description {
    font-size: 16px !important;
    line-height: 1.5;
  }

  .javel-hover-details__button {
    font-size: 16px !important;
  }

  h1,
  .h1,
  .javel-hover-details__title {
    font-size: 24px !important;
    line-height: 1.5 !important;
  }
  .page-width {
    padding-inline: var(--global-padding-mb);
  }
}

.text-xs {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
}
.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}
.text-base {
  font-size: 1rem; /* 16px */
  line-height: 1.5rem; /* 24px */
}
.text-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
}
.text-xl {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
}
.text-2xl {
  font-size: 1.5rem; /* 24px */
  line-height: 2rem; /* 32px */
}
.text-3xl {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
}
.text-4xl {
  font-size: 2.25rem; /* 36px */
  line-height: 2.5rem; /* 40px */
}
.text-5xl {
  font-size: 3rem; /* 48px */
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem; /* 60px */
  line-height: 1;
}
.text-7xl {
  font-size: 4.5rem; /* 72px */
  line-height: 1;
}
.text-8xl {
  font-size: 6rem; /* 96px */
  line-height: 1;
}
.text-9xl {
  font-size: 8rem; /* 128px */
  line-height: 1;
}

@media (max-width: 750px) {
  .text-5xl {
    font-size: 2rem;
  }
}

.weight-normal {
  font-weight: normal;
}
.weight-medium {
  font-weight: 500;
}
.weight-bold {
  font-weight: bold;
}

.leading-3 {
  line-height: 0.75rem; /* 12px */
}
.leading-4 {
  line-height: 1rem; /* 16px */
}
.leading-5 {
  line-height: 1.25rem; /* 20px */
}
.leading-6 {
  line-height: 1.5rem; /* 24px */
}
.leading-7 {
  line-height: 1.75rem; /* 28px */
}
.leading-8 {
  line-height: 2rem; /* 32px */
}
.leading-9 {
  line-height: 2.25rem; /* 36px */
}
.leading-10 {
  line-height: 2.5rem; /* 40px */
}
.leading-none {
  line-height: 1;
}
.leading-tight {
  line-height: 1.25;
}
.leading-snug {
  line-height: 1.375;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-loose {
  line-height: 2;
}

/* Formularios */
.field {
  position: relative;
  margin-bottom: 24px;
}

.field__label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 18px;
  color: #9e9e9e;
  transition: 0.2s ease all;
  pointer-events: none;
}

.field__input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: transparent;
  font-size: 16px;
  outline: none;
  color: #fff;
  font-size: 18px;
}

.field__input:focus {
  border-bottom-color: #fff;
}

.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label {
  top: -18px;
  font-size: 16px;
  color: #fff;
}

.field__border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: 0.2s ease all;
}

.field__input:focus ~ .field__border {
  width: 100%;
}
.dual-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

textarea.field__input {
  padding-top: 20px;
  height: 100px;
  resize: vertical;
}
textarea.field__input ~ .field__border {
  bottom: 5px;
}

/* Estilos adicionales para el select */
.field select {
  padding-right: 30px; /* Espacio para la flecha del select */
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='5' viewBox='0 0 22 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.14254 5.84506C6.07575 5.78194 5.99718 5.7326 5.91132 5.69985C5.82546 5.6671 5.73399 5.65158 5.64213 5.65418C5.55028 5.65678 5.45983 5.67744 5.37596 5.71499C5.29209 5.75255 5.21644 5.80625 5.15332 5.87304C5.0902 5.93983 5.04086 6.0184 5.00811 6.10426C4.97536 6.19012 4.95984 6.28159 4.96244 6.37345C4.96504 6.46531 4.9857 6.55575 5.02326 6.63962C5.06081 6.72349 5.11451 6.79915 5.1813 6.86226L11.4776 12.8088C11.6075 12.9316 11.7795 13 11.9582 13C12.137 13 12.309 12.9316 12.4388 12.8088L18.7358 6.86226C18.8041 6.79956 18.8592 6.72393 18.898 6.63975C18.9368 6.55557 18.9584 6.46452 18.9617 6.3719C18.965 6.27928 18.9499 6.18693 18.9172 6.10021C18.8845 6.01349 18.8348 5.93413 18.7712 5.86675C18.7076 5.79936 18.6312 5.74529 18.5465 5.70768C18.4618 5.67007 18.3705 5.64966 18.2778 5.64764C18.1851 5.64562 18.093 5.66203 18.0067 5.69592C17.9205 5.72982 17.8418 5.78051 17.7753 5.84506L11.9582 11.3382L6.14254 5.84506Z' fill='%23fff'/%3E%3C/svg%3E"); /* Flecha hacia abajo */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  appearance: none;
}
.field select option {
  padding: 20px !important;
  background: #fff;
  color: #000;
}

.field__checkbox {
  display: flex;
  gap: 1em;
  align-items: center;
  color: #fff;
  justify-content: center;
  width: fit-content;
  margin: auto;
}

.field__checkbox input,
.field__checkbox input:checked ~ svg:first-of-type,
.field__checkbox input:not(:checked) ~ svg:last-of-type {
  display: none;
}

/* Components */
.jvl-main-header {
  display: block;
  top: 100px;
  width: 100%;
  z-index: var(--z-index-header);
  position: absolute;
}
@media (max-width: 750px) {
  .jvl-main-header {
    top: 50px;
  }
}

.jvl-main-header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jvl-main-header__logo img {
  display: block;
  width: 100px;
  height: auto;
}
.jvl-main-header__logo {
  padding: 1rem;
}
.jvl-main-header__nav ul {
  padding: 0;
  list-style: none;
  display: none;
  align-items: center;
  gap: 1rem;
}
.button {
  /* Auto layout */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  gap: 10px;
  border: 1px solid #ffffff;
  margin: auto;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 18px;
}
.button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.jvl-main-footer {
  background: rgb(var(--primary-color));
  color: #fff;
  padding-block: 4rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.5);
}
.jvl-main-footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jvl-main-footer__logo img {
  display: block;
  width: 112px;
  height: auto;
}
.jvl-main-footer__social {
  display: flex;
  gap: 1em;
}
.jvl-main-footer__content {
  display: flex;
  justify-content: space-evenly;
  color: #fff;
  gap: 2rem;
}
.jvl-main-footer__content > * {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.jvl-main-footer__content a {
  color: currentColor;
  text-decoration: none;
}
@media (max-width: 750px) {
  .jvl-main-footer__wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
  }
  .jvl-main-footer__content {
    flex-direction: column;
    gap: 20px;
  }
}
