/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4.3rem;

  /*========== Colors ==========*/
  --first-color: #14c1dc;
  --first-color-alt: #043486;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #a6a6a6;
  --body-color: #fbfefd;
  --container-color: #ffffff;

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5.rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 600;
  --font-semi-bold: 700;

  /*========== Margenes ==========*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
      .popup {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        top: 0;
        left: 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        overflow-x: hidden;
        transition: all 0.3s ease-in-out;
        color: #706f79;
      }
      .popup__body {
        min-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px 10px 50px;
        transition: all 0.3s ease-in-out;
      }
      .popup__content {
        background-color: #dfdfe2;
        max-width: 650px;
        width: 450px;
        position: relative;
        transition: all 0.3s ease-in-out;
        border-radius: 10px;
      }
      .popup__close {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 24px;
        color: var(--white);
        z-index: 101;
        text-decoration: none;
      }
      .popup__form {
        display: block;
        border-radius: 10px;
        padding: 50px 30px;
        position: relative;
        text-align: center;
      }
      @media (max-width: 450px) {
        .popup__form {
          padding-left: 20px;
          padding-right: 20px;
        }
      }
      .popup__form h2 {
        font-weight: 700;
        font-size: 28px;
        line-height: 1.22;
        margin-bottom: 20px;
      }
      @media (max-width: 450px) {
        .popup__form h2 {
          font-size: 20px;
        }
      }
      .popup__form p {
        font-weight: 400;
        font-size: 18px;
        line-height: 1.12;
        margin-bottom: 30px;
        color: #706f79;
      }
      @media (max-width: 450px) {
        .popup__form p {
          margin-bottom: calc(20px + 10 * (100vw - 320px) / 540);
          font-size: 14px;
        }
      }
      .popup__input {
        display: block;
        border-radius: 10px;
        padding: 10px;
        margin: 0 auto 10px;
        font-size: 18px;
        width: 100%;
      }
      .popup__textarea {
        min-height: 100px;
        background: #535353;
        border-radius: 10px;
        padding: 10px;
        color: var(--white);
        font-size: 18px;
        margin-bottom: 20px;
        resize: none;
        width: 100%;
      }
      .popup__btn {
        margin-top: 30px;
        white-space: nowrap;
        padding: 15px 50px;
        font-size: 24px;
      }
      .popup.open {
        opacity: 1;
        visibility: visible;
      }
      /* Add these styles within the <style> tag */
.popup__btn {
  background-color: blue;  /* Set the initial button color to blue */
  color: white;  /* Set the text color to white */
  margin-top: 30px;
  white-space: nowrap;
  padding: 15px 50px;
  font-size: 24px;
  border: none;  /* Remove default border */
  border-radius: 10px;
  cursor: pointer;  /* Change cursor to pointer to indicate it's clickable */
  transition: background-color 0.3s ease-in-out;  /* Smooth transition for color change */
}

.popup__btn:hover {
  background-color: cyan;  /* Change button color to cyan on hover */
  color: black;  /* Optionally change text color on hover */
}
/* Add these styles within the <style> tag */

/* Style for the "commander un service" button */
.footer__btn {
  display: inline-block;  /* Display as inline-block for proper padding and margin */
  background-color:#14c1dc;  /* Set background color to red */
  color: white;  /* Set text color to white */
  padding: 10px 20px;  /* Add padding for a button-like appearance */
  text-align: center;  /* Center the text */
  border-radius: 5px;  /* Round the corners */
  text-decoration: none;  /* Remove underline */
  font-size: 18px;  /* Set a readable font size */
  transition: background-color 0.3s ease-in-out;  /* Smooth transition for hover effect */
}

.footer__btn:hover {
  background-color: rgb(30, 0, 139);  /* Change to a darker red on hover */
  color: white;  /* Ensure text color remains white on hover */
  cursor: pointer;  /* Change cursor to pointer on hover */
}
.favicon {
  width: 32px; /* Set the width */
  height: auto; /* Maintain aspect ratio */
}
.header__logo {
  position: relative;
  z-index: 6;
  max-width: 150px;
}
@media (max-width: 450px) {
  .header__logo {
    max-width: 100px;
  }
}
@media (max-width: 350px) {
  .header__logo {
    max-width: 70px;
  }
}
@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*======= BASE ========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* SCROLL TOP */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-self: center;
  padding: 0.3rem;
  background: #14c1dc;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  visibility: hidden;
}

.scrolltop:hover {
  background: var(--first-color-alt);
}

.scrolltop_icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* show scroll-top */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*===== SECTION CSS =======*/
.section {
  padding: 4rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*======= LAYOUT =======*/

.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5em;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*======== NAV ========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav_menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
  }
}

.nav_item {
  margin-bottom: var(--mb-2);
}

.nav_link,
.nav_logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav_logo:hover {
  color: var(--first-color);
}

.nav_link {
  transition: 0.3s;
}

.nav_link:hover {
  color: var(--first-color);
}

/* SHOW MENU */

.show-menu {
  top: var(--header-height);
}

/* Active Link */
.active-link {
  color: var(--first-color);
}

/*======== HOME ========*/
.home_container {
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home_title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home_subtitle {
  font-size: 15px;
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}

.home_img {
  width: 300px;
  justify-self: center;
}

/*=========== BUTTONS ===========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*====== ABOUT ========*/
.about_data {
  text-align: center;
}

.about_description {
  margin-bottom: var(--mb-3);
}
.img-animate {
  opacity: 0;
  transform: translateX(-40px); /* slide from left */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.img-animate.visible {
  opacity: 1;
  transform: translateX(0);
}


.about_img {
  width: 320px;
  height: 500px;
  border-radius: 0.5rem;
  justify-self: center;
}

/*======== SERVICES ========*/

.services_container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services_content {
  text-align: center;
}

.services_img {
  width: 64px;
  height: 64px;
  margin-bottom: var(--mb-2);
}

.services_title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services_description {
  padding: 0 1.5rem;
}

/*========= MENU =========*/
.menu_container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}

.menu_content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, 0.15);
  padding: 0.75rem;
}

.menu_img {
  width: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
}

.menu_name,
.menu_price {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.menu_name {
  font-size: var(--normal-font-size);
}

.menu_button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: 0.65rem 0.813rem;
  border-radius: 0.5rem 0 0.5rem 0;
}

/*======== APP ==========*/
.app_data {
  text-align: center;
}

.app_description {
  margin-bottom: var(--mb-5);
}

.app_stores {
  margin-bottom: var(--mb-4);
}

.app_store {
  width: 120px;
  margin: 0 var(--mb-1);
}

.app_img {
  width: 300px;
  justify-self: center;
}

/*======== CONTACT ========*/

.contact_container {
  text-align: center;
}

.contact_description {
  margin-bottom: var(--mb-3);
}

/*========= FOOTER =========*/
.footer_container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer_logo {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}
.footer_description {
  display: block;
  font-size: var(--small-font-size);
  margin: 0.25rem 0 var(--mb-3);
}

.footer_social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer_title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer_link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer_link:hover {
  color: var(--first-color);
}

.footer_copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

@media screen and (min-width: 576px) {
  .home_container,
  .about_container,
  .app_container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about_data,
  .about_initial,
  .about_data,
  .contact_container,
  .contact_initial {
    text-align: initial;
  }

  .about_img,
  .app_img {
    width: 380px;
    order: -1;
  }

  .contact_container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }

  .contact_button {
    justify-self: center;
  }
}

@media screen and (min-width: 760px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 8rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav_list {
    display: flex;
  }

  .nav_item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav_toggle {
    display: none;
  }

  .home_container {
    height: 100vh;
    justify-content: center;
  }

  .services_container,
  .menu_container {
    margin-top: var(--mb-6);
  }

  .menu_container {
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }

  .menu_content {
    padding: 1.5rem;
  }

  .menu_img {
    width: 130px;
  }

  .app_store {
    margin: 0 var(--mb-1) 0 0;
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .home_img {
    width: 500px;
  }

  .about_container,
  .app_container {
    column-gap: 7rem;
  }
}

@media screen and (min-height: 721px) {
  .home_container {
    height: 600px;
  }
}