/* ====== FUENTES ====== */

/*
.fuente-titulos {
  font-family: "Permanent Marker", cursive;
  font-style: normal;
}

.fuente-texto {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
*/


/* ====== GENERAL ====== */

/* Body */
body {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  background-color: #f7e4da;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Navbar */
.navbar {
  background-color: #d8301a;
  padding: 8px 0;
}

.navbar .container {
  padding: 0 12px;
}

.fixed-top {
  padding: 10px;
}

.navbar-brand img {
  display: flex;
  align-items: center;
  height: 3.5rem;
  margin-left: 0;
  display: block;
}

.navbar-brand, .nav-link {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
}

.navbar-collapse {
  justify-content: center;
}

.nav-link:hover {
  color: #efb810;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: #efb810;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Subtítulos en común */
.subtitulos {
  font-family: "Permanent Marker", cursive;
  color: rgb(236, 42, 42);
  text-shadow: 2px 2px 3px rgba(37, 37, 37, 0.664);
  font-size: 3rem;
  font-weight: 400;
  margin-top: 60px;
  padding-bottom: 20px;
}


/* ====== HTML PRINCIPAL ====== */

/* Vídeo de fondo */
#video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  z-index: -100;
}

/* Header */
#encabezado {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  height: 100vh;
  padding-top: 5rem;
  min-height: 400px;
}

/* Título encabezado */
.encabezado-titulo {
  font-family: "Permanent Marker", cursive;
  font-size: 5rem;
  font-weight: 100;
  margin-top: 80px;
  z-index: 1;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.897);
}

/* Wave header */
.wave-container {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  transform: rotate(180deg);
}

.wave-container svg {
  position: relative;
  display: block;
  width: calc(111% + 1.3px);
  height: 55px;
}

.wave-container .shape-fill {
  fill: #f7e4da;
}


/* ====== SECCIÓN SERVICIOS ====== */

/* Imágenes "Nuestros servicios" */
.card-servicios-content .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-servicios-wrapper {
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  padding-bottom: 80px;
  overflow: hidden;
  z-index: 3;
}

.card-servicios-content .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.card-servicios-content .col {
  padding: 9px;
}

.card-servicios-content .card {
  width: 100%;
  margin: 0 auto;
}

.card-servicios-content .card img {
  object-fit: cover;
}

.card-servicios-content .subtitulos {
  max-width: 1460px;
  margin-left: auto;
  margin-right: auto;  
}

.card-servicios-content .card-title {
  font-size: 1.2rem;
  text-align: center;
}

.card-servicios-content .card-text {
  font-size: 1rem;
  text-align: center;
}

/* Wave inferior */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider .shape-fill {
  fill: #f7e4da;
}


/* ====== SECCIÓN TRES ====== */
.secciontres {
  margin-top: -80px;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image: url("../img/fondo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -100;
}

.texto-tres {
  font-family: "Permanent Marker", cursive;
  font-size: 4rem;
  font-weight: 100;
  margin-top: 25%;
  z-index: 1;
  color: #efb810;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.897);
}


/* ====== SECCIÓN CUATRO ====== */
.seccioncuatro {
  display: flow-root;
  position: relative;
}

#equipo, #platos {
  text-align: center;
}

.seccioncuatro .makis {
  position: absolute;
  top: 60px;
  right: 0;
  width: 120px;       
  height: 120px;      
  pointer-events: none;
  z-index: 10;
}

.seccioncuatro .makis img {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.3s ease, opacity 0.3s ease; 
}


/* ====== SECCIÓN CINCO ====== */
.botonesrestaurante {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 20px;
  gap: 40px;
  justify-items: center;
}

.botonesrestaurante .btn {
  width: 200px;
  background-color: #efb810;
  border-color: #efb810;
  color: #ffffff;
  box-shadow: 2px 2px 8px rgba(236, 6, 6, 0.607);
}

.botonesrestaurante .btn-primary:hover {
  background-color: #b98d0c;
  border-color: #b98d0c;
  color: white;
}


/* ====== SECCIÓN SEIS ====== */
.seccionseis {
  background-color: #d8301a;
  color: white;
  padding: 60px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}

.footer-mapa {
  flex: 1;
}

.footer-mapa iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

section, footer {
  scroll-margin-top: 70px;
}


/* ====== Los otros HTML ====== */
.header-subpagina {
  height: auto !important;
  min-height: auto !important;
  margin-top: 90px;
}

/* Estilo botones de filtro */
.filtro-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    border-color: #d8301a !important;
    color: #d8301a !important;
}

.filtro-btn:hover {
    background-color: #e9c864;
    color: #ffffff;
    transform: translateY(-2px);
}

.filtro-btn.active {
    background-color: #efb810 !important;
    color: white !important;
    border-color: #efb810 !important;
}

/* Contenedor de botones */
#grupoPlatos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.filtro-btn:focus,
.filtro-btn:active,
.filtro-btn:focus-visible {
    outline: none !important;
    border-color: #efb810 !important;
    --bs-btn-active-bg: #ebbc2f !important;
    
}

.primeros .card-img-top,
.segundos .card-img-top,
.postres .card-img-top {
    height: 220px;
    object-fit: cover;
}


/* ====== MEDIA QUERIES ====== */

/* Navbar*/
@media (max-width: 991px) {
  .nav-item {
    display: flex;
    justify-content: center;
  }

  .nav-link {
    display: inline-block;
  }

  .nav-link::after {
    left: 0;
    transform: translateX(0) scaleX(0);
    width: 100%;
  }

  .nav-link:hover::after {
    transform: translateX(0) scaleX(1);
  }
}

/* Header */
@media (max-width: 768px) {
  .encabezado-titulo {
    font-size: 2.2rem;
    margin-top: 120px;
  }

  #encabezado {
    height: 70vh;
  }

  /* Sección tres */
  .secciontres {
    height: auto;
    padding: 100px 0;
  }

  .texto-tres {
    font-size: 2rem;
    margin-top: 50px;
  }

  /* Makis */
  .seccioncuatro .makis {
    display: none;
  }

  /* Botones */
  .botonesrestaurante {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
  }

  .footer-info {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-info div {
    width: 48%;
  }

  /* Mapa en versión móvil */
  .footer-mapa {
    width: 100%;
    display: flex;
    justify-content: center;
  }

   .footer-mapa iframe {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .card-servicios-content {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .card-servicios-content .subtitulos,
  .seccioncuatro .subtitulos {
    margin-top: 20px !important;
    padding-bottom: 10px !important;
  }
  
  .subtitulos {
    font-size: 2rem;
    text-align: center;
  }

  .card-servicios-content .subtitulos {
    padding-left: 0;
    text-align: center;
  }
  
  #grupoPlatos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #grupoPlatos .filtro-btn {
    width: auto;
    flex: 0 0 auto;
    border-radius: 0 !important;
  }

  .botonesrestaurante {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .botonesrestaurante .btn {
    width: 220px;
  }
}
