/* ============ VARIABLES ============ */
:root {
  --bg: #0f1113;
  --bg-alt: #16181b;
  --surface: #1c1f22;
  --surface-2: #24272b;
  --border: #303539;
  --text: #f2ede6;
  --text-muted: #a9a9ad;
  --gold: #d4af37;
  --gold-light: #e8cc6b;
  --gold-dark: #a5821f;
  --whatsapp: #25d366;
  --danger: #e05a5a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: .3px; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -0.2em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1a1a; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,175,55,.35); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--whatsapp { background: var(--whatsapp); color: #06210f; }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,17,19,.75); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.3rem; margin-right: auto; }
.logo__icon { color: var(--gold); font-size: 1.4rem; transform: rotate(-20deg); display: inline-block; }
.logo__text em { font-style: normal; color: var(--gold-light); }
.nav { display: flex; gap: 28px; }
.nav__link { font-size: .95rem; color: var(--text-muted); transition: color .2s; }
.nav__link:hover { color: var(--gold-light); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 96px;
  background:
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, #0f1113, #101214 60%, #0c0d0f);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.pole {
  position: absolute; right: 6%; top: 10%; width: 90px; height: 420px;
  border-radius: 50px; overflow: hidden; border: 4px solid #2a2d31;
  box-shadow: 0 0 60px rgba(212,175,55,.08);
  display: none;
}
@media (min-width: 1000px) { .pole { display: block; } }
.pole__stripes {
  position: absolute; inset: -50% -20%;
  background: repeating-linear-gradient(45deg,
    #d4af37 0 20px, #f2ede6 20px 40px, #cf3d3d 40px 60px, #f2ede6 60px 80px);
  animation: pole-spin 6s linear infinite;
}
@keyframes pole-spin { from { transform: translateY(0); } to { transform: translateY(113px); } }

.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.badge__stars { color: var(--gold); letter-spacing: 1px; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: .4em; }
.hero__title span { color: var(--gold-light); }
.hero__subtitle { font-size: 1.1rem; max-width: 560px; }
.hero__address { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .92rem; margin-bottom: 32px; }
.hero__address .icon { color: var(--gold); flex-shrink: 0; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 600; }
.section__head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: .3em; }

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.service-card h3 { font-size: 1.15rem; margin: 4px 0 0; }
.service-card__meta { color: var(--text-muted); font-size: .85rem; }
.service-card__price { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-light); white-space: nowrap; }
.service-card__actions { margin-top: auto; padding-top: 8px; }
.service-card__actions .btn { width: 100%; }

/* ============ BOOKING ============ */
.booking {
  max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.stepper { display: flex; justify-content: space-between; margin-bottom: 36px; position: relative; }
.stepper::before {
  content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0;
}
.stepper__item {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted); flex: 1;
}
.stepper__item span {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); color: var(--text-muted);
  transition: all .25s;
}
.stepper__item.is-active span, .stepper__item.is-done span {
  background: var(--gold); border-color: var(--gold); color: #1a1a1a;
}
.stepper__item.is-active, .stepper__item.is-done { color: var(--text); }

.step { display: none; }
.step.is-active { display: block; animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field-label { display: block; font-size: .85rem; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.field-label:first-child { margin-top: 0; }
.input {
  width: 100%; padding: 13px 16px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--gold); }
.input::placeholder { color: #6b6f74; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a9ad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
textarea.input { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.service-summary { margin-top: 16px; }
.service-summary__row {
  display: flex; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.service-summary__row strong { color: var(--gold-light); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 4px; }
.slots__empty { color: var(--text-muted); font-size: .9rem; grid-column: 1/-1; }
.slot {
  padding: 10px 6px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: .88rem; cursor: pointer; transition: all .15s; text-align: center;
}
.slot:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.slot.is-selected { background: var(--gold); border-color: var(--gold); color: #1a1a1a; font-weight: 600; }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

.step__actions { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.step__next { margin-top: 24px; }

.booking__recap { margin-top: 20px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .9rem; }
.booking__recap div { display: flex; justify-content: space-between; padding: 4px 0; }
.booking__recap strong { color: var(--text); }

.field-error { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.field-error.is-visible { display: block; }

/* ============ CONFIRMATION ============ */
.confirmation { text-align: center; padding: 20px 0; }
.confirmation__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--whatsapp); color: #06210f;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px;
}
.confirmation__card {
  text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; margin: 24px auto; max-width: 460px; font-size: .92rem;
}
.confirmation__card div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.confirmation__card div:last-child { border-bottom: none; }
.confirmation__card strong { color: var(--gold-light); text-align: right; }
.confirmation__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============ MIS RESERVAS ============ */
.my-bookings { max-width: 720px; margin: 48px auto 0; }
.my-bookings h3 { font-size: 1.1rem; margin-bottom: 16px; }
.my-bookings__list { display: flex; flex-direction: column; gap: 12px; }
.my-booking {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px;
}
.my-booking__info b { color: var(--gold-light); }
.my-booking__info small { display: block; color: var(--text-muted); margin-top: 2px; }
.my-booking__cancel { background: none; border: 1px solid var(--danger); color: var(--danger); border-radius: 999px; padding: 8px 16px; font-size: .8rem; cursor: pointer; }
.my-booking__cancel:hover { background: var(--danger); color: #fff; }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.about__list li { padding: 10px 0 10px 28px; position: relative; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.about__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.about__hours h3 { display: flex; align-items: center; gap: 10px; color: var(--gold-light); }
.hours-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: .92rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li b { color: var(--text); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; transition: transform .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }
.contact-card .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 12px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: .9rem; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0; }
.footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo--footer { margin: 0; }
.footer__address { font-size: .85rem; max-width: 480px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { color: var(--text-muted); font-size: .9rem; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { font-size: .8rem; color: #6b6f74; margin: 0; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--surface-2); border: 1px solid var(--gold); color: var(--text);
  padding: 14px 24px; border-radius: 999px; font-size: .9rem; z-index: 999; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 860px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-alt); flex-direction: column;
    padding: 20px 24px; gap: 4px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .3s ease; }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .booking { padding: 26px 18px; }
  .stepper__item span { width: 26px; height: 26px; font-size: .8rem; }
  .section { padding: 70px 0; }
}

/* ============ CUENTA DEL CLIENTE ============ */
[hidden] { display: none !important; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: none; color: var(--gold-light); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 0; }
.link-danger { color: var(--danger); }
.account-hint { color: var(--text-muted); font-size: .85rem; margin: 10px 0 0; }
.account-current {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px;
}
.account-current b { color: var(--gold-light); }
.account-tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.account-tab {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); font: inherit; font-size: .88rem; cursor: pointer;
}
.account-tab.is-active { border-color: var(--gold); color: var(--gold-light); }
.my-booking.is-past { opacity: .6; }
.my-bookings__login .btn { margin-top: 18px; }
.my-bookings__who { text-align: right; }

/* ============ PANEL DEL NEGOCIO ============ */
.panel-page .header { position: sticky; }
.panel-user { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .9rem; }
.panel-main { padding-top: 36px; padding-bottom: 80px; }
.panel-login { max-width: 440px; margin: 40px auto; }
.panel-login .btn { margin-top: 22px; width: 100%; justify-content: center; }
.panel-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.panel-tab {
  background: none; border: 1px solid transparent; color: var(--text-muted); font-family: var(--font-head);
  letter-spacing: .06em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.panel-tab:hover { color: var(--gold-light); }
.panel-tab.is-active { background: var(--gold); color: #1a1a1a; }
.panel-view { display: none; }
.panel-view.is-active { display: block; animation: fade-in .25s ease; }
.panel-title { font-size: 1.6rem; margin: 0 0 4px; }
.panel-title::first-letter { text-transform: uppercase; }
.panel-subtitle { font-size: 1.15rem; margin: 36px 0 14px; }
.panel-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.panel-date { width: auto; }
.panel-error { color: var(--danger); }
.panel-block { margin: 14px 0; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(224,90,90,.12); border: 1px solid var(--danger); }
.panel-warning { margin: 18px 0; border-color: var(--gold); }
.panel-warning p { margin: 8px 0 0; font-size: .9rem; }
.panel-form .btn { margin-top: 20px; }
.panel-details { margin-top: 28px; }
.panel-details summary, .panel-subdetails summary { cursor: pointer; color: var(--gold-light); font-family: var(--font-head); letter-spacing: .04em; }
.panel-subdetails { margin: 14px 0; }
.panel-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; cursor: pointer; }
.panel-check input { width: 18px; height: 18px; accent-color: var(--gold); }

.agenda-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.agenda-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 18px;
}
.agenda-item.status-atendida { border-left-color: var(--whatsapp); }
.agenda-item.status-cancelada, .agenda-item.status-no_asistio { border-left-color: var(--border); opacity: .55; }
.agenda-time { font-family: var(--font-head); color: var(--gold-light); min-width: 150px; }
.agenda-info { flex: 1; min-width: 200px; }
.agenda-info small { display: block; color: var(--text-muted); margin-top: 2px; }
.agenda-info a { color: var(--gold-light); }
.agenda-note { font-style: italic; }
.agenda-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.agenda-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.agenda-pay { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.agenda-pay .input { width: auto; flex: 1; min-width: 120px; }

.client-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.client-result { text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 10px 14px; font: inherit; cursor: pointer; }
.client-result:hover { border-color: var(--gold); }

.service-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.service-row {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto auto; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px;
}
.service-row.is-off { opacity: .55; }
.service-row .panel-check { margin: 0; }
.service-row__field { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr 1fr; } }

.schedule-row { display: grid; grid-template-columns: 160px 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.schedule-row .panel-check { margin: 0; }
.schedule-row .input:disabled { opacity: .35; }
@media (max-width: 560px) { .schedule-row { grid-template-columns: 1fr 1fr; } .schedule-row span { display: none; } .schedule-row .panel-check { grid-column: 1 / -1; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.stat b { font-family: var(--font-head); font-size: 1.5rem; }
.is-in { color: var(--whatsapp); }
.is-out { color: var(--danger); }
.cash-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.cash-row .input { width: auto; flex: 1; min-width: 130px; }
.cash-row .cash-row__desc { flex: 3; min-width: 220px; }
.cash-row .btn { margin-top: 0; }
