/* 230 Barber · identidad basada en DylanAPP: negro profundo + dorado #f1c40f + Poppins */
:root {
  --bg: #0e0e0e;
  --bg-2: #121212;
  --panel: #171717;
  --panel-2: #1f1f1f;
  --line: #2a2a2a;
  --gold: #f1c40f;
  --gold-soft: rgba(241, 196, 15, 0.14);
  --gold-glow: rgba(241, 196, 15, 0.45);
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --danger: #ef5350;
  --ok: #4caf50;
  --radius: 16px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(to bottom, var(--bg), #111);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 30px; border: 0; cursor: pointer;
  font-weight: 600; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn-gold {
  background: linear-gradient(90deg, var(--gold), #fff);
  color: #000;
  box-shadow: 0 0 10px rgba(241, 196, 15, .35);
}
.btn-gold:hover { transform: scale(1.04); box-shadow: 0 0 25px var(--gold-glow); }
.btn-gold:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold-soft); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(239, 83, 80, .12); }
.btn-lg { padding: 16px 38px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn:focus-visible, .service-card:focus-visible, .slot:focus-visible, .day-tab:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ---------- Marca ---------- */
.brand-mark {
  font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-decoration: none; font-size: 1.05rem;
}
.brand-mark span { color: var(--gold); }

/* ---------- Topbar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 5vw, 48px);
}
.topbar-solid { position: static; border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-link { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 2px solid var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 100px 16px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/dylan.webp') center 25% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(14,14,14,.55) 0%, rgba(14,14,14,.8) 75%),
    linear-gradient(to bottom, rgba(14,14,14,.15) 40%, var(--bg));
}
.hero-content { position: relative; z-index: 2; animation: fadeUp 1s ease both; max-width: 680px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 600; }
.hero h1 {
  font-size: clamp(2.3rem, 10vw, 5.5rem); line-height: 1.05; margin: 10px 0 12px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #fff;
  overflow-wrap: anywhere;
}
.hero h1 span { color: var(--gold); text-shadow: 0 0 30px rgba(241,196,15,.35); }
.hero-tagline { font-size: clamp(1rem, 3.5vw, 1.25rem); color: #ddd; margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.scroll-down {
  position: absolute; bottom: 22px; z-index: 2; color: var(--gold); text-decoration: none;
  font-size: 1.5rem; animation: bounce 2s infinite;
}

/* ---------- Secciones ---------- */
.section { padding: 80px clamp(16px, 6vw, 10%); text-align: center; }
.section h2 {
  color: var(--gold); font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.section-head { margin-bottom: 26px; }

/* ---------- Reserva ---------- */
.booking { scroll-margin-top: 10px; }
.stepper {
  list-style: none; display: flex; justify-content: center; gap: 8px;
  margin: 0 auto 22px; flex-wrap: wrap;
}
.stepper li {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: .9rem; padding: 6px 14px; border-radius: 30px; border: 1px solid var(--line);
}
.stepper li span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel-2); font-size: .75rem; font-weight: 700;
}
.stepper li.is-active { color: #fff; border-color: var(--gold); }
.stepper li.is-active span, .stepper li.is-done span { background: var(--gold); color: #000; }
.stepper li.is-done { color: #ddd; }

.booking-card {
  max-width: 760px; margin: 0 auto; text-align: left;
  background: var(--panel); border: 1px solid rgba(241,196,15,.18);
  border-radius: var(--radius); padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.booking-card.narrow { max-width: 560px; }
.booking-card h1 { font-size: 1.6rem; margin-bottom: 14px; }

.service-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.service-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 0 20px rgba(241,196,15,.25); }
.service-name { font-weight: 700; font-size: 1.05rem; }
.service-desc { color: var(--muted); font-size: .88rem; }
.service-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; }
.service-meta strong { color: var(--gold); font-size: 1.25rem; }
.service-meta small { color: var(--muted); }

.link-back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 12px; }
.link-back:hover { color: var(--gold); }
.picked { font-weight: 600; margin-bottom: 16px; color: var(--gold); }
.loading { color: var(--muted); padding: 20px 0; }

.day-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.day-tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px;
}
.day-tab small { color: var(--muted); }
.day-tab[aria-selected="true"] { border-color: var(--gold); background: var(--gold-soft); }

.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.slot {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot-radio { position: relative; cursor: pointer; }
.slot-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot-radio span {
  display: block; text-align: center; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 6px; font-weight: 600;
}
.slot-radio input:checked + span { border-color: var(--gold); background: var(--gold); color: #000; }
.slot-radio input:disabled + span { opacity: .4; cursor: not-allowed; }
.slot-radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.day-title { font-weight: 600; margin: 16px 0 8px; }

.empty { text-align: center; padding: 24px 10px; color: var(--muted); }
.empty strong { display: block; color: #fff; margin-bottom: 6px; }

.summary {
  display: grid; gap: 2px; background: #111; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
}
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.summary span { color: var(--muted); }
.summary strong { text-align: right; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .88rem; color: #ccc; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #101010;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field small { color: var(--muted); font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ff8a80; background: rgba(239,83,80,.1); border-radius: 10px; padding: 10px 14px; }
.fine { color: var(--muted); font-size: .8rem; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--gold); }

.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.notice-ok { background: rgba(76,175,80,.12); color: #a5d6a7; }
.notice-error { background: rgba(239,83,80,.12); color: #ff8a80; }

.step-done { text-align: center; }
.step-done h3 { font-size: 1.5rem; margin-bottom: 14px; }
.step-done .summary { text-align: left; }
.step-done .btn { margin-top: 18px; }
.done-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--gold); color: #000; font-size: 2rem; font-weight: 800; box-shadow: 0 0 25px var(--gold-glow);
}

.panel { border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; background: var(--panel-2); }
.panel summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
.panel summary::after { content: '+'; float: right; color: var(--gold); }
.panel[open] summary::after { content: '–'; }
.panel > .form, .panel > p { padding: 0 16px 16px; }
.status-confirmada { color: var(--gold); }
.status-cancelada { color: var(--danger); }

/* ---------- Servicios / precios ---------- */
.price-list { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; text-align: left; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.price-row p { color: var(--muted); font-size: .88rem; }
.price { color: var(--gold); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

/* ---------- Sobre mí ---------- */
.about-box { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.profile {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--gold); box-shadow: 0 0 15px rgba(241,196,15,.4); filter: grayscale(1);
}
.about-box p { max-width: 500px; color: #ddd; text-align: left; font-size: 1.05rem; }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1100px; margin: 0 auto; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; transition: transform .3s, box-shadow .3s; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(241,196,15,.4); }

/* ---------- Info ---------- */
.info-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 900px; margin: 0 auto; }
.info-card {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 18px; text-align: left; color: var(--text); text-decoration: none;
  display: grid; gap: 2px; transition: border-color .2s;
}
a.info-card:hover { border-color: var(--gold); }
.info-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0b; border-top: 1px solid var(--line); padding: 40px 16px; text-align: center; display: grid; gap: 10px; }
.footer-links { display: flex; justify-content: center; gap: 22px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-shadow: 0 0 10px var(--gold); }
.copy { color: var(--muted); font-size: .85rem; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; }
.login-card h1 { font-size: 1.4rem; margin: 6px 0 4px; }


/* ---------- Animaciones ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .section { padding: 60px 16px; }
  .stepper li { font-size: .8rem; padding: 5px 10px; }
  .about-box p { text-align: center; }
  .price-row { padding: 14px 16px; }
}

/* ---------- Páginas legales ---------- */
.legal .booking-card { max-width: 820px; }
.legal h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.1rem; color: var(--gold); text-transform: none; letter-spacing: 0; margin: 26px 0 8px; text-align: left; }
.legal p, .legal li { color: #ddd; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .btn { margin-top: 18px; }
