:root {
  --bg: #f5fbff;
  --bg-deep: #eef6fc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #0e1d31;
  --text-soft: #5b7087;
  --text-muted: #86a0b6;
  --line: rgba(113, 145, 173, 0.16);
  --primary: #7ccfff;
  --primary-strong: #2f9ae0;
  --primary-deep: #1b6b9f;
  --cyan-glow: rgba(122, 208, 255, 0.34);
  --shadow-xl: 0 34px 100px rgba(32, 72, 105, 0.16);
  --shadow-lg: 0 24px 80px rgba(32, 72, 105, 0.12);
  --shadow-md: 0 16px 44px rgba(32, 72, 105, 0.10);
  --shadow-sm: 0 10px 24px rgba(32, 72, 105, 0.08);
  --radius-xxl: 42px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
  --header-height: 90px;
  --transition: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 12%, rgba(166, 223, 255, 0.20), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(196, 235, 255, 0.24), transparent 20%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fd 32%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.centered {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 207, 255, 0.34);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(93, 160, 204, 0.10);
}

.section-heading {
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.60));
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.bg-orb,
.noise {
  pointer-events: none;
  position: fixed;
  inset: auto;
  z-index: -2;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(70px);
}

.orb-1 {
  width: 340px;
  height: 340px;
  top: 10%;
  left: -80px;
  background: rgba(133, 213, 255, 0.18);
}

.orb-2 {
  width: 300px;
  height: 300px;
  top: 32%;
  right: -100px;
  background: rgba(191, 234, 255, 0.22);
}

.orb-3 {
  width: 240px;
  height: 240px;
  bottom: 8%;
  left: 18%;
  background: rgba(139, 213, 255, 0.12);
}

.noise {
  inset: 0;
  z-index: -3;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45) 0.6px, transparent 0.7px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.3) 0.6px, transparent 0.7px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0.6px, transparent 0.7px);
  background-size: 90px 90px, 120px 120px, 140px 140px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 80;
  background: linear-gradient(90deg, #72ccff, #1d8ad2);
  box-shadow: 0 0 18px rgba(80, 182, 241, 0.42);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #69c7ff, #2389cc);
  box-shadow:
    0 18px 34px rgba(33, 124, 181, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  box-shadow:
    0 24px 42px rgba(33, 124, 181, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(120, 150, 178, 0.18);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(246, 250, 255, 0.72);
  border-bottom: 1px solid rgba(125, 154, 180, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--header-height) - 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-text {
  font-size: 1.22rem;
  color: var(--text);
}

.brand-logo {
  width: 54px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 10px 20px rgba(74, 174, 240, 0.14)) drop-shadow(0 0 14px rgba(207, 241, 255, 0.34));
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.36rem;
  border-radius: 14px;
  border: 1px solid rgba(121, 151, 181, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 1rem;
  right: 1rem;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links {
  display: grid;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  color: var(--text-soft);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(143, 208, 255, 0.14);
  color: var(--text);
}

.nav-cta {
  width: 100%;
}

/* HERO */
.hero-signature {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 3rem 0 5rem;
  overflow: clip;
}

.hero-shell {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
  max-width: 10.5ch;
}

.hero-copy p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-stats {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 22px;
}

.stat-card strong {
  display: block;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.stat-card span {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hero-stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
}

.glow-a {
  width: 270px;
  height: 270px;
  top: 10%;
  left: 14%;
  background: radial-gradient(circle, rgba(157, 221, 255, 0.30), rgba(157, 221, 255, 0));
}

.glow-b {
  width: 320px;
  height: 320px;
  right: 6%;
  top: 28%;
  background: radial-gradient(circle, rgba(210, 238, 255, 0.24), rgba(210, 238, 255, 0));
}

.glow-c {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: 42%;
  background: radial-gradient(circle, rgba(118, 207, 255, 0.18), rgba(118, 207, 255, 0));
}

.signature-viewer-shell {
  position: relative;
  width: min(100%, 620px);
  min-height: 650px;
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.signature-viewer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.92), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(143, 208, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 44%, rgba(189, 228, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(223, 244, 255, 0.16));
  z-index: -4;
}

.signature-viewer-shell::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 50%, rgba(122, 208, 255, 0.06), transparent 42%);
  pointer-events: none;
  z-index: -3;
}

.signature-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 208, 236, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 208, 236, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  z-index: 0;
}

.signature-tooth-viewer {
  position: relative;
  width: 100%;
  height: 650px;
  --poster-color: transparent;
  background: transparent;
  cursor: grab;
  z-index: 2;
  filter:
    drop-shadow(0 34px 64px rgba(72, 128, 168, 0.18)) drop-shadow(0 0 26px rgba(162, 224, 255, 0.18));
}

.signature-tooth-viewer:active {
  cursor: grabbing;
}

.signature-tooth-viewer::part(default-progress-bar),
.signature-tooth-viewer::part(default-progress-mask),
.signature-tooth-viewer::part(default-ar-button),
.signature-tooth-viewer::part(default-exit-webxr-button) {
  display: none;
}

.viewer-reflection,
.signature-sheen {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.signature-sheen {
  inset: 16px 56px 80px 56px;
  border-radius: 60px;
  background:
    linear-gradient(110deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.10) 16%,
      rgba(255, 255, 255, 0.00) 34%,
      rgba(255, 255, 255, 0.07) 64%,
      rgba(255, 255, 255, 0.00) 100%);
  mix-blend-mode: screen;
}

.viewer-reflection {
  left: 50%;
  bottom: 44px;
  width: 280px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(70, 118, 155, 0.22), rgba(70, 118, 155, 0) 70%);
  filter: blur(18px);
}

.hero-stage-base {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 340px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(82, 131, 168, 0.16) 0%, rgba(82, 131, 168, 0.08) 34%, rgba(82, 131, 168, 0) 72%);
  filter: blur(12px);
}

.floating-chip {
  position: absolute;
  z-index: 6;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(46, 92, 128, 0.12);
  backdrop-filter: blur(14px);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.chip-1 {
  top: 10%;
  left: 2%;
}

.chip-2 {
  top: 18%;
  right: 0%;
}

.chip-3 {
  bottom: 10%;
  left: 8%;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 251, 255, 0), rgba(245, 251, 255, 1));
}

/* MARQUEE */
.signature-marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(121, 151, 181, 0.10);
  border-bottom: 1px solid rgba(121, 151, 181, 0.10);
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(14px);
}

.marquee-track {
  display: flex;
  gap: 1.2rem;
  white-space: nowrap;
  width: max-content;
  animation: marqueeMove 24s linear infinite;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* STORY */
.immersive-story {
  overflow: clip;
}

.story-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  border-radius: 34px;
  padding: 1rem;
}

.story-visual {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 247, 255, 0.92));
  border: 1px solid rgba(121, 151, 181, 0.12);
}

.story-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 650ms ease, transform 900ms ease;
}

.story-panel.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(30, 70, 103, 0.12);
  backdrop-filter: blur(16px);
}

.story-overlay strong {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 0.15rem;
}

.story-overlay span {
  color: var(--text-soft);
}

.story-steps {
  display: grid;
  gap: 1.2rem;
}

.story-step {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(121, 151, 181, 0.10);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.story-step.is-current {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 207, 255, 0.22);
}

.step-number {
  display: inline-flex;
  margin-bottom: 0.6rem;
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.story-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.story-step p {
  margin: 0;
  color: var(--text-soft);
}

/* VALUE */
.value-grid,
.specialists-grid,
.cases-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.value-card,
.specialist-card,
.case-card,
.contact-item,
.signature-cta-panel,
.map-card {
  border-radius: 30px;
}

.value-card {
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(223, 244, 255, 0.8));
  color: var(--primary-deep);
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.value-card h3,
.specialist-copy h3,
.case-copy h3,
.contact-item h3,
.showcase-point h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.value-card p,
.specialist-copy p,
.case-copy p,
.contact-item p,
.showcase-point p,
.footer-brand p,
.footer-links a,
.footer-contact a,
.footer-bottom p,
.signature-cta-copy p,
.contact-copy p,
.showcase-copy p {
  margin: 0;
  color: var(--text-soft);
}

/* SPECIALISTS */
.specialists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.specialist-card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-radius: 30px;
  min-width: 0;
}

.specialist-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eef6fc;
}

.specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.specialist-copy {
  padding: 1.15rem 1rem 1.2rem;
}

.specialist-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: none;
}

.specialist-copy p {
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}

.specialist-role {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* SOLO en PC: 4 columnas */
@media (min-width: 1040px) {
  .specialists-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .specialist-image {
    aspect-ratio: 4 / 3.2;
  }

  .specialist-copy {
    padding: 1.25rem;
  }

  .specialist-copy h3 {
    font-size: 1.05rem;
    line-height: 1.18;
  }

  .specialist-copy p {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

/* SHOWCASE */
.showcase-layout,
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.showcase-copy h2,
.contact-copy h2,
.signature-cta-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.showcase-points,
.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.showcase-point,
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
}

.showcase-point i,
.contact-item i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 244, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.showcase-stack {
  position: relative;
  min-height: 620px;
}

.stack-card {
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card-a {
  width: 62%;
  height: 320px;
  top: 2%;
  left: 0;
}

.stack-card-b {
  width: 58%;
  height: 360px;
  top: 26%;
  right: 0;
}

.stack-card-c {
  width: 42%;
  min-height: 180px;
  bottom: 0;
  left: 16%;
  padding: 1rem;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 255, 0.78));
}

.stack-mini-panel {
  border-radius: 20px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-mini-panel strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* CASES */

/* CASES */
.cases-grid {
  display: grid;
  gap: 1rem;
}

.case-card {
  overflow: hidden;
  border-radius: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
}

.case-frame {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 247, 255, 0.74));
  border-bottom: 1px solid rgba(121, 151, 181, 0.10);
}

.before-after-single {
  --pos: 50%;
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(121, 151, 181, 0.10);
  background: linear-gradient(180deg, #f9fcff, #f3f8fc);
  isolation: isolate;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer-after {
  z-index: 1;
}

.ba-layer-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-single-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 4;
  pointer-events: none;
}

.ba-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(170, 216, 245, 0.95));
  box-shadow:
    0 0 0 1px rgba(84, 128, 162, 0.08),
    0 0 16px rgba(120, 188, 231, 0.25);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 18px 34px rgba(40, 92, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.95rem;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ba-range::-moz-range-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ba-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.ba-range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.ba-label {
  position: absolute;
  bottom: 14px;
  z-index: 7;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(34, 66, 92, 0.12);
  pointer-events: none;
}

.ba-label-before {
  left: 14px;
}

.ba-label-after {
  right: 14px;
}

.case-copy {
  padding: 1.2rem 1.2rem 1.3rem;
}

.case-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.case-copy p {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 759px) {
  .before-after-single {
    height: 210px;
  }

  .ba-handle,
  .ba-range::-webkit-slider-thumb,
  .ba-range::-moz-range-thumb {
    width: 52px;
    height: 52px;
  }
}



/* CTA */
.signature-cta-panel {
  padding: 2rem;
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.signature-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* CONTACT */
.contact-list {
  margin-top: 1.5rem;
}

.map-card {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.map-frame {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 24px;
}

.map-actions {
  display: flex;
  justify-content: center;
}

/* FOOTER */
.site-footer {
  padding: 2rem 0 1.6rem;
  border-top: 1px solid rgba(121, 151, 181, 0.12);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-grid {
  gap: 2rem;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  padding-top: 1.8rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(121, 151, 181, 0.12);
}

/* FLOATING WA */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #33d66d, #0ea04a);
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 18px 34px rgba(23, 132, 69, 0.32);
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 40px rgba(23, 132, 69, 0.38);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* TILT */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.value-card:hover,
.specialist-card:hover,
.story-step:hover,
.showcase-point:hover,
.contact-item:hover,
.case-card:hover {
  transform: translateY(-4px);
}

/* ANIMATIONS */
@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE */
@media (min-width: 760px) {

  .hero-stats,
  .value-grid,
  .cases-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signature-cta-panel {
    grid-template-columns: 1fr auto;
    padding: 2.2rem 2.4rem;
  }
}


@media (min-width: 1040px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.78rem 1rem;
  }

  .nav-cta {
    width: auto;
  }

  .hero-shell,
  .showcase-layout,
  .contact-grid {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .story-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .specialists-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
  }
}



@media (max-width: 1039px) {
  .hero-stage {
    min-height: 560px;
  }

  .signature-viewer-shell {
    min-height: 560px;
  }

  .signature-tooth-viewer {
    height: 560px;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    position: relative;
    top: 0;
  }

  .showcase-stack {
    min-height: 520px;
  }

  .stack-card-a {
    width: 68%;
  }

  .stack-card-b {
    width: 60%;
  }

  .stack-card-c {
    width: 50%;
    left: 10%;
  }
}

@media (max-width: 759px) {
  .section {
    padding: 4.8rem 0;
  }

  .hero-copy h1 {
    max-width: 8ch;
  }

  .hero-stage {
    min-height: 460px;
  }

  .signature-viewer-shell {
    min-height: 460px;
    border-radius: 30px;
  }

  .signature-tooth-viewer {
    height: 460px;
  }

  .floating-chip {
    font-size: 0.8rem;
    padding: 0.65rem 0.85rem;
  }

  .chip-1 {
    left: 0;
    top: 8%;
  }

  .chip-2 {
    right: 0;
    top: 16%;
  }

  .chip-3 {
    left: 4%;
    bottom: 8%;
  }

  .story-visual {
    min-height: 360px;
  }

  .story-panel img {
    object-fit: cover;
  }

  .showcase-stack {
    min-height: 420px;
  }

  .stack-card-a {
    width: 72%;
    height: 220px;
  }

  .stack-card-b {
    width: 64%;
    height: 250px;
    top: 30%;
  }

  .stack-card-c {
    width: 58%;
    left: 8%;
    min-height: 150px;
  }

  .case-split {
    min-height: 220px;
  }

  .map-frame {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .tilt-card,
  .parallax-card {
    transform: none !important;
  }
}