:root {
  --azul-profundo: #0A3D62;
  --azul-electrico: #006CFF;
  --gris-claro: #F7F9FA;
  --gris-carbon: #333333;
  --blanco: #FFFFFF;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--gris-carbon);
  background-color: var(--blanco);
  line-height: 1.6;
}

.page-about,
.page-home,
.page-specialties {
  position: relative;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.page-about::before,
.page-home::before,
.page-specialties::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top, rgba(0, 108, 255, 0.06) 0%, rgba(0, 108, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 248, 252, 0.9) 100%);
  pointer-events: none;
}

.page-about::after,
.page-home::after,
.page-specialties::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(243, 247, 251, 0.16) 100%),
    url("../img/patologias/sobre-mi-fondo-camino.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.52;
  filter: blur(0.3px);
  pointer-events: none;
}

.page-home::after,
.page-specialties::after {
  opacity: 0.3;
  filter: blur(0.7px);
}

.page-about header,
.page-about .page,
.page-about footer,
.page-home header,
.page-home .page,
.page-home footer,
.page-specialties header,
.page-specialties .page,
.page-specialties footer {
  position: relative;
  z-index: 1;
}

.page-about header,
.page-home header,
.page-specialties header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.page-about .page,
.page-home .page,
.page-specialties .page {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-about.page-is-ready .page,
.page-home.page-is-ready .page,
.page-specialties.page-is-ready .page {
  opacity: 1;
}

.page-about header,
.page-home header,
.page-specialties header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 233, 240, 0.9);
}

.page-about footer,
.page-home footer,
.page-specialties footer {
  background:
    linear-gradient(180deg, rgba(18, 66, 102, 0.98) 0%, rgba(27, 89, 136, 1) 100%);
  color: white;
  backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(10, 61, 98, 0.12);
}

.page-about .section,
.page-about .cta,
.page-home .section,
.page-home .cta,
.page-specialties .section,
.page-specialties .cta {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 228, 236, 0.8);
  border-radius: 24px;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-shadow: 0 16px 36px rgba(10, 61, 98, 0.06);
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--azul-profundo);
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* NAVBAR */
header {
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E9F0;
  padding: 0.4rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  color: var(--azul-profundo);
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--azul-profundo);
  margin-left: 1rem;
  line-height: 1.1;
}

nav a:hover {
  color: var(--azul-electrico);
}

/* CONTENIDO */
.page, .section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-electrico));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.profile-photo {
  min-height: 280px;
  height: 100%;
}

.profile-photo-figure {
  margin: 0;
}

.profile-photo-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 22px;
  object-fit: cover;
}


.portal-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-entry-note {
  margin-top: 1rem;
  color: #52687b;
}

.hero-open {
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.hero-intro-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 228, 236, 0.88);
  border-radius: 24px;
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: 0 14px 34px rgba(10, 61, 98, 0.08);
}

/* CARDS */
.cards, .cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--gris-claro);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #dde4ec;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover {
  border-color: var(--azul-electrico);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(10, 61, 98, 0.11);
}

.card-link h3 {
  color: var(--azul-electrico);
}

.feature-figure {
  margin: 1.5rem 0 0;
}

.feature-figure img {
  display: block;
  width: 100%;
  max-width: 860px;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.profile-photo-shell {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

.feature-figure .profile-photo-shell .profile-photo-image {
  width: 100%;
  max-width: none;
  margin: 0;
}

.feature-figure .profile-photo-shell .profile-photo-seal {
  position: absolute;
  left: clamp(0.8rem, 2vw, 1.05rem);
  bottom: clamp(0.8rem, 2vw, 1.05rem);
  width: clamp(86px, 28%, 128px);
  max-width: 128px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.76;
}

.feature-figure .specialties-photo-shell .profile-photo-seal {
  left: auto;
  right: clamp(0.05rem, 0.4vw, 0.18rem);
  bottom: clamp(0.05rem, 0.4vw, 0.18rem);
}

.faq-city-photo {
  width: 100% !important;
  max-width: 860px;
  max-height: none;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.feature-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #5a6570;
}

.brand-figure {
  text-align: center;
}

.brand-figure img {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  padding: 1.25rem;
}

.brand-figure figcaption {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cases-kids-logo {
  max-width: 430px !important;
}

.cases-complex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cases-complex-photo,
.cases-complex-model {
  margin: 0;
}

.cases-complex-photo img {
  margin: 0 auto;
}

.cases-complex-model model-viewer {
  margin-left: auto;
  height: 360px;
}

.cases-complex-caption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #5a6570;
}

.consultation-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: center;
}

.consultation-brand {
  margin: 0;
}

.consultation-brand img {
  max-width: 320px;
}

.profile-brand {
  margin: 0;
}

.profile-brand img {
  max-width: 430px;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.bio-layout .model-figure {
  margin: 0;
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-gallery figure {
  margin: 0;
}

.feature-gallery img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.feature-gallery video {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  background: #0b2438;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.form-shell {
  display: grid;
  gap: 1.5rem;
}

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

.form-field,
.form-field-full {
  display: grid;
  gap: 0.42rem;
}

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

.form-field label,
.form-field-full label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--azul-profundo);
}

.form-field input,
.form-field select,
.form-field textarea,
.form-field-full input,
.form-field-full select,
.form-field-full textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid #cfd8e3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gris-carbon);
  font: inherit;
}

.form-field input[readonly],
.form-field-full input[readonly] {
  background: linear-gradient(180deg, #f3f6f9 0%, #edf2f7 100%);
  color: #607181;
  border-color: #d6dee7;
  cursor: not-allowed;
}

.form-field textarea,
.form-field-full textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-field-full input:focus,
.form-field-full select:focus,
.form-field-full textarea:focus {
  outline: none;
  border-color: var(--azul-electrico);
  box-shadow: 0 0 0 4px rgba(0, 108, 255, 0.11);
}

.field-help {
  margin-bottom: 0;
  font-size: 0.84rem;
  color: #5f7384;
}

.field-help strong {
  color: var(--azul-profundo);
}

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

.form-cluster-title {
  margin-bottom: 0;
}

.mini-legal-box {
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(239, 245, 250, 0.95) 100%);
  border: 1px solid #dbe4ed;
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.mini-legal-box p:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #cfd8e3;
  background: rgba(255, 255, 255, 0.82);
  color: var(--azul-profundo);
  text-decoration: none;
  font-weight: 700;
}

.mock-caption {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #6a7a88;
}

.priority-stack {
  display: grid;
  gap: 1.2rem;
}

.key-selector-column {
  display: grid;
  gap: 0.7rem;
  max-width: 240px;
}

.key-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: 16px;
  border: 1px solid #cfd8e3;
  background: rgba(255, 255, 255, 0.96);
  color: var(--azul-profundo);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(10, 61, 98, 0.05);
}

.key-chip.is-active {
  border-color: var(--azul-electrico);
  background: linear-gradient(180deg, rgba(0, 108, 255, 0.12) 0%, rgba(0, 108, 255, 0.06) 100%);
  box-shadow: 0 12px 24px rgba(0, 108, 255, 0.12);
}

.audio-entry-box {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d9e3ed;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 252, 0.95) 100%);
}

.audio-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: var(--azul-profundo);
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(10, 61, 98, 0.18);
}

.audio-trigger-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid #cfd8e3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--azul-profundo);
  text-decoration: none;
  font-weight: 700;
}

.collapsible-section {
  border: 1px solid #d9e3ed;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.collapsible-section summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--azul-profundo);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.collapsible-section[open] summary::after {
  content: "-";
}

.collapsible-content {
  padding: 0 1.15rem 1.1rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.62s ease, transform 0.62s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.reveal-on-scroll[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.reveal-on-scroll[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

.feature-figure video {
  display: block;
  width: 100%;
  max-width: 860px;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  background: #0b2438;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.bone-healing-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.bone-healing-process::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 4%;
  right: 4%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 61, 98, 0.18) 0%, rgba(0, 108, 255, 0.5) 100%);
}

.bone-healing-step {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  border: 1px solid #dde4ec;
  border-radius: 18px;
  padding: 3.5rem 1.25rem 1.25rem;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.bone-step-number {
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--azul-electrico);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 108, 255, 0.22);
}

.bone-healing-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.bone-healing-step p {
  margin-bottom: 0;
  color: #455465;
}

.feature-gallery figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: #5a6570;
}

.fracture-media figure {
  display: flex;
  flex-direction: column;
}

.fracture-media img,
.fracture-media video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.fracture-media video {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: none;
}

.fracture-bone-image {
  width: 82% !important;
  max-width: 82% !important;
  max-height: 1100px !important;
  margin: 0 auto;
  object-fit: contain;
  background: #f7fafe;
}

.annotated-figure {
  position: relative;
}

.annotated-figure .annotation-tag {
  position: absolute;
  z-index: 2;
  max-width: 42%;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(247, 244, 235, 0.96);
  color: #8a4c1d;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(10, 61, 98, 0.08);
}

.annotated-figure .annotation-note {
  position: absolute;
  z-index: 2;
  max-width: 34%;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #24334a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(10, 61, 98, 0.08);
}

.cropped-figure {
  max-width: 520px;
}

.cropped-window {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
  aspect-ratio: 4 / 5;
  background: #f6f7fb;
}

.cropped-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  transform: scale(1.22);
  transform-origin: left center;
}

.model-figure {
  margin: 1.5rem 0 0;
}

.model-figure model-viewer {
  display: block;
  width: 100%;
  max-width: 860px;
  height: 420px;
  border-radius: 16px;
  border: 1px solid #dde4ec;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #355575 0%, #163754 55%, #0b2438 100%);
  box-shadow: 0 16px 34px rgba(10, 61, 98, 0.16);
  --progress-bar-color: var(--azul-electrico);
}

.model-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #5a6570;
}

.brand-figure img,
.consultation-brand img,
.profile-brand img,
.cases-kids-logo {
  cursor: zoom-in;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  transform-origin: center center;
}

.brand-figure img.is-zoomed,
.consultation-brand img.is-zoomed,
.profile-brand img.is-zoomed,
.cases-kids-logo.is-zoomed {
  transform: scale(1.12);
  box-shadow: 0 20px 38px rgba(10, 61, 98, 0.16);
  cursor: zoom-out;
}

.profile-brand img.is-zoomed {
  transform: scale(1.5);
}

.trust-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.trust-list li::marker {
  color: var(--azul-electrico);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.button-row .btn-primary {
  margin-top: 0;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background-color: var(--gris-claro);
  color: var(--azul-profundo);
  text-decoration: none;
  font-family: 'Montserrat';
  font-weight: 600;
  border: 1px solid #dde4ec;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.info-box {
  background-color: var(--gris-claro);
  border: 1px solid #dde4ec;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* BOTÓN */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background-color: var(--azul-electrico);
  color: white;
  text-decoration: none;
  font-family: 'Montserrat';
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 61, 98, 0.12);
}

.floating-como-empezar {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background-color: var(--azul-electrico);
  color: var(--blanco);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-como-empezar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-como-empezar:hover {
  box-shadow: 0 16px 32px rgba(10, 61, 98, 0.28);
}

/* CTA */
.cta {
  background-color: var(--azul-profundo);
  color: white;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}

/* FOOTER */
footer {
  background:
    linear-gradient(180deg, rgba(18, 66, 102, 0.98) 0%, rgba(27, 89, 136, 1) 100%);
  color: white;
  text-align: center;
  padding: 2.8rem 1.5rem 2.4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

footer > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

footer h3 {
  color: white;
  letter-spacing: 0.02em;
  font-size: 1.42rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

footer h3.footer-brand-link {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

footer h3.footer-brand-link:hover {
  opacity: 0.92;
}

footer p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

footer h3 + p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
}

footer div:not(.footer-legal-links):not(.footer-patient-access) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.footer-patient-access {
  max-width: 250px;
  margin: 1.8rem auto 1.4rem;
  padding: 1.05rem 1rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.footer-patient-title {
  margin-bottom: 0.5rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: white;
}

.footer-patient-qr {
  display: block;
  width: min(100%, 150px);
  height: auto;
  margin: 0 auto 0.75rem;
  padding: 0.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.footer-patient-copy {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

/* FOOTER LINKS */
footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

footer a:hover {
  color: white;
}

footer a.footer-highlight {
  display: inline-block;
  background-color: var(--azul-electrico);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 108, 255, 0.18);
}

.footer-highlight-wrap {
  margin: 0.7rem auto 0;
  text-align: center;
}

footer .footer-legal-links {
  margin-top: 1.15rem;
  font-size: 0.72rem;
  opacity: 0.76;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
}

footer .footer-legal-links a {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    margin-left: 0;
    margin-right: 0.8rem;
    margin-top: 0.35rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .page-about::after,
  .page-home::after,
  .page-specialties::after {
    opacity: 0.4;
  }

  .hero-stack {
    max-width: 420px;
    margin: 0 auto;
  }

  .consultation-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .consultation-brand {
    justify-self: center;
  }

  .cards, .cards-3 {
    grid-template-columns: 1fr;
  }

  .cases-complex-hero {
    grid-template-columns: 1fr;
  }

  .cases-complex-model model-viewer {
    margin-left: 0;
    max-width: 100%;
    height: 320px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .feature-gallery {
    grid-template-columns: 1fr;
  }

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

  .bone-healing-process::before {
    display: none;
  }

  .model-figure model-viewer {
    height: 340px;
  }

  .annotated-figure .annotation-tag,
  .annotated-figure .annotation-note {
    max-width: 48%;
    font-size: 0.88rem;
  }

  .button-row {
    flex-direction: column;
  }

  .footer-patient-access {
    max-width: 240px;
    padding: 1rem 0.9rem 0.85rem;
  }

  .footer-patient-qr {
    width: min(100%, 145px);
  }

  .floating-como-empezar {
    right: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
