/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --first-color: #e9e9e9;
  --second-color: #A6A6A6;
  --tertiary-color: #FBFEFD;
  --first-color-alt: #717171;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #0D0D0D;
  --container-color: #FFFFFF;
  --yointi-color: #FFB300;

  /*========== 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: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --mb-7: 5rem;

  /*========== 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: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== BASE ==========*/
*,::before,::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
  line-height: 1.6;
}

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);
  overflow-y: scroll;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--title-color);
}

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

.app .bd-container {
  padding: 0 0;
  max-width: 100%;
  width: 100%;
}

.section {
  padding: 4.5rem 0 2rem;
}

.bd-container {
  max-width: 968px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 768px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
}

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;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

h1,h2,h3,p,ul{
  margin: 0;
}

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

a{
  text-decoration: none;
}

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

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

/*========== CLASS CSS ==========*/
.section{
  padding: 4rem 0 2rem;
}

.section-title, .section-subtitle{
  text-align: center;
}

.section-title{
  font-size: var(--h1-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-3);
}

.section-subtitle{
  display: block;
  color: var(--container-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
  font-size: var(--h1-font-size);
  font-family: 'Abril Fatface', cursive;
}

/* Estilos para los botones personalizados */
.swiper app-carousel {
  position: relative;
  overflow: visible;
}
.swiper-slide ::before  {
  opacity: 1 !important;
}

.custom-swiper-button-next,
.custom-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-swiper-button-next {
  right: 20px;
}

.custom-swiper-button-prev {
  left: 20px;
}

.custom-swiper-button-next:hover,
.custom-swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

/* Asegurar que los botones sean accesibles en móviles */
@media (max-width: 768px) {
  .custom-swiper-button-next,
  .custom-swiper-button-prev {
    width: 36px;
    height: 36px;
    font-size: 30px;
  }
  
  .custom-swiper-button-next {
    right: 10px;
  }
  
  .custom-swiper-button-prev {
    left: 10px;
  }
}

.custom-swiper-button-prev:active,
.custom-swiper-button-next:active {
  transform: translateY(-50%) scale(0.9);
}

/* Asegurar que los botones personalizados estén visibles y funcionen correctamente */
.swiper app-carousel .custom-swiper-button-prev,
.swiper app-carousel .custom-swiper-button-next {
  display: block !important;
  pointer-events: auto !important;
}

/* Ocultar los botones por defecto de Swiper */
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

/* Ocultar los botones cuando no hay más elementos para mostrar */
.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/*========== 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: 2rem;
}

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

  /*========== RESPONSIVE ==========*/

  .app-carousel > section {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .app__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app__img {
    margin: 0 auto 1rem;
    width: 180px;
  }

  .app__data {
    text-align: center;
  }

  .point-list {
    padding-left: 1rem;
    text-align: left;
  }

}

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

.nav__logo {
  color: white !important;
  font-family: 'Abril Fatface', cursive;
  font-size: var(--h2-font-size);
  padding-left: .2rem;
}

.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: .3s;
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__toggle{
  font-size: 1.6rem;
  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,.1);
}

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

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

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

/* Show scrolltop */
.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container{
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home{
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
}

.home__title{
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
  font-family: 'Abril Fatface', cursive;
}

.home__subtitle{
  font-size: var(--h1-font-size);
  color: var(--second-color);
  margin-bottom: var(--mb-4);
}

/* Estilos para el botón en home__data */
.home__data .button {
  color: #ffffff;  /* Color blanco para el texto */
  text-decoration: none;  /* Quita el subrayado */
  display: inline-block;  /* Asegura que el padding funcione correctamente */
  transition: color 0.3s ease;  /* Transición suave para el hover */
  background-color: var(--first-color-alt);  /* Color de fondo del botón */
  padding: 0.8rem 1.5rem;  /* Ajusta el padding según necesites */
  border-radius: 0.5rem;  /* Bordes redondeados */
}

.home__data .button:hover {
  color: #ffffff;  /* Mantiene el color blanco en hover */
  background-color: var(--title-color);  /* Cambia el color de fondo al pasar el mouse */
  text-decoration: none;
}

.home__img {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 0;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #000;
}

.home__img .video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video cubra todo el espacio */
  display: block;
  border-radius: 1rem;
}

/* Controles del reproductor */
.video-player[controls]::-webkit-media-controls {
  display: flex !important;
}

/* Botón de reproducción/pausa */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: transparent;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.video-play-button i {
  font-size: 3rem;
  color: white;
  transition: transform 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  line-height: 1;
}

.video-play-button:hover i {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Estados de los iconos */
.video-play-button .play-icon {
  display: block;
}

.video-play-button .pause-icon {
  display: none;
}

/* Estado cuando el video está reproduciéndose */
.video-playing .video-play-button .play-icon {
  display: none;
}

.video-playing .video-play-button .pause-icon {
  display: block;
}

/* Estado cuando el video está pausado */
.video-paused .video-play-button .play-icon {
  display: block;
}

.video-paused .video-play-button .pause-icon {
  display: none;
}

/* Ocultar el botón cuando el video se está reproduciendo */
.video-playing .video-play-button {
  display: none;
}

/* Mostrar el botón cuando el video está pausado */
.video-paused .video-play-button {
  display: flex;
}

/*========== BUTTONS ==========*/
.button{
  display: inline-block;
  background-color: var(--second-color);
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

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


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


.about__data{
  text-align: center;
}

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

.about__img{
  width: 280px;
  border-radius: .5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services {
  text-align: center;
  padding: 4rem 0;
}

.services .section-title {
  margin-bottom: 1rem;
}

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


.services__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.services__img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  display: block;
}

.services__title{
  font-size: var(--h3-font-size);
  color: var(--container-color);
  margin-bottom: var(--mb-1);
}

.services__description{
  padding: 0 1.5rem;
}

/* Media Queries para responsividad */
@media screen and (max-width: 768px) {
  .services__container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .services__content {
    padding: 1.5rem 1rem;
  }
  
  .services__description {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/*========== MENU ==========*/
.menu__container{
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
}

.menu__content{
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3,74,40,.15);
  padding: .75rem;
  text-align: center;
}

.menu__img {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
  align-self: center;
  margin-bottom: var(--mb-2);
}


.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);
}

.menu__button{
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
}

/*======= CARRUSEL SLIDE ==========*/
.app-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  margin: 0 auto;
}

.swiper-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  position: relative;
  z-index: 1;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: content-box;
}

.swiper-slide {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  position: relative;
  transition-property: transform;
  box-sizing: border-box;
  padding: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.swiper-slide-active {
  opacity: 1;
}

/* Asegurar que el contenedor de la imagen tenga un tamaño consistente */
.app__img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.app__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  min-height: 400px;
  box-sizing: border-box;
  position: relative;
}

.app__data {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app__img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  background-color: transparent;
  border-radius: 12px;
  object-fit: contain;
}

/* Ajustar el grid para pantallas más grandes */
@media screen and (min-width: 768px) {
  .app__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    gap: 3rem;
  }

  .app__data {
    flex: 1;
    padding: 0;
    text-align: left;
    align-items: flex-start;
  }
  
  .app__img {
    max-width: 300px;
    margin: 0;
    align-self: center;
  }
}

.point-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-subtitle {
  font-family: 'Abril Fatface', serif;
  font-size: 1.2rem;
}

/*========== LISTAS ==========*/
.point-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}



/*========== 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(--h2-font-size);
  color: var(--container-color);
  font-weight: var(--font-semi-bold);
  font-family: 'Abril Fatface', cursive;
}

.footer__description{
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
}

.footer__social {
    font-size: 1.5rem;
    color: var(--second-color);
    margin-right: var(--mb-2);
}

.footer__title{
  font-size: var(--h2-font-size);
  color: var(--second-color);
  margin-bottom: var(--mb-2);
}

.footer__link{
  display: inline-block;
  color: var(--container-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover{
  color: var(--first-color);
}

.footer__email {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 1.5rem;
    color: var(--text-color-light);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1.5rem;
  color: var(--text-color-light);
}


.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,
  .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, .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: 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;
  }


  .home__container{
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container{
    margin-top: var(--mb-7);
  }

  .menu__container{
    grid-template-columns: repeat(3, 280px);
    column-gap: 2.5rem;
  }
  .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;
  }
}

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