body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100svh;      /* ← ocupa toda la pantalla en móvil */
  display: flex;           /* ← contenedor flex */
  flex-direction: column;  /* ← en columna */
  background-color: #fcf1e0ff;
  padding-top: 60px; /* ajusta al alto real de tu header/navbar */
}


/* ------------------- HEADER ------------------------ */

header {
  position: fixed;
  width: 100%;
  top: 0;            /* pegado al borde superior */
  left: 0;
  background: #333;  /* mismo color que el navbar */
  z-index: 1000;     /* para que quede por encima del resto */
}

header h2 {
  font-size: 1.5em;
  color: #ca8c19;
  font-weight: normal;
  text-align: center; /* ✅ centra el texto */
}

.titulo {
  font-size: 1.2em;
  color: #e67e22;
  font-weight: bold;
  text-align: center; /* ✅ centra el texto */
}
:root { --nav-h: 40px; }

/* Header barra */
.navbar{
  display: grid;
  grid-template-columns: var(--nav-h) 1fr var(--nav-h); /* izq | centro | dcha */
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #333; 
  color: #fff;
  position: relative; /* para posicionar .menu debajo */
  min-height: var(--nav-h);
}

/* Anclajes por columna */
.hamburger { justify-self: start; }
.icon-btn  { justify-self: end; }
.usuario-box,
.auth-buttons { justify-self: center; } /* centro perfecto */

/* Hamburguesa */
.hamburger{
  width: var(--nav-h);
  height: var(--nav-h);
  display: flex;
  flex-direction: column;   /* 👈 apila las barras */
  justify-content: center;
  align-items: center;
  gap: 5px;                 /* separación entre líneas */
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hamburger div{
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Usuario */
.usuario-box{
  position: relative;          /* 👈 ancla para el menú */
  display:none;
  background:#fff; color:#000;
  border:1px solid #ccc; border-radius:12px;
  padding:2px 10px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  height: var(--nav-h);
  align-items:center; gap:6px;
}
.usuario-box.visible{ 
  display:flex; 
}

.usuario-nombre{ margin:0; cursor:pointer; line-height:1; }

.usuario-menu{
  position: absolute;
  top: calc(100% + 8px);        /* 8px debajo del pill */
  left: 50%;
  transform: translateX(-50%);  /* centrado respecto al pill */
  display: none;                /* se muestra con .mostrar */
  min-width: 220px;
  max-width: 80vw;
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  z-index: 2000;                /* por encima del contenido */
  text-align: center;             /* opcional */
}
.usuario-menu.mostrar{ display: block; }

.usuario-menu span{
  display:block;
  margin-bottom:8px;
  font-size:0.9em;
  color:#333;
}
.usuario-menu button{
  width:100%;
  background:#e74c3c;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:0.95em;
}

/* Botones Auth (cuando no hay sesión) */
.auth-buttons{
  display:flex; gap:10px;
}
.auth-buttons button{
  background:#e67e22; color:#fff; border:none;
  padding:20px 20x; border-radius:8px; font-size:.95em;
  cursor:pointer; transition:background-color .3s ease;
}
.auth-buttons button:hover{ background:#d35400; }

/* Carrito (derecha del todo) */
.icon-btn{
  width: var(--nav-h); height: var(--nav-h);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none;
  border:1px solid #555; border-radius:10px;
  background:transparent;
  position:relative;
}
.icon-btn:active{ transform:scale(.97); }
.cart-badge{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px;
  background:#e67e22; color:#fff; font-size:11px; line-height:18px;
  border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
}

/* Menú desplegable */
.menu{
  position:absolute; 
  top:100%; left:0; right:0;
  display:none; 
  flex-direction:column;
  background:#444; border-radius:6px; overflow:hidden; z-index:1000;
}
.menu.abierto{ display:flex; }
.menu a{
  color:#fff; padding:12px 16px; text-decoration:none; border-bottom:1px solid #555;
}
.menu a:last-child{ border-bottom:none; }
.menu a:hover{ background:#555; }

/* Utilidad: oculto accesible */
.oculto{ visibility:hidden; opacity:0; pointer-events:none; }


/* =====................ FOOTER ...................===== */
.site-footer {
  margin-top: auto; 
  width: 100%;
  background: #333;   /* mismo color que el header */
  color: #fff;
  text-align: center; /* si quieres centrado */
}

.site-footer { padding-bottom: env(safe-area-inset-bottom); } /* iphone */

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a.contact-row { text-decoration: none; }

.footer-inner {
  max-width: 400px;     /* mantiene tu ancho móvil */
  margin: 0 auto;
  padding: 14px 12px;
  text-align: center;
}

.footer-title {
  font-size: 1rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;    /* 👈 centra horizontalmente */
  gap: 10px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.contact-row:hover {
  text-decoration: underline; /* solo se verá en el enlace */
}

.icon {
  width: 1.2em;
  text-align: center;
}

.icon-img {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
}


/* ------------------- CONTENEDOR PRINCIPAL ------------------------ */

.contenido-fijo-350{
  width: 100%;
  max-width: 400px;      /* igual que el form */
  padding: 0 12px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;         /* 👈 centrará el hijo */
  justify-content: center;
}


/* ========== BOTONES ========== */

/* Botón de formulario general */
.boton-formulario {
  background-color: #006411;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  margin: 20px auto 0;
}


/* ========== Solicitud ========== */

.formulario-taller {
  background: #fff8ee;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 1em;
  font-family: Arial, sans-serif;
  margin: 40px auto;       /* 🔥 Centra horizontal y da espacio vertical */
  max-width: 400px;        /* 🔒 Ancho controlado */
  width: 90%;              /* ✅ Responsivo */
}

.formulario-taller label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

.formulario-taller select,
.formulario-taller input[type="date"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.factura-box {
  background: #f9f9f9;
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.dropdown-bebidas {
  position: relative;
  width: 100%;
  margin-top: 15px;
}

#toggle-bebidas {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

#toggle-bebidas:hover {
  background-color: #d35400;
}

.bebidas-opciones {
  position: absolute;
  width: 100%;
  background: #fff8ee;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.ayuda-campo {
  display: block;
  margin-top: 4px;
  font-size: 0.85em;
  color: #555;
}
