/*
Theme Name: FletsCL
Author: FletsCL
Description: Fletes.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fletscl
*/

/* Poppins Font Faces */
@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Roboto Font Faces */
@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colores */
  --color-primary: #46c284;
  --color-primary-hover: #2b6c4c;
  --color-secondary: #f68f25;
  --color-secondary-hover: #d4761e;
  --color-light: #f0f0f0;
  --color-dark: #929292;
  --color-white: #f5f5f5;
  --color-black: #141414;

  /* Fuentes */
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Poppins", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--color-black);
}

ul {
  list-style: none;
}

.hidden {
  display: none;
}

.summary-quote,
.additional-info {
  display: block;
}

.summary-quote.hidden,
.additional-info.hidden {
  display: none;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.header__logo-image {
  width: 125px;
  height: auto;
}

.header__menu-button {
  display: inline-block;
  cursor: pointer;
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

.header__menu-line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: white;
}

/* Transformación a 'X' */
.header__menu-button.active .header__menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__menu-button.active .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-button.active .header__menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__nav {
  position: absolute;
  top: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background-color: var(--color-primary);
  padding: 2rem 0;
  transition: all 300ms ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.nav--visible {
  width: 50%;
  opacity: 1;
  right: 0;
  pointer-events: all;
}

.header__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.header__list-item {
  font-size: 1.2rem;
  font-weight: 500;
}

.header__nav-link {
  text-decoration: none;
  color: var(--color-light);
  border-bottom: 3px solid transparent;
  transition: border 300ms linear;
}

.header__nav-link:hover {
  border-bottom: 3px solid var(--color-white);
}

.header__list--rrss {
  flex-direction: row;
}

.header__rrss-img {
  height: 25px;
  width: auto;
}

/* Modal */
.modal-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal__close {
  position: absolute;
  top: 0;
  right: 3%;
  font-size: 3rem;
  cursor: pointer;
}

.faq-section {
  margin-bottom: 20px;
}

.faq-section h3 {
  cursor: pointer;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.faq-section p,
.faq-section ol,
.faq-section a {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.faq-section a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 600ms ease-in-out;
  font-weight: 500;
}

.faq-section a:hover {
  text-decoration: underline;
}

.faq-section__content {
  display: none;
}

.faq-section__content ol {
  padding-left: 2rem;
}

/* Estilos para secciones colapsables */
.faq-answer {
  display: none;
  padding-left: 20px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero__image {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: 70%;
}

.hero__info {
  padding-left: 5%;
  position: absolute;
  width: 85%;
}

.hero__title {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-white);
  text-transform: uppercase;
}

.hero__description {
  font-size: 0.9rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-wrap: pretty;
}

.hero__description--orange {
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--color-secondary);
  text-decoration: none;
  color: var(--color-white);
  border-radius: 10px;
  padding: 10px 1rem;
  transition: all 300ms ease-in;
}

.hero__description--orange:hover {
  background-color: var(--color-secondary-hover);
}

/* Stepper */
.stepper__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.stepper__item {
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  box-shadow: 0px 4px 4px 1px #00000030;
}

.stepper__arrow {
  display: none;
}

.stepper__card {
  width: 80%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

.stepper__text {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* Quote - Form */
.quote {
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 4px #00000020;
}

.quote__title,
.quote__description {
  text-align: center;
}

.quote__title {
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
}

.quote__description {
  width: 70%;
  margin: 0 auto;
}

.quote__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.quote__fieldset {
  border: 0;


  justify-content: center;

  gap: 1.5rem;
  margin: 2rem 0 0;
  width: 80%;
}

.quote__field-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.quote__field-group--row {
  display: flex;
  justify-content: space-between;
}

.quote__error-message {
  height: 3rem;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  color: #d81818;
  font-weight: bold;
}

.quote__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin: 5px;
  width: 100%;
}

.quote__label {
  font-size: 1.3rem;
  font-weight: 500;
}

.quote__input,
.quote__select {
  height: 35px;
  width: 100%;
  border-radius: 10px;
  border: 1px var(--color-dark) solid;
  padding: 0 10px;
  font-size: 1.1rem;
}

.quote__input::placeholder,
.quote__select::placeholder,
.quote__option::placeholder {
  font-size: 1rem;
  font-weight: 300;
}

.quote__button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.4rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-light);
  font-size: 1.3rem;
  text-align: center;
  font-weight: 700;
  transition: background 300ms ease-in-out;
}

.quote__button:hover {
  background-color: var(--color-primary-hover);
}

.line {
  width: 80%;
  margin: 2rem auto;
}

/* Map */
.quote__map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 80%;
  margin: 0 auto 2rem;
}

.map__iframe {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
}

.quote__map-description {
  font-size: 0.8rem;
  margin: 5px 0;
}

/* Details */
.quote__details {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.quote__details-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote__details-item {
  /*display: flex;*/
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 300;
}

.orange-letter {
  color: orange;
  display: inline;
  font-size: 1.3rem;
  font-weight: 300;
}

.service-price {
  margin-top: -30px;
}

.quote__details-item span {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.quote__details-item--price {
  font-weight: 500;
}

#servicePrice {
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
}

.quote__button--secondary {
  padding: 0.8rem 0;
  background-color: var(--color-secondary);
}

/* Aditional Info */
.additional-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.additional-info__title {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 10%;
}

.additional-info__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.additional-info__container-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.additional-info__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  font-size: 1.1rem;
  font-weight: 500;
  width: 80%;
  margin: 0 auto;
}

.additional-info__input:not(#fleteFiles, #couponCode) {
  height: 30px;
  width: auto;
  min-width: 150px;
  border-radius: 8px;
  border: 1px var(--color-dark) solid;
  padding: 0 10px;
  font-size: 1.1rem;
  color: var(--color-black);
}

.additional-info__input#fullName,
.additional-info__input#phoneNumber {
  width: 100%;
}

.additional-info__textarea {
  height: 100px;
  min-height: 100px;
  width: 100%;
  border: 1px var(--color-dark) solid;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

input#fleteFiles {
  font-size: 1rem;
  font-family: "Roboyo", sans-serif;
}

/* Summary */
.additional-info__summary {
  margin: 1rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  background-color: #f4f4f4;
}

.additional-info__summary .additional-info__title {
  margin: auto;
}

.additional-info__price {
  font-size: 1.2rem;
  font-weight: 500;
}

#servicePriceFinal {
  font-size: 2.2rem;
  font-family: "Poppins", sans-serif;
}

.additional-info__price,
.additional-info__comparison-price,
.additional-info__savings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.additional-info__comparison-price,
.additional-info__savings {
  width: 70%;
  margin: 0 auto;
  border-radius: 5px;
  font-weight: 500;
  padding: 1rem;
}

#comparisonPrice,
#savingsPrice {
  font-size: 1.2rem;
}

.additional-info__comparison-price {
  background-color: #f2caca;
  font-size: 1rem;
}

.additional-info__comparison-price-original {
  background-color: #f2caca;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.additional-info__comparison-price-original {
  /*width: 100%;
  margin: 0 auto;*/
  border-radius: 5px;
  font-weight: 500;
  /*padding: 1rem;*/
}

.additional-info__savings,
.quote__details-item--price,
.service-price {
  border-radius: 5px;
  background-color: #caf2d3;
  font-size: 1.2rem;
}

.visually-hidden {
  display: none;
}

.additional-info__field-group {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-input-button-container {
  margin: 0 auto;
  display: flex;
  gap: 5px;
  width: 100%;
}

#couponCode {
  width: 60%;
  height: 35px;
  border-radius: 10px;
  border: 1px solid var(--color-dark);
  color: var(--color-black);
  padding: 0 1rem;
}

.additional-info__apply-button {
  width: 40%;
  height: 35px;
  border-radius: 10px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-light);
  cursor: pointer;
}

.additional-info__checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.additional-info__checkbox {
  width: 20px;
  height: 20px;
}

.additional-info__checkbox-container a {
  color: var(--color-black);
}

.additional-info__button {
  cursor: pointer;
  height: 56px;
  width: 245px;
  background-color: var(--color-secondary);
  color: var(--color-light);
  font-size: 1.3rem;
  text-align: center;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

img#loadingGif {
  height: auto;
  width: auto;
}

.additional-info__button--clear {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: none;
  background-color: transparent;
  text-decoration: underline;
  font-size: 1.1rem;
  font-weight: 300;
  font-family: "Roboto";
}

/* About */
.about-summary {
  padding: 2rem 0;
}

.about-summary__container {
  width: 90%;
  margin: 0 auto;
}

.about-summary__title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.about-summary__description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.about-summary__image-container {
  margin: 2rem auto;
}

.about-summary__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-summary__testimonials {
  background-color: var(--color-light);
  padding: 1rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.about-summary__testimonial blockquote {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

.about-summary__testimonials blockquote {
  font-size: 1.2rem;

  quotes: "“" "”" "‘" "’";
}

.about-summary__testimonials blockquote:before,
.about-summary__testimonials blockquote:after {
  content: open-quote;
  font-weight: bold;
  color: var(--color-secondary);
}

.about-summary__testimonials blockquote:after {
  content: close-quote;
}

.about-summary__link {
  text-decoration: none;
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  font-weight: 500;
  margin: 1rem 0;
}

.about-summary__link:hover {
  background-color: var(--color-primary-hover);
}

.about-summary__services {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service {
  text-align: center;
  margin: 1rem;
}

.service__icon {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}

.service p {
  font-size: 1rem;
  color: var(--color-dark);
}

/* Footer */
.footer {
  width: 100%;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 5%;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo {
  width: 150px;
  height: auto;
}

.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer__social-link img {
  height: 25px;
  width: auto;
}

.footer__column--logo-socials {
  justify-content: center;
  align-items: center;
}

.footer__column--links-contact {
  padding-left: 5%;
}

.footer__heading {
  color: var(--color-light);
  font-weight: 300;
}

.footer-group__newsletter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
}

.footer__link,
.footer__email {
  text-decoration: none;
  color: var(--color-light);
  font-weight: 500;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
}

.footer__link#faq-button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.footer__newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.footer__input {
  border: none;
  height: 38px;
  width: 80%;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 1.1rem;
}

.footer__input::placeholder {
  font-size: 1rem;
  font-weight: 300;
}

.footer__button {
  cursor: pointer;
  background: var(--color-secondary);
  border: none;
  padding: 5px;
  border-radius: 5px;
  width: 20%;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 300ms ease-in-out;
}

.footer__button:hover {
  background-color: var(--color-secondary-hover);
}

.footer__button-image {
  width: 20px;
  height: auto;
}

@media (min-width: 768px) {
  .header {
    height: 100px;
  }

  .header__logo-image {
    width: 170px;
  }

  .header__menu-button {
    display: none;
  }

  .header__nav {
    width: 60%;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    opacity: 1;
    pointer-events: all;
  }

  .header__list {
    flex-direction: row;
  }

  .hero__image {
    height: 450px;
  }

  .hero__info {
    padding-left: 5%;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1.4rem;
  }

  .hero__description--orange {
    font-size: 1.3rem;
  }

  .stepper__container {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    padding: 3rem 2rem;
    width: 90%;
    margin: 0 auto;
    flex-direction: row;
    background-color: var(--color-primary);
    box-shadow: 0px 4px 4px 1px #00000030;
    margin-top: -4rem;
  }

  .stepper__item {
    width: 33%;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  .stepper__arrow {
    display: block;
  }

  .quote {
    width: 90%;
    margin: -2rem auto 0;
    padding-top: 4rem;
  }

  .quote__fieldset {
    flex-direction: row;
    width: 90%;
  }

  .summary-quote {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }

  .quote__map {
    width: 60%;
    margin: 0;
  }

  .map__iframe {
    aspect-ratio: 6 / 3;
  }

  .quote__details {
    width: 30%;
    gap: 2rem;
  }

  .quote__details-items {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
  }

  .additional-info__container-form {
    gap: 1.2rem;
    width: 58%;
    padding: 2rem 0;
  }

  .additional-info__summary {
    width: 42%;
    margin: 0;
    padding: 2rem 0 5rem;
  }

  .additional-info__form {
    flex-direction: row;
    width: 90%;
    box-shadow: 0 4px 4px #00000020;
  }

  .about-summary__container {
    width: 90%;
  }

  .footer {
    flex-direction: row;
  }

  .footer__column:first-child {
    width: 20%;
  }

  .footer__column:nth-child(2),
  .footer__column:nth-child(3) {
    width: 40%;
  }

  .footer__input,
  .footer__button {
    height: 30px;
    border-radius: 5px;
  }

  .quote__field {
    width: 100%;
  }
  
}

@media screen and (max-width: 900px) {
  .quote__field-group {
    display: flex;
    flex-direction: column;
  }
}

