* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background: #f8f8f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: white;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  text-align: center;
}

#title {
  font-size: 20px;
  font-weight: 800;
}

#subtitle {
  color: #666;
  margin-bottom: 20px;
}

.promos {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.promo {
  background: #f1f1f1;
  padding: 12px;
  border-radius: 8px;
  position: relative;
}

.promo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.promo h3 {
  margin-top: 10px;
  font-size: 16px;
}

.promo p {
  font-weight: 800;
  font-size: 18px;
  color: #e63946;
  margin-top: 4px;
}

.check-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 4px;
  border-radius: 6px;
}

.plato-check {
  width: 20px;
  height: 20px;
  accent-color: #25d366;
}

.order-type {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.order-type label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.direccion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.direccion input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.hidden {
  display: none;
}

.whatsapp {
  display: block;
  background: #25d366;
  color: white;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* SPLASH */
#splash {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ANIMACIÓN DEL SPLASH (AGREGAR AL FINAL DE styles.css) */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.splash-fadeout {
  /* La animación dura 1 segundo, usando una transición suave (ease-out) */
  animation: fadeOut 1s ease-out forwards;
}

/* styles.css */
/* Estilo para la caja de dirección cuando está visible */
#direccionBox {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd; /* Borde suave */
    border-radius: 8px;
    display: flex; /* Para que los inputs se vean mejor, puede ser block */
    flex-direction: column;
    gap: 10px; /* Espacio entre los inputs */
}

/* Estilo para los campos de texto dentro de la caja */
#direccionBox input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Asegura que ocupen todo el ancho */
    box-sizing: border-box; /* Importante para que el padding no afecte el width */
}

/* El estilo que oculta la caja. ¡Es crucial! */
.hidden {
    display: none !important; 
}

/* styles.css */

/* Estilo para el contenedor del total */
.total-pedido {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #25d366; /* Borde del color de WhatsApp para destacar */
    border-radius: 8px;
    background-color: #e6ffec; /* Fondo muy claro */
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

/* Estilo para el monto en sí (la cifra) */
#montoTotal {
    color: #128c7e; /* Un verde oscuro */
    font-size: 1.4em;
    margin-left: 5px;
}