/*===================*/
/*= General resets =*/
/*=================*/

* {
  margin: 0;
  padding: 0;
}

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

body,
html {
  background-color: var(--main-bg-color);
  min-height: 100vh;
  height: 100%;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding);
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
}

h1 {
  display: block;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

a {
  text-decoration: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

.white-word {
  color: var(--font-white-color);
}

.blue-word {
  color: var(--blue-general);
}

/*========================================*/
/*============ Variables ================*/
/*======================================*/

:root {
  /* Colores */
  --yellow-header: #ffec88;
  --blue-general: #002e77;
  --font-white-color: #fffff8;
  /* Font Family */
  --font-family: "Mulish", sans-serif;
  --font-family-menu: "Rajdhani", sans-serif;
}

/* ============================================= */
/*=============== NAV BAR STYLES ===============*/
/* ============================================= */

.header-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  position: fixed;
  top: 0;
  z-index: 9999;
  transition: transform 0.2s;
}

.header-box-img {
  background-color: var(--yellow-header);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-img-mobile {
  display: none;
}

.header-img-desktop {
  width: 250px;
}

.header-nav-img {
  filter: opacity(0);
  position: absolute;
  left: 5vw;
  pointer-events: none;
  transition: all 0.2s;
}

.header-nav-box {
  height: 10vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--blue-general);
}

.header-nav-box-link a {
  padding: 10px;
  transition: all 0.2s;
}

.header-nav-box-link a:visited,
.header-nav-box-link a:link {
  color: var(--font-white-color);
}

.active-link {
  border-bottom: 3px solid var(--font-white-color);
}

/* ============================================= */
/*=============== MAIN STYLES ==================*/
/* ============================================= */

/* Home */

.main-title {
  text-align: center;
  font-weight: 600;
  color: var(--blue-general);
}

.main-subtitle {
  text-align: center;
  margin: 2rem 2vw;
  color: var(--blue-general);
  display: block;
}

.main-scroll {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
}

.main-scroll::-webkit-scrollbar {
  width: 0;
}

.main-scroll-img {
  border-radius: 50%;
  border: 5px solid var(--blue-general);
  object-fit: cover;
  width: 0;
}

.main-scroll-img-text {
  display: block;
  text-align: center;
  width: 100%;
  color: var(--blue-general);
}

/* ============================================= */
/*=============== ABOUT STYLES ==================*/
/* ============================================= */

.about-title {
  text-align: center;
  font-weight: 600;
  color: var(--blue-general);
}

.section-about {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-banner-img {
  flex-shrink: 0;
  object-fit: cover;
  height: 335px;
  width: 40vw;
  border-radius: 20px;
}

.about-objetivo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
}

.about-bluebox {
  font-family: var(--font-family);
  position: relative;
  background-color: var(--blue-general);
  color: var(--font-white-color);
  border-radius: 20px;
  padding: 0.5rem 0.5rem 0.5rem 3rem;
  max-width: 360px;
  margin: 1rem 0;
}

.about-bluebox-title {
  font-weight: bold;
  top: 10px;
  left: -60px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow-header);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 60%;
  color: var(--blue-general);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  transition: all 0.2s;
}

.about-bluebox-desc {
  max-width: 30ch;
}

/* ================================================= */
/*=============== SERVICES STYLES ==================*/
/* =============================================== */

.services-title {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--blue-general);
}

.services-box {
  background-color: var(--blue-general);
  color: #fff;
  text-align: center;
  padding: 3rem 0.8rem 1rem 0.8rem;
  border-radius: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 20rem;
  height: 250px;
  transition: all 1s;
  filter: opacity(0);
}

.services-box:nth-child(1) {
  transform: translateX(-100%);
}
.services-box:nth-child(3) {
  transform: translateX(100%);
}

.services-box-icon {
  width: 5.5rem;
  height: 5.5rem;
  position: absolute;
  border-radius: 50%;
  top: -3rem;
  transition: all 0.2s;
}

.services-box-span {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.services-box:nth-child(3) .services-box-text {
  padding: 1.1rem 0;
}

/* ============================================= */
/*===============  FAQ STYLES  =================*/
/* ============================================= */

.faq-subtitle {
  color: var(--blue-general);
  font-size: 1.5rem;
  width: 80vw;
  margin: 0 10vw 1rem;
  text-align: center;
}

.faq-container {
  display: flex;
  flex-direction: column;
}

.faq-box {
  background-color: var(--yellow-header);
  border-radius: 10px;
  filter: opacity(0);
  transition: all 1s;
}

.faq-box:nth-child(1),
.faq-box:nth-child(3) {
  transform: translateX(-100%);
}

.faq-box:nth-child(2),
.faq-box:nth-child(4) {
  transform: translateX(100%);
}

.faq-box-title {
  text-align: center;
  display: block;
  padding: 1rem 0;
  color: var(--blue-general);
  font-size: 1rem;
  font-weight: 900;
}

.faq-box-text {
  background-color: var(--blue-general);
  color: var(--font-white-color);
  border-radius: 10px;
  text-align: center;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 100;
}

/* ================================================ */
/*=============== CONTACT STYLES ==================*/
/* ============================================== */

#contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  min-height: 70vh;
}

.contact-title {
  font-size: 1.5rem;
  text-align: center;
  margin: 0 auto;
  color: var(--blue-general);
}

.contact-data {
  margin: 0 auto;
  padding: 0 1rem;
  /* min-width: 300px; */
  width: 100%;
  max-width: 550px;
}

.contact-form {
  display: flex;
  margin: 0 auto;
  padding-bottom: 2rem;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.input-form {
  position: relative;
  display: flex;
  flex-direction: column;
}

label {
  position: absolute;
  left: 15px;
  top: -10px;
  background-color: var(--font-white-color);
  color: var(--blue-general);
  font-weight: bold;
}

.contact-input {
  border: 2px solid var(--blue-general);
  border-radius: 10.56px;
  padding: 7px;
}

.form-button {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  background-color: var(--blue-general);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1rem 0;
  width: 200px;
  color: var(--font-white-color);
  cursor: pointer;
}

.form-button:active {
  margin: 0.2rem auto;
  padding: 0.8rem 0;
  width: 190px;
}

textarea {
  min-height: 100px;
  resize: none;
}

i {
  font-size: 1.45rem;
  color: var(--blue-general);
}

.social-data-container {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.social-info {
  display: flex;
}

.social-text {
  font-size: 0.75rem;
  color: var(--blue-general);
  display: none;
}

.hashtag {
  display: none;
}

.blue-box-texts {
  font-size: 1.1rem;
}

.section-about {
  overflow-x: hidden;
}

/* Swiper style */

.swiper {
  height: 380px;
}

.swiper-pagination {
  bottom: -30px;
  z-index: 9999999;
}

.swiper-wrapper {
  width: 150vw;
}

.swiper-slide {
  transition: border 0.3s;
}

.swiper-slide-next {
  border: 5px solid var(--blue-general);
}

.swiper-button-next {
  right: 29vw;
}

.swiper-button-prev {
  left: 29vw;
}

.section {
  overflow-x: hidden;
}

.swiper-pagination-bullet-active {
  background-color: var(--blue-general);
}

footer {
  background-color: var(--yellow-header);
}

/* ============================================= */
/*=============== MEDIA QUERIES =================*/
/* ============================================= */

@media screen and (max-width: 768px) {
  /*header*/

  .header-container {
    flex-direction: row;
    background-color: var(--blue-general);
    box-shadow: 0 5px 20px #fffa;
  }

  .header-box-img {
    width: 10vw;
    height: 10vh;
    background-color: transparent;
  }

  .header-img-desktop {
    display: none;
  }

  .header-img-mobile {
    display: inline-block;
  }

  .header-nav-box {
    width: 90vw;
    position: absolute;
    font-size: 10px;
    justify-content: space-around;
    text-align: center;
  }

  /*main*/

  .main-subtitle {
    font-size: 1.2rem;
  }

  .subtitle-margin {
    margin: 15vh 2vw 5vh;
  }

  .br-1,
  .br-2 {
    display: block;
  }

  .main-scroll-img {
    min-width: 37vw;
    height: 37vw;
    margin: 5px 10px;
  }

  /* ABOUT */

  .about-title {
    margin: 2.5rem 0;
  }

  .about-bluebox-title {
    top: 5px;
  }

  .about-objetivo {
    margin-left: auto;
  }

  /* SERVICES */

  .services-box {
    width: 80vw;
    margin: 5rem auto;
  }

  /* FAQ */

  .faq-box {
    margin: 1rem 0.5rem;
  }

  .faq-box-text {
    padding: 0 0.5rem;
  }

  .blue-box-texts {
    font-size: 1rem;
  }
  /* ABOUT */
  .about-banner-img {
    height: 250px;
    width: 95vw;
  }

  /* SWIPER */

  .swiper {
    height: 250px;
  }

  .swiper-wrapper {
    width: 250vw;
  }

  .swiper-slide {
    height: 200px;
  }

  .swiper-button-next {
    right: 79vw;
    top: 40%;
  }

  .swiper-button-prev {
    left: 79vw;
    top: 40%;
  }
}

@media screen and (min-width: 768px) {
  h2 {
    transition: all 0.2s;
  }

  h2:hover {
    text-shadow: 0 0 3px var(--yellow-header);
    letter-spacing: 1px;
  }

  /*HEADER*/

  .header-nav-box {
    box-shadow: 0 5px 20px #fffa;
  }

  .header-nav-box-link a:hover {
    color: var(--yellow-header);
    text-shadow: 0 0 2px var(--yellow-header);
  }

  .active-link:hover {
    border-bottom: 3px solid var(--yellow-header);
  }

  /*main*/

  .main-title {
    font-size: 2rem;
  }

  .main-subtitle {
    font-size: 1.5rem;
  }

  .subtitle-margin {
    margin: 35vh 2vw 5vh;
  }

  .br-1 {
    display: block;
  }

  .main-scroll {
    justify-content: center;
  }

  .img-2 {
    background-position-y: -60px;
  }

  .main-scroll-img {
    width: 200px;
    height: 200px;
    margin: 15px 20px;
    transition: all 0.3s;
  }

  .main-scroll-box:hover .main-scroll-img {
    box-shadow: 0 10px 10px var(--blue-general);
    transform: translateY(-10px);
  }

  .main-scroll-box:hover .main-scroll-img-text {
    text-shadow: 0 -20px 5px var(--font-white-color);
  }

  .main-scroll-img-text {
    font-size: 1.25rem;
    text-shadow: 0 0px 0px var(--blue-general);
    transition: all 0.3s;
  }

  /* About */

  .about-title {
    margin-top: 5rem;
    font-size: 2rem;
  }

  .section-about {
    gap: 3rem;
  }

  .about-objetivo {
    margin: 2rem 0;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .about-bluebox {
    padding: 2.9rem 2rem 1rem 2rem;
    max-width: 400px;
    margin: 1rem 0;
  }

  .about-bluebox-title {
    top: -50px;
    left: 37%;
  }

  .about-bluebox-desc {
    text-align: center;
    max-width: 100%;
    font-weight: 100;
  }

  .about-bluebox:hover .about-bluebox-title {
    width: 6rem;
    height: 6rem;
    top: -3.5rem;
  }

  .about-bluebox:hover {
    filter: drop-shadow(0 0 5px #000);
  }

  /* SERVICES */

  .services-title {
    margin-top: 5rem;
    font-size: 2rem;
  }

  .services-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }

  .services-box {
    margin: 5rem 2rem;
  }

  .services-box:hover .services-box-icon {
    width: 6rem;
    height: 6rem;
    top: -3.5rem;
  }

  .services-box:hover {
    filter: drop-shadow(0 0 5px #000);
  }

  /* FAQ */

  .faq-box {
    margin: 1rem auto;
    max-width: 850px;
  }

  .faq-box-text {
    padding: 0 5rem;
  }

  .faq-subtitle {
    margin-top: 2rem;
    font-size: 2rem;
  }

  /* Contact */

  #contact {
    gap: 80px;
  }

  .contact-title {
    margin-top: 2rem;
    font-size: 2rem;
  }

  .contact-title span {
    display: none;
  }

  .contact-data {
    display: flex;
    margin: 0 auto;
    width: 100%;
    /* max-width: 900px; */
    gap: 60px;
  }

  .contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;

    width: 100%;
    padding-right: 1rem;
  }

  label {
    padding: 0 5px;
  }

  .contact-input {
    padding: 12px;
  }

  textarea {
    min-height: 150px;
    resize: none;
  }

  /* FOOTER */

  .social-data {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 30px;
    background-color: transparent;
    align-items: flex-start;
    margin-left: 1rem;
  }

  .social-data-container {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
  }

  .social-info {
    gap: 20px;
    position: relative;
  }

  .social-info::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--blue-general);
    position: absolute;
    bottom: 0;
    left: 10%;
    transition: width 0.5s;
  }

  .social-info:hover i {
    transform: rotateY(360deg);
  }

  .social-info:hover::after {
    width: 91%;
  }

  .social-info i {
    transition: transform 0.5s;
    font-size: 1.45rem;
  }

  .social-text {
    display: block;
    font-size: 1.1rem;
  }

  .hashtag {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e7cc43;
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-with: 300px) {
  .header-nav-box-link {
    padding: 0 5px;
    font-size: 8px;
  }
}

/* ANIMATION */
.scroll-reveal {
  transform: translate(0) !important;
  filter: opacity(1);
}
