/* ======================
   RESET + BASE
====================== */

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

body {
  background: #0F1C2E;
  color: #fff;
  padding-bottom: 120px;

  /* 🔹 FONDO CON PATRÓN (OPCIONAL) */
  /* Coloca tu imagen en /img/pattern.png */
  background-image: url("../img/pattern.png");
  background-repeat: repeat;
  background-size: 250px 250px;
}

/* ======================
   HEADER
====================== */

.main-header {
  background: #487abc;
  padding: 20px;
  border-bottom: 2px solid #487abc;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 70px;
}

.title-container h1 {
  font-family: 'Abril Fatface', serif;
  font-size: 2rem;
  white-space: nowrap;
}

.title-container p {
  opacity: .9;
}

/* ======================
   MAIN
====================== */

main {
  padding: 15px;
}

/* ======================
   ACCORDION
====================== */

.accordion {
  background: #16263B;
  border-radius: 14px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: #1E3A5F;
  color: #fff;
  border: none;
  padding: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.accordion.open .accordion-content {
  max-height: 3000px;
}

/* ======================
   ITEMS
====================== */

.item {
  background: #1A2F4A;
  padding: 14px;
  margin: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.2s ease;
}

.item:hover {
  background: #1E3A5F;
  transform: scale(1.02);
}

.item span:last-child {
  color: #7FB3E6;
  font-weight: bold;
}

.item-name {
  color: #fff !important;
}

/* ======================
   CART BUTTON
====================== */

#cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3A6EA5;
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(58,110,165,.4);
  z-index: 50;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #274C77;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================
   MODALS
====================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-box {
  background: #16263B;
  padding: 20px;
  border-radius: 18px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ======================
   OPTIONS
====================== */

.options {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.option {
  background: #1A2F4A;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}

.option:hover {
  border-color: #7FB3E6;
}

.option.active {
  border-color: #7FB3E6;
  background: #3A6EA5;
  color: #fff;
}

/* ======================
  Ingredientes
======================= */

.item {
  align-items: flex-start;
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-weight: 600; 
}

.item-ingredients {
  font-size: 13px;
  color: #A9C4E2; /* azul claro elegante */
  line-height: 1.4;
}

.item-price {
  font-weight: bold;
  color: #7FB3E6;
  white-space: nowrap;
}


/* ======================
   INPUTS
====================== */

textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  background: #1E3A5F;
  color: #fff;
}

textarea {
  resize: none;
  height: 80px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  background: #1E3A5F;
  color: #fff;
}

/* ======================
   BUTTONS
====================== */

button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  margin-top: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

button:not(.close) {
  background: #3A6EA5;
  color: #fff;
}

button.close {
  background: #274C77;
  color: #fff;
}

/* ======================
   CART
====================== */

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.qty-controls {
  display: flex;
  gap: 8px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.qty-controls .plus,
.qty-controls .minus {
  background: #3A6EA5;
  color: #fff;
}

.qty-controls .plus:hover,
.qty-controls .minus:hover {
  background: #4F86C6;
}

.qty-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}


.qty-controls .delete {
  background: #1E3A5F;
  color: #fff;
}

.qty-controls .delete:hover {
  background: #274C77;
}

/* ======================
   TOTAL
====================== */

.total {
  margin: 15px 0;
  font-size: 18px;
  color: #7FB3E6;
}

/* ======================
   SUCCESS
====================== */

.success {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #3A6EA5;
  padding: 15px 25px;
  border-radius: 20px;
  display: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(58,110,165,.4);
  z-index: 200;
}

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

@media (min-width: 768px) {
  main {
    max-width: 700px;
    margin: auto;
  }
}
