/* Flash Demos — estilo Flash: rojo + negro, Poppins */

:root {
  --red: #ED1C24;
  --red-dark: #C4121A;
  --black: #0D0D0F;
  --ink: #1A1A1E;
  --gray: #6E6E76;
  --line: #E8E8EC;
  --bg: #F7F7F9;
  --white: #FFFFFF;
  --green: #12A150;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(13, 13, 15, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { font-weight: 700; font-size: 17px; letter-spacing: 0.5px; text-decoration: none; }
.brand em { color: var(--red); font-style: normal; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: #9a9aa2; letter-spacing: 2px; text-transform: uppercase; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 36px 20px 80px; }

h1 { font-size: 30px; font-weight: 700; line-height: 1.2; }
h1 em { color: var(--red); font-style: normal; }
.sub { color: var(--gray); margin-top: 8px; font-size: 15px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- landing ---------- */

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }

.tool-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--red); }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(13,13,15,.13); }
.tool-card h2 { font-size: 20px; }
.tool-card p { color: var(--gray); font-size: 13.5px; line-height: 1.55; flex: 1; }
.tool-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tool-card .dur { font-size: 12px; color: var(--gray); background: var(--bg); border-radius: 20px; padding: 4px 12px; }
.tool-card .go { color: var(--red); font-weight: 600; font-size: 14px; }

/* ---------- booking ---------- */

.book-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; margin-top: 30px; overflow: hidden; }
@media (max-width: 780px) { .book-layout { grid-template-columns: 1fr; } }

.book-info { background: var(--black); color: var(--white); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.book-info .chip { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.book-info h2 { font-size: 24px; line-height: 1.25; }
.book-info p { color: #b9b9c0; font-size: 13.5px; line-height: 1.6; flex: 1; }
.book-info .item { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #d8d8dd; }
.book-info .item svg { flex: none; }

.book-main { padding: 30px 28px; min-height: 420px; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.step-title span { color: var(--gray); font-weight: 400; font-size: 13px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { text-transform: capitalize; font-size: 15px; }
.cal-nav { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: 11px; color: var(--gray); text-transform: uppercase; padding: 6px 0; }
.cal-day { aspect-ratio: 1; border: none; background: transparent; border-radius: 50%; font-family: inherit; font-size: 14px; color: var(--ink); cursor: default; }
.cal-day.on { background: #FDECEC; color: var(--red); font-weight: 600; cursor: pointer; }
.cal-day.on:hover { background: #fbdadb; }
.cal-day.sel { background: var(--red) !important; color: var(--white) !important; }
.cal-day.off { color: #c9c9cf; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 8px; }
.time-btn { padding: 12px 0; border: 1.5px solid var(--red); color: var(--red); background: var(--white); border-radius: 10px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.time-btn:hover { background: #FDECEC; }
.time-btn.sel { background: var(--red); color: var(--white); }

.back-link { background: none; border: none; color: var(--gray); font-family: inherit; font-size: 13px; cursor: pointer; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--ink); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 70px; }

.btn {
  background: var(--red); color: var(--white); border: none; border-radius: 10px;
  padding: 13px 26px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

.error-msg { color: var(--red); font-size: 13px; margin-top: 10px; }
.empty { color: var(--gray); font-size: 14px; padding: 30px 0; text-align: center; }

.confirm-box { text-align: center; padding: 30px 10px; }
.confirm-box .big { font-size: 52px; }
.confirm-box h3 { font-size: 22px; margin: 12px 0 6px; }
.confirm-box p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.confirm-box .when { display: inline-block; background: var(--bg); border-radius: 10px; padding: 12px 22px; margin: 16px 0; font-weight: 600; font-size: 15px; }
.confirm-box a.meet { color: var(--red); font-weight: 600; }

/* ---------- admin ---------- */

.login-box { max-width: 380px; margin: 80px auto; padding: 34px; }
.login-box h2 { margin-bottom: 18px; }

.tabs { display: flex; gap: 6px; margin: 26px 0 18px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 30px; border: 1px solid var(--line); background: var(--white); font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink); }
.tab.on { background: var(--black); color: var(--white); border-color: var(--black); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; }
.kpi .n { font-size: 28px; font-weight: 700; color: var(--red); }
.kpi .l { font-size: 12px; color: var(--gray); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; color: var(--gray); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.table-card { overflow-x: auto; padding: 6px 10px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge.src { background: #FDECEC; color: var(--red); }
.badge.ok { background: #E7F6EE; color: var(--green); }
.badge.off { background: var(--bg); color: var(--gray); }

.bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.bar-row .lbl { width: 180px; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; height: 22px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--red); border-radius: 6px; }
.bar-row .n { width: 40px; text-align: right; font-weight: 600; font-size: 13px; }

.panel { padding: 24px; margin-bottom: 18px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

.link-out { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; word-break: break-all; margin-top: 10px; display: none; }
.link-out.show { display: block; }

.mini { font-size: 12px; color: var(--gray); }
.txt-btn { background: none; border: none; color: var(--red); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 11px 22px; border-radius: 30px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }
