:root {
  --brand: #8b6f3d;
  --brand-strong: #5d4727;
  --accent: #4b342a;
  --ink: #181815;
  --muted: #68675f;
  --paper: #f7f5ef;
  --surface: #fffefb;
  --line: rgba(24, 24, 21, .12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow: 0 24px 70px rgba(24, 24, 21, .09);
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 245, 239, .9);
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(24, 24, 21, .06);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-symbol {
  width: 42px;
  height: 42px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 50%;
}
.brand-symbol span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--brand);
  transform-origin: center;
}
.brand-symbol span:first-child { top: 16px; transform: rotate(35deg); }
.brand-symbol span:last-child { top: 24px; transform: rotate(-35deg); }
.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .97rem;
  letter-spacing: -.015em;
}
.brand-copy small {
  max-width: 240px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a {
  position: relative;
  color: #393932;
  font-size: .83rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--brand);
  transition: right .2s ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after { right: 0; }
.site-nav .nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}
.menu-toggle { display: none; }

.hero {
  min-height: min(900px, 100svh);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 76px;
  background:
    linear-gradient(130deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 36%),
    var(--paper);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: .65;
}
.hero-orb-one {
  width: 420px;
  height: 420px;
  top: -220px;
  right: 8%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.hero-orb-two {
  width: 290px;
  height: 290px;
  left: -210px;
  bottom: 10%;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(430px, 1.07fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow > span:first-child {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7.1vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .93;
  text-wrap: balance;
}
.hero-lead {
  max-width: 560px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible,
.text-link:focus-visible,
.site-nav a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: 4px; }
.button-primary {
  background: var(--brand-strong);
  color: white;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 22%, transparent);
}
.button-primary:hover { box-shadow: 0 18px 38px color-mix(in srgb, var(--brand) 30%, transparent); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, .4); color: var(--ink); }
.button-secondary:hover { background: var(--surface); }
.hero-details { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.hero-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
}
.hero-detail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.hero-gallery {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(150px, .62fr);
  gap: 14px;
  align-items: center;
}
.gallery-stack { display: grid; grid-template-rows: 1fr auto; gap: 14px; padding-top: 74px; }
.gallery-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #e8e5dd;
  box-shadow: var(--shadow);
}
.gallery-card-main { min-height: 580px; border-radius: var(--radius-lg); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery-card:hover img { transform: scale(1.035); }

/* ── Hero Adaptive Controlled Presets (Contain) ── */
.gallery-card.hero-media--contain-square,
.gallery-card.hero-media--contain-landscape,
.gallery-card.hero-media--contain-portrait {
  min-height: unset;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  padding: clamp(16px, 3.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-card.hero-media--contain-square::after,
.gallery-card.hero-media--contain-landscape::after,
.gallery-card.hero-media--contain-portrait::after {
  display: none !important;
}

.gallery-card.hero-media--contain-square img,
.gallery-card.hero-media--contain-landscape img,
.gallery-card.hero-media--contain-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: auto;
}

/* Main card presets */
.gallery-card-main.hero-media--contain-square {
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.gallery-card-main.hero-media--contain-landscape {
  width: min(100%, 540px);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
}

.gallery-card-main.hero-media--contain-portrait {
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  max-height: 520px;
  margin-inline: auto;
}

/* Secondary card presets (.gallery-card--secondary) */
.gallery-card--secondary.hero-media--contain-square {
  min-height: unset;
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  padding: 14px;
}

.gallery-card--secondary.hero-media--contain-landscape {
  min-height: unset;
  width: min(100%, 240px);
  aspect-ratio: 4 / 3;
  padding: 14px;
}

.gallery-card--secondary.hero-media--contain-portrait {
  min-height: unset;
  width: min(100%, 200px);
  aspect-ratio: 3 / 4;
  max-height: 280px;
  padding: 14px;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(0,0,0,.28));
  pointer-events: none;
}
.gallery-label {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
}
.gallery-label small { display: block; opacity: .76; font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.gallery-label strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; line-height: 1.15; }
.gallery-note {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: white;
}
.gallery-note span { opacity: .68; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-note strong { margin-top: 7px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; line-height: 1.1; }

.section { padding: clamp(78px, 10vw, 132px) 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.03;
  text-wrap: balance;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-image {
  aspect-ratio: 1.16;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 9%, #eee);
}
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.service-card:hover .service-image img { transform: scale(1.035); }
.service-image-fallback { height: 100%; display: grid; place-items: center; color: var(--brand-strong); }
.service-image-fallback span { width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; }
.service-body { padding: 22px; }
.service-kicker { margin: 0 0 8px; color: var(--brand-strong); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-body h3 { margin: 0; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.service-description { min-height: 3.2em; margin: 12px 0 18px; overflow: hidden; color: var(--muted); display: -webkit-box; font-size: .84rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.service-footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.service-price { font-size: .96rem; font-weight: 780; }
.service-price del { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.service-action { color: var(--brand-strong); font-size: .76rem; font-weight: 800; text-decoration: none; }
.empty-featured { padding: 52px 24px; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }
.empty-featured p { color: var(--muted); }

.about-section { background: var(--ink); color: #f5f1e7; }
.about-layout { display: grid; grid-template-columns: .25fr 1.35fr .4fr; gap: clamp(28px, 6vw, 86px); align-items: start; }
.about-index { color: color-mix(in srgb, var(--brand) 60%, white); font-family: Georgia, serif; font-size: 1.2rem; }
.about-copy .eyebrow { color: color-mix(in srgb, var(--brand) 58%, white); }
.about-copy p:last-child { max-width: 720px; margin: 30px 0 0; color: rgba(245, 241, 231, .68); font-size: 1.03rem; white-space: pre-line; }
.about-accent { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; color: rgba(245,241,231,.48); }
.about-line { width: 1px; height: 170px; background: linear-gradient(var(--brand), transparent); }
.about-accent p { margin: 0; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; writing-mode: vertical-rl; }

.info-section { background: #ece9e0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-grid.one-card { grid-template-columns: minmax(0, 720px); justify-content: center; }
.info-card { position: relative; min-height: 390px; padding: clamp(30px, 5vw, 58px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.info-card h2 { max-width: 460px; }
.info-card > p:not(.eyebrow):not(.info-number) { max-width: 500px; margin: 25px 0; color: var(--muted); }
.info-number { position: absolute; top: 24px; right: 28px; margin: 0; color: color-mix(in srgb, var(--brand) 45%, transparent); font-family: Georgia, serif; font-size: 3rem; }
.location-map { width: 100%; margin: 28px 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #e8e5dc; aspect-ratio: 16 / 10; }
.location-map[hidden] { display: none; }
.location-map iframe { width: 100%; height: 100%; display: block; border: 0; }
.hours-list { max-width: 480px; margin: 27px 0 0; }
.hours-row { display: grid; grid-template-columns: minmax(95px, .6fr) 1.4fr; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.hours-row dt { font-weight: 750; }
.hours-row dd { margin: 0; color: var(--muted); text-align: right; }

/* ── Reviews Section ── */
.reviews-section { background: var(--paper); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.review-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(24, 24, 21, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24, 24, 21, 0.07);
}
.review-card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  color: #f59e0b;
}
.review-card-stars svg {
  width: 18px;
  height: 18px;
}
.review-card-comment {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
  flex: 1;
}
.review-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.review-card-author {
  font-weight: 700;
  color: var(--ink);
}
.reviews-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.contact-section { padding: clamp(72px, 9vw, 112px) 0; background: var(--brand-strong); color: white; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.contact-section .eyebrow { color: rgba(255,255,255,.72); }
.contact-section p:not(.eyebrow) { margin: 22px 0 0; color: rgba(255,255,255,.72); }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.contact-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  color: white;
  font-size: .83rem;
  font-weight: 720;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.contact-link:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }
.contact-link span:last-child { opacity: .7; }

.site-footer { padding: 66px 0 24px; background: #11110f; color: #efede7; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; padding-bottom: 54px; }
.footer-brand strong { font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.footer-brand p { max-width: 360px; margin: 12px 0 0; color: rgba(239,237,231,.54); font-size: .82rem; }
.footer-links, .social-links { display: grid; align-content: start; gap: 10px; }
.footer-links a, .social-links a { color: rgba(239,237,231,.68); font-size: .78rem; text-decoration: none; }
.footer-links a:hover, .social-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(239,237,231,.42); font-size: .68rem; }
/* ── Acciones Flotantes (Asistente & WhatsApp) ── */
.floating-actions {
  position: fixed;
  z-index: 9990;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-actions > * {
  pointer-events: auto;
}

.assistant-float[hidden] {
  display: none !important;
}

.assistant-float {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border-radius: 9999px;
  background: color-mix(in srgb, #0d111d 88%, var(--brand-primary, #c9a44c) 12%);
  border: 1px solid color-mix(in srgb, var(--brand-primary, #c9a44c) 40%, rgba(255,255,255,0.15));
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.5), 0 0 16px -2px color-mix(in srgb, var(--brand-primary, #c9a44c) 30%, transparent);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 9991;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.assistant-float:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary, #c9a44c);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.6), 0 0 20px -2px color-mix(in srgb, var(--brand-primary, #c9a44c) 45%, transparent);
  background: color-mix(in srgb, #0d111d 80%, var(--brand-primary, #c9a44c) 20%);
}

.assistant-float:active {
  transform: translateY(0) scale(0.98);
}

.assistant-float:focus-visible {
  outline: 2px solid var(--brand-primary, #c9a44c);
  outline-offset: 3px;
}

.assistant-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary, #c9a44c);
  flex-shrink: 0;
}

.assistant-float-text {
  font-size: 0.88rem;
  line-height: 1;
}

.assistant-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
  animation: assistantPulse 2.5s infinite ease-in-out;
}

@keyframes assistantPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.whatsapp-float {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1d9f58;
  box-shadow: 0 12px 28px rgba(20, 100, 58, 0.35);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(20, 100, 58, 0.45);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 24px;
  fill: currentColor;
}

/* ── Modal / Ventana Flotante del Asistente ── */
.assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.assistant-modal.is-open:not([hidden]),
.assistant-modal:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.assistant-modal[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.assistant-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.assistant-modal-container {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(650px, calc(100vh - 48px));
  height: min(650px, calc(100dvh - 48px));
  border-radius: 16px;
  overflow: hidden;
  background: #07080f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 2;
  transform: translateY(0) scale(1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.assistant-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 17, 39, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.assistant-modal-close:hover,
.assistant-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  outline: 2px solid var(--brand-primary, #c9a44c);
  outline-offset: 2px;
}

.assistant-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #07080f;
  display: block;
}

body.assistant-modal-open {
  overflow: hidden;
}

/* ── Estilos de Bloques Modulares del Mini CMS ── */
.preview-banner {
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.preview-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.preview-banner-exit {
  color: #93c5fd;
  text-decoration: underline;
  font-size: 0.8rem;
  white-space: nowrap;
}
.preview-banner-exit:hover {
  color: #bfdbfe;
}

.image-text-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.image-text-layout.is-reversed .image-text-media {
  order: 2;
}
.image-text-layout.is-reversed .image-text-copy {
  order: 1;
}
.image-text-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.image-text-media img {
  width: 100%;
  height: 100%;
}
.image-text-copy h2 {
  margin-top: 12px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
}
.image-text-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
  font-size: 1.05rem;
}
.image-text-copy .button {
  margin-top: 24px;
}

.hero-gallery.single-media {
  grid-template-columns: 1fr;
  justify-items: center;
}
.hero-gallery.single-media .gallery-stack {
  display: none;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.benefit-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.benefit-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.benefit-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cert-media {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cert-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-fit--contain {
  object-fit: contain !important;
}
.media-fit--cover {
  object-fit: cover !important;
}
.block-intro {
  margin-bottom: 24px;
}
.cert-card strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 4px;
}
.cert-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.cert-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 650;
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 650;
  font-size: 0.88rem;
}
.payment-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.payment-desc {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.gallery-item-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: var(--surface);
  position: relative;
}
.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item-card:hover img {
  transform: scale(1.04);
}
.gallery-item-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.whatsapp-float svg { width: 24px; fill: currentColor; }
.load-error { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 28px; background: var(--paper); text-align: center; }
.load-error[hidden] { display: none; }
.load-error > div { max-width: 560px; }
.load-error h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 7vw, 4.8rem); font-weight: 400; line-height: 1; }
.load-error p:not(.eyebrow) { color: var(--muted); }
.load-error .button { margin-top: 16px; }

.skeleton, .skeleton-card {
  background: linear-gradient(105deg, #e5e2da 25%, #f2f0e9 42%, #e5e2da 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-card { min-height: 430px; }
@keyframes shimmer { to { background-position-x: -220%; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  :root { --shell: min(100% - 32px, 760px); }
  .header-inner { min-height: 72px; }
  .brand-copy small { display: none; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.45);
  }
  .menu-toggle span { width: 18px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    max-height: 0;
    display: grid;
    gap: 0;
    overflow: hidden;
    background: rgba(247,245,239,.98);
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .site-nav.is-open { max-height: calc(100svh - 72px); padding: 18px 20px 28px; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .nav-cta { margin-top: 12px; border-bottom: 0; text-align: center; }
  .hero { min-height: auto; padding: 126px 0 72px; }
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 760px; font-size: clamp(3.5rem, 13vw, 6.3rem); }
  .hero-gallery { min-height: 500px; }
  .gallery-card-main { min-height: 500px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-layout { grid-template-columns: .2fr 1.8fr; }
  .about-accent { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .image-text-layout { grid-template-columns: 1fr; gap: 36px; }
  .image-text-layout.is-reversed .image-text-media { order: 0; }
  .image-text-layout.is-reversed .image-text-copy { order: 0; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); --radius-md: 20px; --radius-lg: 26px; }
  html { scroll-padding-top: 76px; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-copy strong { max-width: 190px; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 4.8rem); }
  .hero-lead { margin-top: 22px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-gallery { min-height: 410px; grid-template-columns: 1fr .72fr; gap: 9px; }
  .gallery-card-main { min-height: 410px; border-radius: 24px; }
  .gallery-stack { gap: 9px; padding-top: 56px; }
  .gallery-card { min-height: 190px; }
  .gallery-card-main.hero-media--contain-square {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
  }
  .gallery-card-main.hero-media--contain-landscape {
    width: min(100%, 360px);
    aspect-ratio: 4 / 3;
  }
  .gallery-card-main.hero-media--contain-portrait {
    width: min(100%, 280px);
    aspect-ratio: 3 / 4;
    max-height: 380px;
  }
  .gallery-card--secondary.hero-media--contain-square {
    width: min(100%, 150px);
    aspect-ratio: 1 / 1;
    padding: 10px;
  }
  .gallery-card--secondary.hero-media--contain-landscape {
    width: min(100%, 170px);
    aspect-ratio: 4 / 3;
    padding: 10px;
  }
  .gallery-card--secondary.hero-media--contain-portrait {
    width: min(100%, 130px);
    aspect-ratio: 3 / 4;
    max-height: 200px;
    padding: 10px;
  }
  .gallery-card.hero-media--contain-square,
  .gallery-card.hero-media--contain-landscape,
  .gallery-card.hero-media--contain-portrait {
    padding: 16px;
  }
  .gallery-note { min-height: 116px; padding: 15px; border-radius: 18px; }
  .gallery-note strong { font-size: 1rem; }
  .gallery-label { left: 15px; right: 15px; bottom: 15px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .featured-grid { display: flex; margin-inline: -14px; padding: 0 14px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .featured-grid::-webkit-scrollbar { display: none; }
  .service-card { min-width: min(84vw, 330px); scroll-snap-align: start; }
  .about-layout { grid-template-columns: 1fr; }
  .about-index { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 340px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .floating-actions {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .assistant-modal-container {
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .assistant-modal-close {
    top: max(14px, env(safe-area-inset-top));
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
