/* Motor de reservas para el cliente: distribución tipo SevenRooms con la marca Oysters. */
:root {
  --title: #141A16;
  --text: #2B332D;
  --soft: #6B716C;
  --border: #D9D9D6;
  --border-dark: #1F2A23;
  --panel: #F5F5F3;
  --tint: #E6F0EA;
  --shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08);
}
body.page { background: #fff; color: var(--text); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--serif); color: var(--title); margin: 0; letter-spacing: -0.2px; }
.loading { display: flex; justify-content: center; padding: 60px 0; }
.demo { position: sticky; top: 0; z-index: 40; }

/* Barra superior */
.bar { background: var(--green-deep); color: #fff; position: sticky; top: 0; z-index: 30; }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 0 20px; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.lang-wrap { position: relative; justify-self: start; }
.lang-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font-weight: 500; font-size: 15px; }
.lang-menu { position: absolute; top: 46px; left: 0; min-width: 180px; background: #fff; color: var(--title); border-radius: 10px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 5; }
.lang-menu li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.lang-menu li:hover, .lang-menu li[aria-selected="true"] { background: var(--tint); }
.bar-logo { display: flex; align-items: center; justify-content: center; min-height: 72px; }
.bar-logo img { height: 56px; width: auto; display: block; }
.bar-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .55); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.bar-cta:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Página */
.page-main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.hero { width: 100%; aspect-ratio: 23 / 8; border-radius: 16px; overflow: hidden; background: var(--panel); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-name { font-size: 30px; font-weight: 600; padding: 4px 16px 0; }
.r-addr { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 14px; color: var(--text); }
.r-addr svg { color: var(--green-deep); flex: none; }

.tabs2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); margin-top: 8px; }
.tabs2 button { background: none; border: 0; padding: 14px 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs2 button[aria-selected="true"] { color: var(--title); border-bottom-color: var(--title); }

/* Buscador (píldora) */
.search { position: sticky; top: 72px; z-index: 20; background: #fff; border-radius: 999px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px; }
.sfield { position: relative; }
.sfield > button { width: 100%; text-align: left; background: none; border: 0; padding: 12px 24px; border-radius: 999px; display: flex; flex-direction: column; gap: 2px; color: var(--title); }
.sfield > button small { font-size: 13px; color: var(--soft); font-weight: 500; }
.sfield > button strong { font-size: 17px; font-weight: 700; }
.sfield + .sfield::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--border); }
.sfield.open > button { box-shadow: var(--shadow); background: #fff; }
.sfield.open::before { display: none; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); z-index: 25; padding: 10px; min-width: 220px; }
.pop-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.pop-list li { padding: 11px 16px; text-align: center; border-radius: 8px; cursor: pointer; font-size: 15px; }
.pop-list li:hover { background: var(--panel); }
.pop-list li[aria-selected="true"] { background: var(--tint); color: var(--soft); }
.pop-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px; }
.pcal { min-width: 260px; }
.pcal-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: 14px; text-align: center; }
.pcal-nav { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 18px; color: var(--title); }
.pcal-nav:disabled { opacity: .25; }
.pcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pcal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--soft); padding: 6px 0; }
.pday { height: 36px; border: 0; background: transparent; border-radius: 999px; font-size: 13px; color: var(--title); font-weight: 500; }
.pday:hover:not(:disabled) { background: var(--panel); }
.pday:disabled { color: #B8B8B5; }
.pday.full { text-decoration: line-through; color: #B8B8B5; }
.pday[aria-pressed="true"] { background: var(--tint); color: var(--green-deep); font-weight: 700; }
.pday.today { box-shadow: inset 0 0 0 1.5px var(--gold); }

/* Resultados */
.intro { text-align: center; color: var(--text); font-size: 15px; line-height: 1.6; padding: 0 12px; }
.results { display: flex; flex-direction: column; gap: 22px; padding: 8px 4px; }
.day-h { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; margin: 0; }
.slot-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.slot-row::-webkit-scrollbar { height: 6px; }
.chip-t { flex: 0 0 auto; min-width: 150px; min-height: 52px; border-radius: 8px; border: 1px solid var(--border-dark); background: #fff; color: var(--title); font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 12px; }
.chip-t small { font-weight: 500; font-size: 12px; color: var(--soft); }
.chip-t:hover { background: var(--panel); }
.chip-t[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.chip-t[aria-pressed="true"] small { color: #D3E6DB; }
.shift-lbl { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); margin: 0; }
.other { background: var(--panel); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.other-h { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; font-weight: 700; font-size: 16px; color: var(--title); width: 100%; }
.msg { text-align: center; font-size: 15px; padding: 4px 12px; }
.sk { height: 52px; border-radius: 8px; background: linear-gradient(90deg, #E4E4E1, #ECECEA, #E4E4E1); background-size: 200% 100%; animation: sk 1.4s infinite; flex: 0 0 150px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.about { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about h2 { font-size: 17px; font-weight: 600; }
.about p { margin: 0; line-height: 1.65; }
.place { border-top: 1px solid var(--border); padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.place h2 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.place .map { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.place iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-size: 14px; margin-top: 12px; }
.hours .today { color: var(--green-deep); font-weight: 700; }
.hours .closed { color: var(--soft); }
.page-foot { max-width: 1040px; margin: 0 auto; padding: 16px 20px 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.page-foot a { color: var(--soft); }

/* Modal del horario elegido */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.modal-box { position: relative; width: 100%; max-width: 800px; max-height: calc(100vh - 32px); background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-weight: 600; font-size: 16px; color: var(--title); }
.modal-x { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 999px; color: var(--title); display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--panel); }
.modal-body { overflow-y: auto; display: flex; flex-direction: column; }
.modal-body .mhero { aspect-ratio: 23 / 8; background: var(--panel); flex: none; }
.modal-body .mhero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtext { padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.mtext .when { font-weight: 700; font-size: 16px; }
.mtext p { margin: 0; line-height: 1.6; }
.mtext h3 { font-size: 16px; font-weight: 600; margin-top: 6px; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.zone-opt { min-height: 48px; border-radius: 8px; border: 1px solid var(--border-dark); background: #fff; color: var(--title); font-weight: 600; font-size: 15px; padding: 8px 12px; }
.zone-opt[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.modal-foot { padding: 12px 16px 16px; }
.cta-pill { width: 100%; min-height: 54px; border-radius: 999px; border: 0; background: var(--border-dark); color: #fff; font-weight: 600; font-size: 16px; }
.cta-pill:hover:not(:disabled) { background: var(--green-deep); }
.cta-pill:disabled { background: #D9D9D6; color: #8A8A88; }

/* Checkout */
.sub-bar { position: sticky; top: 72px; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); margin: -24px -20px 0; padding: 0 20px; }
.sub-in { max-width: 1040px; margin: 0 auto; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; position: relative; }
.sub-in .back { position: absolute; left: 0; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--title); }
.sub-in .dot::before { content: '•'; color: var(--soft); margin: 0 8px; }
.sub-in .clock { display: inline-flex; align-items: center; gap: 6px; margin-left: 20px; font-weight: 600; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: start; padding-top: 8px; }
.co-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.co-card h2 { font-size: 16px; font-weight: 700; }
.co-card .field label { font-weight: 500; font-size: 15px; }
.co-card .input, .co-card .textarea, .co-card .select { border-color: var(--border); border-radius: 8px; min-height: 52px; }
.co-card .req::after { content: ' *'; color: var(--title); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acc { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.acc details + details { border-top: 1px solid var(--border); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 16px; font-size: 15px; color: var(--title); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: '+'; font-size: 22px; line-height: 1; color: var(--title); width: 14px; }
.acc details[open] summary::before { content: '−'; }
.acc .acc-body { padding: 0 16px 16px 46px; }
.co-card .check { font-size: 14px; }
.co-card .check input { width: 22px; height: 22px; border-radius: 4px; }
.send { width: 100%; min-height: 54px; border-radius: 999px; border: 0; background: var(--green-deep); color: #fff; font-weight: 600; font-size: 16px; }
.send:disabled { background: #D9D9D6; color: #8A8A88; }
.legal { font-size: 12px; color: var(--soft); line-height: 1.5; margin: 0; }
.co-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 140px; }
.co-side .photo { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--panel); }
.co-side .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sum { border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.sum h2 { font-size: 20px; font-weight: 600; }
.sum div { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.sum svg { color: var(--title); flex: none; }
.m-note { background: var(--panel); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
#payment-element { min-height: 120px; }
.timer { font-size: 12px; color: var(--soft); text-align: center; }
.done-wrap { max-width: 560px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.done-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--green-deep); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.done-wrap .sum { text-align: left; }
.row-actions { display: flex; flex-direction: column; gap: 10px; }
.ghost-pill { min-height: 50px; border-radius: 999px; border: 1px solid var(--border-dark); background: #fff; color: var(--title); font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* Modo incrustado (iframe en la web) */
body.embed .bar, body.embed .hero, body.embed .about, body.embed .place, body.embed .page-foot { display: none; }
body.embed .search { top: 0; }
body.embed .sub-bar { top: 0; }

/* Móvil */
@media (max-width: 860px) {
  .bar-in { grid-template-columns: auto 1fr auto; min-height: 60px; padding: 0 12px; }
  .bar-logo { min-height: 60px; }
  .bar-logo img { height: 44px; }
  .lang-btn span { display: none; }
  .bar-cta span { display: none; }
  .bar-cta, .lang-btn { padding: 0 10px; }
  .page-main { padding: 16px 12px 40px; gap: 16px; }
  .hero { aspect-ratio: 16 / 10; border-radius: 12px; }
  .r-name { font-size: 24px; padding: 0 4px; }
  .r-addr { padding: 0 4px; }
  .search { top: 60px; grid-template-columns: 1fr; border-radius: 20px; }
  .sfield + .sfield::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; }
  .sfield > button { padding: 10px 20px; border-radius: 16px; }
  .pop { left: 0; right: 0; }
  .pop-cal { grid-template-columns: 1fr; }
  .pcal.second { display: none; }
  .place { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; gap: 20px; }
  .co-side { position: static; order: -1; }
  .co-side .photo { display: none; }
  .sub-bar { top: 60px; margin: -16px -12px 0; padding: 0 12px; }
  .sub-in { font-size: 13px; flex-wrap: wrap; padding: 8px 40px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .g2 { grid-template-columns: 1fr; }
}
