:root {
  /* Reemplazar con la paleta oficial cuando el usuario la comparta. */
  --bg: #f6f4ee;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #eef1eb;
  --text: #31383b;
  --muted: #6e7d73;
  --accent: #6e7d73;
  --accent-soft: #9daaa0;
  --accent-powder: #b9c9d5;
  --accent-cream: #f1efe3;
  --accent-strong: #31383b;
  --line: rgba(49, 56, 59, 0.12);
  --shadow: 0 22px 48px rgba(49, 56, 59, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(110, 125, 115, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(185, 201, 213, 0.16), transparent 26%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 250, 247, 0.86);
  border-bottom: 1px solid rgba(49, 56, 59, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 250px;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a.is-current:not(.home-link) {
  color: var(--accent-strong);
  font-weight: 600;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(110, 125, 115, 0.14);
  box-shadow: 0 12px 24px rgba(49, 56, 59, 0.06);
}

.home-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.home-link.is-current {
  color: var(--accent-strong);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.social-card a:hover,
.social-card a:focus-visible {
  color: var(--accent);
}

.hero,
.section {
  padding: 4.75rem 0;
  scroll-margin-top: 120px;
}

.hero-grid,
.transition-grid,
.appointment-layout,
.contact-layout,
.social-grid,
.branch-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.page-intro {
  padding-bottom: 2rem;
}

.page-title {
  max-width: 16ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.transition-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Palatino", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1;
}

h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.lead,
.appointment-copy,
.section-heading + p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fffaf4;
}

.button-secondary {
  border-color: rgba(47, 39, 37, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.button-block {
  width: 100%;
}

.hero-points,
.check-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-points li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent-strong);
}

.hero-visual,
.transition-copy,
.branch-copy,
.social-card,
.contact-card,
.booking-card,
.hero-brand-card {
  display: grid;
  gap: 1rem;
}

.branch-copy {
  align-content: start;
}

.photo-placeholder,
.info-card,
.service-card,
.hero-brand-card,
.transition-card,
.booking-card,
.social-card,
.contact-card,
.branch-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.photo-placeholder {
  border-style: dashed;
}

.info-card,
.service-card,
.hero-brand-card,
.transition-card,
.booking-card,
.social-card,
.contact-card,
.branch-panel {
  border-radius: var(--radius-lg);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-brand-card {
  align-items: center;
  min-height: 180px;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(110, 125, 115, 0.08), rgba(185, 201, 213, 0.08)),
    rgba(255, 255, 255, 0.78);
}

.hero-logo {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.hero-brand-card p {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--muted);
}

.transition-section {
  padding-top: 0;
}

.transition-card {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(241, 239, 227, 0.92), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.82);
}

.legacy-logo {
  width: min(100%, 180px);
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

.transition-card p {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--muted);
}

.photo-placeholder {
  min-height: 220px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(110, 125, 115, 0.08), rgba(185, 201, 213, 0.18)),
    rgba(255, 255, 255, 0.75);
}

.photo-placeholder.large {
  min-height: 420px;
}

.image-frame-hero {
  min-height: 420px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.image-frame-tall {
  min-height: 520px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(185, 201, 213, 0.12), rgba(241, 239, 227, 0.14));
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
  margin-bottom: 2.3rem;
}

.section-heading.align-left {
  justify-items: start;
  text-align: left;
}

.story-grid,
.service-grid,
.photo-strip {
  display: grid;
  gap: 1.2rem;
}

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

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

.info-card,
.service-card,
.booking-card,
.social-card,
.contact-card,
.branch-panel {
  padding: 1.5rem;
}

.service-card.featured {
  background:
    linear-gradient(160deg, rgba(110, 125, 115, 0.14), transparent),
    rgba(255, 255, 255, 0.86);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(185, 201, 213, 0.26);
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.photo-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.catalog-grid,
.admin-layout,
.admin-dashboard,
.admin-stats,
.admin-grid,
.admin-filters,
.admin-list,
.service-admin-list,
.admin-service-grid,
.admin-card-body,
.admin-card-actions {
  display: grid;
  gap: 1rem;
}

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

.appointment-layout,
.contact-layout,
.social-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  align-items: start;
}

.admin-section {
  padding-top: 0;
}

.admin-login-card,
.admin-toolbar,
.admin-services-panel {
  max-width: 100%;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-stats .info-card p {
  margin-bottom: 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: start;
}

.admin-heading {
  margin-bottom: 1.3rem;
}

.admin-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 1rem;
}

.admin-user {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-card,
.admin-service-card,
.empty-state {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
}

.admin-card-head,
.service-card-head,
.admin-toolbar,
.admin-service-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-card-head p,
.admin-card-body p,
.empty-state p,
.service-note {
  margin-bottom: 0;
}

.admin-card-body {
  color: var(--muted);
}

.status-pill,
.price-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill {
  text-transform: capitalize;
}

.status-pendiente {
  background: rgba(185, 201, 213, 0.24);
  color: var(--accent-strong);
}

.status-confirmada {
  background: rgba(157, 170, 160, 0.2);
  color: #405047;
}

.status-cancelada {
  background: rgba(125, 63, 63, 0.12);
  color: #7d3f3f;
}

.status-atendida {
  background: rgba(241, 239, 227, 0.9);
  color: #5f5b4a;
}

.price-tag {
  background: rgba(110, 125, 115, 0.12);
  color: var(--accent-strong);
}

.service-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.booking-card-secondary {
  margin-top: 1.2rem;
}

.booking-form,
.booking-grid {
  display: grid;
  gap: 1rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.checkbox-field {
  align-content: end;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(49, 56, 59, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid rgba(110, 125, 115, 0.22);
  outline-offset: 1px;
  border-color: rgba(110, 125, 115, 0.3);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled,
.booking-form button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.setup-notice,
.form-status,
.schedule-summary {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-size: 0.94rem;
}

.schedule-summary {
  margin-bottom: 1rem;
  border: 1px solid rgba(110, 125, 115, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
}

.setup-notice {
  border: 1px dashed rgba(49, 56, 59, 0.16);
  background: rgba(241, 239, 227, 0.78);
  color: var(--accent-strong);
}

.form-helper {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  margin-bottom: 0;
  border: 1px solid transparent;
}

.form-status.is-info {
  background: rgba(185, 201, 213, 0.2);
  border-color: rgba(185, 201, 213, 0.34);
  color: var(--accent-strong);
}

.form-status.is-success {
  background: rgba(157, 170, 160, 0.18);
  border-color: rgba(110, 125, 115, 0.28);
  color: #405047;
}

.form-status.is-error {
  background: rgba(125, 63, 63, 0.1);
  border-color: rgba(125, 63, 63, 0.18);
  color: #7d3f3f;
}

.button-danger {
  border-color: rgba(125, 63, 63, 0.18);
  color: #7d3f3f;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(185, 201, 213, 0.12), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

.branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.branch-tab {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  cursor: pointer;
}

.branch-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbfaf7;
}

.branch-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
}

.branch-location {
  margin-top: -0.45rem;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.branch-copy a[href^="tel"] {
  color: var(--accent-strong);
}

.branch-actions {
  padding-top: 0.35rem;
}

.social-card a {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.social-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-inner {
  border-top: 1px solid rgba(49, 56, 59, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
}

@media (max-width: 960px) {
  .hero-grid,
  .transition-grid,
  .story-grid,
  .service-grid,
  .catalog-grid,
  .showcase-grid,
  .booking-grid,
  .admin-stats,
  .admin-grid,
  .admin-filters,
  .appointment-layout,
  .contact-layout,
  .social-grid,
  .branch-grid,
  .cta-panel,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: grid;
    justify-items: start;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .photo-placeholder.large {
    min-height: 320px;
  }

  .image-frame-hero,
  .image-frame-tall {
    min-height: 320px;
  }

  h1 {
    max-width: 100%;
  }

  .brand {
    max-width: 215px;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 3.1rem 0;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .site-header {
    background: rgba(251, 250, 247, 0.94);
  }

  .header-inner {
    gap: 0.9rem;
    padding: 0.85rem 0 0.95rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    font-size: 0.88rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(49, 56, 59, 0.08);
    white-space: nowrap;
  }

  .main-nav a.is-current:not(.home-link) {
    background: rgba(110, 125, 115, 0.14);
    border-color: rgba(110, 125, 115, 0.22);
  }

  .brand {
    max-width: 185px;
  }

  .page-intro {
    padding-bottom: 1.15rem;
  }

  .page-title,
  h1,
  h2 {
    max-width: 100%;
  }

  .page-intro .section-heading {
    justify-items: start;
    text-align: left;
  }

  .page-title {
    max-width: 15ch;
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.1;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.4rem, 6.6vw, 1.8rem);
  }

  .lead,
  .appointment-copy,
  .section-heading + p {
    font-size: 0.96rem;
  }

  .section-heading {
    gap: 0.45rem;
    margin-bottom: 1.6rem;
  }

  .hero-actions,
  .branch-actions {
    display: grid;
    gap: 0.8rem;
  }

  .hero-actions .button,
  .branch-actions .button,
  .cta-panel .button {
    width: 100%;
  }

  .hero-points,
  .check-list,
  .story-grid,
  .service-grid,
  .booking-grid,
  .catalog-grid,
  .photo-strip,
  .showcase-grid {
    gap: 0.9rem;
  }

  .admin-toolbar,
  .admin-card-head,
  .admin-service-actions,
  .service-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-placeholder {
    min-height: 180px;
  }

  .photo-placeholder.large,
  .image-frame-hero,
  .image-frame-tall {
    min-height: 240px;
  }

  .hero-brand-card {
    min-height: auto;
    padding: 1.1rem;
  }

  .cta-panel {
    gap: 1rem;
    padding: 1.2rem;
  }

  .branch-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .branch-tabs::-webkit-scrollbar {
    display: none;
  }

  .branch-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .branch-copy p,
  .contact-card p,
  .social-card a {
    font-size: 0.95rem;
  }

  .info-card,
  .service-card,
  .hero-brand-card,
  .booking-card,
  .social-card,
  .contact-card,
  .branch-panel {
    padding: 1.15rem;
  }
}
