@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&family=Leckerli+One&family=Amaranth&display=swap');

:root {
  --color-primary: #9567BF;
  --color-secondary: #C46079;
  --color-light: #FFE3CF;
  --color-dark: #572807;
  --color-white: #ffffff;
}

body {
  background-color: var(--color-light);
  font-family: 'Amaranth', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Kelly Slab', cursive;
  color: var(--color-dark);
}

/* ===== TOPBAR / LOGO ===== */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 50px;
}

.brand-sublogo {
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #fff;
}

.brand-text strong {
  font-family: 'Leckerli One', cursive;
  font-size: 1.4rem;
}

.brand-text span {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ===== NAV CLIENT / ADMIN ===== */
.client-nav,
.admin-nav {
  display: flex;
  gap: 10px;
}

.client-nav {
  margin-left: 40px;
}

.client-nav button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.client-nav button:hover {
  background: #fff;
  color: var(--color-primary);
}

.admin-nav {
  margin-left: auto;
  gap: 8px;
}

.admin-nav button {
  background: #fff;
  border: none;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.admin-nav button:hover {
  background: var(--color-light);
}

.topbar button {
  padding: 6px 14px;
  border-radius: 20px;
}

/* ===== CARDS / IMAGES ===== */
.card {
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.promo-img {
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: sticky;
  top: 100px;
}

.promo-img:hover {
  transform: scale(1.05);
}

/* ===== MENU ===== */
.menu-container {
  max-width: 700px;
  margin: auto;
  margin-top: 20px;
}

.menu-categoria {
  font-size: 28px;
  font-weight: bold;
  color: #6b2d1a;
  margin-top: 40px;
  margin-bottom: 10px;
}

.menu-item {
  margin-bottom: 12px;
  font-family: "Georgia", serif;
}

.menu-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  font-size: 18px;
  font-weight: 600;
}

.menu-line::before {
  content: "";
  border-bottom: 2px dotted #888;
  margin: 0 10px;
}

.menu-nombre,
.menu-precio {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.menu-precio {
  font-weight: bold;
  color: #5a2a1e;
}

.menu-descripcion {
  font-size: 14px;
  color: #555;
  margin-top: 2px;
  line-height: 1.2;
  white-space: pre-line;
}

.menu-dots {
  border-bottom: 2px dotted #888;
  margin: 0 10px;
  height: 0;
}

.titulo-categoria {
  font-family: "Georgia", serif;
  font-size: 40px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 30px;
  color: #7a2d2d;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.categoria-bloque {
  padding-bottom: 10px;
}

.menu-subtitulo {
  margin-top: 20px;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 4px;
}

/* ===== MODAL ===== */
.modal-producto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-contenido input,
.modal-contenido textarea {
  padding: 8px;
  width: 100%;
}

/* ===== ADMIN PRODUCT BUTTONS ===== */
.admin-product-btns {
  margin-top: 5px;
}

.admin-product-btns button {
  border: none;
  background: #eee;
  padding: 4px 8px;
  margin-right: 5px;
  cursor: pointer;
}

.admin-btn {
  display: none;
}

/* ===== OTROS ===== */
.site-title-main {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 15px;
  margin-bottom: 25px;
}

#btnGenerarOrden {
  font-size: 18px;
  padding: 10px 25px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btnGenerarOrden:hover {
  background-color: var(--color-secondary);
}

.haz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.haz-box {
  border: 3px dashed #d7a5a5;
  padding: 20px;
  border-radius: 15px;
  background: #fff6f6;
}

.haz-box h4 {
  text-align: center;
  font-family: Georgia, serif;
  margin-bottom: 10px;
}

.haz-box ul {
  list-style: disc;
  padding-left: 20px;
}

#btnGuardarOrden {
  background-color: #7f3fbf; /* morado */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: bold;
  transition: background 0.2s;
}

#btnGuardarOrden:hover {
  background-color: #a060d0; /* morado más claro al pasar el mouse */
}

/* Botón morado personalizado */
.btn-morado {
  background-color: #a060d0;   /* Morado principal */
  color: white;                /* Texto blanco */
  border: none;                /* Sin borde */
  padding: 0.5rem 1rem;        /* Tamaño cómodo */
  font-size: 1rem;
  border-radius: 0.375rem;     /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-morado:hover {
  background-color: #a060d0;   /* Morado más oscuro al pasar el mouse */
}

.menu-descripcion {
  margin: 0;
  padding: 0;
  display: inline; /* hace que el div se comporte como span */
  font-weight: normal; /* opcional */
}

.haz-grid{
display:grid;
grid-template-columns: repeat(2,1fr);
gap:20px;
margin-top:20px;
}

.haz-box{
background:#fff0f3;
border:3px dashed #ffb3c6;
border-radius:15px;
padding:15px;
}

.haz-box h3{
text-align:center;
margin-bottom:10px;
}

.haz-box label{
display:block;
margin:4px 0;
cursor:pointer;
}

.btn-morado{
background: #a060d0;
color:white;
border:none;
}

.btn-morado:hover{
background:#a060d0;
color:white;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;

  background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("images/Fondo\ 2.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* para que quede arriba de todo */
}

body {
  padding-top: 100px;
}

.promo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.promo-wall-card{
  background:#f5efe6;
  border:2px solid #a060d0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  padding:10px;
  text-align:center;
}

.promo-wall-card img{
  width:100%;
  height:auto;          /* 🔥 importante */
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#f5efe6;
}

.promo-wall-card h5{
  color:#4b2e2e;
  margin-top:10px;
}

.promo-wall-card p{
  color:#6b4f3b;
  padding:0 10px;
}

.promo-wall-card button{
  background:#a060d0;
  color:white;
  border:none;
  padding:8px 12px;
  border-radius:10px;
  margin-top:8px;
}

/* ===== MODAL AJUSTADO CELULARES ===== */

#modalOrden .modal-dialog,
#modalDomicilio .modal-dialog{
  margin: 140px 10px 10px 10px;
  height: calc(100vh - 150px);
}

#modalOrden .modal-content,
#modalDomicilio .modal-content{
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

#modalOrden .modal-body,
#modalDomicilio .modal-body{
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

@media (max-width:430px){
  #modalOrden .modal-dialog,
  #modalDomicilio .modal-dialog{
    margin: 145px 8px 8px 8px;
    height: calc(100vh - 170px);
  }
}