/* Desactiva zoom por doble toque en toda la vista pública */
* {
  touch-action: manipulation;
}

:root {
  /* Base palette */
  --color-text: #333333;
  --color-text-soft: #6b6b6b;
  --color-muted: #888888;
  --color-border: #bbbbbb;
  --color-surface: #ffffff;
  --color-surface-soft: #eeeeee;
  --color-background: #efefef;

  /* Accent (tech) */
  --color-accent: #f6530f;
  --accent-rgb: 246, 83, 15;
  --color-accent-soft: rgba(var(--accent-rgb), 0.1);

  /* Effects */
  --color-shadow: rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  /* Layout */
  --container-width: 1200px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--color-text);
  background: radial-gradient(
    circle at top right,
    #fff8f4 0%,
    #fff0e8 45%,
    #ffe9df 100%
  );
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* Layout */
.page {
  min-height: 100vh;
}

.hero {
  width: min(100% - 40px, var(--container-width));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: stretch;
  padding: var(--space-9) 0;
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-size: 14px;
  font-weight: 700;
}

.hero__title {
  max-width: 720px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* Pricing */
.hero__pricing {
  margin-top: var(--space-3);
}

.price-card {
  width: fit-content;
  min-width: 280px;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 16px 40px var(--color-shadow);
}

.price-card__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.price-card__amount {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-accent);
  margin: 6px 0;
}

.price-card__trial {
  font-size: 1rem;
  font-weight: 700;
}

/* Features */
.hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.feature-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.1);
}

.feature-card__icon {
  font-size: 1.3rem;
}

.feature-card strong {
  display: block;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual .app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero__visual .mockup-carousel {
  flex: 1;
}

.app-card {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.app-card__header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px;
  background: #fafafa;
}
.app-card__header-label {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text);
  transition: opacity 0.3s;
}

.app-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-card__dot:nth-child(1) { background: #ff5f57; }
.app-card__dot:nth-child(2) { background: #febc2e; }
.app-card__dot:nth-child(3) { background: #28c840; }

.app-card__body {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

/* Carrusel */
.mockup-carousel {
  position: relative;
  min-height: 340px;
  overflow: clip;
}
.mockup-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.mockup-slide--exit {
  opacity: 0;
  transform: translateX(-40px);
}
.mockup-slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.mockup-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
}
.mockup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.3s, transform 0.3s;
}
.mockup-dot--active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* Ventas */
.mockup-sales-total {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.mockup-sales-sub { font-size: 0.78rem; color: var(--color-muted); margin-bottom: 14px; }
.mockup-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.mockup-badge--up { background: #e6f9ee; color: #1a7a3c; }
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}
.mockup-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.mockup-bar {
  width: 100%;
  background: var(--color-accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.75;
}
.mockup-bar-wrap span { font-size: 0.65rem; color: var(--color-muted); font-weight: 600; }

/* Email chrome */
.mockup-email-chrome { overflow: hidden; }
.mockup-email-chrome__bar {
  background: #f0f0f0;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

/* Gmail mockup */
.mockup-gmail {
  display: flex;
  flex-direction: column;
  height: calc(100% - 32px);
  margin: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.mockup-gmail__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #c5221f;
  padding: 8px 14px;
}
.mockup-gmail__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mockup-gmail__search {
  flex: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
}
.mockup-gmail__avatar {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 50%;
  background: #28c840;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mockup-gmail__body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.mockup-gmail__sidebar {
  width: 90px;
  flex-shrink: 0;
  background: #f6f8fc;
  padding: 10px 0;
  border-right: 1px solid #e0e0e0;
}
.mockup-gmail__label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.62rem;
  color: #444;
  border-radius: 0 20px 20px 0;
  margin-right: 8px;
  cursor: default;
}
.mockup-gmail__label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-gmail__label--active {
  background: #fce8e6;
  color: #c5221f;
  font-weight: 700;
}
.mockup-gmail__content {
  flex: 1;
  padding: 12px 14px;
  overflow: hidden;
}
.mockup-gmail__subject {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}
.mockup-gmail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.mockup-gmail__sender-avatar {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mockup-gmail__sender-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text);
}
.mockup-gmail__sender-name span { font-weight: 400; color: var(--color-muted); }
.mockup-gmail__sender-to { font-size: 0.62rem; color: var(--color-muted); }
.mockup-gmail__text p { font-size: 0.75rem; color: var(--color-text-soft); margin: 0 0 6px; line-height: 1.5; }
.mockup-email-chrome__inbox { background: #fafafa; border-bottom: 1px solid var(--color-border); }
/* Email content */
.mockup-email__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.mockup-email__from { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 3px; }
.mockup-email__subject { font-size: 0.88rem; font-weight: 700; }
.mockup-email__body p { font-size: 0.82rem; color: var(--color-text-soft); margin: 0 0 8px; line-height: 1.5; }
.mockup-email__cta {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 14px;
  background: var(--color-accent);
  color: white;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* WhatsApp chrome */
.mockup-wa-chrome { overflow: hidden; border-radius: 20px; border: 1px solid #d0f0d0; }
.mockup-wa-chrome__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #075e54;
  color: white;
}
.mockup-wa-chrome__topbar .mockup-wa__name { color: white; }
.mockup-wa-chrome__topbar .mockup-wa__sub { color: rgba(255,255,255,0.7); }
.mockup-wa-chrome__chat {
  background: #ece5dd url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E");
  padding: 10px 14px;
  min-height: 180px;
}
.mockup-wa__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mockup-wa__name { font-size: 0.88rem; font-weight: 700; }
.mockup-wa__sub { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.mockup-wa__bubble {
  background: #dcf8c6;
  border-radius: 16px 16px 4px 16px;
  padding: 8px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #1a1a1a;
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
}
.mockup-wa__bubble + .mockup-wa__bubble { margin-top: 8px; }
.mockup-wa__meta { font-size: 0.7rem; color: #888; text-align: right; margin-top: 4px; }

/* Landing pública */
.mockup-landing__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.mockup-landing__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mockup-landing__name { font-size: 0.92rem; font-weight: 700; }
.mockup-landing__loc { font-size: 0.72rem; color: var(--color-muted); }
.mockup-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--color-surface-soft);
  margin-bottom: 5px;
  font-size: 0.82rem;
}
.mockup-service span { font-weight: 700; color: var(--color-accent); font-size: 0.8rem; }
.mockup-workers {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.mockup-worker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mockup-worker__avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mockup-worker span { font-size: 0.72rem; color: var(--color-muted); font-weight: 600; }

.mockup-panel {
  padding: var(--space-4);
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.mockup-panel__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

/* Mockup agenda del día (grilla) */
.mockup-day-grid {
  position: relative;
  margin-top: 4px;
}
.mockup-day-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
}
.mockup-day-row span {
  font-size: 0.55rem;
  color: var(--color-muted);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.mockup-day-row div {
  flex: 1;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.mockup-day-events {
  position: absolute;
  top: 16px;
  left: 44px;
  right: 0;
  bottom: 0;
}
.mockup-day-evt {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 8px;
  border-left: 3px solid;
  padding: 4px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
}
.mockup-day-evt span {
  display: block;
  font-size: 0.56rem;
  font-weight: 500;
  opacity: 0.75;
}
.mockup-day-evt--sm {
  padding: 3px 6px;
  font-size: 0.56rem;
  border-radius: 6px;
  border-left-width: 2.5px;
}
.mockup-day-evt--sm span {
  font-size: 0.5rem;
}

/* Clientes */
.mockup-client-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mockup-client-row:last-child { border-bottom: none; }
.mockup-client__avatar {
  width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.65rem; font-weight: 700;
  flex-shrink: 0;
}
.mockup-client__info { flex: 1; min-width: 0; }
.mockup-client__info strong { display: block; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-client__info span { font-size: 0.68rem; color: var(--color-muted); }
.mockup-client__meta { text-align: right; flex-shrink: 0; }
.mockup-client__meta strong { display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-text); }
.mockup-client__meta span { font-size: 0.68rem; color: var(--color-muted); }

/* Emails */
.mockup-email-broadcast {
  background: var(--color-accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 10px;
  cursor: pointer;
}
.mockup-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mockup-email-row:last-child { border-bottom: none; }
.mockup-email-btn {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
}

.mockup-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.mockup-stat {
  flex: 1;
  background: var(--color-surface-soft);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.mockup-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.appointment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--color-surface-soft);
  margin-bottom: 8px;
}
.appointment__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
}
.appointment__info {
  flex: 1;
  min-width: 0;
}
.appointment__info strong {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appointment__info span {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.appointment__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.appointment__dot--green  { background: #28c840; }
.appointment__dot--orange { background: #febc2e; }
.appointment__dot--blue   { background: #007aff; }

.message-bubble {
  background: var(--color-accent-soft);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.message-bubble--reply {
  background: #e9f5e9;
  border-radius: 16px 16px 4px 16px;
  text-align: right;
  font-size: 0.88rem;
  padding: 12px 14px;
  color: #1a5c1a;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero__features {
    grid-template-columns: 1fr;
  }

  .price-card {
    width: 100%;
  }
}

/* =========================
   Buttons
========================= */

.button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button--primary {
  background: var(--biz-primary, var(--color-accent));
  color: #ffffff;
  box-shadow: 0 10px 28px var(--biz-shadow, rgba(var(--accent-rgb), 0.22));
}

.button--primary:hover {
  transform: translateY(-1px);
}

.button--secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* =========================
   Booking page
========================= */

.booking-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(
    --biz-bg,
    radial-gradient(circle at top right, #fff4ee 0%, #ffe9df 45%, #ffd9c7 100%)
  );
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.booking-shell {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
  padding: 32px 0 calc(48px + env(safe-area-inset-bottom));
}

.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.booking-sidebar__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.booking-sidebar__title {
  font-size: clamp(1.2rem, 5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.booking-sidebar__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.booking-summary-card,
.booking-info-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.booking-summary-card__label,
.booking-info-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.booking-summary-card__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  word-break: break-word;
}

.booking-info-card__steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.booking-info-card__steps li {
  color: var(--color-text-soft);
  line-height: 1.55;
}

.booking-main {
  padding: 28px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.booking-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  opacity: 0.7;
}

.booking-footer strong {
  color: var(--color-text);
}

.booking-footer__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  text-align: center;
}

.booking-footer__text strong {
  color: var(--color-text);
}

.booking-header {
  margin-bottom: 24px;
}

.booking-header__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .booking-header__title {
    font-size: 1.45rem;
  }
}

.booking-header__subtitle {
  color: var(--color-text-soft);
  line-height: 1.65;
}

.booking-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-soft);
}

.booking-state--error {
  color: #9f3d3d;
  border-color: #e2baba;
  background: #fff7f7;
}

.booking-state--hidden,
.booking-services-grid--hidden,
.booking-selected--hidden {
  display: none;
}

.booking-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.booking-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 16px;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.booking-service-card:hover {
  transform: translateY(-2px);
  border-color: var(--biz-primary-40, rgba(var(--accent-rgb), 0.28));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.booking-service-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  padding-right: 40px;
  display: block;
  margin: 0 0 2px;
}

.booking-service-card__meta {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.booking-service-card__add-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--biz-primary, var(--color-accent));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.booking-service-card:hover .booking-service-card__add-badge {
  transform: scale(1.15);
}

.booking-service-card__info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  color: var(--biz-primary, var(--color-accent));
  font-size: 0.6rem;
  font-weight: 700;
  font-style: italic;
  border: 1.5px solid var(--biz-primary-40, rgba(var(--accent-rgb), 0.35));
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.booking-service-card__info-badge:hover {
  background: var(--biz-primary, var(--color-accent));
  color: #ffffff;
}

/* Modal de info del servicio */
.svc-info-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.svc-info-modal-backdrop.is-open {
  display: flex;
}

.svc-info-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  max-height: 80vh;
  overflow-y: auto;
}

.svc-info-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--biz-primary-40, rgba(var(--accent-rgb), 0.3));
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--biz-primary, var(--color-accent));
  transition: background 0.15s ease, color 0.15s ease;
}

.svc-info-modal__close:hover {
  background: var(--biz-primary, var(--color-accent));
  color: #ffffff;
}

.svc-info-modal__image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #f9f9f9;
}

.svc-info-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text, #333);
  margin: 0 0 12px;
  padding-right: 36px;
}

.svc-info-modal__description {
  font-size: 0.97rem;
  color: var(--color-text-soft, #6b7280);
  line-height: 1.65;
  margin: 0;
  white-space: pre-line;
}

.booking-selected {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: var(--color-accent-soft);
}

.booking-selected__header {
  margin-bottom: 18px;
}

.booking-selected__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.booking-selected__card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.booking-selected__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.booking-selected__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.booking-next-step {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.booking-next-step__hint {
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* =========================
   Responsive booking
========================= */

/* Barra de resumen inline */
.booking-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--biz-primary-10, #f0fdf4);
  border: 1px solid var(--biz-primary-20, #bbf7d0);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  flex-wrap: wrap;
}

.booking-summary-bar .summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-text);
}

.booking-summary-bar .summary-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.summary-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

.summary-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--biz-primary-10, #f1f5f9);
  color: var(--biz-primary, #64748b);
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .booking-shell {
    width: min(100% - 24px, 860px);
    padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .booking-main {
    padding: 20px;
    border-radius: 12px;
  }

  .booking-selected__card {
    grid-template-columns: 1fr;
  }

  .booking-footer {
    margin-top: 32px;
  }

  .booking-service-card {
    min-height: 0;
  }

  .booking-service-card__name {
    min-height: 0;
  }

  .booking-service-card__chips {
    flex-wrap: wrap;
    overflow: visible;
  }

  .booking-services-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bk-svc-group__cards {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bk-svc-group {
    gap: 6px;
  }
}

/* =========================
   Dashboard / Private app
========================= */

.dashboard-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: radial-gradient(
    circle at top right,
    #f9f9f9 0%,
    #efefef 45%,
    #e9e9e9 100%
  );
}

.dashboard-sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: hidden;
}

.sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.dashboard-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}

.dashboard-sidebar__brand strong {
  display: block;
  font-size: 1rem;
}

.dashboard-sidebar__brand p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.dashboard-sidebar__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: transparent;
  display: grid;
  place-items: center;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: 0.2s ease;
}

.dashboard-nav__item:hover {
  background: rgba(255, 255, 255, 0.85);
}

.dashboard-nav__item--active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
  animation: nav-badge-pulse 2s ease-in-out infinite;
}

@keyframes nav-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(0.92); }
}

.dashboard-main {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.dashboard-topbar > div {
  flex: 1;
  min-width: 0;
}

.dashboard-topbar__eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.dashboard-topbar__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 12px;
}

.dashboard-topbar__subtitle {
  color: var(--color-text-soft);
  line-height: 1.65;
}

.dashboard-topbar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
}

.summary-card__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.summary-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.dashboard-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.dashboard-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dashboard-panel__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dashboard-panel__subtitle {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.dashboard-search input {
  width: 280px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font: inherit;
  color: var(--color-text);
  outline: none;
}

.dashboard-search input:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.dashboard-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-soft);
}

.dashboard-state--error {
  color: #9f3d3d;
  border-color: #e2baba;
  background: #fff7f7;
}

.dashboard-state--hidden,
.services-grid--hidden {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-admin-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
}

.service-admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 18px 34px rgba(var(--accent-rgb), 0.08);
}

.service-admin-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.service-admin-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.service-admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-admin-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive dashboard */
@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 20px 20px calc(120px + env(safe-area-inset-bottom));
  }

  .dashboard-topbar,
  .dashboard-panel__header {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel,
  .summary-card {
    border-radius: 22px;
  }
}

/* =========================
   Ajustes visuales servicios
========================= */

.dashboard-layout--servicios {
  grid-template-columns: 240px 1fr;
}

.dashboard-topbar--compact {
  align-items: flex-end;
}

.dashboard-panel--soft {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.dashboard-panel__header--stack {
  align-items: center;
}

.service-admin-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.04);
}

.service-admin-card__name {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-admin-card__chips {
  margin-bottom: 20px;
}

.service-admin-chip {
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-admin-card__actions .button {
  padding: 10px 14px;
}

.dashboard-sidebar {
  padding: 24px 18px;
}

.dashboard-nav__item {
  padding: 12px 14px;
}

.dashboard-main {
  padding: 32px;
}


@media (max-width: 1100px) {
  .dashboard-layout--servicios {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile sidebar fix: keep bottom actions reachable on iOS/Safari --- */
@media (max-width: 1100px) {
  #sidebar.dashboard-sidebar {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    height: auto !important;
    max-height: none !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 18px calc(96px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    background: #ffffff;
  }

  #sidebar.dashboard-sidebar.sidebar--open {
    display: block !important;
  }

  #sidebar.dashboard-sidebar .dashboard-sidebar__brand {
    margin-bottom: 20px !important;
  }

  #sidebar.dashboard-sidebar .dashboard-nav {
    margin-bottom: 16px !important;
  }

  #sidebar.dashboard-sidebar .sidebar-bottom {
    position: static !important;
    margin-top: 16px !important;
    padding-bottom: 32px !important;
  }
}
