/* <link rel="preconnect" href="https://fonts.googleapis.com">  */
/* <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>  */
/* <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet"> */

:root {
  --header-height: 3rem;
  --hue-color: 220;
  --first-color: hsl(var(--hue-color), 100%, 63%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%);
  --first-color-lighter: hsl(var(--hue-color), 93%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --card-color: hsl(var(--hue-color), 30%, 95%);
  /***************** Font and typography *****************/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --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: 500;
  --font-semi-bold: 600;
  /*********** 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;
}

@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;
}

/*********** Variables Dark theme ***********/
body.dark-theme {
  --title-color: #ffffff;           /* Pure white for titles */
  --text-color: #cccccc;            /* Light gray for better readability */
  --body-color: #000000;            /* Pure black for background */
  --container-color: #111111;       /* Deep gray for cards/containers */
  --card-color: #1a1a1a;            /* Slightly lighter gray for distinction */
}


/*********** Button Dark/Light ***********/
.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

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,
ul,
p {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*********** CLASS CSS ***********/
.section {
  padding: 2rem 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-1);
}

.section-subtitle {
  font-size: var(--h2-font-size);
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  /* margin-bottom: var(--mb-1); */
  margin-top: var(--mb-1);
  margin-bottom: var(--mb-1);
}

/*********** LAYOUT ***********/
.bd-container {
  max-width: 1100px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
  border-radius: 1.5rem;
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.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);
    transition: 0.4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item {
  margin-bottom: var(--mb-2);
}

.nav__link:hover {
  margin-bottom: var(--mb-2);
  transition: 0.3s;
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-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);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: var(--header-height);
}

/* Active menu */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll top */
.scrolltop {
  position: fixed;
  height: 40px;
  width: 40px;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  background: var(--first-color);
  border-radius: 1.5rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  visibility: hidden;
}

.scrolltop:hover {
  background-color: var(--first-color-alt);
}

.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*********** 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: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}

.home__img {
  width: 300px;
  justify-self: center;
}

.ui__icon {
  font-weight: var(--font-medium);
}

/*********** BUTTONS ***********/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  transition: 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*********** ABOUT ***********/
.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
  margin-right: var(--mb-3);
}

.about__img {
  border-radius: 0.5rem;
  justify-self: center;
}

.demo__button {
  display: inline-block;
  background-color: #ff0000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: 0.3s;
}

/*********** SERVICES ***********/
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  width: 80px;
  height: 80px;
  fill: var(--first-color);
  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;
  padding: 0.75rem;
}

.menu__img {
  width: 300px;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

.menu__name,
.menu__preci {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.menu__name {
  font-size: var(--normal-font-size);
}

.menu__detail,
.menu__preci {
  font-size: var(--small-font-size);
}

.menu__detail {
  margin-bottom: var(--mb-1);
}

.app__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app__icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 1rem;
}

.menu__button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  font-size: 1.25rem;
  padding: 0.625rem 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-top: var(--mb-4);
  margin-bottom: var(--mb-4);
}

.app__store {
  width: 120px;
  margin: 0 var(--mb-1);
}

.app__img {
  width: 590px;
  justify-self: center;
  order: -1;
}

/*********** 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);
  transition: 0.3s;
}

.footer__social:hover {
  color: var(--first-color);
  transition: 0.3s;
}

.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 QUERIES ***********/
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .box,
  .app__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .about__data,
  .about__initial,
  .app__data,
  .app__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }
  .about__img {
    width: 250px;
    order: -1;
  }
  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact__button {
    justify-self: center;
  }
  .about__container {
    border-radius: 0.5rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--container-color);
    transition: 0.3s;
  }
  .about__container:hover {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
  }
}

@media screen and (min-width: 768px) {
  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;
  }
  .change-theme {
    position: initial;
    margin-left: var(--mb-2);
  }
  .home__container {
    height: 100vh;
    justify-items: center;
  }
  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }
  .menu__container {
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }
  .menu__container_2 {
    display: grid;
    gap: 1.5rem;
    column-gap: 4rem;
  }
  .menu__content {
    padding: 1.5rem;
  }
  .app__store {
    margin: 0 var(--mb-1) 0 0;
  }

  .overlay {
    display: none;
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    width: 500px;
  }
  .about__container,
  .box,
  .app__container {
    column-gap: 2rem;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
  .home__container {
    height: 640px;
  }
}

/*********** FOOTER - WAVE ***********/
.custom-shape-divider-bottom-1638306410 {
  position: static;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  max-width: none;
}

.custom-shape-divider-bottom-1638306410 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 126px;
}

.custom-shape-divider-bottom-1638306410 .shape-fill {
  fill: var(--first-color);
}

.table__data {
  background-color: var(--card-color);
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  border-radius: 2rem;
}

.bd-grid_2 {
  display: grid;
  grid-template-columns: auto auto 0 0;
  grid-gap: 10px;
  padding: 10px;
}

/* .tech__used {
  display: inline;
  padding-right: 1rem;
  padding-left: 1rem;
  background-color: var(--card-color);
  border-radius: 2rem;
}  */

.tech__used {
  display: inline-block;
  padding: 0.05rem 1rem; /* Add some padding */
  background-color: var(--card-color); /* Background color */
  border-radius: 2rem; /* Rounded corners */
  margin: 0.25rem; /* Add margin to space them out */
  text-align: center; /* Center the text */
  white-space: nowrap; /* Prevent breaking of text into multiple lines */
  box-sizing: border-box; /* Ensure padding is included in width */
}


.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.devices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 20px;
}

.devices a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #333;
}

.devices img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.devices img:hover {
  transform: scale(1.05);
}

.device {
  position: relative;
  overflow: hidden; /* Ensure overlay stays within image boundaries */
}

.device img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.device .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px; /* Fixed height for the overlay */
  line-height: 30px; /* Vertical centering */
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0 5px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device:hover .overlay {
  opacity: 1;
}

/* iOS resources */
/* .box {
	position: relative;
	padding: 20px;
}

.box h3 {
	position: relative;
	color: var(--title-color);
	font-size: var(-h3-font-size);
	margin-bottom: 20px;
	padding-left: 60px;
} */

/* .box .list .imgBox {
	position: relative;
	min-width: 100px;
	height: 100px;
	overflow: hidden;
	margin-right: 20px;
	margin-left: 10px;
} */

/* .box .list .imgBox img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
} */


#capabilities {
  padding: 50px 0;
  background-color: var(--body-color);
}

.container {
  display: flex;
  justify-content: center; /* Center the boxes */
  flex-wrap: wrap;
  gap: 20px; /* Space between boxes */
}

.capability-box {
  background: var(--container-color);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 10px;
  text-align: center;
  flex: 1 1 calc(33.333% - 20px); /* Ensure three boxes per row */
  box-sizing: border-box;
}

.capability-box h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.capability-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Spacing between images */
  margin-bottom: 20px; /* Add bottom space between rows */
}

.capability-box li {
  margin: 0;
  text-align: center;
  width: calc(33.333% - 10px); /* Ensure three images per row */
}

.capability-box img {
  width: 75px; /* Adjust size as needed */
  height: auto;
  display: block;
  margin: 0 auto;
}

.capability-box p {
  margin-top: 5px;
  font-size: 0.9em;
}

@media screen and (max-width: 1024px) {
  .capability-box {
    flex: 1 1 calc(50% - 20px); /* Adjust for smaller screens */
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .capability-box {
    flex: 1 1 90%; /* One box per row on small screens */
    margin: 10px 0;
  }
  .capability-box ul {
    justify-content: center;
  }
  .capability-box li {
    width: 30%; /* Ensure three icons per row in small screens */
  }
}
