/* =========================================================
   Consultorio San Gregorio — estilos
   Paleta del logo: celeste #5BC0E0 y gris #58595B, con un
   azul profundo (#12313D) para las bandas oscuras.
   ========================================================= */

/* ---------- Fuentes locales (variables) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --color-primary: #5bc0e0;
  --color-primary-hover: #72cbe7;
  --color-primary-dark: #1b7698;
  --color-secondary: #c8e6f3;
  --color-accent: #58595b;
  --color-neutral: #a7a9ac;
  --color-on-primary: #0b2530;
  --color-deep: #12313d;
  --color-deep-2: #0c242d;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fa;
  --color-bg-tint: #eef7fb;
  --color-heading: #12313d;
  --color-text: #2e3b41;
  --color-text-light: #536269;
  --color-on-dark: #c6d6dc;
  --color-border: #dfe8ec;
  --color-whatsapp: #25d366;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 49, 61, 0.06), 0 4px 12px rgba(18, 49, 61, 0.05);
  --shadow-md: 0 12px 28px rgba(18, 49, 61, 0.1), 0 2px 6px rgba(18, 49, 61, 0.05);
  --shadow-lg: 0 24px 48px rgba(18, 49, 61, 0.14), 0 6px 14px rgba(18, 49, 61, 0.06);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-primary-dark);
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}
h1,
h2 {
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--color-secondary);
  color: var(--color-deep);
}

.ico {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-deep);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}
@media (min-width: 1280px) {
  .container {
    padding: 0;
  }
}
section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p {
  margin-top: 16px;
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
/* la sonrisa del logo, en pequeño */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 9px;
  border: 2.5px solid var(--color-primary);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.eyebrow.on-dark {
  color: var(--color-secondary);
}

.divider {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(91, 192, 224, 0.35), transparent);
}
.divider svg {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 44px;
  height: 14px;
  transform: translateX(-50%);
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  min-height: 48px;
  line-height: 1.2;
}
.btn .ico {
  width: 1.2em;
  height: 1.2em;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 8px 20px rgba(91, 192, 224, 0.32);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 192, 224, 0.42);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-deep);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #0b3a1d;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}
.pulse {
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(91, 192, 224, 0.32), 0 0 0 0 rgba(91, 192, 224, 0.45);
  }
  50% {
    box-shadow: 0 8px 20px rgba(91, 192, 224, 0.32), 0 0 0 10px rgba(91, 192, 224, 0);
  }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
  background: transparent;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 24px rgba(18, 49, 61, 0.08);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .nav-wrap {
    padding: 0 40px;
  }
}
@media (min-width: 1280px) {
  .nav-wrap {
    padding: 0;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(9, 28, 36, 0.18);
  transition: box-shadow 0.3s ease;
}
.is-solid .brand-logo {
  box-shadow: 0 0 0 1px var(--color-border);
}
.brand-logo img {
  height: 36px;
  width: auto;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 750;
  font-size: 1.05rem;
  line-height: 1.1;
  color: #fff;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 3px;
}
.is-solid .brand-name {
  color: var(--color-heading);
}
.is-solid .brand-name small {
  color: var(--color-primary-dark);
  opacity: 1;
}
@media (max-width: 360px) {
  .brand-name small {
    display: none;
  }
}
.nav-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
  transition:
    background-color 0.2s ease,
    color 0.3s ease;
}
.nav-toggle .ico {
  width: 28px;
  height: 28px;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}
.is-solid .nav-toggle {
  color: var(--color-heading);
}
.is-solid .nav-toggle:hover {
  background: var(--color-bg-tint);
}
.nav-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 18px 30px rgba(18, 49, 61, 0.15);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}
.nav-menu a:hover {
  color: var(--color-primary-dark);
}
.nav-menu .nav-cta {
  margin-top: 18px;
  border: 0;
  justify-content: center;
  color: var(--color-on-primary);
  display: flex;
}
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .nav-menu ul {
    flex-direction: row;
    gap: 28px;
  }
  .nav-menu a {
    border: 0;
    padding: 8px 0;
    color: #fff;
    font-size: 0.94rem;
    position: relative;
  }
  .nav-menu ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-menu ul a:hover::after,
  .nav-menu ul a[aria-current="true"]::after {
    transform: scaleX(1);
  }
  .nav-menu a:hover {
    color: var(--color-secondary);
  }
  .is-solid .nav-menu a {
    color: var(--color-heading);
  }
  .is-solid .nav-menu a:hover {
    color: var(--color-primary-dark);
  }
  .nav-menu .nav-cta,
  .is-solid .nav-menu .nav-cta {
    margin: 0;
    padding: 10px 24px;
    min-height: 44px;
    color: var(--color-on-primary);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 124%;
  background-image:
    linear-gradient(180deg, rgba(9, 30, 38, 0.74) 0%, rgba(12, 40, 51, 0.6) 45%, rgba(9, 30, 38, 0.86) 100%),
    url("assets/img/hero-consultorio.jpg");
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, rgba(91, 192, 224, 0.16), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  z-index: -1;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 12%;
  left: -80px;
}
.blob-2 {
  width: 240px;
  height: 240px;
  background: var(--color-secondary);
  bottom: 10%;
  right: -60px;
  animation-duration: 8s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}
.hero-content {
  position: relative;
  max-width: 880px;
  padding: calc(var(--header-h) + 24px) 20px 96px;
}
.signature {
  width: min(500px, 88%);
  height: auto;
  margin: 0 auto 18px;
  overflow: visible;
}
.sig-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.sig-arc {
  stroke: #b9bcc0;
  stroke-width: 5;
}
.sig-hook {
  stroke: #b9bcc0;
  stroke-width: 9;
  animation-delay: 1.3s;
  animation-duration: 0.6s;
}
.sig-crown {
  stroke: var(--color-primary);
  stroke-width: 4;
  animation-delay: 0.5s;
  animation-duration: 1.6s;
}
.sig-crown-fill {
  fill: rgba(200, 230, 243, 0.14);
  opacity: 0;
  animation: fadeIn 0.8s ease 1.8s forwards;
}
.sig-thread {
  stroke: #d3d5d8;
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0;
  transform: translateY(-6px);
  animation: thread 0.45s ease forwards;
}
.sig-thread.t1 { animation-delay: 1.6s; }
.sig-thread.t2 { animation-delay: 1.75s; }
.sig-thread.t3 { animation-delay: 1.9s; }
.sig-thread.t4 { animation-delay: 2.05s; }
.sig-thread.t5 { animation-delay: 2.2s; }
.sig-thread.t6 { animation-delay: 2.35s; }
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes thread {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero .eyebrow {
  color: var(--color-secondary);
  justify-content: center;
}
/* encima ya está la sonrisa grande del logo: aquí sobra */
.hero .eyebrow::before {
  display: none;
}
.hero .eyebrow {
  text-wrap: balance;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 span {
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.fade-up {
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards;
}
.d1 {
  animation-delay: 0.2s;
}
.d2 {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll:hover {
  color: #fff;
}
.hero-scroll .ico {
  width: 26px;
  height: 26px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@media (max-height: 700px) {
  .hero-scroll {
    display: none;
  }
}

/* ---------- Aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Icono con forma de diente ---------- */
.icon-tooth {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  border-radius: 12px 12px 30px 30px;
  margin-bottom: 20px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease);
}
.icon-tooth .ico {
  width: 28px;
  height: 28px;
}

/* ---------- Tarjetas ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s ease,
    opacity 0.7s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 192, 224, 0.6);
}

/* ---------- Nosotros ---------- */
.value-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value-card {
  padding: 34px 28px 30px;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.value-card:hover::before {
  transform: scaleX(1);
}
.value-card:hover .icon-tooth {
  background: var(--color-primary);
  color: var(--color-on-primary);
  transform: rotate(-4deg);
}
.value-card h3 {
  margin-bottom: 10px;
}
.value-card p {
  color: var(--color-text-light);
  font-size: 1rem;
}
.bg-alt {
  background: var(--color-bg-alt);
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-bg-tint);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-media img {
  transform: scale(1.05);
}
.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(9, 28, 36, 0.12);
}
.service-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.service-body .icon-tooth {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
  width: 64px;
  height: 64px;
  box-shadow: var(--shadow-sm);
}
.service-card:hover .service-body .icon-tooth {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.service-body h3 {
  margin-bottom: 10px;
}
.service-body p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 16px;
}
.service-list {
  list-style: none;
  margin-bottom: 24px;
  display: grid;
  gap: 6px;
}
.service-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--color-text);
}
.service-list .ico {
  width: 18px;
  height: 18px;
  color: var(--color-primary-dark);
  margin-top: 4px;
}
.service-card .btn {
  margin-top: auto;
  padding: 12px 24px;
  width: 100%;
}
.services-note {
  text-align: center;
  margin: 48px auto 0;
  max-width: 560px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Banda oscura: cifras y proceso ---------- */
.dark-band {
  background-color: var(--color-deep);
  color: #e6eef1;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(91, 192, 224, 0.14), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='44'%3E%3Cpath d='M14 16 Q36 34 58 16' fill='none' stroke='%235BC0E0' stroke-opacity='.07' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.dark-band h2,
.dark-band h3 {
  color: #fff;
}
.dark-band .section-head p {
  color: var(--color-on-dark);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-bottom: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(200, 230, 243, 0.14);
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat + .stat {
    border-left: 1px solid rgba(200, 230, 243, 0.12);
  }
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--color-on-dark);
  margin-top: 6px;
}
.steps {
  list-style: none;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  padding: 32px 26px;
  border: 1px solid rgba(200, 230, 243, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    opacity 0.7s var(--ease),
    background-color 0.3s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  background: rgba(91, 192, 224, 0.07);
}
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.step p {
  font-size: 0.98rem;
  color: var(--color-on-dark);
}

/* ---------- Galería en mosaico ---------- */
.gallery {
  background: radial-gradient(circle at 30% 70%, rgba(91, 192, 224, 0.06), transparent 60%), #fff;
}
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  margin: 0;
  background: var(--color-bg-tint);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(9, 28, 36, 0.82));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  /* fila 1: sala (ancha) + sonrisa (alta)
     fila 2: procedimiento + implante + sonrisa
     fila 3: instrumental + diagnóstico (ancha) */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 18px;
  }
  .gallery-item {
    aspect-ratio: auto;
  }
  .gallery-item.g-wide {
    grid-column: span 2;
  }
  .gallery-item.g-tall {
    grid-row: span 2;
  }
  .gallery-item.g-tall img {
    object-position: 68% 50%;
  }
}

/* ---------- Testimonios ---------- */
.bg-tint {
  background: var(--color-bg-tint);
}
.testi-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testi {
  padding: 36px 30px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.testi:hover {
  transform: translateY(-4px);
}
.testi-quote {
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--color-secondary);
}
.stars {
  display: flex;
  gap: 2px;
  color: #f2b01e;
  margin-bottom: 16px;
}
.stars .ico {
  width: 20px;
  height: 20px;
}
.testi blockquote {
  font-size: 1.04rem;
  color: var(--color-text);
  margin-bottom: 24px;
  flex: 1;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-deep);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--color-secondary);
}
.testi-person strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--color-heading);
}
.testi-person span:not(.avatar) {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- Preguntas frecuentes ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.faq-item:hover {
  border-color: rgba(91, 192, 224, 0.6);
}
.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.faq-item h3 {
  font-size: inherit;
  font-weight: inherit;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--color-heading);
  border-radius: var(--radius);
}
.faq-q:hover {
  color: var(--color-primary-dark);
}
.faq-q .ico {
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 50%;
  background: var(--color-bg-tint);
  color: var(--color-primary-dark);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s ease,
    color 0.3s ease;
}
.faq-item.open .faq-q .ico {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding: 0 24px 22px;
  color: var(--color-text-light);
}

/* ---------- Llamada a la acción ---------- */
.cta-band {
  text-align: center;
  padding: 100px 0;
}
.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 16px;
}
.cta-band p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--color-on-dark);
  font-size: 1.125rem;
}
.cta-sig {
  width: 200px;
  height: auto;
  margin: 0 auto 24px;
  opacity: 0.9;
  display: block;
}
.cta-sig path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: start;
  }
}
.contact-form {
  padding: 34px 24px;
  background: #fff;
}
.contact-form:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
@media (min-width: 768px) {
  .contact-form {
    padding: 44px 40px;
  }
}
.contact-form h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}
.contact-form > p {
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-size: 1rem;
}
.form-row {
  display: grid;
  gap: 0 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-heading);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  width: 100%;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b7698'%3E%3Cpath d='M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7d8a90;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(91, 192, 224, 0.2);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #c0392b;
  background-color: #fdf3f2;
}
.field-error {
  font-size: 0.86rem;
  color: #b03a2e;
  display: none;
}
.field.invalid .field-error {
  display: block;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .btn {
  width: 100%;
}
.form-status:empty {
  display: none;
}
.form-status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.form-status > .ico {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}
.form-status.ok {
  background: #eaf7ef;
  border: 1px solid #9ed3b2;
  color: #1f5e3a;
}
.form-status.fallback {
  background: var(--color-bg-tint);
  border: 1px solid var(--color-secondary);
  color: var(--color-heading);
}
.form-status a:not(.btn) {
  color: inherit;
  font-weight: 700;
}
.form-status .btn {
  width: auto;
  margin-top: 12px;
  padding: 10px 22px;
  min-height: 44px;
  font-size: 0.95rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.3s ease,
    transform 0.35s var(--ease),
    opacity 0.7s var(--ease);
}
.info-item:hover {
  border-color: rgba(91, 192, 224, 0.6);
  transform: translateY(-3px);
}
.info-item .icon-tooth {
  width: 48px;
  height: 48px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 10px 10px 24px 24px;
}
.info-item .icon-tooth .ico {
  width: 22px;
  height: 22px;
}
.info-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-bottom: 2px;
}
.info-item p,
.info-item a {
  font-size: 0.98rem;
  color: var(--color-text-light);
  text-decoration: none;
}
.info-item a {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.info-item a:hover {
  text-decoration: underline;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
  border: 1px solid var(--color-border);
}
.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--color-deep-2);
  color: var(--color-on-dark);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  }
}
.footer-logo {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: 18px;
}
.footer-logo img {
  height: 92px;
  width: auto;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer p {
  font-size: 0.98rem;
}
.footer-follow {
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 0;
}
/* objetivos táctiles de ~40px sin cambiar el aspecto */
.footer-links a,
.footer-contact a,
.info-item a {
  display: inline-block;
  padding: 8px 0;
  margin: -8px 0;
}
.footer-links a {
  margin: 0;
}
.footer-links a,
.footer-contact a {
  color: var(--color-on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-primary);
}
.footer-contact {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.98rem;
}
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact .ico {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
  margin-top: 3px;
}
.social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social a {
  width: 46px;
  height: 46px;
  border-radius: 12px 12px 23px 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--ease);
}
.social a .ico {
  width: 22px;
  height: 22px;
}
.social a:hover {
  background: var(--color-whatsapp);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: #93a6ad;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (max-width: 767px) {
  /* deja sitio al botón flotante de WhatsApp */
  .footer-bottom {
    padding-bottom: 96px;
  }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  animation: waPulse 2.4s infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float .ico {
  width: 32px;
  height: 32px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.5),
      0 8px 20px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(37, 211, 102, 0),
      0 8px 20px rgba(37, 211, 102, 0.35);
  }
}

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