* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lexend", sans-serif;
}

body {
  background: #fff4da;
  color: #333;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #183D2D;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


header h1 {
  font-size: 1.8rem;
}

nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

/* */

.hero {
  background: url('../images/hamburguesa.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}

.hero h2 {
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero a {
  margin-top: 1.5rem;
  background: #fff;
  color: #183D2D;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.category {
  margin-bottom: 3rem;
}

.category h3 {
  color: #183D2D;
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid #183D2D;
  width: max-content;
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .items {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .items {
    grid-template-columns: repeat(4, 1fr);
  }
}


.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h4 {
  margin-bottom: 0.5rem;
  color: #183D2D;
}

.card-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.price {
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #FF6B00;
}

.card-content button {
  margin-top: auto;
  background: #183D2D;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: background-color 0.6s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.5s ease;
}

.card-content button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 140%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 1s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.card-content button:hover::before {
  left: 120%;
}

.card-content button:hover {
  background-color: #1e4a36;
  box-shadow: 0 16px 24px rgba(24, 61, 45, 0.18);
}



button:disabled {
  opacity: 0.5;
  cursor: default;
}

.cart-link {
  position: relative;
  display: inline-block;
  bottom: -10px;
}

.cart-counter {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FF6B00;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.nav__icono {
    height: 40px;
}

@media screen and (min-width: 768px) {
    .nav__icono {
        height: 40px;
    }
}

.card-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.fade-in {
  opacity: 1;
  transform: translateY(0);
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  border-bottom: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

td:nth-child(1) {
  text-align: left;
}

table button {
  font-family: inherit;
  padding: 10px 30px;
  background-color: #FF6B00;
  border: none;
  color: #fff4da;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  text-align: center;
}

table button:hover {
    transform: scale(0.98);
}

.pago {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

@media screen and (min-width: 768px) {
    .pago {
        flex-direction: row;
        gap: 5px;
    }
}

.total {
  font-size: 24px;
  font-weight: bold;
  text-align: right;
  margin: 20px 0 10px 0;
}

@media screen and (min-width: 768px) {
    .total {
        margin: 40px 0;
    }
}

.pay-btn {
  font-size: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #183D2D;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  padding: 0 40px;
  height: 48px; 
}


.pay-btn:hover {
  background-color: #14523e;
}

/* SWEET ALERT */
.swal-bosque {
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(24, 61, 45, 0.1);
  font-family: 'Lexend', sans-serif;
}

.heromenu__heromenutxt {
    height: 25vh;
    background-image: url(../images/inicio.png);
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    font-size: 36px;
}

@media screen and (min-width: 768px) {
    .heromenu__heromenutxt {
        font-size: 48px;
    }
}

.heromenu__heromenutxt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); 
    z-index: 1;
}

.header__titulo {
    font-size: 18px;
}

@media screen and (min-width: 768px) {
    .header__titulo {
        font-size: 24px;
    }
}

.logo {
    padding: 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #183D2D;
}

.header__logo {
    height: 70px;
    border-radius: 50%;

}