:root {
  --ink: #12214a;
  --muted: rgba(18, 33, 74, 0.68);
  --navy: #18346f;
  --blue: #2f7ec8;
  --aqua: #29b8d9;
  --ice: #eaf8ff;
  --surface: #ffffff;
  --line: rgba(24, 52, 111, 0.13);
  --line-strong: rgba(47, 126, 200, 0.25);
  --shadow: 0 24px 70px rgba(18, 33, 74, 0.16);
  --shadow-soft: 0 14px 38px rgba(18, 33, 74, 0.08);
  --radius: 8px;
  --container: 1180px;
  --cursor-x: 50vw;
  --cursor-y: 40vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 16% 8%, rgba(41, 184, 217, 0.18), transparent 30rem),
    linear-gradient(180deg, #f7fcff 0%, #ffffff 46%, #eef9ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(41, 184, 217, 0.24), transparent 22rem),
    radial-gradient(circle at calc(100% - var(--cursor-x)) 18%, rgba(47, 126, 200, 0.14), transparent 24rem),
    linear-gradient(rgba(24, 52, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 52, 111, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 70%);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: -1;
}

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

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

.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(18, 33, 74, 0.08);
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  padding: 12px 24px;
}

.logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.logo-image {
  border-radius: var(--radius);
  display: block;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  width: 240px;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 22px;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-cta,
.primary-btn,
.secondary-btn {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-menu .nav-cta,
.primary-btn {
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--aqua));
  color: #fff;
  box-shadow: 0 16px 36px rgba(47, 126, 200, 0.24);
}

.nav-menu .nav-cta:hover {
  color: #fff;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.primary-btn.light {
  background: #fff;
  color: var(--navy);
}

.nav-cta:hover,
.primary-btn:hover,
.secondary-btn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 25px;
}

.hero {
  display: block;
  min-height: calc(100vh - 73px);
  padding: clamp(78px, 10vh, 112px) 0 64px;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
  z-index: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 25, 58, 0.88) 0%, rgba(9, 25, 58, 0.68) 42%, rgba(9, 25, 58, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(247, 252, 255, 0.98) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #fff;
  display: grid;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.eyebrow {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a9efff;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.65rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 24px 0 32px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-bar {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 48px auto 0;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  width: calc(100% - 48px);
  z-index: 2;
}

.trust-bar div {
  background: #fff;
  display: grid;
  gap: 3px;
  padding: 22px 24px;
}

.trust-bar strong {
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.trust-bar span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  margin: 0 auto;
  max-width: var(--container);
  padding: 94px 24px;
}

.section-heading {
  margin: 0 auto 42px;
  max-width: 760px;
  text-align: center;
}

.section-heading p:last-child,
.experience-copy p,
.split-copy p,
.service-card p,
.testimonial-card p,
.contact-card p {
  color: var(--muted);
}

.section-heading p:last-child {
  margin-top: 16px;
}

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

.service-card,
.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-height: 245px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card::before {
  background: radial-gradient(circle at top right, rgba(41, 184, 217, 0.2), transparent 46%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.testimonial-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.service-icon {
  align-items: center;
  background: var(--ice);
  border-radius: var(--radius);
  color: var(--blue);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-bottom: 26px;
  width: 48px;
}

.featured .service-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.service-card h3 {
  margin-bottom: 12px;
}

.experience-section {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.95fr 1.05fr;
}

.experience-copy p {
  font-size: 1.04rem;
  margin-top: 18px;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  grid-template-columns: 150px 1fr;
  padding: 22px;
}

.process-item span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.process-item p {
  color: var(--muted);
}

.split-section {
  align-items: stretch;
  display: grid;
  gap: 34px;
  grid-template-columns: 0.9fr 1.1fr;
}

.split-visual {
  background:
    linear-gradient(135deg, rgba(24, 52, 111, 0.84), rgba(47, 126, 200, 0.52)),
    url("assets/dental-clinic-hero.png") center / cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 440px;
  padding: 28px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  max-width: 310px;
  padding: 24px;
}

.metric-card strong {
  color: var(--navy);
  font-size: 1.55rem;
}

.metric-card span {
  color: var(--muted);
}

.split-copy {
  align-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  padding: 42px;
}

.feature-list {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.feature-list div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.feature-list h3 {
  margin-bottom: 8px;
}

.testimonial-card {
  min-height: 205px;
}

.testimonial-card p {
  font-size: 1.02rem;
  margin-bottom: 26px;
}

.testimonial-card strong {
  color: var(--navy);
}

.contact-card {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(169, 239, 255, 0.24), transparent 26rem),
    linear-gradient(135deg, #12214a, #1d5f9f 68%, #23afcf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 48px;
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-card .primary-btn {
  margin-top: 28px;
}

.contact-details {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.contact-details div {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: 20px;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details strong {
  color: #fff;
  font-size: 0.98rem;
}

.footer {
  align-items: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  justify-content: space-between;
  padding: 26px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

.footer a {
  color: #a9efff;
  font-weight: 800;
}

.chat-widget {
  bottom: 24px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  z-index: 60;
}

.chat-float,
.chat-nudge,
.chat-panel {
  pointer-events: auto;
}

.chat-nudge {
  animation: chatNudgeIn 280ms ease both;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 126, 200, 0.18);
  border-radius: 16px 16px 6px 16px;
  box-shadow: 0 18px 42px rgba(18, 33, 74, 0.18);
  color: var(--navy);
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
  max-width: 220px;
  padding: 12px 14px;
  position: absolute;
  right: 0;
  bottom: 74px;
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.chat-nudge::after {
  border: 8px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.96);
  border-right-color: rgba(255, 255, 255, 0.96);
  bottom: -7px;
  content: "";
  position: absolute;
  right: 22px;
}

.chat-nudge:hover {
  box-shadow: 0 22px 50px rgba(18, 33, 74, 0.22);
  transform: translateY(-2px);
}

.chat-nudge:focus-visible {
  outline: 3px solid rgba(41, 184, 217, 0.42);
  outline-offset: 3px;
}

.chat-nudge.is-visible {
  display: block;
}

.chat-widget.is-open .chat-nudge {
  display: none;
}

.chat-float {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 2.2rem),
    linear-gradient(135deg, #12a767, var(--blue), var(--aqua));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(18, 33, 74, 0.24), 0 0 0 8px rgba(41, 184, 217, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  min-height: 58px;
  padding: 12px 19px 12px 12px;
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.chat-float:hover {
  box-shadow: 0 22px 52px rgba(18, 33, 74, 0.28), 0 0 0 10px rgba(41, 184, 217, 0.1);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.chat-float-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 38px;
}

.chat-panel {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(41, 184, 217, 0.42), rgba(18, 33, 74, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  bottom: 76px;
  box-shadow: 0 28px 80px rgba(18, 33, 74, 0.22);
  color: var(--ink);
  max-height: min(720px, calc(100vh - 118px));
  opacity: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  visibility: hidden;
  width: min(410px, calc(100vw - 32px));
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.chat-header {
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(169, 239, 255, 0.42), transparent 8.5rem),
    linear-gradient(135deg, #12214a 0%, #1f65a4 58%, #18b883 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 108px;
  padding: 20px 20px 18px;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-header strong {
  display: block;
  font-size: 1.08rem;
  margin-top: 3px;
}

.chat-header small {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 7px;
  margin-top: 9px;
}

.chat-header small i {
  background: #47e69c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(71, 230, 156, 0.15);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.chat-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.45rem;
  height: 36px;
  justify-content: center;
  line-height: 1;
  width: 36px;
}

.chat-close:focus-visible,
.chat-float:focus-visible,
.chat-back:focus-visible,
.chat-next:focus-visible,
.chat-edit:focus-visible,
.chat-submit:focus-visible,
.chat-day-options button:focus-visible,
.chat-time-options button:focus-visible,
.chat-service-options button:focus-visible {
  outline: 3px solid rgba(41, 184, 217, 0.42);
  outline-offset: 3px;
}

.chat-body {
  background:
    radial-gradient(circle at top left, rgba(41, 184, 217, 0.08), transparent 12rem),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  display: grid;
  gap: 14px;
  max-height: calc(min(720px, calc(100vh - 118px)) - 108px);
  overflow-y: auto;
  padding: 16px;
  scrollbar-color: rgba(47, 126, 200, 0.42) transparent;
  scrollbar-width: thin;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(47, 126, 200, 0.32);
  border-radius: 999px;
}

.chat-progress {
  display: grid;
  gap: 9px;
}

.chat-progress span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-progress-track {
  background: rgba(24, 52, 111, 0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.chat-progress-fill {
  background: linear-gradient(90deg, var(--blue), var(--aqua), #18b883);
  border-radius: inherit;
  height: 100%;
  transition: width 220ms ease;
  width: 20%;
}

.chat-thread {
  display: grid;
  gap: 10px;
}

.chat-bot-row {
  align-items: flex-end;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px 1fr;
}

.chat-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--aqua));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.chat-form {
  display: grid;
  gap: 14px;
}

.chat-bubble {
  animation: chatBubbleIn 220ms ease both;
  background: #eef9ff;
  border: 1px solid rgba(41, 184, 217, 0.2);
  border-radius: 18px 18px 18px 6px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 13px 14px;
}

.chat-step {
  animation: chatStepIn 210ms ease both;
  border: 0;
  display: none;
  gap: 7px;
}

.chat-step.is-active {
  display: grid;
}

.chat-step label,
.chat-step legend,
.chat-step-label {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.chat-step label span {
  color: var(--muted);
  font-weight: 700;
}

.chat-step input,
.chat-step textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(18, 33, 74, 0.06);
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.chat-step textarea {
  min-height: 106px;
  resize: vertical;
}

.chat-step input:focus,
.chat-step textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 126, 200, 0.12), 0 16px 34px rgba(18, 33, 74, 0.08);
}

.chat-service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-service-options button {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(47, 126, 200, 0.34), rgba(41, 184, 217, 0.22)) border-box;
  border: 1px solid var(--line-strong);
  border-color: transparent;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 12px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.chat-service-options button:hover {
  transform: translateY(-1px);
}

.chat-service-options button.is-selected {
  background: linear-gradient(135deg, var(--navy), var(--blue), #18b883);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(47, 126, 200, 0.22);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}

.chat-schedule {
  gap: 12px;
}

.chat-day-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-day-options button,
.chat-time-options button {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(47, 126, 200, 0.34), rgba(41, 184, 217, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.chat-day-options button {
  min-height: 48px;
  padding: 11px 12px;
}

.chat-time-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 190px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: rgba(47, 126, 200, 0.42) transparent;
  scrollbar-width: thin;
}

.chat-time-options::-webkit-scrollbar {
  width: 6px;
}

.chat-time-options::-webkit-scrollbar-thumb {
  background: rgba(47, 126, 200, 0.32);
  border-radius: 999px;
}

.chat-time-options button {
  min-height: 42px;
  padding: 9px 8px;
}

.chat-day-options button:hover,
.chat-time-options button:hover {
  box-shadow: 0 12px 26px rgba(18, 33, 74, 0.08);
  transform: translateY(-1px);
}

.chat-day-options button.is-selected,
.chat-time-options button.is-selected {
  background: linear-gradient(135deg, var(--navy), var(--blue), #18b883);
  box-shadow: 0 14px 28px rgba(47, 126, 200, 0.22);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}

.chat-time-options.is-disabled {
  opacity: 0.72;
}

.chat-time-options.is-disabled::before {
  background: rgba(24, 52, 111, 0.06);
  border: 1px dashed rgba(47, 126, 200, 0.22);
  border-radius: 14px;
  color: var(--muted);
  content: "Primero elige un día para ver horarios.";
  font-size: 0.84rem;
  font-weight: 800;
  grid-column: 1 / -1;
  padding: 13px;
}

.chat-error {
  color: #a83b32;
  display: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 1px;
}

.chat-error.is-visible {
  display: block;
}

.chat-privacy {
  background: rgba(24, 52, 111, 0.06);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.chat-actions,
.chat-summary-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 30%);
  display: grid;
  gap: 10px;
  grid-template-columns: 0.78fr 1.22fr;
  padding-top: 4px;
  position: sticky;
  bottom: -16px;
  z-index: 2;
}

.chat-back,
.chat-edit,
.chat-next,
.chat-submit {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 12px 15px;
  transition: box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.chat-back,
.chat-edit {
  background: rgba(24, 52, 111, 0.06);
  color: var(--navy);
}

.chat-back:hover,
.chat-edit:hover {
  transform: translateY(-1px);
}

.chat-back:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.chat-next {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 14px 30px rgba(47, 126, 200, 0.2);
  color: #fff;
}

.chat-next.is-ready {
  background: linear-gradient(135deg, var(--blue), var(--aqua), #18b883);
  box-shadow: 0 16px 34px rgba(41, 184, 217, 0.24);
}

.chat-next:hover,
.chat-submit:hover {
  transform: translateY(-1px);
}

.chat-summary {
  animation: chatStepIn 220ms ease both;
  background:
    radial-gradient(circle at top right, rgba(41, 184, 217, 0.14), transparent 12rem),
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(18, 33, 74, 0.08);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.chat-actions[hidden],
.chat-summary[hidden],
.chat-summary-actions[hidden] {
  display: none;
}

.chat-summary h3 {
  color: var(--navy);
  font-size: 1.02rem;
}

.chat-summary dl {
  display: grid;
  gap: 9px;
}

.chat-summary dl div {
  border-top: 1px solid rgba(24, 52, 111, 0.09);
  display: grid;
  gap: 2px;
  padding-top: 9px;
}

.chat-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-summary dd {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.chat-submit {
  background: linear-gradient(135deg, #19b76b, #128c55);
  box-shadow: 0 14px 30px rgba(25, 183, 107, 0.22);
  color: #fff;
  grid-column: span 1;
}

.chat-submit:hover {
  box-shadow: 0 18px 38px rgba(25, 183, 107, 0.28);
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatNudgeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 24px;
    padding: 20px;
    position: absolute;
    right: 24px;
    top: 74px;
  }

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

  .experience-section,
  .split-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .split-visual {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  body::before,
  .service-card::before {
    display: none;
  }

  .navbar {
    padding: 13px 18px;
  }

  .logo-image {
    height: 52px;
    width: 190px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 25, 58, 0.86) 0%, rgba(9, 25, 58, 0.78) 58%, rgba(247, 252, 255, 0.98) 100%);
  }

  .hero-actions,
  .primary-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .secondary-btn {
    min-height: 52px;
    width: 100%;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    margin-top: 36px;
    width: min(420px, calc(100vw - 36px));
  }

  .trust-bar div {
    padding: 18px 20px;
  }

  .section {
    padding: 72px 18px;
  }

  .services-grid,
  .testimonials-grid,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .contact-card {
    padding: 28px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-float {
    min-height: 54px;
    padding: 10px 15px 10px 10px;
  }

  .chat-nudge.is-visible {
    display: block;
  }

  .chat-panel {
    bottom: 70px;
    max-height: calc(100vh - 92px);
    width: calc(100vw - 32px);
  }

  .chat-body {
    max-height: calc(100vh - 212px);
  }

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

  .chat-time-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 164px;
  }

}

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

/* Production fix: keep the hero stats as one clean card, with no ghost blocks. */
.hero {
  overflow-x: clip;
}

.trust-bar {
  background: #fff !important;
  box-sizing: border-box;
  contain: paint;
  gap: 0 !important;
  isolation: isolate;
  overflow: hidden !important;
}

.trust-bar::before,
.trust-bar::after,
.trust-bar > div::before,
.trust-bar > div::after {
  display: none !important;
}

.trust-bar > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(9, 25, 58, 0.88) 0%, rgba(9, 25, 58, 0.68) 42%, rgba(9, 25, 58, 0.18) 100%) !important;
}

@media (max-width: 700px) {
  .hero {
    padding: 72px 0 44px;
    overflow: hidden;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 2.95rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(9, 25, 58, 0.86) 0%, rgba(9, 25, 58, 0.78) 58%, rgba(9, 25, 58, 0.72) 100%) !important;
  }

  .trust-bar {
    margin: 34px auto 0;
    max-width: 360px;
    width: min(360px, calc(100vw - 36px)) !important;
  }
}
