* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*el efecto del timon no genera scroll horizontal*/
html,
body {
  overflow-x: hidden;
}

/*-----FONTS-----*/
@font-face {
  font-family: "PaytoneOne-Regular";
  src: url("../fonts/PaytoneOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "PublicSans-Regular";
  src: url("../fonts/PublicSans-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "PublicSans-Bold";
  src: url("../fonts/PublicSans-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

:root {
  --color-cyan: #009de0; /* Tu color de menú y titulos */
  --color-celeste: #c6e5f3; /* Fondo claro */
  --color-azul-navy: #001b83; /* Color de cards y énfasis */
  --color-amarillo: #f7ea41; /* Detalles de footer/letras */
  --color-dorado: #efb810;
  --color-white: #ffffff; /* General */
  --color-gray: #8e8e93;
  --color-rojo: #ff383c; /* Texto secundario */
  --max-width: 1200px;

  /*-----VARIABLES-----*/
  --font-principal-regular: "PaytoneOne-Regular", sans-serif;
  --font-secundario-regular: "PublicSans-Regular", sans-serif;
  --font-secundario-bold: "PublicSans-Bold", sans-serif;

  /* Tamaños de fuente */
  --font-size-title: 50px;
  --font-size-subtitle: 35px;
  --font-size-paragraph: 20px;
}

/*SELECCIÓN DE TEXTO*/
::selection {
  background: var(--color-amarillo);
  color: white;
}
::-moz-selection {
  background: var(--color-amarillo);
  color: white;
}
.contenedor {
  max-width: var(--max-width);
  margin: 0 auto;
}

/**************************
  TITULO GENERAL
***************************/

.cont-titulo-general {
  max-width: 1200px;
  margin: 0 auto;
  /* margin-top: 100px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}
.contenedor-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}
.contenedor-titulo img {
  width: 60px;
  height: auto;
}
.titulo {
  font-family: var(--font-principal-regular);
  font-size: 35px;
  color: var(--color-cyan);
  margin: 0;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.sub-titulo {
  font-family: var(--font-principal-regular);
  font-size: 20px;
  color: var(--color-dorado);
  margin: 0;
  text-align: center;
  font-weight: bolder;
  margin-bottom: 60px;
}
.cont-titulo-general p {
  font-family: var(--font-principal-regular);
  font-size: 20px;
  color: var(--color-dorado);
  margin: 0;
  text-align: center;
  font-weight: bolder;
  text-transform: uppercase;
}
@media (min-width: 601px) {
  .titulo {
    font-size: 50px;
  }
}
/**************************
  FIN TITULO GENERAL
***************************/

/**************************
  SLIDER BANNER
***************************/
.slider-container {
  font-family: "Inter-Bold";
  position: relative;
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 750px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-content {
  /*background-color: rgba(67, 95, 58, 0.8);*/
  color: #fff;
  padding: 20px;
  text-align: center;
  max-width: 80%;
  border-radius: 5px;
  position: absolute;
  /*left: 40px; */
  bottom: 50px;
}

.slide-content h2 {
  font-family: "Montserrat-Bold";
  font-size: 2em;
  margin: 0 0 10px 0;
}

.slide-content p {
  font-size: 1.2em;
  margin: 0 0 20px 0;
}

/* .btn {
  font-family: 'inter';
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--naranja);
  color: white;
  text-decoration: none;
  font-size: 16px;
} */

/* .btn:hover {
  background-color: var(--rojo);
  color: white;
} */

.navigation-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: var(--color-amarillo);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--color-cyan);
}

.nav-button-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background-color 1s ease;
  z-index: 10;
}

.nav-button-slider img {
  width: 45px;
  height: 45px;
}

.nav-button-slider.left {
  left: 120px;
}

.nav-button-slider.right {
  right: 120px;
}

@media (max-width: 768px) {
  .slide {
    height: 620px;
    background-position: 50% center;
  }

  .slide-content {
    /* background-color: rgba(67, 95, 58, 0.8);*/
    color: #fff;
    padding: 20px;
    text-align: left;
    max-width: 80%;
    border-radius: 5px;
    position: absolute;
    /* left: 40px;  Alinea el contenido a la izquierda */
    bottom: 50px;
  }

  .slide-content h2 {
    font-family: "LTMuseum-Medium";
    font-size: 1.5em;
    line-height: 1;
  }

  .slide-content p {
    font-size: 0.9em;
  }

  .btn {
    font-size: 14px;
  }

  .nav-button-slider {
    padding: 8px;
  }

  .nav-button-slider img {
    width: 0px;
    height: 0px;
  }

  .nav-button-slider img {
    width: 40px;
    height: 40px;
  }

  .nav-button-slider.left {
    left: 15px;
  }

  .nav-button-slider.right {
    right: 15px;
  }
}
/**************************
  FIN SLIDER BANNER
***************************/

/**************************
 PRODUCTOS CARRUSEL HOME
***************************/
.container-carrucel {
  background-color: white;
  padding-top: 70px;
  padding-bottom: 50px;
}

.slider-wrapper {
  overflow: hidden;
  /* max-width: 1200px; */
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  cursor: grab;
}

.card-list {
  display: flex;
  transition: transform 0.5s ease;
}

.card-item {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #0037a4;
}

.card-item p {
  font-family: var(--font-principal-regular);
  color: var(--color-azul-navy);
  font-size: 23px;
  /* margin-top: 2px; */
  /* margin: 2px; */
}
.card-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  /* margin-bottom: 20px; */
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--dorado);
  border-radius: 50%;
  cursor: pointer;
}

.pagination-bullet.active {
  background-color: var(--verde);
}

.nav-button-productos {
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.nav-button-productos.prev {
  left: 10px;
}

.nav-button-productos.next {
  right: 10px;
}

.nav-button-productos img {
  width: 45px;
  height: 45px;
}
.btn-container {
  font-family: "inter";
  display: flex;
  /* Usamos Flexbox */
  justify-content: center;
  /* Centra los botones horizontalmente */
  gap: 20px;
  /* Añadimos espacio entre los botones */
  margin-top: 40px;
  /* Espacio superior */
}
.btn-marinero {
  background-color: var(--color-dorado);
  color: var(--color-azul-navy);
  padding: 5px 20px;
  border: 3px solid var(--color-azul-navy);
  border-radius: 35px;
  font-size: 25px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-principal-regular);
}
.btn-marinero:hover {
  background-color: var(--color-azul-navy);
  color: var(--color-dorado);
  transition:
    background-color 0.3s,
    color 0.3s;
  border-color: var(--color-dorado);
}
.btn-marinero:active {
  background-color: var(--color-azul-navy);
  color: var(--color-dorado);
  transition:
    background-color 0.3s,
    color 0.3s;
  border-color: var(--color-dorado);
}
.text-presentacion {
  color: var(--color-rojo) !important;
}
@media (max-width: 768px) {
  .nav-button-productos img {
    width: 40px;
    height: 40px;
  }

  .nav-button-productos.prev {
    left: -150px;
  }

  .nav-button-productos.next {
    right: -150px;
  }
}

@media screen and (max-width: 1024px) {
  .card-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 620px) {
  .card-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .title_carrucel {
    font-size: 35px;
    padding: 20px;
  }

  .parrafo_carrucel {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

/**************************
 FIN PRODUCTOS CARRUSEL HOME
***************************/

/**************************
     SECCION RECETAS-HOME
***************************/
.recetas-home {
  padding: 40px 20px;
  background-color: var(--color-celeste);
  background-repeat: repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.titulo-recetas {
  font-family: var(--font-title);
  color: white;
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 40px;
  transition: transform 0.6s ease;
}

/* .contenedor-recetas {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
} */
.contenedor-recetas {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.contenedor-recetas .receta-categoria {
  flex-basis: calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
}

/* Para forzar que los últimos 2 elementos se centren */
.contenedor-recetas .receta-categoria:nth-child(4),
.contenedor-recetas .receta-categoria:nth-child(5) {
  flex-basis: calc(33.333% - 10px);
}

.receta-categoria {
  font-family: var(--font-title);
  text-decoration: none;
  color: white;
  text-align: center;
  transition: transform 0.3s ease;
}

.circulo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  position: relative;
}

.circulo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/img-fondo/marco-02.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.circulo img {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
  will-change: transform;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rotate-down {
  transform: rotate(25deg);
}

.rotate-up {
  transform: rotate(-25deg);
}

.receta-categoria span {
  font-family: var(--font-principal-regular);
  display: block;
  color: var(--color-azul-navy);
  font-size: 30px;
  text-transform: uppercase;
}
.verde .receta-categoria span {
  color: var(--verde);
}

.receta-categoria:hover {
  animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

@media (max-width: 768px) {
  .contenedor-recetas {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .circulo {
    width: 100px;
    height: 100px;
  }

  .receta-categoria span {
    font-size: 0.85rem;
  }

  .titulo-recetas {
    font-size: 35px;
  }
}
/**************************
   FIN  SECCION RECETAS-HOME
***************************/

/*******************
  SOCIALMEDIA HOME
*******************/
.socialmedia-home {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  overflow: hidden;
}

.socialmedia-text {
  margin-bottom: 30px;
  animation: fadeLeft 1s ease forwards;
}

.socialmedia-text p {
  font-family: var(--font-subtitle2);
  color: var(--color-cyan);
  font-size: 20px;
  margin: 0;
}

.socialmedia-text h2 {
  font-family: var(--font-principal-regular);
  font-size: 50px;
  color: var(--color-cyan);
  margin: 5px 0 0 0;
  font-weight: 800;
  text-align: center;
}

.socialmedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.socialmedia-card {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(50px);
  animation: riseUp 0.8s ease forwards;
  transition: transform 0.3s ease;
  display: block;
}

.socialmedia-card:nth-child(1) {
  animation-delay: 0.3s;
}

.socialmedia-card:nth-child(2) {
  animation-delay: 0.5s;
}

.socialmedia-card:nth-child(3) {
  animation-delay: 0.7s;
}

.socialmedia-card:nth-child(4) {
  animation-delay: 0.9s;
}

.socialmedia-card:hover {
  transform: scale(1.05);
}

.socialmedia-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.socialmedia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.socialmedia-card:hover .socialmedia-image img {
  transform: scale(1.1);
}

/* Animaciones */
@keyframes riseUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive: 2 columnas en móviles */
@media (max-width: 768px) {
  .socialmedia-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .socialmedia-text h2 {
    font-size: 35px;
  }
}

.fade-in-text {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-text.line1 {
  animation-delay: 0.2s;
}

.fade-in-text.line2 {
  animation-delay: 0.5s;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*******************
  FIN SOCIALMEDIA HOME
*******************/

/*
---------------------
imagen fondo
---------------------
*/
.contenedor-imagen {
  position: relative;
  width: 100%;
  height: 395px; /* Ajusta según lo necesario */
  overflow: hidden;
  padding-bottom: 30px;
}

.imagen-fondo {
  width: 100%;
  height: 100%;
  background-image: url("../img/img-fondo/fondo-tesoro-2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.pattern-arriba-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px; /* Ajusta el alto a tu gusto */
  /* Cargamos el SVG */
  background-image: url("../img/img-fondo/pattern-cyan.svg");
  background-repeat: repeat-x;
  background-size: auto 100%; /* Mantiene la proporción del SVG */
  pointer-events: none;
}
.pattern-arriba-cyan {
  width: 100%;
  height: 50px; /* Ajusta el alto a tu gusto */
  /* Cargamos el SVG */
  background-image: url("../img/img-fondo/pattern-cyan.svg");
  background-repeat: repeat-x;
  background-size: auto 100%; /* Mantiene la proporción del SVG */
  pointer-events: none;
}
.pattern-abajo-cyan {
  width: 100%;
  height: 50px;
  background-image: url("../img/img-fondo/pattern-cyan.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
  transform: rotate(180deg);
}
.pattern-abajo-celeste {
  width: 100%;
  height: 50px;
  background-image: url("../img/img-fondo/pattern-celeste.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
  transform: rotate(180deg);
}
@media (max-width: 600px) {
  .contenedor-imagen {
    height: auto; /* Ajusta la altura para pantallas más pequeñas */
  }
  .imagen-fondo {
    height: 100px; /* Ajusta la altura para pantallas más pequeñas */
  }
}

/*
---------------------
imagen fondo de mar (responsive y fija abajo)
---------------------
*/
.contenedor-imagen-mar {
  /* Altura adaptativa: móvil pequeño -> tablet/desktop */
  /* --mar-height: clamp(100px, 12vh, 172px); */
  --mar-height: clamp(100px, 18vh, 172px);
  width: 100%;
  height: var(--mar-height);
  position: relative; /* mantiene el flujo y permite que el contenido esté encima */
  z-index: 1;
  overflow: hidden;
}

.imagen-fondo-mar {
  /* Posicionado relativo al contenedor (no fixed) y pegado abajo del contenedor */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--mar-height);
  background-image: url("../img/img-fondo/fondo-de-mar.png");
  background-size: cover; /* cover para que se vea bien en todas las pantallas */
  background-position: bottom center;
  background-repeat: no-repeat;
  pointer-events: none; /* no interfiere con clics */
  z-index: 0; /* queda por debajo del contenido dentro de .contenedor-imagen-mar (z-index:1) */
}

@media (max-width: 600px) {
  .contenedor-imagen-mar {
    --mar-height: 100px; /* altura menor en móviles */
    height: var(--mar-height);
  }
  .imagen-fondo-mar {
    height: var(--mar-height);
  }
}

/* Estilos para burbujas */
.burbujas img {
  width: 50px;
  animation: burbuja 7s linear infinite;
  opacity: 0;
}
.burbujas {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: absolute;
  bottom: -50px;
}
@keyframes burbuja {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  5% {
    opacity: 1; /* Se hacen visibles al comenzar */
  }
  50% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  95% {
    opacity: 0; /* Se ocultan antes de terminar */
  }
  100% {
    transform: translateY(-80vh);
    opacity: 0;
  }
}

.burbujas img:nth-child(1) {
  animation-delay: 2s;
  width: 40px;
}
.burbujas img:nth-child(2) {
  animation-delay: 1s;
  width: 20px;
}
.burbujas img:nth-child(3) {
  animation-delay: 4s;
  width: 35px;
}
.burbujas img:nth-child(4) {
  animation-delay: 2s;
}
.burbujas img:nth-child(5) {
  animation-delay: 5s;
  width: 40px;
}
.burbujas img:nth-child(6) {
  animation-delay: 3s;
  width: 25px;
}
.burbujas img:nth-child(7) {
  animation-delay: 2s;
  width: 30px;
}
/* Estilos para timon giratorio */
.timon {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: auto;
  margin-right: 20px;
}
.timon img {
  position: relative;
  width: 200px;
  top: -100px;
  right: 60px;
  height: auto;
  animation: girar 5s linear infinite;
}
@keyframes girar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* responsive timon */
@media (max-width: 600px) {
  .timon {
    width: 100px;
    height: 100px;
  }
  .timon img {
    width: 100px;
    top: -50px;
    right: -70px;
  }
}

/* Estilos para cofres y peces */
.cofre {
  position: absolute;
  right: 19%;
  bottom: 80px;
  width: 250px;
  height: auto;
}
.cofre img {
  width: 100%;
  height: auto;
  animation: flotar 3s ease-in-out infinite;
}
@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.peces {
  position: absolute;
  left: 22%;
  bottom: 160px;
  width: 250px;
  height: auto;
}
.peces img {
  width: 100%;
  height: auto;
  animation: flotar 3s ease-in-out infinite;
}
@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.alga1 {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 150px;
  height: auto;
}
.alga1 img {
  width: 100%;
  height: auto;
  animation: moverAlga 4s ease-in-out infinite;
}
@keyframes moverAlga {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}
.alga2 {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 150px;
  height: auto;
}
.alga2 img {
  width: 100%;
  height: auto;
  animation: moverAlga2 4s ease-in-out infinite;
}

@keyframes moverAlga2 {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}

/* responsive cofres y peces */
@media (max-width: 600px) {
  .cofre {
    width: 70px;
    right: 10%;
    bottom: 50px;
  }
  .peces {
    width: 70px;
    left: 10%;
    bottom: 60px;
  }
}
/* respionsive algas */
@media (max-width: 600px) {
  .alga1 {
    width: 70px;
    left: 5%;
  }
  .alga2 {
    width: 70px;
    right: 5%;
  }
}
