:root {
  color-scheme: light;
  --ink: #171517;
  --muted: #625e61;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e8e3da;
  --pine: #0f6b5f;
  --pine-dark: #073d36;
  --raspberry: #b63f4a;
  --brass: #c89a3a;
  --mist: #e8f5f0;
  --shadow: 0 20px 60px rgba(18, 16, 14, 0.12);
  --radius: 8px;
  font-family: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.58), rgba(8, 8, 8, 0.08));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding-block: 8px;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brass);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: min(760px, 88svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 132px clamp(20px, 6vw, 88px) 84px;
  color: #fff;
}

.hero__media,
.hero__media img,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 8, 8, 0.82), rgba(9, 8, 8, 0.48) 42%, rgba(9, 8, 8, 0.08)),
    linear-gradient(0deg, rgba(9, 8, 8, 0.64), rgba(9, 8, 8, 0.08) 38%);
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.reservation-cta h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3.4rem, 8vw, 7.7rem);
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.hero__actions,
.reservation-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button--primary {
  color: #121212;
  background: var(--brass);
  box-shadow: 0 14px 32px rgba(200, 154, 58, 0.26);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.54);
  color: #fff;
  background: transparent;
}

.button--outline-dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button--outline-dark:hover {
  color: var(--pine);
  border-color: var(--pine);
}

.button--small {
  min-height: 42px;
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: var(--pine);
}

.button--light {
  color: var(--ink);
  background: #fff;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-facts article {
  padding: 28px clamp(20px, 5vw, 72px);
  background: #fff;
}

.quick-facts strong {
  display: block;
  color: var(--pine);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.quick-facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 88px);
}

.section--intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  background: var(--paper);
}

.section--band {
  background: var(--pine-dark);
  color: #fff;
}

.section__heading {
  max-width: 740px;
}

.section__heading--wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 48px;
  margin-bottom: 34px;
}

.section h2,
.reservation-cta h2 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.section__heading p:not(.eyebrow) {
  max-width: 460px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.section--band .section__heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

.signature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signature-strip span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--pine-dark);
  background: var(--mist);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.card-grid--barbers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.barber-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(21, 19, 18, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card__body,
.barber-card__body {
  padding: 20px;
}

.service-card__top {
  display: grid;
  min-height: 140px;
  align-content: start;
  gap: 14px;
}

.service-card h3,
.barber-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card p,
.barber-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-card__meta strong {
  color: var(--pine);
  font-size: 1.2rem;
}

.service-card__meta span {
  color: var(--muted);
  font-weight: 800;
}

.status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status--open {
  color: #064238;
  background: #dff5ec;
}

.status--closed {
  color: #7a1822;
  background: #fde4e6;
}

.barber-card {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.barber-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.barber-card p {
  color: rgba(255, 255, 255, 0.72);
}

.barber-card__specialty {
  color: var(--brass) !important;
  font-weight: 800;
}

.barber-card__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.barber-card__actions .button--small {
  margin-top: 0;
}

.button--outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.map-panel {
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-panel__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.gallery-modal.is-open {
  display: grid;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.72);
}

.gallery-modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(720px, 90vh);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-modal__header h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
}

.gallery-modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mist);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-modal__grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-modal__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 620px) {
  .gallery-modal__grid {
    grid-template-columns: 1fr;
  }
}

.info-section {
  background: #fff;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.3fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-card__list {
  display: grid;
  gap: 14px;
}

.info-card__list article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-card__list article:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-card__list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card__list strong {
  font-size: 0.98rem;
  text-align: right;
}

.info-card__link {
  justify-self: start;
  margin-top: auto;
  color: #fff;
  background: var(--pine);
}

.schedule-section {
  background: linear-gradient(180deg, var(--paper), #eef8f4);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 360px);
  gap: 24px;
  margin-top: 32px;
}

.hours-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hours-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hours-list .is-closed {
  color: var(--muted);
  background: #f3f1ee;
}

.hours-list span {
  color: var(--muted);
  text-align: right;
  font-weight: 700;
}

.note-panel {
  align-self: stretch;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--raspberry);
  box-shadow: var(--shadow);
}

.note-panel h3 {
  margin: 0;
  font-size: 1.4rem;
}

.note-panel p {
  margin: 14px 0 26px;
  line-height: 1.7;
}

.note-panel a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reservation-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin: 0 clamp(20px, 6vw, 88px) clamp(72px, 8vw, 104px);
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(200, 154, 58, 0.42), transparent 28%),
    linear-gradient(135deg, #112f2b, #0f6b5f 55%, #b63f4a);
}

.reservation-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--pine);
  font-weight: 900;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__admin-link {
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .card-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(14, 14, 14, 0.92);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 108px;
    padding-bottom: 58px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(9, 8, 8, 0.18), rgba(9, 8, 8, 0.88)),
      linear-gradient(90deg, rgba(9, 8, 8, 0.5), rgba(9, 8, 8, 0.12));
  }

  .quick-facts,
  .section--intro,
  .section__heading--wide,
  .info-layout,
  .schedule-layout,
  .reservation-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section__heading--wide,
  .reservation-cta,
  .site-footer {
    display: grid;
    align-items: start;
  }

  .card-grid--barbers {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 220px;
  }

  .hours-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero__actions,
  .reservation-cta__actions {
    width: 100%;
  }

  .hero__actions .button,
  .reservation-cta__actions .button {
    width: 100%;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

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

  .hours-list article {
    display: grid;
  }

  .hours-list span {
    text-align: left;
  }
}

/* ==================================================================
   Paginas utilitarias (reserva.html / admin.html)
   ================================================================== */

.utility-body {
  background: var(--paper);
}

.utility-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.utility-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.utility-header__brand strong {
  display: block;
  font-size: 0.98rem;
}

.utility-header__brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.utility-header__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine-dark);
  color: #fff;
  font-weight: 800;
}

.utility-header__back {
  color: var(--pine);
  font-weight: 800;
  font-size: 0.92rem;
}

/* ---------- Asistente de reserva ---------- */

.booking {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 32px) 96px;
}

.booking-hero {
  max-width: 640px;
  margin-bottom: 32px;
}

.booking-hero h1 {
  margin: 8px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.booking-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.booking-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.booking-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.72rem;
}

.booking-steps li.is-reachable {
  cursor: pointer;
}

.booking-steps li.is-active {
  color: #fff;
  background: var(--pine);
}

.booking-steps li.is-active span {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.booking-steps li.is-done span {
  background: var(--pine);
  color: #fff;
}

.booking-panel h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.booking-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.booking-option {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.booking-option:hover {
  border-color: var(--pine);
}

.booking-option.is-selected {
  border-color: var(--pine);
  background: #fff;
  box-shadow: 0 0 0 2px var(--mist);
}

.booking-option strong {
  font-size: 1rem;
}

.booking-option span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.booking-option__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--pine);
  font-weight: 800;
}

.booking-option--barber {
  justify-items: center;
  text-align: center;
}

.booking-option--barber img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-datetime {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.calendar__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.calendar__nav:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar__cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.calendar__cell--empty {
  background: transparent;
  cursor: default;
}

.calendar__cell.is-disabled {
  color: var(--line);
  background: transparent;
  cursor: not-allowed;
}

.calendar__cell.is-selected {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.slots h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  align-content: start;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.slot {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.slot:hover {
  border-color: var(--pine);
}

.slot.is-selected {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.slot.is-disabled {
  color: var(--muted);
  background: var(--paper);
  text-decoration: line-through;
  cursor: not-allowed;
}

.slots-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.booking-form input,
.booking-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.booking-summary dl {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.booking-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.booking-summary dt {
  color: var(--muted);
  font-weight: 700;
}

.booking-summary dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.booking-error {
  padding: 12px 14px;
  border-radius: 8px;
  color: #7a1822;
  background: #fde4e6;
  font-weight: 700;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.booking-actions [data-step-next],
.booking-actions [data-step-confirm] {
  margin-left: auto;
}

.booking-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ==================================================================
   Admin: login
   ================================================================== */

.admin-login {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.admin-login__card {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-login__card .utility-header__mark {
  justify-self: center;
}

.admin-login__card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
}

.admin-login__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-login__card label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}

.admin-login__card input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-login__error {
  margin: 0;
  color: #7a1822;
  font-weight: 700;
}

.admin-login__hint {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

.admin-login__hint code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--mist);
}

/* ==================================================================
   Admin: shell
   ================================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100svh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: var(--pine-dark);
  color: #fff;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar__brand strong {
  display: block;
  font-size: 0.94rem;
}

.admin-sidebar__brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav button {
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.admin-sidebar__footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
}

.admin-sidebar__footer a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.admin-link-button {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar__footer .admin-link-button {
  color: rgba(255, 255, 255, 0.78);
}

.admin-table .admin-link-button {
  margin-right: 12px;
  color: var(--pine);
  font-size: 0.86rem;
}

.admin-link-button--danger {
  color: var(--raspberry) !important;
}

.admin-main {
  padding: clamp(24px, 4vw, 48px);
  overflow-x: hidden;
}

.admin-panel h1 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
}

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

.admin-panel__header h1 {
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.admin-stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-stat strong {
  display: block;
  color: var(--pine);
  font-size: 2rem;
}

.admin-stat span {
  color: var(--muted);
  font-weight: 700;
}

.admin-block {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-block h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.admin-block--danger {
  border-color: #f3c8cb;
  background: #fff7f7;
}

.admin-block--danger p {
  color: var(--muted);
}

.admin-upcoming-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-upcoming-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-upcoming-list li span {
  color: var(--muted);
}

.admin-empty {
  padding: 16px 0;
  color: var(--muted);
  text-align: center;
}

/* ==================================================================
   Admin: formularios
   ================================================================== */

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-form fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-form legend {
  padding: 0 8px;
  color: var(--pine);
  font-weight: 800;
}

.admin-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-form__full {
  grid-column: 1 / -1;
}

.admin-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-form__saved {
  color: var(--pine);
  font-weight: 800;
}

.admin-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.admin-checkbox input {
  width: auto;
}

.admin-form--modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* ==================================================================
   Admin: tablas
   ================================================================== */

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.badge--ok {
  color: #064238;
  background: #dff5ec;
}

.badge--off {
  color: #7a1822;
  background: #fde4e6;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-filters select,
.admin-filters input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

/* ---------- Admin: filas editables en el modal (galeria / ausencias) ---------- */

.admin-gallery-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-gallery-row input,
.admin-timeoff-row input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
}

.admin-gallery-row .image-field__preview {
  width: 44px;
  height: 44px;
}

.admin-timeoff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-timeoff-row span {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Modal generico (admin) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.72);
}

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal__header h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  .admin-nav {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .admin-nav button {
    white-space: nowrap;
  }

  .admin-main {
    min-width: 0;
  }

  .admin-sidebar__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: none;
  }

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

@media (max-width: 620px) {
  .booking-card {
    padding: 20px;
  }

  .booking-actions {
    flex-direction: column-reverse;
  }

  .booking-actions button {
    width: 100%;
  }

  .booking-actions [data-step-next],
  .booking-actions [data-step-confirm] {
    margin-left: 0;
  }

  .admin-gallery-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .admin-gallery-row [data-gallery-alt] {
    grid-column: 2 / -1;
  }

  .admin-timeoff-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .admin-timeoff-row [data-timeoff-reason] {
    grid-column: 1 / 3;
  }
}

/* ==================================================================
   Pulido: botones, estados y utilidades compartidas
   ================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.button--danger {
  color: var(--raspberry);
  border-color: #f3c8cb;
}

.button--danger:hover {
  color: #7a1822;
  border-color: var(--raspberry);
}

.button--danger-solid {
  color: #fff;
  background: var(--raspberry);
  border-color: var(--raspberry);
}

.button--small:is(.button--outline-dark, .button--danger-solid) {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  padding: 0 16px;
}

.button--small.button--outline-dark {
  color: var(--ink);
  background: transparent;
}

.button--small.button--disabled {
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
  cursor: default;
}

.button--disabled:hover {
  transform: none;
}

.badge--pending {
  color: #7a5412;
  background: #fbf0d9;
}

/* ---------- Sitio publico ---------- */

.load-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #f3c8cb;
  border-radius: var(--radius);
  color: #7a1822;
  background: #fff7f7;
  font-weight: 700;
}

.barber-card .barber-card__rest {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  font-weight: 700;
}

.reservation-cta__manage {
  display: inline-block;
  margin-top: 16px;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Reserva y mi cita ---------- */

.booking--narrow {
  max-width: 640px;
}

.booking-hero__manage {
  display: inline-block;
  margin-top: 14px;
  color: var(--pine);
  font-weight: 800;
}

.booking-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -6px 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--pine-dark);
  background: var(--mist);
  font-size: 0.88rem;
}

.booking-note__link {
  padding: 0;
  border: 0;
  color: var(--pine);
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.booking-option--barber small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.calendar__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.calendar__cell.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--pine);
}

.calendar__cell.is-full {
  text-decoration: line-through;
}

.booking-form label small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.booking-form > .button {
  justify-self: start;
}

.booking-error p {
  margin: 0 0 10px;
}

.booking-code {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px dashed var(--pine);
  border-radius: var(--radius);
  background: var(--mist);
}

.booking-code span {
  color: var(--pine-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-code strong {
  color: var(--pine-dark);
  font-size: 2rem;
  letter-spacing: 0.18em;
}

.booking-code small {
  color: var(--muted);
}

.manage-result {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.manage-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manage-result__head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
}

.manage-result__note {
  margin: 0;
  color: var(--muted);
}

.manage-result__actions {
  display: grid;
  gap: 12px;
}

.manage-result .button {
  justify-self: start;
}

.cancel-confirm {
  padding: 16px;
  border: 1px solid #f3c8cb;
  border-radius: var(--radius);
  background: #fff7f7;
}

.cancel-confirm p {
  margin: 0 0 12px;
  font-weight: 700;
}

.cancel-confirm__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Admin: piezas nuevas ---------- */

.admin-muted {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.admin-warning {
  color: var(--raspberry);
  font-weight: 800;
}

.admin-form__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #7a1822;
  background: #fde4e6;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-form--narrow {
  max-width: 560px;
}

.admin-form input[type="checkbox"] {
  width: auto;
  padding: 0;
}

.admin-table__name img {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.admin-table__name span {
  display: inline-block;
  vertical-align: middle;
}

.admin-table small {
  color: var(--muted);
}

.booking-code-chip {
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--pine-dark);
  background: var(--mist);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-upcoming-list {
  gap: 8px;
}

.admin-upcoming-list li {
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-upcoming-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-upcoming-item:hover {
  border-color: var(--pine);
}

.admin-upcoming-item__when,
.admin-upcoming-item__what {
  display: grid;
  gap: 2px;
}

.admin-upcoming-item__when span,
.admin-upcoming-item__what span {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.detail-actions label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-actions select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-checkgroup {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.admin-checkgroup h4 {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.admin-checkgroup__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-form .admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.84rem;
  cursor: pointer;
}

.admin-form .admin-chip:has(input:checked) {
  color: var(--pine-dark);
  background: var(--mist);
  border-color: var(--pine);
}

.image-field {
  display: grid;
  gap: 8px;
}

.image-field__label {
  font-size: 0.86rem;
  font-weight: 700;
}

.image-field__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.image-field__preview {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
}

/* Sin foto la miniatura queda como recuadro vacio, para no mover las columnas. */
.image-field__preview[hidden] {
  display: block !important;
  visibility: visible;
}

.admin-form .image-field__upload {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
}

.image-field__status {
  min-height: 1em;
  color: var(--pine);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Admin: dialogos y avisos ---------- */

.modal--confirm {
  z-index: 70;
}

.modal__panel--small {
  width: min(440px, 100%);
}

.modal__panel--wide {
  width: min(780px, 100%);
  max-height: min(780px, 92vh);
}

.confirm__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

.confirm__message {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--pine-dark);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.toast--error {
  background: #7a1822;
}

/* ---------- Admin: agenda ---------- */

.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.agenda-toolbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agenda-toolbar__label {
  margin-left: 6px;
  font-size: 1.05rem;
}

.agenda-toolbar__jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.agenda-toolbar__jump input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.agenda-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.agenda-week__day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.agenda-week__day span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-week__day strong {
  font-size: 1.2rem;
}

.agenda-week__day small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.agenda-week__day.is-closed {
  background: var(--paper);
}

.agenda-week__day.is-today strong {
  color: var(--pine);
}

.agenda-week__day.is-selected {
  background: var(--pine);
  border-color: var(--pine);
}

.agenda-week__day.is-selected span,
.agenda-week__day.is-selected strong,
.agenda-week__day.is-selected small {
  color: #fff;
}

.agenda-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.agenda-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agenda-legend__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.agenda-legend__dot--pendiente {
  background: var(--brass);
}

.agenda-legend__dot--confirmada {
  background: var(--pine);
}

.agenda-wrap {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.agenda-empty {
  padding: 48px 24px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.agenda-grid {
  display: grid;
  min-width: 100%;
}

.agenda-grid__corner,
.agenda-grid__head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.agenda-grid__head {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.agenda-grid__head strong {
  font-size: 0.9rem;
}

.agenda-grid__head small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.agenda-grid__head.is-off {
  background: var(--paper);
}

.agenda-grid__time {
  padding: 3px 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.agenda-slot {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.agenda-slot span {
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0;
}

.agenda-slot:hover,
.agenda-slot:focus-visible {
  background: var(--mist);
}

.agenda-slot:hover span,
.agenda-slot:focus-visible span {
  opacity: 1;
}

.agenda-slot.is-past {
  background: #fcfbf9;
}

.agenda-slot--off {
  background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 6px, #f1eee8 6px, #f1eee8 12px);
  cursor: default;
}

.agenda-booking {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 0;
  margin: 2px 4px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 6px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.agenda-booking:hover {
  box-shadow: 0 6px 16px rgba(18, 16, 14, 0.12);
}

.agenda-booking strong {
  font-size: 0.72rem;
}

.agenda-booking span {
  font-size: 0.82rem;
  font-weight: 800;
}

.agenda-booking small {
  color: var(--muted);
  font-size: 0.72rem;
}

.agenda-booking--pendiente {
  background: #fbf3e2;
  border-color: #e8cf98;
  border-left-color: var(--brass);
}

.agenda-booking--confirmada {
  background: var(--mist);
  border-color: #bfe3d6;
  border-left-color: var(--pine);
}

.agenda-now {
  position: relative;
  z-index: 2;
  align-self: start;
  height: 2px;
  background: var(--raspberry);
  pointer-events: none;
}

.agenda-now::before {
  position: absolute;
  top: -3px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--raspberry);
  content: "";
}

.agenda-extra {
  margin-top: 16px;
}

@media (max-width: 620px) {
  .admin-upcoming-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-upcoming-item__when {
    grid-column: 1 / -1;
  }

  .image-field__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-form .image-field__upload {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}
