/* Tarjeta digital — sistema "liquid glass": paneles translúcidos con blur,
   tema único deliberado (boutique elegante, no se adapta a modo oscuro del
   sistema), tipografía Manrope + un acento cursivo Playfair Display usado
   solo en el nombre del negocio. Paleta tomada del logo real del negocio. */

:root {
  --ground: #FBF4F1;
  --ground-deep: #F4E7E1;
  --panel: rgba(255, 255, 255, 0.55);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(255, 255, 255, 0.65);
  --ink: #2E2320;
  --ink-muted: #8A7570;
  --ink-faint: #BEA9A2;
  --accent: #E7A8BE;
  --accent-deep: #C3728F;
  --accent-tint: rgba(231, 168, 190, 0.18);
  --line: rgba(46, 35, 32, 0.1);
  --shadow-lg: 0 24px 48px -24px rgba(46, 35, 32, 0.28);
  --shadow-sm: 0 8px 20px -12px rgba(46, 35, 32, 0.22);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- fondo decorativo (necesario para que el blur del glass se note) ---------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-a { width: 60vw; height: 60vw; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: -20vw; right: -18vw; }
.blob-b { width: 50vw; height: 50vw; background: radial-gradient(circle, #F7D9C4 0%, transparent 70%); bottom: -15vw; left: -20vw; opacity: 0.5; }
.blob-c { width: 35vw; height: 35vw; background: radial-gradient(circle, #E7A8BE 0%, transparent 70%); top: 40vh; left: 60vw; opacity: 0.3; }

/* ---------- layout ---------- */
.app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 24px 20px 48px; }
.view { animation: view-in 420ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ---------- glass ---------- */
.glass-panel {
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.glass-panel::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 40%);
  pointer-events: none;
}
.glass-panel.soft { background: var(--panel-strong); box-shadow: var(--shadow-sm); }

/* ---------- botones: pastillas de contorno, sin bloques pesados ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform 150ms ease, opacity 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent; text-decoration: none; color: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: var(--panel-strong); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-deep); }
.btn-text { background: none; border: none; color: var(--ink-muted); font-weight: 600; padding: 8px 4px; }
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 8px 0 24px; }
.hero-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: var(--shadow-sm); border: 3px solid rgba(255,255,255,0.8); }
.hero-name { font-size: clamp(28px, 8vw, 34px); font-style: italic; margin-bottom: 6px; }
.hero-tag { font-size: 14px; color: var(--ink-muted); font-weight: 600; max-width: 32ch; margin: 0 auto; }
.hero-locations { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--ink-muted); background: var(--panel-strong); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 12px 6px 10px; text-decoration: none; cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}
.pill:active { transform: scale(0.96); }
.pill:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.pill .icon { width: 13px; height: 13px; }

/* Botón "Síguenos en Instagram" con un brillo que recorre el borde cada
   pocos segundos — la única animación "llamativa" de la página, a propósito. */
.follow-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 10px 20px; border-radius: 100px; font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
  background-size: 220% 100%; text-decoration: none; position: relative; overflow: hidden;
  animation: follow-sheen 3.2s ease-in-out infinite;
  box-shadow: 0 10px 24px -12px rgba(195, 114, 143, 0.55);
}
.follow-btn:active { transform: scale(0.96); }
@keyframes follow-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .follow-btn { animation: none; } }

/* ---------- ticker: cinta de servicios en loop, se frena al pasar el cursor ---------- */
.ticker { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 14px; animation: ticker-scroll 18s linear infinite; }
.ticker-item { font-family: var(--font-mono, var(--font-body)); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-deep); white-space: nowrap; display: flex; align-items: center; gap: 14px; text-transform: uppercase; }
.ticker-item::after { content: "◆"; color: var(--ink-faint); font-size: 8px; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-play-state: paused; } }

/* ---------- secciones / tarjetas de contenido ---------- */
.section { margin-top: 22px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.section-lede { font-size: 13px; color: var(--ink-muted); margin: -6px 0 14px; max-width: 42ch; }

.cta-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; overflow: hidden; }
.cta-card h2 { font-size: 20px; }
.cta-card p { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.cta-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.65) 50%, transparent 60%);
  background-size: 250% 250%; background-position: 120% 0;
  animation: cta-sheen 5s ease-in-out infinite;
}
@keyframes cta-sheen { 0%, 60%, 100% { background-position: 120% 0; } 80% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .cta-card::after { animation: none; } }
.cta-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-deep);
  color: #fff; display: flex; align-items: center; justify-content: center; z-index: 1;
  animation: cta-arrow-nudge 2.4s ease-in-out infinite;
}
@keyframes cta-arrow-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .cta-arrow { animation: none; } }

.cta-float {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 40; max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 100px; font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--accent-deep); box-shadow: 0 16px 32px -12px rgba(46,35,32,0.4);
  text-decoration: none; opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}
.cta-float.is-shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.quick-link-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-link-title { font-weight: 700; font-size: 14px; }
.quick-link-sub { font-size: 12px; color: var(--ink-muted); }
.quick-link-chevron { margin-left: auto; color: var(--ink-faint); }
.quick-link-cta { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--accent-deep); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.quick-link-cta .icon { width: 15px; height: 15px; }

.service-card { padding: 16px 18px; margin-bottom: 10px; }
.service-card-top { display: flex; justify-content: space-between; gap: 12px; }
.service-card-name { font-weight: 700; font-size: 15px; }
.service-card-frase { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.service-card-bottom { display: flex; justify-content: flex-end; margin-top: 12px; }

.about-card { padding: 26px 24px; text-align: center; }
.about-card .quote-mark { font-family: var(--font-display); font-size: 40px; color: var(--accent); line-height: 1; }
.about-card p { font-size: 14.5px; color: var(--ink); line-height: 1.65; margin-top: 6px; }

.pro-card { padding: 22px; display: flex; align-items: center; gap: 16px; }
.pro-photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-sm); }
.pro-avatar-fallback { width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0; background: var(--accent-tint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 26px; font-style: italic; border: 3px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-sm); }
.pro-name { font-family: var(--font-display); font-style: italic; font-size: 19px; }
.pro-role { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.pro-ig { margin-top: 10px; }

.footer-actions { display: flex; gap: 10px; margin-top: 26px; }
.footer-credit { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 24px; padding-bottom: 70px; }
.footer-credit a { color: var(--ink-muted); }

/* ---------- agendar: encabezado con pasos, chips resumen ---------- */
.wizard-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.wizard-back { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wizard-title { font-size: 17px; font-weight: 700; }
.summary-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.summary-chip { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; }
.summary-chip-label { color: var(--ink-muted); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; }
.summary-chip-value { font-weight: 700; margin-top: 2px; }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--panel-strong); border: 1px solid var(--line);
  transition: border-color 150ms ease, transform 150ms ease;
  text-align: left;
}
.option-row:active { transform: scale(0.985); }
.option-row.selected { border-color: var(--accent-deep); background: var(--accent-tint); }
.option-row-title { font-weight: 700; font-size: 14.5px; }
.option-row-sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.calendar { padding: 4px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.calendar-nav { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.calendar-month { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-dow { text-align: center; font-size: 10px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; padding-bottom: 4px; }
.calendar-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid transparent; cursor: pointer;
}
.calendar-day.is-empty { visibility: hidden; }
.calendar-day.is-disabled { color: var(--ink-faint); cursor: not-allowed; }
.calendar-day.is-selected { background: var(--accent-deep); color: #fff; }
.calendar-day.is-blocked { background: rgba(46,35,32,0.06); color: var(--ink-faint); text-decoration: line-through; }
/* En el calendario del admin, "cerrado" es solo informativo — el día se
   puede seguir tocando para agregarle una hora suelta. */
.calendar-day.is-closed { color: var(--ink-faint); border: 1px dashed var(--line); }

.hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hour-chip {
  padding: 12px 6px; text-align: center; border-radius: var(--radius-sm);
  background: var(--panel-strong); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px;
  cursor: pointer; font-variant-numeric: tabular-nums;
}
.hour-chip.selected { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.hour-chip.blocked { background: var(--accent-tint); border-color: var(--accent-deep); color: var(--accent-deep); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.field input {
  font-family: inherit; font-size: 15px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-strong); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent-deep); }

.empty-note { text-align: center; padding: 30px 12px; color: var(--ink-muted); font-size: 13.5px; }

.confirm-card { text-align: center; padding: 32px 24px; }
.confirm-check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-deep); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-title { font-size: 20px; margin-bottom: 6px; }
.confirm-detail { font-size: 13.5px; color: var(--ink-muted); margin: 3px 0; }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- admin: passcode ---------- */
.passcode-dots { display: flex; justify-content: center; gap: 14px; margin: 28px 0; }
.passcode-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-faint); transition: background 150ms ease, border-color 150ms ease; }
.passcode-dot.filled { background: var(--accent-deep); border-color: var(--accent-deep); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 260px; margin: 0 auto; }
.keypad-key { aspect-ratio: 1; border-radius: 50%; background: var(--panel-strong); border: 1px solid var(--line); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.keypad-key:active { transform: scale(0.94); }
.keypad-key.ghost { background: transparent; border: none; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.error-text { color: var(--accent-deep); font-size: 13px; text-align: center; margin-top: 12px; font-weight: 600; }

.admin-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.admin-subtitle { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--ink-muted); background: var(--panel-strong); border: 1px solid var(--line); cursor: pointer; }
.tab.active { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }

.cita-item { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--panel-strong); border: 1px solid var(--line); margin-bottom: 10px; }
.cita-item-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.cita-item-sub { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }

.day-editor-sheet { margin-top: 16px; padding: 16px; }
.day-editor-title { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 12px; text-transform: capitalize; }
.hour-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.hour-toggle-row:last-child { border-bottom: none; }
.hour-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-deep); background: var(--accent-tint); border-radius: 100px; padding: 2px 8px; margin-left: 6px; }
.add-hour-row { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.add-hour-row input[type="time"] {
  flex: 1; font-family: inherit; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-strong); color: var(--ink);
}
.add-hour-row input[type="time"]:focus { outline: none; border-color: var(--accent-deep); }
.switch { width: 42px; height: 24px; border-radius: 100px; background: var(--line); position: relative; cursor: pointer; flex-shrink: 0; transition: background 150ms ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 150ms ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch.on { background: var(--accent-deep); }
.switch.on::after { transform: translateX(18px); }

/* ---------- skeleton loading ---------- */
.loading-shell { display: flex; align-items: center; min-height: 70vh; }
.loading-card { width: 100%; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.skeleton { background: linear-gradient(90deg, rgba(46,35,32,0.06) 25%, rgba(46,35,32,0.12) 37%, rgba(46,35,32,0.06) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
.skeleton-logo { width: 72px; height: 72px; border-radius: 50%; }
.skeleton-line { height: 12px; width: 80%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
