:root {
  --carta1-color: #f2a0cd;
  --carta2-color: #f25ee8;
  --carta3-color: #49f2b4;
  --carta4-color: #91f2c5;
  --carta5-color: #8c4820;
  --carta6-color: #8c4608;
  --carta7-color: #b86abe;
  --carta8-color: #a154a5;
  --carta9-color: #93437d;
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}
.float:hover {
	text-decoration: none;
	color: #FFF;
  background-color:#1ab152;
    
    animation: shake 1s;

 
  animation-iteration-count: infinite;
}

.my-float{
	margin-top:16px;
}

.pulse{
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px #25d365b4 rgba(44, 210, 91, 0.2);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(74, 174, 82, 0.174);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}


/* !PRIMER APARTADO: HEADER CON NAV */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fee5f0;
  /* font-family: Arial, Helvetica, sans-serif; */
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 20px;
  background: linear-gradient(
    to right,
    var(--carta2-color),
    var(--carta1-color)
  );
  color: white;
  /* position: sticky;
  top: 0;
  z-index: 1000; */
  font-weight: 900;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  filter: saturate(1.2) drop-shadow(0 0 0.75rem var(--carta7-color));
}

/* Navigation */
.CENTRAR {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  flex-grow: 1;
}

.CENTRAR a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s ease;
}

.CENTRAR a:hover {
  color: var(--carta3-color);
}

/* Title */
header h1 {
  font-size: 22px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .CENTRAR {
    gap: 20px;
  }

  .CENTRAR a {
    font-size: 18px;
  }

  header h1 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .CENTRAR {
    flex-direction: column;
  }

  .CENTRAR a {
    font-size: 16px;
    font-weight: 900;
  }
}

.titulo {
  text-align: center;
  color: var(--carta2-color);
  font-size: 28px;
  margin-bottom: 20px;
  margin-top: 40px;
}

@media (max-width: 530px) {
  .titulo {
    font-size: 22px;
  }
}

/*! APARTADO CARTA */

.carta-local {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 40px 0;
  flex-wrap: wrap; /* clave para móviles */
}

.carta-local img {
  width: 620px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  filter: saturate(1.3);
}

.carta-local img:hover {
  transform: scale(1.05);
}



/*! APARTADO 3 CARDS */

main {
  padding: 20px;
  font-family: "Nunito Sans", sans-serif;
  background-color: #fff;
}

.menu {
  text-align: center;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
}

.intro h2 {
  font-size: 24px;
  color: var(--carta8-color);
}

.intro p {
  font-size: 16px;
  color: var(--carta9-color);
}

.menu h2 {
  font-size: 24px;
  color: var(--carta7-color);
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 19px;
}

.card {
  width: 290px;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  filter: saturate(1.3);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card p {
  font-size: 16px;
}

/*! SEGUNDO APARTADO: CARRUSEL */ /* Estilo basico para la galeria */

figure {
  margin: 0;
}
#gallery {
  border-radius: 8px;
  width: 750px;
  height: 720px;
  margin: 0 auto; /* max-width: 400px; */
  overflow: hidden;
  position: relative; /* necesario para los botones de navegación */
}

.gallery-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.gallery-item {
  min-width: 100%;
  box-sizing: border-box;
}
.gallery-item img {
  width: 100%;
  height: 100vh;
} /* Navegacion de la galeria */
.gallery-navigation {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 40px);
  margin: 0 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.nav-button {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--carta2-color);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}
.nav-button > span {
  font-size: 30px;
}
.nav-button:hover {
  background-color: var(--carta1-color);
}

/* -------------------------------- */
/* 📱 Responsive Design */
/* -------------------------------- */

/* ✅ Móviles (hasta 600px) */
@media (max-width: 600px) {
  #gallery {
    width: 100%;
    height: 260px;
    border-radius: 8px;
  }

  .gallery-item img {
    height: 250px;
  }

  .nav-button {
    padding: 6px 10px;
  }

  .nav-button > span {
    font-size: 20px;
  }

  .gallery-navigation {
    width: calc(100% - 20px);
    margin: 0 10px;
  }
}

/* ✅ Tablets (601px a 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  #gallery {
    width: 90%;
    height: 500px;
  }

  .gallery-item img {
    height: 500px;
  }

  .nav-button {
    padding: 8px 15px;
  }

  .nav-button > span {
    font-size: 25px;
  }
}

/* ✅ Escritorios grandes (más de 1025px) */
@media (min-width: 1025px) {
  #gallery {
    width: 950px;
    height: 900px;
  }

  .gallery-item img {
    height: 100vh;
  }
}

/*! TERCER APARTADO: WAFLE CON BREVE DESCRIPCION */

.waffle {
  display: flex;
  flex-wrap: wrap;
  /* FONDO CAFE */
  border-radius: 8px;
  background-color: #8c4608;
  padding: 10px;
  margin: 20px auto;
  /* height: 630px; */

  /* TODO LO QUE HAY DENTRO DEL MAIN */

  .contenido {
    display: flex;
    align-items: start;
    /* Centra verticalmente la imagen y el texto */
    justify-content: space-around;
    text-align: center;
    /* Espacia uniformemente el texto y la imagen */
    gap: 10%;
    border-radius: 8px;

    .texto h1 {
      font-size: 38px;
      color: rgb(255, 255, 255);
      /*      1.TOP 2.RIGTH 3.BOTTOM 4.LEFT */
      margin: 0 0 18% 0;
      align-items: start;
      /* padding: 5px 10px; */
    }

    p {
      font-size: 20px;
      color: white;
      display: flex;
      align-items: center;
      text-align: center;
      justify-content: space-between;
    }

    img {
      filter: saturate(1.4);
      border-radius: 8px;
      width: 350px;
      height: 600px;
    }
  }
}

/* 📱 Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .waffle {
    padding: 15px;
  }

  .waffle .contenido {
    flex-direction: column; /* De lado a lado → ahora vertical */
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .waffle .contenido .texto h1 {
    font-size: 28px; /* Reduce el tamaño */
    margin: 0;
  }

  .waffle .contenido p {
    font-size: 16px; /* Reduce para que no desborde */
    padding: 0 10px;
  }

  .waffle .contenido img {
    width: 80%; /* Imagen más proporcional */
    height: auto; /* Evita deformación */
    max-height: 400px; /* Evita que sea enorme */
  }
}

/*! CUARTO APRTADO: INSTRAGRAM Y TIKTOK */

.instragram {
  background-color: #fecce3;
  color: black;
  text-align: center;
  border-radius: 8px;
}

/* CONTENEDOR */
.instragram .contenido-fotos {
  display: flex;
  filter: saturate(1.4);
  justify-content: space-around;
  gap: 25px;
  flex-wrap: wrap;
  align-items: center;
}

/* IMÁGENES PEQUEÑAS */
.instragram .contenido-fotos .PE1,
.instragram .contenido-fotos .PE2 {
  display: flex;
  width: 300px;
  height: 250px;
  bottom: 80px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

/* IMAGEN GRANDE */
.instragram .contenido-fotos .N {
  display: flex;
  width: 300px;
  height: 450px;
  top: 50px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

/* EFECTO HOVER */
.PE1:hover,
.PE2:hover,
.N:hover {
  transform: scale(1.1);
}


/*! QUINTO APARTADO: FIN DE LA PAGINA WEB (FOOTER) */

footer {
  background-color: var(--carta7-color);
  color: #fff;
  font-weight: bold;
  padding: 30px 20px;
  text-align: center;
  font-size: 1.5em;
  margin-top: 20px;
  border-top: 4px solid rgba(255, 255, 255, 0.4);
}

.i:hover {
  cursor: pointer;
}

footer a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

footer a:hover {
  color: var(--carta5-color);
  opacity: 0.7;
}

footer .redes-sociales {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* ! RESPONSIVE */

@media (max-width: 530px) {
  footer {
    font-size: 20px;
  }
}


.animacion-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animacion-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}