/* Demo ficticia · Taberna Brasalto — identidad propia: verde botella, azafrán y brasa */
@font-face { font-family: "Fraunces"; src: url("../../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

.demo-restaurante {
  --bosque: #1d2b22; --bosque-2: #26382c; --bosque-3: #31473a;
  --crema: #f6ecd6; --crema-2: #d9cfb6; --azafran: #e9b44c; --brasa: #c9512a;
  background: var(--bosque); color: var(--crema); font-family: "Figtree", system-ui, sans-serif; font-size: 1.05rem; line-height: 1.6;
}
.demo-restaurante :focus-visible { outline: 3px solid var(--azafran); outline-offset: 3px; border-radius: 6px; }
.r-envoltura { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1140px); margin-inline: auto; }
.demo-restaurante h1, .demo-restaurante h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-variation-settings: "opsz" 144; line-height: 1.02; margin: 0; letter-spacing: -.01em; }

/* botones */
.r-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.4rem; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--azafran); color: #1b1404; font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s; }
.r-btn:hover { background: #f2c564; transform: translateY(-1px); }
.r-btn-linea { background: transparent; color: var(--crema); box-shadow: inset 0 0 0 1.5px rgba(246, 236, 214, .5); }
.r-btn-linea:hover { background: rgba(246, 236, 214, .08); }
.r-btn-ancho { width: 100%; }
.r-acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* cabecera */
.r-cab { border-bottom: 1px solid rgba(246, 236, 214, .14); }
.r-cab-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.r-logo { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; color: var(--crema); text-decoration: none; line-height: 1; display: grid; }
.r-logo-pre { font-family: "Figtree", sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--azafran); margin-bottom: .2rem; }
.r-nav { display: flex; gap: .3rem; margin-left: auto; }
.r-nav a { color: var(--crema-2); text-decoration: none; padding: .5rem .8rem; border-radius: 6px; }
.r-nav a:hover { color: var(--crema); background: rgba(246, 236, 214, .08); }
.r-btn-cab { min-height: 44px; }
@media (max-width: 700px) { .r-nav { display: none; } .r-btn-cab { margin-left: auto; } }

/* hero */
.r-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.r-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: center; }
.r-hero-pre { color: var(--azafran); font-weight: 600; margin: 0 0 1rem; }
.r-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-wrap: balance; }
.r-hero-sub { font-size: 1.2rem; color: var(--crema-2); max-width: 32em; margin: 1.4rem 0 0; }
.r-sello { width: min(100%, 330px); justify-self: center; }
.r-sello text { font: 600 15.5px "Figtree", sans-serif; letter-spacing: .26em; fill: var(--crema-2); }
.r-sello-giro { transform-origin: 150px 150px; animation: r-giro 40s linear infinite; }
.r-llama { transform-origin: 150px 200px; animation: r-llama 3.2s ease-in-out infinite alternate; }
@keyframes r-giro { to { transform: rotate(360deg); } }
@keyframes r-llama { from { transform: scaleY(1); } to { transform: scaleY(1.05) skewX(-1.5deg); } }
@media (max-width: 760px) { .r-hero-in { grid-template-columns: 1fr; } .r-sello { width: 220px; order: -1; justify-self: start; } }
.r-datos { list-style: none; padding: 0; margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(246, 236, 214, .18); }
.r-datos li { padding: 1.3rem 1rem 1.6rem 0; display: grid; }
.r-datos li + li { padding-left: 1.4rem; border-left: 1px solid rgba(246, 236, 214, .18); }
.r-datos strong { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.3rem; }
.r-datos span { color: var(--crema-2); font-size: .92rem; }
@media (max-width: 600px) { .r-datos { grid-template-columns: 1fr; } .r-datos li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(246, 236, 214, .18); } }

/* carta */
.r-carta { background: var(--crema); color: #24301f; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.r-carta-cab { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.r-carta-cab h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--bosque); }
.r-carta-cab p { margin: 0; color: #5b5a46; max-width: 26em; }
.r-controles { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--bosque); padding-bottom: .9rem; }
.r-pestanas { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.r-pestanas::-webkit-scrollbar { display: none; }
.r-pestana { flex: none; border: 0; background: none; cursor: pointer; padding: .6rem 1rem; border-radius: 6px; font-family: "Fraunces", serif; font-size: 1.15rem; color: #5b5a46; font-variation-settings: "opsz" 30; }
.r-pestana:hover { color: var(--bosque); background: rgba(29, 43, 34, .06); }
.r-pestana[aria-selected="true"] { background: var(--bosque); color: var(--crema); }
.demo-restaurante .r-carta :focus-visible { outline-color: var(--brasa); }
.r-filtros { display: flex; gap: .5rem; }
.r-filtro { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid #b9b195; background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: #3b3b2c; }
.r-filtro[aria-pressed="true"] { background: #24301f; border-color: #24301f; color: var(--crema); }
.r-ico { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.r-ico-veg { background: #4f8a3c; } .r-ico-sg { background: var(--azafran); box-shadow: inset 0 0 0 2px #8a6514; }
.r-panel { padding-top: 1rem; outline: none; }
.r-platos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
@media (max-width: 760px) { .r-platos { grid-template-columns: 1fr; } }
.r-plato { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.2rem 0; border-bottom: 1px dashed #bfb497; animation: r-entra .35s ease both; }
@keyframes r-entra { from { opacity: 0; transform: translateY(6px); } }
.r-plato h3 { font-family: "Fraunces", serif; font-weight: 560; font-size: 1.28rem; margin: 0; color: var(--bosque); font-variation-settings: "opsz" 40; }
.r-precio { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 600; color: var(--brasa); white-space: nowrap; }
.r-plato p { grid-column: 1 / -1; margin: 0; color: #5b5a46; font-size: .98rem; }
.r-etiquetas { grid-column: 1 / -1; display: flex; gap: .4rem; margin-top: .35rem; }
.r-etiqueta { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #3b3b2c; }
.r-vacio { padding: 2.5rem 0; text-align: center; color: #5b5a46; }
.r-vacio button { margin-top: .8rem; background: none; border: 1.5px solid var(--bosque); color: var(--bosque); border-radius: 6px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; }
.r-recuento { margin: 1.2rem 0 0; color: #5b5a46; font-size: .92rem; }

/* info */
.r-info { padding: clamp(4rem, 8vw, 6rem) 0; }
.r-info-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 760px) { .r-info-in { grid-template-columns: 1fr; } }
.r-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.r-nota { margin: .6rem 0 1.2rem; }
.r-horario { width: 100%; border-collapse: collapse; }
.r-horario th, .r-horario td { text-align: left; padding: .8rem 0; border-bottom: 1px solid rgba(246, 236, 214, .16); font-weight: 400; }
.r-horario th { color: var(--crema-2); padding-right: 1rem; }
.r-hoy { margin-top: 1.2rem; display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .9rem; border-radius: 999px; background: var(--bosque-2); font-size: .95rem; }
.r-hoy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azafran); }
.r-direccion { font-family: "Fraunces", serif; font-size: 1.4rem; line-height: 1.3; }
.r-mapa { border-radius: 10px; overflow: hidden; border: 1px solid rgba(246, 236, 214, .14); }

.r-banda { background: var(--brasa); color: #fff7ea; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.r-banda-in { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.r-banda h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.r-banda p { margin: 0; grid-column: 1; }
.r-banda .r-btn { grid-column: 2; grid-row: 1 / span 2; background: var(--bosque); color: var(--crema); }
.r-banda .r-btn:hover { background: #142019; }
.r-banda :focus-visible { outline-color: #fff7ea; }
@media (max-width: 640px) { .r-banda-in { grid-template-columns: 1fr; } .r-banda .r-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1rem; } }

/* diálogo de reserva */
.r-dialogo { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--crema); color: #24301f;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); overflow: auto; }
.r-dialogo::backdrop { background: rgba(12, 18, 14, .72); backdrop-filter: blur(3px); }
.r-dialogo[open] { animation: r-sube .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes r-sube { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.r-dialogo-cab { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; background: var(--bosque); color: var(--crema); }
.r-dialogo-cab h2 { font-size: 1.6rem; }
.r-cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(246, 236, 214, .12); color: var(--crema); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.r-cerrar:hover { background: rgba(246, 236, 214, .22); }
.r-dialogo :focus-visible { outline-color: var(--brasa); }
.r-dialogo-cab :focus-visible { outline-color: var(--azafran); }
.r-dialogo-aviso { margin: 0; padding: .7rem 1.4rem; background: #efe2c3; font-size: .9rem; }
.r-form, .r-ticket { padding: 1.2rem 1.4rem 1.6rem; }
.r-bloque { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.r-bloque legend { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 560; margin-bottom: .7rem; padding: 0; }
.r-contador { display: flex; align-items: center; gap: .8rem; }
.r-contador output { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 600; min-width: 1.6ch; text-align: center; }
.r-mas-menos { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #24301f; background: transparent; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.r-mas-menos:hover:not([disabled]) { background: #24301f; color: var(--crema); }
.r-mas-menos[disabled] { opacity: .35; cursor: not-allowed; }
.r-dias { display: flex; gap: .45rem; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.r-dia { flex: none; position: relative; }
.r-dia input, .r-turnos input, .r-hora input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.r-dia span { display: grid; place-items: center; width: 62px; padding: .5rem 0; border-radius: 8px; border: 1.5px solid #c9bf9f; line-height: 1.15; font-size: .8rem; color: #5b5a46; }
.r-dia b { font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 600; color: #24301f; }
.r-dia input:checked + span { background: var(--bosque); border-color: var(--bosque); color: var(--crema-2); }
.r-dia input:checked + span b { color: var(--crema); }
.r-dia input:disabled + span { opacity: .45; text-decoration: line-through; }
.r-dia input:focus-visible + span, .r-turnos input:focus-visible + span, .r-hora input:focus-visible + span { outline: 3px solid var(--brasa); outline-offset: 2px; }
.r-turnos { display: inline-flex; padding: 3px; border-radius: 8px; background: #e7dbbd; margin-bottom: .8rem; }
.r-turnos label { position: relative; }
.r-turnos span { display: block; padding: .45rem 1.1rem; border-radius: 6px; font-weight: 600; cursor: pointer; }
.r-turnos input:checked + span { background: #fffaf0; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.r-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
@media (max-width: 420px) { .r-horas { grid-template-columns: repeat(2, 1fr); } }
.r-hora { position: relative; }
.r-hora span { display: grid; place-items: center; padding: .6rem 0; border-radius: 8px; border: 1.5px solid #c9bf9f; font-weight: 600; line-height: 1.1; }
.r-hora small { font-weight: 500; font-size: .72rem; color: #8a7f60; }
.r-hora input:checked + span { background: var(--azafran); border-color: #b9851d; }
.r-hora input:disabled + span { opacity: .5; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0,0,0,.05) 6px 8px); }
.r-ayuda { font-size: .88rem; color: #5b5a46; margin: .6rem 0 0; }
.r-datos-form { display: grid; gap: .35rem; }
.r-datos-form label { font-weight: 600; margin-top: .4rem; }
.r-datos-form input { padding: .75rem .9rem; border-radius: 8px; border: 1.5px solid #c9bf9f; background: #fffaf0; }
.r-datos-form input:focus { outline: none; border-color: var(--bosque); box-shadow: 0 0 0 3px rgba(29, 43, 34, .2); }
.r-datos-form input[aria-invalid="true"] { border-color: #b3261e; }
.r-opcional { font-weight: 400; color: #8a7f60; }
.r-error { color: #9b1c14; font-weight: 600; margin: 0 0 .8rem; }
.r-error:empty { display: none; }

/* ticket de confirmación */
.r-ticket { outline: none; }
.r-ticket-papel { position: relative; background: #fffaf0; border-radius: 10px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  animation: r-sello .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes r-sello { from { transform: rotate(-2deg) translateY(10px); opacity: 0; } }
.r-ticket-cab { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; color: var(--bosque); }
.r-ticket dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; padding: 1rem 0; border-top: 1.5px dashed #c9bf9f; border-bottom: 1.5px dashed #c9bf9f; }
.r-ticket dt { color: #8a7f60; } .r-ticket dd { margin: 0; font-weight: 600; }
.r-ticket-nota { font-size: .85rem; color: #5b5a46; margin: .9rem 0 0; }
.r-ticket-real { margin-top: 1.4rem; }
.r-ticket-real h3 { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 560; margin: 0 0 .5rem; }
.r-ticket-real ul { margin: 0; padding-left: 1.2rem; }
