/* ==================================================================== *\
   Sanatorio Boratti — hoja de estilos
   1.  Variables
   2.  Reset y base
   3.  Preloader
   4.  Sistema de reveal
   5.  Hero
   6.  Cabecera y navegación
   7.  Escenario y carrusel
   8.  Pie del hero
   9.  Tarjetas de acceso
   10. Responsive
   11. Vista de contacto (bento grid)
\* ==================================================================== */

/* -------------------------------------------------------------------- *\
   1. Variables
\* -------------------------------------------------------------------- */

:root {
  --bg: #0b1220;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-strong: rgba(255, 255, 255, 0.9);

  --boratti-blue: #1a6fe8;
  --boratti-blue-soft: #3d8bf0;
  --boratti-red: #e22428;
  --slide-color: #1a6fe8;

  --overlay: rgba(6, 16, 38, 0.52);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --carousel-duration: 1.1s;
  --portrait-scale: 1.08;
  --display: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;

  --pad-top: max(1rem, env(safe-area-inset-top));
  --pad-bottom: max(1rem, env(safe-area-inset-bottom));
  --pad-left: max(1rem, env(safe-area-inset-left));
  --pad-right: max(1rem, env(safe-area-inset-right));

  /* Alto de la cabecera fija: logo + espacio arriba y abajo */
  --logo-h: clamp(3.25rem, 13vw, 5.75rem);
  --header-h: calc(var(--logo-h) + var(--pad-top) + 0.85rem);
}

/* -------------------------------------------------------------------- *\
   2. Reset y base
\* -------------------------------------------------------------------- */

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

/* El atributo hidden gana sobre cualquier display declarado en las clases */
[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading,
body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 5px;
  border-radius: 6px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------- *\
   3. Preloader
\* -------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, #16233d 0%, transparent 60%),
    radial-gradient(90% 70% at 50% 100%, #131b2e 0%, transparent 62%),
    #080d17;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1s var(--ease-soft),
    visibility 1s var(--ease-soft);
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  max-width: 130vw;
  max-height: 130vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: orb-float 9s var(--ease-inout) infinite alternate;
}

.preloader::before {
  top: -16rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(26, 95, 180, 0.55) 0%, transparent 70%);
}

.preloader::after {
  right: -14rem;
  bottom: -18rem;
  background: radial-gradient(circle, rgba(226, 36, 40, 0.3) 0%, transparent 70%);
  animation-delay: -4s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
}

.preloader__logo {
  display: block;
  height: clamp(3.25rem, 13vw, 5.5rem);
  width: auto;
  max-width: min(78vw, 26rem);
  object-fit: contain;
  mix-blend-mode: screen;
  animation: loader-logo 1.5s var(--ease-soft) both;
}

.preloader__track {
  position: relative;
  width: min(74vw, 19rem);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: loader-fade 1.1s var(--ease-soft) 0.35s both;
}

.preloader__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--boratti-blue) 0%,
    var(--boratti-blue-soft) 55%,
    var(--boratti-red) 100%
  );
  box-shadow: 0 0 16px rgba(74, 154, 232, 0.7);
  transition: width 0.25s linear;
}

.preloader__pct {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  animation: loader-fade 1.1s var(--ease-soft) 0.5s both;
}

@keyframes loader-logo {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes loader-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orb-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 5%, 0) scale(1.12); }
}

/* -------------------------------------------------------------------- *\
   4. Sistema de reveal
\* -------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 22px), 0);
  transition:
    opacity 1.1s var(--ease-soft),
    transform 1.1s var(--ease-soft);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

body.is-ready [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* -------------------------------------------------------------------- *\
   5. Hero
\* -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  /* Ocupa toda la pantalla: la sección siguiente recién asoma al scrollear.
     El piso de 33rem evita que el contenido se apriete en pantallas bajas. */
  min-height: max(33rem, 100vh);
  min-height: max(33rem, 100dvh);
  padding: var(--header-h) var(--pad-right) clamp(4.5rem, 9vw, 7.5rem) var(--pad-left);
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  filter: blur(4px) saturate(1.05);
  transition: transform 1.6s var(--ease-soft);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      90% 70% at 18% 58%,
      color-mix(in srgb, var(--slide-color) 28%, transparent) 0%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(6, 16, 38, 0.58) 0%,
      rgba(6, 16, 38, 0.28) 42%,
      rgba(6, 16, 38, 0.72) 100%
    ),
    var(--overlay);
  transition: background var(--carousel-duration) var(--ease-soft);
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .hero-bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(6, 16, 38, 0.6) 0%,
        rgba(6, 16, 38, 0.3) 42%,
        rgba(6, 16, 38, 0.74) 100%
      ),
      var(--overlay);
  }
}

.main,
.hero-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  justify-self: center;
}

/* -------------------------------------------------------------------- *\
   6. Cabecera y navegación
\* -------------------------------------------------------------------- */

/* Cabecera fija: acompaña el scroll y se opaca al bajar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: var(--pad-top) var(--pad-right) 0.85rem var(--pad-left);
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s var(--ease-soft),
    border-color 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft),
    padding 0.5s var(--ease-soft);
}

body.is-scrolled .header {
  padding-top: max(0.6rem, env(safe-area-inset-top));
  padding-bottom: 0.6rem;
  background: rgba(9, 15, 27, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 80rem;
  min-height: 3.25rem;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.4s var(--ease-soft);
}

.logo:hover {
  opacity: 0.86;
}

.logo img {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: min(78vw, 28rem);
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
  transition: height 0.5s var(--ease-soft);
}

/* Al bajar, el logo se achica para que la barra ocupe menos */
body.is-scrolled .logo img {
  height: clamp(2.4rem, 8vw, 3.5rem);
}

.nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.85rem, 1.6vw, 1.85rem);
}

.nav > a,
.nav-drop__btn {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  padding: 0.45rem 0;
  transition: color 0.4s var(--ease-soft);
}

.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--slide-color);
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform 0.45s var(--ease-soft),
    background-color var(--carousel-duration) var(--ease-soft);
}

.nav > a:hover,
.nav-drop:hover .nav-drop__btn,
.nav-drop:focus-within .nav-drop__btn {
  color: var(--fg);
}

.nav > a:hover::after,
.nav > a.is-active::after {
  transform: scaleX(1);
}

.nav > a.is-active {
  color: var(--fg);
}

.nav-drop {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
}

/* Puente invisible bajo el botón para no perder hover al bajar al menú */
.nav-drop::after {
  content: "";
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 100%;
  height: 1rem;
  pointer-events: none;
}

.nav-drop:hover::after,
.nav-drop:focus-within::after {
  pointer-events: auto;
}

.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}

.nav-drop__btn svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.8;
  transition: transform 0.35s var(--ease-soft);
}

.nav-drop__btn--areas {
  letter-spacing: 0.08em;
}

.nav-drop__menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  right: auto;
  z-index: 70;
  display: flex;
  flex-direction: column;
  min-width: 15.5rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(9, 16, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.3s var(--ease-soft),
    visibility 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
}

.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Informes: anclado al borde izquierdo del botón, no centrado ni al extremo del header */
.nav-drop.nav-drop--end .nav-drop__menu {
  left: 0;
  right: auto;
  transform: translateY(8px);
}

.nav-drop.nav-drop--end:hover .nav-drop__menu,
.nav-drop.nav-drop--end:focus-within .nav-drop__menu {
  transform: translateY(0);
}

.nav-drop__menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.nav-drop__menu a:hover {
  background: rgba(26, 111, 232, 0.18);
  color: #ffffff;
}

.btn-turno {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  background: var(--slide-color);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--slide-color) 90%, transparent);
  transition:
    background var(--carousel-duration) var(--ease-soft),
    transform 0.3s var(--ease-soft),
    box-shadow var(--carousel-duration) var(--ease-soft),
    filter 0.3s var(--ease-soft);
}

.btn-turno svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-turno:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 1.5rem;
  border-radius: 2px;
  background: var(--fg);
  transform-origin: center;
  transition:
    transform 0.5s var(--ease-soft),
    opacity 0.35s ease,
    width 0.4s var(--ease-soft);
}

.menu-btn span:nth-child(3) {
  width: 1.1rem;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7.6px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.menu-btn.is-open span:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-7.6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 3.6vh, 1.9rem);
  padding: calc(var(--pad-top) + 4.5rem) 1.5rem var(--pad-bottom);
  overflow-y: auto;
  background: rgba(8, 13, 23, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.6s var(--ease-soft),
    visibility 0.6s var(--ease-soft);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  max-width: 100%;
  font-size: clamp(1.15rem, 5.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease-soft),
    color 0.3s ease;
}

.mobile-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.08s * var(--i, 0) + 0.12s);
}

.mobile-nav a:hover {
  color: var(--fg);
}

/* -------------------------------------------------------------------- *\
   7. Escenario y carrusel
\* -------------------------------------------------------------------- */

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "stage"
    "headline";
  align-items: center;
  min-height: 0;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
  gap: 1.25rem;
}

.visual {
  grid-area: stage;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

/* Capa de entrada: opacidad y desplazamiento */
.stage {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  --reveal-y: 18px;
}

/* Capa de flotación: solo traslada, nunca escala (evita el pulso) */
.stage__float {
  position: relative;
  display: grid;
  place-items: center;
  animation: stage-float 8s var(--ease-inout) infinite alternate;
}

.stage__dots {
  position: absolute;
  left: -9%;
  top: 16%;
  z-index: 0;
  width: 4.75rem;
  height: 6.25rem;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.4px, transparent 1.6px);
  background-size: 11px 11px;
  pointer-events: none;
}

.stage__arc {
  grid-area: 1 / 1;
  width: 118%;
  height: 118%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.32);
  pointer-events: none;
  mask-image: linear-gradient(125deg, #000 0%, #000 42%, transparent 68%);
  -webkit-mask-image: linear-gradient(125deg, #000 0%, #000 42%, transparent 68%);
}

@media (max-width: 767px) {
  .stage__dots,
  .stage__arc {
    display: none;
  }
}

.circle {
  grid-area: 1 / 1;
  width: min(76vw, 44svh, 19rem);
  height: min(76vw, 44svh, 19rem);
  border-radius: 50%;
  background: var(--slide-color);
  box-shadow:
    0 24px 80px -18px color-mix(in srgb, var(--slide-color) 65%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    background-color var(--carousel-duration) var(--ease-soft),
    box-shadow var(--carousel-duration) var(--ease-soft);
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .circle {
    box-shadow:
      0 24px 70px -20px rgba(0, 0, 0, 0.5),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

body.is-ready .circle {
  animation: circle-in 1.3s var(--ease-soft) 0.15s both;
}

.portraits {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.portrait {
  grid-area: 1 / 1;
  width: min(60vw, 40svh, 15rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: scale(calc(var(--portrait-scale) * 0.94)) translate3d(0, 16px, 0);
  filter: blur(6px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  transition:
    opacity var(--carousel-duration) var(--ease-soft),
    transform var(--carousel-duration) var(--ease-soft),
    filter var(--carousel-duration) var(--ease-soft);
}

.portrait.is-active {
  opacity: 1;
  transform: scale(var(--portrait-scale)) translate3d(0, 0, 0);
  filter: blur(0);
}

.portrait.is-active[data-view-open],
.portrait.is-active[data-go] {
  pointer-events: auto;
  cursor: pointer;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
}

.hero-carousel__arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f3d;
  box-shadow: 0 10px 24px -12px rgba(8, 30, 62, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
}

.hero-carousel__arrow--prev {
  left: max(0.85rem, env(safe-area-inset-left));
}

.hero-carousel__arrow--next {
  right: max(0.85rem, env(safe-area-inset-right));
}

.hero-carousel__arrow:hover {
  background: #ffffff;
  transform: translateY(calc(-50% - 2px));
}

.hero-carousel__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(6.9rem, 12.2vw, 9.5rem);
  z-index: 24;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  transform: translateX(-50%);
}

.hero-dots__item {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.hero-dots__item.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

.hero-dots__item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.portrait--wide {
  width: min(80vw, 46svh, 21rem);
}

.headline {
  grid-area: headline;
  z-index: 20;
  display: grid;
  padding: 0 0.25rem;
  --reveal-y: 18px;
}

.headline-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 18px, 0);
  filter: blur(5px);
  transition:
    opacity var(--carousel-duration) var(--ease-soft),
    transform var(--carousel-duration) var(--ease-soft),
    filter var(--carousel-duration) var(--ease-soft);
}

.headline-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.headline__title {
  font-family: var(--display);
  font-size: clamp(2.15rem, 9.5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.5),
    0 0 3px rgba(0, 0, 0, 0.3);
}

.headline__title span {
  font-weight: 400;
}

.headline__rule {
  display: block;
  width: 4.75rem;
  height: 3px;
  margin: 1.15rem 0 1rem;
  border-radius: 99px;
  background: var(--slide-color);
  transition: background-color var(--carousel-duration) var(--ease-soft);
}

.headline__lead {
  max-width: 22rem;
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 2.4vw, 1.125rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.headline__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.45rem 0.9rem 1.55rem;
  border-radius: 999px;
  background: var(--slide-color);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--slide-color) 85%, transparent);
  transition:
    background var(--carousel-duration) var(--ease-soft),
    transform 0.3s var(--ease-soft),
    box-shadow var(--carousel-duration) var(--ease-soft),
    filter 0.3s var(--ease-soft);
}

.headline__cta svg {
  width: 1.05rem;
  height: 1.05rem;
}

.headline__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

@keyframes circle-in {
  0% { opacity: 0; transform: scale(0.84); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes stage-float {
  0% { transform: translate3d(0, -7px, 0); }
  100% { transform: translate3d(0, 9px, 0); }
}

/* -------------------------------------------------------------------- *\
   8. Pie del hero
\* -------------------------------------------------------------------- */

.hero-footer {
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-top: clamp(2rem, 5.5vh, 3.75rem);
  margin-bottom: 1rem;
  --reveal-y: 14px;
}

.socials {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.55rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  transition:
    color 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    background 0.4s var(--ease-soft),
    transform 0.5s var(--ease-soft);
}

.socials a:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.socials__label {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(3.4rem, 6.8vw, 5.8rem);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--slide-color);
  transform: translateX(-50%);
  transition:
    transform 0.45s var(--ease-soft),
    color var(--carousel-duration) var(--ease-soft);
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(3px);
}

.scroll-cue svg {
  width: 1.35rem;
  height: 1.35rem;
  animation: cue-bounce 2.6s var(--ease-inout) infinite;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  width: 100%;
  height: clamp(4.25rem, 9vw, 7.5rem);
  pointer-events: none;
}

.hero-wave path {
  fill: #eef3f9;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(-2px); opacity: 0.65; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* -------------------------------------------------------------------- *\
   9. Tarjetas de acceso
\* -------------------------------------------------------------------- */

.feature-cards {
  position: relative;
  z-index: 1;
  padding:
    clamp(1.75rem, 5vw, 3.25rem)
    var(--pad-right)
    clamp(2rem, 5.5vw, 4rem)
    var(--pad-left);
  background:
    radial-gradient(90% 70% at 50% 0%, #f7fafd 0%, transparent 60%),
    linear-gradient(180deg, #eef3f9 0%, #e4ecf6 100%);
}

.feature-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  display: block;
  min-height: 8.75rem;
  border-radius: 1.45rem;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  box-shadow: 0 10px 26px -14px rgba(15, 40, 80, 0.45);
  transition:
    opacity 1s var(--ease-soft),
    transform 1s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.feature-card:hover {
  box-shadow: 0 26px 56px -20px rgba(26, 95, 180, 0.55);
}

.feature-card:hover .feature-card__panel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.feature-card:hover .feature-card__photo {
  transform: scale(1.08);
}

.feature-card:hover .feature-card__icon {
  transform: translateY(-4px);
}

.feature-card:hover .feature-card__arrow {
  transform: translateX(4px);
}

.feature-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease-soft);
}

.feature-card__shader {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 38, 78, 0.28) 0%, rgba(8, 26, 55, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 61, 115, 0.35) 0%, transparent 55%);
}

.feature-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  min-height: 8.75rem;
  padding: 1.05rem 1.15rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.45rem;
  transition: border-color 0.6s var(--ease-soft);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.85rem;
  color: #ffffff;
  background: rgba(15, 61, 115, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.55s var(--ease-soft);
}

.feature-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.feature-card__title {
  font-size: clamp(1rem, 3.2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.feature-card__arrow {
  flex-shrink: 0;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: none;
  transition: transform 0.5s var(--ease-soft);
}

.feature-card__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Historia del sanatorio (home) ---------------------------------- */

.home-historia {
  position: relative;
  z-index: 1;
  padding:
    clamp(1.5rem, 4.5vw, 2.5rem)
    var(--pad-right)
    clamp(1.75rem, 5vw, 3.25rem)
    var(--pad-left);
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

.home-historia__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.home-historia__card {
  width: 100%;
  max-width: 24rem;
  justify-self: center;
  padding: clamp(1.05rem, 3.5vw, 1.4rem);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #e8f1fa 0%, #dfeaf6 100%);
  box-shadow:
    0 24px 48px -28px rgba(8, 30, 62, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.75);
}

.home-historia__media {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.85rem, 3vw, 1.15rem);
}

.home-historia__frame {
  position: relative;
  width: 100%;
  max-width: 17.5rem;
  margin: 0;
  padding: 0.5rem;
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow:
    0 18px 36px -22px rgba(8, 30, 62, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

.home-historia__photo {
  display: block;
  width: 100%;
  height: 9.75rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 61, 0.04);
}

.home-historia__frame::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 0.55rem;
  pointer-events: none;
  box-shadow: inset 0 0 48px rgba(255, 255, 255, 0.55);
  background: radial-gradient(ellipse at center, transparent 42%, rgba(255, 255, 255, 0.28) 100%);
}

.home-historia__portrait {
  position: absolute;
  right: -0.25rem;
  bottom: -0.85rem;
  width: 28%;
  min-width: 3.75rem;
  max-width: 5.25rem;
  padding: 0.24rem;
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow:
    0 14px 28px -12px rgba(8, 30, 62, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: rotate(4deg);
}

.home-historia__copy {
  text-align: center;
}

.home-historia__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--boratti-blue);
}

.home-historia__title {
  margin-top: 0.45rem;
  font-size: clamp(1.28rem, 4.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #0b1f3d;
}

.home-historia__lead {
  margin-top: 0.5rem;
  font-size: clamp(0.86rem, 3.2vw, 0.94rem);
  line-height: 1.5;
  color: rgba(11, 31, 61, 0.68);
}

.home-historia__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin-top: 0.95rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(26, 95, 180, 0.9);
  transition:
    transform 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.home-historia__more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(26, 95, 180, 0.95);
  color: #ffffff;
}

.home-historia__more:focus-visible {
  outline: 2px solid var(--boratti-blue);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .home-historia__card {
    max-width: 24rem;
    padding: 1.35rem 1.45rem 1.4rem;
  }

  .home-historia__frame {
    max-width: 18.5rem;
  }

  .home-historia__photo {
    height: 10.25rem;
  }
}

.home-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 10rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 61, 0.08);
  box-shadow: 0 24px 48px -32px rgba(8, 30, 62, 0.28);
}

.home-news__status {
  grid-column: 1 / -1;
  align-self: center;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(11, 31, 61, 0.55);
}

.home-news__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-soft);
}

.home-news__card:hover {
  background: rgba(26, 111, 232, 0.04);
}

.home-news__card + .home-news__card {
  border-top: 1px dotted rgba(11, 31, 61, 0.18);
}

.home-news__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dotted rgba(11, 31, 61, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d6aa8;
}

.home-news__cat svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.home-news__cat:hover {
  color: var(--boratti-blue);
}

.home-news__title {
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #4a7ab8;
}

.home-news__title a {
  color: inherit;
}

.home-news__title a:hover {
  color: var(--boratti-blue);
}

.home-news__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-news__thumb {
  display: block;
  width: 100%;
  height: 7.25rem;
  margin-top: 0.55rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(11, 31, 61, 0.08);
  background: #eef3f9;
  box-shadow: 0 10px 22px -16px rgba(8, 30, 62, 0.45);
}

.home-news__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a93a3;
}

.home-news__excerpt {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3a4556;
}

.home-news__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: flex-start;
  min-height: 2.05rem;
  margin-top: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--slide-color, var(--boratti-blue));
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 80%, transparent);
  transition:
    transform 0.3s var(--ease-soft),
    filter 0.3s var(--ease-soft);
}

.home-news__more svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.3s var(--ease-soft);
}

.home-news__more:hover {
  color: #ffffff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-news__more:hover svg {
  transform: translateX(2px);
}

@media (min-width: 720px) {
  .home-news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-news__card + .home-news__card {
    border-top: 0;
    border-left: 1px dotted rgba(11, 31, 61, 0.18);
  }
}

@media (min-width: 1100px) {
  .home-historia__inner {
    grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 20rem);
  }

  .home-historia__card {
    order: 2;
    max-width: none;
    justify-self: stretch;
    height: 100%;
  }

  .home-news {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-historia__portrait {
    transform: none;
  }
}

/* -------------------------------------------------------------------- *\
   10. Responsive
\* -------------------------------------------------------------------- */

@media (min-width: 390px) {
  :root {
    --portrait-scale: 1.1;
    --pad-left: max(1.25rem, env(safe-area-inset-left));
    --pad-right: max(1.25rem, env(safe-area-inset-right));
  }
}

@media (min-width: 640px) {
  .feature-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  /* Con cinco tarjetas, la última ocupa el ancho completo */
  .feature-card:last-child {
    grid-column: span 2;
  }

  .feature-card,
  .feature-card__panel {
    min-height: 9.5rem;
  }

  .feature-card__panel {
    padding: 1.15rem 1.25rem;
  }
}

@media (min-width: 768px) {
  :root {
    --portrait-scale: 1.14;
    --pad-top: max(2rem, env(safe-area-inset-top));
    --pad-bottom: max(2rem, env(safe-area-inset-bottom));
    --pad-left: max(2rem, env(safe-area-inset-left));
    --pad-right: max(2rem, env(safe-area-inset-right));
  }

  .hero {
    min-height: max(36rem, 100vh);
    min-height: max(36rem, 100dvh);
  }

  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
  }

  .nav {
    display: flex;
  }

  .nav > a,
  .nav-drop__btn {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .nav-drop__btn--areas {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .btn-turno {
    display: inline-flex;
  }

  .menu-btn,
  .mobile-nav {
    display: none;
  }

  .main {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "stage headline";
    gap: clamp(1rem, 4vw, 3rem);
    padding-block: 0;
  }

  .headline {
    grid-area: headline;
    align-items: flex-start;
    text-align: left;
  }

  .headline-slide {
    align-items: flex-start;
    text-align: left;
  }

  .headline__title {
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  }

  .headline__rule {
    margin-left: 0;
  }

  .circle {
    width: min(40vw, 56svh, 26rem);
    height: min(40vw, 56svh, 26rem);
  }

  .portrait {
    width: min(32vw, 46svh, 20rem);
  }

  .portrait--wide {
    width: min(42vw, 52svh, 24rem);
  }
}

@media (min-width: 1024px) {
  :root {
    --portrait-scale: 1.18;
    --pad-top: max(2.5rem, env(safe-area-inset-top));
    --pad-bottom: max(2.5rem, env(safe-area-inset-bottom));
    --pad-left: max(3rem, env(safe-area-inset-left));
    --pad-right: max(3rem, env(safe-area-inset-right));
  }

  .nav > a,
  .nav-drop__btn {
    font-size: 0.74rem;
    letter-spacing: 0.11em;
  }

  .nav-drop__btn--areas {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .circle {
    width: min(36vw, 62svh, 30rem);
    height: min(36vw, 62svh, 30rem);
  }

  .portrait {
    width: min(28vw, 52svh, 23rem);
  }

  .portrait--wide {
    width: min(37vw, 58svh, 28rem);
  }

  .headline__title {
    font-size: clamp(3.15rem, 4.8vw, 5.5rem);
  }

  /* Seis columnas para repartir cinco tarjetas: 3 arriba y 2 abajo */
  .feature-cards__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }

  .feature-card {
    grid-column: span 2;
  }

  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: span 3;
  }

  .feature-card,
  .feature-card__panel {
    min-height: 10.25rem;
  }
}

/* Teléfonos en horizontal con poca altura */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --portrait-scale: 1.04;
    --logo-h: clamp(2.4rem, 9vh, 3.25rem);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "stage headline";
    gap: 1rem;
    padding-block: 0;
  }

  .headline {
    grid-area: headline;
    align-items: flex-start;
    text-align: left;
  }

  .headline-slide {
    align-items: flex-start;
    text-align: left;
  }

  .headline__title {
    font-size: clamp(1.5rem, 8.5vh, 2.5rem);
  }

  .circle {
    width: min(38svh, 30vw, 12rem);
    height: min(38svh, 30vw, 12rem);
  }

  .portrait {
    width: min(30svh, 22vw, 9.5rem);
  }

  .portrait--wide {
    width: min(38svh, 28vw, 12rem);
  }
}

@media (hover: none) {
  .feature-card__arrow {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.18s !important;
  }

  [data-reveal],
  .feature-card {
    opacity: 1;
    transform: none;
  }

  .bento-card,
  .doc {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------- *\
   11. Vista de contacto (bento grid)
\* -------------------------------------------------------------------- */

/* Contenedor de la página: se retira como si cambiara de ventana */
.page {
  position: relative;
  transform-origin: 50% 40%;
  transition:
    opacity 0.6s var(--ease-soft),
    transform 0.7s var(--ease-soft),
    filter 0.6s var(--ease-soft);
}

body.is-view-open .page {
  opacity: 0;
  transform: scale(0.94) translate3d(0, -1.25rem, 0);
  filter: blur(8px);
  pointer-events: none;
}

.view {
  position: fixed;
  inset: 0;
  z-index: 120;
  isolation: isolate;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: clamp(2.5rem, 8vw, 5rem);
  background:
    radial-gradient(100% 70% at 50% 0%, #14203a 0%, #0a1120 58%),
    linear-gradient(180deg, #0a1120 0%, #070b14 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02) translate3d(0, 2rem, 0);
  filter: blur(0px);
  transition:
    opacity 0.6s var(--ease-soft),
    visibility 0.6s var(--ease-soft),
    transform 0.7s var(--ease-soft),
    filter 0.6s var(--ease-soft);
}

.view.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translate3d(0, 0, 0);
  filter: blur(0px);
}

/* Vista anidada: queda por encima de la anterior, opaca de inmediato */
.view--nested {
  z-index: 130;
  background: #070b14;
  transition: none;
}

/* Vista que quedó por detrás de otra: se oculta de inmediato para que
   no se vea a través del resultado (ubicación / profesionales). */
.view.is-behind {
  opacity: 0;
  visibility: hidden;
  transform: none;
  filter: none;
  pointer-events: none;
  transition: none;
}

.view__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad-top) var(--pad-right) 0.85rem var(--pad-left);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.view__logo {
  display: block;
  height: clamp(2.5rem, 10vw, 3.5rem);
  width: auto;
  max-width: min(62vw, 18rem);
  object-fit: contain;
  mix-blend-mode: screen;
}

.view__close,
.view__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  transition:
    background-color 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    transform 0.4s var(--ease-soft),
    color 0.4s var(--ease-soft);
}

.view__close:hover,
.view__back:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--fg);
}

.view__close:hover {
  transform: rotate(90deg);
}

.view__back:hover {
  transform: translateX(-3px);
}

.view__close svg,
.view__back svg {
  width: 1.15rem;
  height: 1.15rem;
}

.view__body {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem) var(--pad-right) 0 var(--pad-left);
}

.view__title {
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.view__lead {
  max-width: 34rem;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.42) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Grid ---------------------------------------------------------- */

.bento {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 42rem;
  margin-top: clamp(1.25rem, 4vw, 2rem);
}

.bento-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(5, 8, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px -22px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft),
    border-color 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft),
    background 0.5s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}

.view.is-open .bento-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 12, 22, 0.92);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.9);
}

/* --- Gráfico abstracto --------------------------------------------- */

.bento-card__art {
  position: relative;
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #05080f;
}

.bento-card__art::before,
.bento-card__art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bento-card__art::before {
  inset: -22%;
  filter: blur(26px) saturate(1.2);
  animation: art-drift 20s var(--ease-inout) infinite alternate;
}

.bento-card__art::after {
  left: -14%;
  top: -30%;
  width: 128%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(5px);
  -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 58%, #000 76%, transparent 80%);
  mask: radial-gradient(closest-side, transparent 54%, #000 58%, #000 76%, transparent 80%);
  animation: art-spin 30s linear infinite;
}

/* Variante 1 — azul / violeta */
.bento-card__art--1::before {
  background:
    radial-gradient(58% 52% at 28% 32%, rgba(96, 165, 255, 0.95) 0%, transparent 56%),
    radial-gradient(64% 58% at 68% 62%, rgba(126, 92, 255, 0.9) 0%, transparent 58%),
    #0a1024;
}

.bento-card__art--1::after {
  background: conic-gradient(
    from 200deg,
    #101a3a,
    #2f6fe0,
    #9fd4ff,
    #7e5cff,
    #1a1035,
    #101a3a
  );
}

/* Variante 2 — turquesa iridiscente */
.bento-card__art--2::before {
  background:
    radial-gradient(56% 50% at 32% 36%, rgba(64, 226, 209, 0.9) 0%, transparent 56%),
    radial-gradient(62% 56% at 70% 60%, rgba(58, 132, 255, 0.85) 0%, transparent 58%),
    #04141c;
}

.bento-card__art--2::after {
  background: conic-gradient(
    from 320deg,
    #06202c,
    #23c4b8,
    #d9fff9,
    #4a9ae8,
    #0b2a3a,
    #06202c
  );
  animation-duration: 36s;
  animation-direction: reverse;
}

/* Variante 3 — azul / rojo de marca con retícula */
.bento-card__art--3::before {
  background:
    radial-gradient(56% 52% at 30% 34%, rgba(226, 36, 40, 0.72) 0%, transparent 56%),
    radial-gradient(62% 58% at 70% 62%, rgba(26, 95, 180, 0.95) 0%, transparent 58%),
    #0a0e1c;
}

.bento-card__art--3::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1.4px) 0 0 / 13px 13px,
    conic-gradient(from 140deg, #0b1226, #1a5fb4, #7fb2ea, #e22428, #140a12, #0b1226);
  filter: blur(2px);
  animation-duration: 42s;
}

/* Variante 4 — ámbar clínico */
.bento-card__art--4::before {
  background:
    radial-gradient(56% 50% at 30% 34%, rgba(245, 180, 72, 0.88) 0%, transparent 56%),
    radial-gradient(62% 56% at 72% 62%, rgba(26, 111, 232, 0.82) 0%, transparent 58%),
    #14100a;
}

.bento-card__art--4::after {
  background: conic-gradient(
    from 80deg,
    #1a140a,
    #e8a43a,
    #fff4d6,
    #1a6fe8,
    #1a140a
  );
  animation-duration: 34s;
}

/* Variante 5 — verde clínico */
.bento-card__art--5::before {
  background:
    radial-gradient(56% 52% at 28% 36%, rgba(72, 214, 164, 0.88) 0%, transparent 56%),
    radial-gradient(62% 58% at 70% 64%, rgba(96, 165, 255, 0.8) 0%, transparent 58%),
    #061410;
}

.bento-card__art--5::after {
  background: conic-gradient(
    from 250deg,
    #071612,
    #2fbf8a,
    #d9fff2,
    #3d8bf0,
    #071612
  );
  animation-duration: 38s;
  animation-direction: reverse;
}

/* --- Panel de texto ------------------------------------------------ */

.bento-card__panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0.1rem 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bento-card__eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.bento-card__title {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bento-card__text {
  max-width: none;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.bento-card__cta svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.45s var(--ease-soft);
}

.bento-card:hover .bento-card__cta svg {
  transform: translateX(5px);
}

@keyframes art-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(3%, -3%, 0); }
}

@keyframes art-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
  .bento {
    gap: 0.7rem;
  }

  .bento-card {
    gap: 1rem;
    padding: 0.8rem 1rem 0.8rem 0.8rem;
  }

  .bento-card__art {
    width: 4.75rem;
    height: 4.75rem;
  }

  .bento-card__title {
    font-size: 1.05rem;
  }

  .bento-card__panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.15rem;
  }

  .bento-card__eyebrow,
  .bento-card__title,
  .bento-card__text {
    grid-column: 1;
  }

  .bento-card__cta {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    align-self: center;
    white-space: nowrap;
  }
}

/* --- Documento de texto largo -------------------------------------- */

.doc {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 6vw, 2.5rem);
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.9s var(--ease-soft) 0.14s,
    transform 0.9s var(--ease-soft) 0.14s;
}

.view.is-open .doc {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.doc__intro {
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
}

.doc__block {
  margin-top: clamp(1.5rem, 5vw, 2rem);
  padding: clamp(1.1rem, 4.5vw, 1.6rem);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -20px 70px -30px rgba(134, 134, 240, 0.2);
}

.doc__h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.98rem, 3.9vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.doc__h::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--boratti-blue-soft), var(--boratti-red));
}

.doc__block p {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.74);
}

.doc__page + .doc__page {
  margin-top: clamp(2rem, 6vw, 2.75rem);
  padding-top: clamp(1.5rem, 5vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.doc__page-title {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.doc__html {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.74);
}

.doc__html p,
.doc__html li {
  margin-top: 0.7rem;
}

.doc__html img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.85rem;
}

.doc__html a {
  color: var(--boratti-blue-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc__html a:hover {
  color: #ffffff;
}

.doc.is-loading {
  opacity: 0.55;
}

/* --- Historia: índice y fotos -------------------------------------- */

#view-historia-sanatorio .doc {
  max-width: none;
}

.hist-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
}

.hist-toc {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hist-toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hist-toc__list {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
}

.hist-toc__item {
  margin-top: 0.35rem;
}

.hist-toc__item--sub {
  margin-left: 0.35rem;
  list-style: lower-alpha;
}

.hist-toc__item a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.3s var(--ease-soft);
}

.hist-toc__item a:hover {
  color: var(--boratti-blue-soft);
}

.hist-body {
  min-width: 0;
}

.hist-figure {
  margin: 0 0 1rem;
  max-width: min(100%, 17.5rem);
}

.hist-figure--right {
  float: right;
  margin-left: clamp(0.85rem, 3vw, 1.35rem);
}

.hist-figure--left {
  float: left;
  margin-right: clamp(0.85rem, 3vw, 1.35rem);
}

.hist-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #ffffff;
  border-radius: 0.35rem;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
  transform: rotate(-2deg);
}

#view-historia-sanatorio .doc__block::after {
  content: "";
  display: table;
  clear: both;
}

@media (min-width: 900px) {
  .hist-layout {
    grid-template-columns: minmax(11.5rem, 15rem) minmax(0, 1fr);
    align-items: start;
  }

  .hist-toc {
    position: sticky;
    top: 0.5rem;
  }
}

@media (max-width: 899px) {
  .hist-figure--right,
  .hist-figure--left {
    float: none;
    margin: 0 auto 1.15rem;
  }
}

.inf-toc {
  padding-left: 0;
  list-style: none;
}

.inf-toc a {
  padding: 0.4rem 0.15rem;
}

.inf-toc a.is-active {
  color: #ffffff;
  font-weight: 600;
}

.inf-faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.inf-faq__item {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.inf-faq__item[open] {
  border-color: rgba(255, 255, 255, 0.2);
}

.inf-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.inf-faq__item summary::-webkit-details-marker {
  display: none;
}

.inf-faq__item .doc__html {
  padding: 0 1.1rem 1.05rem;
}

.inf-docs {
  display: grid;
  gap: 0.65rem;
}

.inf-docs__group {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.inf-docs__group summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.inf-docs__group summary::-webkit-details-marker {
  display: none;
}

.inf-docs__list {
  padding: 0 0.7rem 0.85rem;
}

.inf-docs__list a {
  display: block;
  padding: 0.55rem 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.inf-docs__list a:hover {
  color: #ffffff;
}

.inf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin-top: 1.15rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 88%, #000);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.inf-doc .doc__html img {
  float: right;
  max-width: min(100%, 12.5rem);
  height: auto;
  margin: 0 0 1rem 1.1rem;
  border-radius: 0.9rem;
}

@media (max-width: 640px) {
  .inf-doc .doc__html img {
    float: none;
    display: block;
    margin: 0 auto 1.1rem;
  }
}

.doc__list,
.doc__steps {
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.doc__list li,
.doc__steps li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
}

.doc__list li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--boratti-blue-soft);
}

.doc__steps {
  counter-reset: doc-step;
}

.doc__steps li {
  counter-increment: doc-step;
}

.doc__steps li::before {
  content: counter(doc-step, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--boratti-blue-soft);
}

.doc__note {
  margin-top: clamp(1.5rem, 5vw, 2rem);
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.66);
}

.doc__mail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 6vw, 2.5rem);
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.34) 0%, rgba(226, 36, 40, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    border-color 0.45s var(--ease-soft),
    transform 0.45s var(--ease-soft);
}

.doc__mail:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.doc__mail svg {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: #ffffff;
}

.doc__mail-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.doc__mail-value {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

@media (min-width: 1024px) {
  .bento {
    max-width: 46rem;
    gap: 0.75rem;
  }
}

/* --- Formularios y teléfonos de Contacto --------------------------- */

.cform {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 6vw, 2.5rem);
}

.cform__note {
  max-width: 46rem;
  margin-top: 1.15rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.66);
}

.cform__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.cform__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.cform__field > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.cform__field input,
.cform__field select,
.cform__field textarea,
.cform__file {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.78rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.3s var(--ease-soft),
    background 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.cform__field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.cform__field input[type="date"] {
  color-scheme: dark;
}

.cform__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23ffffff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

.cform__field select option {
  color: #0b1220;
}

.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus,
.cform__file:focus-within {
  border-color: rgba(61, 139, 240, 0.7);
  background: rgba(26, 111, 232, 0.12);
  box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.22);
}

.cform__file {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.cform__file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cform__file-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.cform__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.cform__field input[type="radio"],
.cform__field input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cform__check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--boratti-blue);
  flex-shrink: 0;
}

.cform__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  transition:
    transform 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    opacity 0.3s var(--ease-soft);
}

.cform__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(26, 95, 180, 0.95);
}

.cform__submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.cform__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cform__status.is-ok {
  background: rgba(47, 191, 138, 0.16);
  border: 1px solid rgba(47, 191, 138, 0.35);
  color: #d9fff2;
}

.cform__status.is-error {
  background: rgba(226, 36, 40, 0.16);
  border: 1px solid rgba(226, 36, 40, 0.35);
  color: #ffd6d6;
}

.cv-wizard {
  position: relative;
  max-width: 46rem;
  margin-top: clamp(1.35rem, 5vw, 2.15rem);
}

.cv-wizard__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  transition:
    opacity 0.55s var(--ease-soft),
    transform 0.55s var(--ease-soft),
    filter 0.55s var(--ease-soft);
}

.cv-wizard__progress li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  transform: scale(0.96);
  transition:
    background 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft),
    color 0.45s var(--ease-soft),
    transform 0.45s var(--ease-soft);
}

.cv-wizard__progress li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.45s var(--ease-soft),
    transform 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft);
}

.cv-wizard__progress li.is-active,
.cv-wizard__progress li.is-done {
  color: #ffffff;
  border-color: rgba(61, 139, 240, 0.45);
  background: rgba(26, 111, 232, 0.18);
  transform: scale(1);
}

.cv-wizard__progress li.is-done span,
.cv-wizard__progress li.is-active span {
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
}

.cv-wizard__progress li.is-active span {
  box-shadow: 0 0 0 4px rgba(26, 111, 232, 0.22);
  animation: cv-dot-pulse 1.6s var(--ease-soft) infinite;
}

.cv-wizard__progress li.is-skip {
  display: none;
}

.cv-wizard__form {
  transition:
    opacity 0.55s var(--ease-soft),
    transform 0.55s var(--ease-soft),
    filter 0.55s var(--ease-soft);
}

.cv-wizard__stage {
  position: relative;
  overflow: hidden;
}

.cv-wizard__step {
  animation: cv-step-in 0.7s var(--ease-soft) both;
}

.cv-wizard__step.is-leave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  animation: cv-step-out 0.48s var(--ease-soft) both;
}

.cv-wizard__step.is-leave-back {
  animation: cv-step-out-back 0.48s var(--ease-soft) both;
}

.cv-wizard__step.is-enter .cform__grid > * {
  animation: cv-field-in 0.6s var(--ease-soft) both;
}

.cv-wizard__step.is-enter .cform__grid > *:nth-child(1) { animation-delay: 0.05s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(2) { animation-delay: 0.1s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(3) { animation-delay: 0.15s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(4) { animation-delay: 0.2s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(5) { animation-delay: 0.25s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(6) { animation-delay: 0.3s; }
.cv-wizard__step.is-enter .cform__grid > *:nth-child(7) { animation-delay: 0.35s; }

.cv-wizard__heading {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cv-wizard__copy {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.cv-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.cv-wizard__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.cv-wizard__back:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.cv-wizard__nav .cform__submit {
  margin-left: auto;
}

.cv-wizard__radios {
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.cv-wizard__radios legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.35rem;
}

.cv-wizard__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.cv-wizard__radio:hover {
  border-color: rgba(61, 139, 240, 0.4);
  background: rgba(26, 111, 232, 0.12);
}

.cv-wizard__radio:has(input:checked) {
  border-color: rgba(61, 139, 240, 0.7);
  background: rgba(26, 111, 232, 0.24);
  transform: scale(1.04);
}

.cv-wizard__radio input {
  accent-color: var(--boratti-blue);
}

.cv-wizard__sending {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(8, 14, 28, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s var(--ease-soft),
    visibility 0.5s var(--ease-soft);
}

.cv-wizard__sending p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cv-wizard.is-sending .cv-wizard__sending {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cv-wizard.is-sending .cv-wizard__form {
  filter: blur(7px) saturate(0.75);
  transform: scale(0.97);
  pointer-events: none;
}

.cv-wizard.is-sending .cv-wizard__progress {
  filter: blur(4px);
  opacity: 0.55;
}

.cv-wizard__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--boratti-blue-soft);
  border-right-color: var(--boratti-red);
  border-radius: 50%;
  animation: cv-spin 0.85s linear infinite;
}

.cv-wizard.is-exiting .cv-wizard__progress,
.cv-wizard.is-exiting .cv-wizard__form,
.cv-wizard.is-exiting .cv-wizard__sending {
  animation: cv-send-out 0.65s var(--ease-soft) both;
}

.cv-wizard.is-complete .cv-wizard__form,
.cv-wizard.is-complete .cv-wizard__progress,
.cv-wizard.is-complete .cv-wizard__sending {
  display: none;
}

.cv-wizard__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 6vw, 3rem) 0.5rem;
}

.cv-wizard__logo {
  width: min(14rem, 72%);
  height: auto;
  margin-bottom: 1.5rem;
}

.cv-wizard.is-complete .cv-wizard__logo {
  animation: cv-logo-in 0.95s var(--ease-soft) both;
}

.cv-wizard.is-complete .cv-wizard__thanks {
  animation: cv-thanks-in 0.85s var(--ease-soft) 0.22s both;
}

.cv-wizard__thanks {
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.doc-rrhh__sector {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--boratti-blue-soft);
}

.doc-rrhh__obs {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}

.doc-rrhh__done {
  padding-top: 1rem;
}

.doc-rrhh__error .cform__status {
  margin-bottom: 1rem;
}

@keyframes cv-step-in {
  from {
    opacity: 0;
    transform: translate3d(2rem, 0.35rem, 0) scale(0.98);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes cv-step-in-back {
  from {
    opacity: 0;
    transform: translate3d(-2rem, 0.35rem, 0) scale(0.98);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes cv-step-out {
  to {
    opacity: 0;
    transform: translate3d(-1.6rem, -0.2rem, 0) scale(0.97);
    filter: blur(8px);
  }
}

@keyframes cv-step-out-back {
  to {
    opacity: 0;
    transform: translate3d(1.6rem, -0.2rem, 0) scale(0.97);
    filter: blur(8px);
  }
}

@keyframes cv-field-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.7rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cv-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(26, 111, 232, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(26, 111, 232, 0.08);
  }
}

@keyframes cv-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cv-send-out {
  to {
    opacity: 0;
    transform: translate3d(0, -1.4rem, 0) scale(0.96);
    filter: blur(12px);
  }
}

@keyframes cv-logo-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
    filter: blur(8px);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cv-thanks-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .cv-wizard__step,
  .cv-wizard__step.is-leave,
  .cv-wizard__step.is-leave-back,
  .cv-wizard__step.is-enter .cform__grid > *,
  .cv-wizard__progress li.is-active span,
  .cv-wizard__spinner,
  .cv-wizard.is-exiting .cv-wizard__progress,
  .cv-wizard.is-exiting .cv-wizard__form,
  .cv-wizard.is-exiting .cv-wizard__sending,
  .cv-wizard.is-complete .cv-wizard__logo,
  .cv-wizard.is-complete .cv-wizard__thanks {
    animation: none;
  }

  .cv-wizard__form,
  .cv-wizard.is-sending .cv-wizard__form {
    filter: none;
    transform: none;
  }
}

.cphones {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(1.5rem, 6vw, 2.5rem);
}

.cphones__block {
  padding: clamp(1.1rem, 4.5vw, 1.6rem);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cphones__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cphones__rotativas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.cphones__rotativas a,
.cphones__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    border-color 0.3s var(--ease-soft),
    background 0.3s var(--ease-soft);
}

.cphones__rotativas a:hover,
.cphones__links a:hover {
  border-color: rgba(61, 139, 240, 0.55);
  background: rgba(26, 111, 232, 0.18);
}

.cphones__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.cphones__item {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(5, 8, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cphones__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.cphones__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cphones__links a.is-wa {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.32);
}

@media (min-width: 700px) {
  .cform__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cform__field--full {
    grid-column: 1 / -1;
  }

  .cphones {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .cphones__rotativas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------- *\
   12. Vista de servicios (buscador, grilla 3x3 y paginador)
\* -------------------------------------------------------------------- */

.view--wide .view__body {
  max-width: 84rem;
}

.view--wide .view__body--article {
  max-width: 46rem;
}

/* --- Lector de notas ------------------------------------------------ */

.news-article {
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

.news-article.is-loading {
  min-height: 22rem;
}

.news-article__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
}

.news-article__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 48%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.news-article__date {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

.news-article__title {
  margin-top: 1.05rem;
  font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.news-article__hero {
  margin: 1.7rem 0 2rem;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 32px 64px -36px rgba(0, 0, 0, 0.9);
}

.news-article__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-gallery {
  margin: 1.7rem 0 2rem;
}

.news-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  aspect-ratio: 16 / 10;
  background: #05080f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px -36px rgba(0, 0, 0, 0.9);
}

.news-gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.news-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
}

.news-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 11, 20, 0.55);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
}

.news-gallery__nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.news-gallery__nav--prev {
  left: 0.75rem;
}

.news-gallery__nav--next {
  right: 0.75rem;
}

.news-gallery__nav:hover {
  background: rgba(7, 11, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.4);
}

.news-gallery__count {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.news-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.news-gallery__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition:
    width 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft);
}

.news-gallery__dot.is-active {
  width: 1.35rem;
  background: var(--slide-color, var(--boratti-blue));
}

.news-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.news-gallery__thumb {
  flex: 0 0 4.6rem;
  height: 3.15rem;
  padding: 0;
  overflow: hidden;
  border-radius: 0.6rem;
  border: 2px solid transparent;
  opacity: 0.42;
  background: #0a1120;
  transition:
    opacity 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
}

.news-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-gallery__thumb.is-active,
.news-gallery__thumb:hover {
  opacity: 1;
}

.news-gallery__thumb.is-active {
  border-color: var(--slide-color, var(--boratti-blue));
}

@media (prefers-reduced-motion: reduce) {
  .news-gallery__track {
    transition: none;
  }
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.4rem, 4vw, 2.1rem);
}

.news-tabs__btn {
  min-height: 2.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft);
}

.news-tabs__btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.news-tabs__btn.is-active {
  background: color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 88%, #000);
  border-color: transparent;
  color: #ffffff;
}

.news-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.news-archive__status {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-archive__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft);
}

.news-archive__card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.news-archive__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a1120;
}

.news-archive__media--empty {
  background: linear-gradient(135deg, #14203a 0%, #0a1120 100%);
}

.news-archive__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.1rem 1.15rem;
}

.news-archive__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.news-archive__title {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.news-archive__excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.news-archive__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--boratti-blue-soft);
}

.news-archive__more svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (min-width: 820px) {
  .news-archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.news-article__html {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.news-article__html p + p {
  margin-top: 1.05rem;
}

.news-article__html h2,
.news-article__html h3,
.news-article__html h4 {
  margin-top: 2.05rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.news-article__html h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.25;
}

.news-article__html h3,
.news-article__html h4 {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
}

.news-article__html ul,
.news-article__html ol {
  margin: 1rem 0 1.25rem 1.2rem;
}

.news-article__html li + li {
  margin-top: 0.45rem;
}

.news-article__html a {
  color: var(--boratti-blue-soft, #8eb8ff);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-article__html a:hover {
  color: #ffffff;
}

.news-article__video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin-top: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--slide-color, var(--boratti-blue)) 88%, #000);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-article__video:hover {
  filter: brightness(1.08);
}

.news-article__html img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 1rem;
}

.news-article__html strong,
.news-article__html b {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.news-sk {
  display: grid;
  gap: 0.85rem;
}

.news-sk__line {
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 180% 100%;
  animation: news-sk 1.2s ease-in-out infinite;
}

.news-sk__line--title {
  height: 2.4rem;
  width: 86%;
  border-radius: 0.7rem;
}

.news-sk__line--hero {
  height: clamp(12rem, 38vw, 18rem);
  margin: 0.6rem 0 0.4rem;
  border-radius: 1.2rem;
}

.news-sk__line--short {
  width: 42%;
}

@keyframes news-sk {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-sk__line {
    animation: none;
  }
}

/* --- Aviso (por ejemplo, datos de ejemplo sin .env) ------------------ */

.srv-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(226, 36, 40, 0.14);
  border: 1px solid rgba(226, 36, 40, 0.4);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* --- Barra de filtros ----------------------------------------------- */

.srv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: clamp(1.5rem, 6vw, 2.25rem);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.7s var(--ease-soft) 0.1s,
    transform 0.7s var(--ease-soft) 0.1s;
}

.view.is-open .srv-toolbar {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.srv-search-wrap {
  position: relative;
  flex: 1 1 15rem;
  min-width: 0;
  z-index: 5;
}

.srv-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    border-color 0.4s var(--ease-soft),
    background 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.srv-search:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 154, 232, 0.7);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, 0.24);
}

.srv-search__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 1.05rem;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.4s var(--ease-soft);
}

.srv-search:focus-within .srv-search__icon {
  color: var(--boratti-blue-soft);
}

.srv-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.9rem 0.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.srv-search__input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.srv-search__input::-webkit-search-cancel-button {
  display: none;
}

.srv-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  transition:
    background 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.srv-search__clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--fg);
  transform: rotate(90deg);
}

.srv-search__clear svg {
  width: 0.9rem;
  height: 0.9rem;
}

.srv-suggest {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 30;
  isolation: isolate;
  max-height: 18rem;
  overflow-y: auto;
  border-radius: 1rem;
  background: #0d1524;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
}

.srv-suggest[hidden] {
  display: none;
}

.srv-suggest__msg {
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.srv-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: #0d1524;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.srv-suggest__item:last-child {
  border-bottom: 0;
}

.srv-suggest__item:hover,
.srv-suggest__item:focus-visible {
  background: #16304f;
  outline: none;
}

.srv-suggest__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(74, 154, 232, 0.18);
  color: #7eb6f0;
}

.srv-suggest__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.srv-suggest__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-suggest__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.srv-suggest__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.srv-suggest__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.srv-suggest__arrow {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.35);
}

.srv-select {
  position: relative;
  flex: 0 1 13rem;
}

.srv-select__field {
  width: 100%;
  padding: 0.9rem 2.4rem 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.4s var(--ease-soft),
    background 0.4s var(--ease-soft);
}

.srv-select__field:hover,
.srv-select__field:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 154, 232, 0.7);
}

.srv-select__field option {
  color: #0b1220;
}

.srv-select__chevron {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.56);
  transform: translateY(-50%);
  pointer-events: none;
}

.srv-order {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  transition:
    background 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    color 0.4s var(--ease-soft);
}

.srv-order:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--fg);
}

.srv-order svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.5s var(--ease-soft);
}

.srv-order.is-desc svg {
  transform: scaleY(-1);
}

/* --- Filtro alfabético ---------------------------------------------- */

.srv-letters {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.srv-letters::-webkit-scrollbar {
  display: none;
}

.srv-letter {
  flex-shrink: 0;
  min-width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  transition:
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.srv-letter:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
  transform: translateY(-2px);
}

.srv-letter.is-active {
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -10px rgba(26, 95, 180, 0.9);
}

/* --- Contador ------------------------------------------------------- */

.srv-count {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Grilla --------------------------------------------------------- */

.srv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.srv-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1.1rem;
  border-radius: 1.15rem;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: srv-in 0.62s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition:
    transform 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft),
    background 0.45s var(--ease-soft);
}

.srv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.4) 0%, rgba(74, 154, 232, 0.06) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}

.srv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

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

.srv-card--guardia {
  border-color: rgba(226, 36, 40, 0.28);
}

.srv-card--medico {
  border-color: rgba(74, 154, 232, 0.28);
}

.srv-card--guardia::before {
  background: linear-gradient(135deg, rgba(226, 36, 40, 0.38) 0%, rgba(226, 36, 40, 0.06) 60%, transparent 100%);
}

.srv-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.srv-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.4s var(--ease-soft),
    transform 0.4s var(--ease-soft),
    color 0.4s var(--ease-soft);
}

.srv-card__arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}

.srv-card:hover .srv-card__arrow,
.srv-card:focus-visible .srv-card__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--boratti-blue-soft);
}

/* En pantallas táctiles la flecha se muestra siempre */
@media (hover: none) {
  .srv-card__arrow {
    opacity: 0.55;
    transform: translateX(0);
  }
}

.srv-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.srv-card__meta {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

@keyframes srv-in {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* --- Placeholders de carga ------------------------------------------ */

.srv-skeleton {
  min-height: 5.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.srv-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: srv-shimmer 1.4s var(--ease-inout) infinite;
}

@keyframes srv-shimmer {
  to {
    transform: translateX(100%);
  }
}

.srv-grid.is-loading {
  opacity: 0.7;
}

/* --- Estados vacío y error ------------------------------------------ */

.srv-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1.5rem;
  padding: clamp(2rem, 8vw, 3.25rem) 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: srv-in 0.5s var(--ease-soft) both;
}

.srv-state svg {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.44);
}

.srv-state--error svg {
  color: rgba(226, 36, 40, 0.85);
}

.srv-state__title {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
}

.srv-state__text {
  max-width: 26rem;
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.srv-state__btn {
  margin-top: 1.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition:
    transform 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.srv-state__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(26, 95, 180, 0.95);
}

/* --- Paginador ------------------------------------------------------ */

.srv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: clamp(1.75rem, 6vw, 2.5rem);
}

.srv-pager:empty {
  display: none;
}

.srv-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition:
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.srv-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
  transform: translateY(-2px);
}

.srv-page:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.srv-page.is-current {
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgba(26, 95, 180, 0.95);
}

.srv-page svg {
  width: 1rem;
  height: 1rem;
}

.srv-gap {
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.34);
  user-select: none;
}

@media (min-width: 560px) {
  .srv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 900px) {
  .srv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .srv-card {
    min-height: 6.25rem;
    padding: 1.25rem;
  }

  .srv-letters {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srv-card,
  .srv-state,
  .med-card {
    animation: none;
  }

  .srv-skeleton::after {
    animation: none;
  }

  .srv-toolbar {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------- *\
   13. Profesionales de una especialidad
\* -------------------------------------------------------------------- */

.med-eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--boratti-blue-soft);
}

.med-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 6vw, 2.25rem);
}

.med-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1.25rem;
  background: #151c28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  animation: srv-in 0.6s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition:
    transform 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft),
    background 0.45s var(--ease-soft);
}

.med-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: #1a2433;
}

.med-card__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--boratti-blue) 0%, #123f7a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.med-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}

.med-card__photo svg {
  width: 1.65rem;
  height: 1.65rem;
}

.med-card__photo img.is-ready {
  opacity: 1;
}

.med-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.med-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.med-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.med-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.med-tag svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--boratti-blue-soft);
}

.med-card__contact {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.med-dato {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

a.med-dato:hover .med-dato__text {
  color: #ffffff;
}

.med-dato svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: var(--boratti-blue-soft);
}

.med-dato__text {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.med-dato__text strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.med-dato__value {
  display: block;
}

.med-dato--horario .med-dato__value {
  white-space: pre-line;
}

.med-dato--interno .med-dato__value {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

a.med-dato--interno:hover .med-dato__value {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
}

.med-skeleton {
  height: 12rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.med-skeleton--guardia {
  height: 16rem;
}

.is-guardias-dashboard .med-skeleton--guardia {
  height: 5.5rem;
}

.guardia-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(226, 36, 40, 0.28);
  animation: srv-in 0.6s var(--ease-soft) both;
}

.ubicacion-ficha {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 28rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  background: #e8edf3;
  color: #1a3a6e;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}

.ubicacion-ficha__lugar {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.ubicacion-ficha__pin {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: #2563eb;
}

.ubicacion-ficha__pin svg {
  width: 100%;
  height: 100%;
}

.ubicacion-ficha__leyenda {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a3a6e;
}

.guardia-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #e22428 0%, #9e1218 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 10px 22px -14px rgba(226, 36, 40, 0.95);
}

.guardia-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.guardia-card__body {
  min-width: 0;
}

.guardia-card__label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.guardia-card__day {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.guardia-card__time {
  margin: 0.2rem 0 0;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.guardia-card__range {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.med-grid--guardias {
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guardia-block {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.guardia-block__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

#view-medicos.is-guardias-dashboard .view__title {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
}

#view-medicos.is-guardias-dashboard .view__lead {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

#view-medicos.is-guardias-dashboard .view__body {
  padding-bottom: 1rem;
}

@media (max-width: 719px) {
  .med-grid--guardias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .med-grid--guardias .guardia-block {
    gap: 0.3rem;
  }

  .med-grid--guardias .guardia-block__title {
    font-size: 0.72rem;
    line-height: 1.2;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .med-grid--guardias .guardia-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.65rem 0.55rem;
  }

  .med-grid--guardias .guardia-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
  }

  .med-grid--guardias .guardia-card__icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .med-grid--guardias .guardia-card__label {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .med-grid--guardias .guardia-card__day {
    font-size: 0.68rem;
  }

  .med-grid--guardias .guardia-card__time {
    font-size: 0.92rem;
  }

  .med-grid--guardias .guardia-card__range {
    font-size: 0.65rem;
  }

  #view-medicos.is-guardias-dashboard .view__lead {
    display: none;
  }
}

@media (min-width: 720px) {
  .med-grid--guardias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
  }

  .med-grid--guardias .guardia-block__title {
    font-size: 0.9rem;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .med-grid--guardias .guardia-card {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 0.85rem 0.95rem;
  }

  .med-grid--guardias .guardia-card__time {
    font-size: 1.35rem;
  }
}

.med-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: srv-shimmer 1.4s var(--ease-inout) infinite;
}

@media (min-width: 560px) {
  .med-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .med-grid--guardias {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .med-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .med-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .med-grid--guardias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
  }

  .med-card {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .med-skeleton::after {
    animation: none;
  }
}

/* -------------------------------------------------------------------- *\
   14. Instagram — carrusel animado
\* -------------------------------------------------------------------- */

.ig-feed {
  position: relative;
  z-index: 1;
  padding:
    clamp(1.75rem, 5vw, 3rem)
    var(--pad-right)
    clamp(1.85rem, 5vw, 3.25rem)
    var(--pad-left);
  background:
    radial-gradient(90% 70% at 50% 0%, #f7fafd 0%, transparent 60%),
    linear-gradient(180deg, #eef3f9 0%, #e4ecf6 100%);
}

.ig-feed__inner {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
}

.ig-feed__head {
  margin-bottom: clamp(1.15rem, 4vw, 1.75rem);
  text-align: center;
}

.ig-feed__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boratti-blue-soft);
}

.ig-feed__title {
  margin-top: 0.4rem;
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0b1f3d;
}

.ig-feed__profile {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--boratti-blue);
  transition: color 0.35s var(--ease-soft);
}

.ig-feed__profile:hover {
  color: var(--boratti-red);
}

.ig-feed__carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 5vw, 2.5rem);
}

.ig-feed__stage-wrap {
  position: relative;
  width: 100%;
  max-width: 13.25rem;
  margin: 0 auto;
}

.ig-feed__stage {
  position: relative;
  height: 23.5rem;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.ig-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #0f3d73;
  box-shadow: 0 18px 42px -18px rgba(8, 30, 62, 0.55);
  transform-origin: center bottom;
  opacity: 0;
  transform: translate3d(0, 0, -100px) scale(0.9) rotate(var(--ig-rotate, 0deg));
  transition:
    opacity 0.45s var(--ease-soft),
    transform 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft);
}

.ig-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #081a33;
}

.ig-slide.is-behind {
  opacity: 0.72;
  transform: translate3d(0, 0, -80px) scale(0.95) rotate(var(--ig-rotate, 0deg));
}

.ig-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  box-shadow: 0 28px 56px -20px rgba(8, 30, 62, 0.62);
  animation: ig-float 4.8s var(--ease-inout) infinite;
}

.ig-slide__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 26, 55, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

@keyframes ig-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1) rotate(0deg);
  }
}

.ig-feed__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.15rem;
  min-height: 0;
  max-width: 34rem;
}

.ig-feed__name {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0b1f3d;
}

.ig-feed__date {
  margin-top: 0.5rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(11, 31, 61, 0.62);
}

.ig-feed__date a {
  color: var(--boratti-blue);
  transition: color 0.35s var(--ease-soft);
}

.ig-feed__date a:hover {
  color: var(--boratti-red);
}

.ig-feed__caption {
  margin-top: 0.15rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(11, 31, 61, 0.78);
}

.ig-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 5px, 0);
  animation: ig-word-in 0.35s var(--ease-soft) forwards;
}

@keyframes ig-word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.ig-feed__nav {
  display: flex;
  gap: 0.7rem;
  padding-top: 0.55rem;
}

.ig-feed__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 95, 180, 0.12);
  color: #0b1f3d;
  cursor: pointer;
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft);
}

.ig-feed__nav-btn:hover {
  background: rgba(26, 95, 180, 0.2);
  transform: translateY(-2px);
}

.ig-feed__nav-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

#ig-prev:hover svg {
  transform: rotate(-12deg);
}

#ig-next:hover svg {
  transform: rotate(12deg);
}

.ig-feed__nav-btn svg {
  transition: transform 0.35s var(--ease-soft);
}

.ig-feed__layout {
  display: grid;
  gap: 1.5rem;
}

.ig-social {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 0;
  padding: 1.35rem 1.25rem 1.35rem 1.5rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(90% 70% at 18% 12%, rgba(26, 111, 232, 0.28) 0%, transparent 58%),
    #071336;
  color: #ffffff;
  box-shadow: 0 22px 48px -24px rgba(8, 30, 62, 0.55);
}

.ig-social::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 5px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--boratti-blue) 0%, var(--boratti-red) 100%);
}

.ig-social__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--boratti-blue-soft);
}

.ig-social__title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ig-social__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.ig-social__links {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.ig-social__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft);
}

.ig-social__item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #ffffff;
}

.ig-social__item:focus-visible {
  outline: 2px solid var(--boratti-blue-soft);
  outline-offset: 3px;
}

.ig-social__icon {
  flex: 0 0 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(26, 111, 232, 0.22);
  color: #ffffff;
}

.ig-social__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ig-social__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ig-social__text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ig-social__text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.ig-feed__loading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.ig-feed__skeleton {
  display: block;
  border-radius: 1.25rem;
  background: linear-gradient(90deg, #dbe6f2 0%, #eef4fa 45%, #dbe6f2 100%);
  background-size: 220% 100%;
  animation: ig-shimmer 1.4s linear infinite;
}

.ig-feed__skeleton--stage {
  width: 100%;
  max-width: 13.25rem;
  height: 23.5rem;
  margin: 0 auto;
  border-radius: 1.5rem;
}

.ig-feed__skeleton-lines {
  display: grid;
  gap: 0.75rem;
}

.ig-feed__skeleton--line {
  height: 0.95rem;
}

.ig-feed__skeleton--short {
  width: 62%;
}

@keyframes ig-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.ig-feed__state {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 95, 180, 0.12);
}

.ig-feed__state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1f3d;
}

.ig-feed__state-text {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(11, 31, 61, 0.72);
}

.ig-feed__state-btn,
.ig-feed__state-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.ig-feed__state-btn {
  border: 0;
  background: var(--boratti-blue);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.35s var(--ease-soft);
}

.ig-feed__state-btn:hover {
  background: #144a8e;
}

.ig-feed__state-link {
  margin-left: 0.5rem;
  border: 1px solid rgba(26, 95, 180, 0.22);
  color: var(--boratti-blue);
}

@media (min-width: 768px) {
  .ig-feed__head {
    text-align: left;
  }

  .ig-feed__carousel {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: clamp(2.25rem, 4vw, 3.35rem);
  }

  .ig-feed__stage-wrap {
    margin: 0;
  }

  .ig-feed__stage {
    height: 23.5rem;
  }

  .ig-feed__copy {
    padding-left: 0.25rem;
  }

  .ig-feed__nav {
    padding-top: 0.25rem;
    margin-top: auto;
  }

  .ig-feed__loading {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.25rem, 4vw, 3.35rem);
  }
}

@media (min-width: 1100px) {
  .ig-feed__inner {
    max-width: 76rem;
  }

  .ig-feed__layout {
    grid-template-columns: auto minmax(21rem, 1fr);
    align-items: stretch;
    gap: clamp(1.5rem, 2.6vw, 2.35rem);
  }

  .ig-feed__carousel {
    grid-template-columns: 17rem minmax(16rem, 22rem);
  }

  .ig-feed__copy {
    max-width: 22rem;
  }

  .ig-social {
    min-height: 23.5rem;
    padding: 1.6rem 1.45rem 1.6rem 1.7rem;
  }

  .ig-social__links {
    margin-top: auto;
  }
}

/* --- Equipo médico (home) ------------------------------------------ */

.staff-feed {
  position: relative;
  z-index: 1;
  padding:
    clamp(2rem, 5vw, 3.25rem)
    var(--pad-right)
    clamp(2.25rem, 5vw, 3.75rem)
    var(--pad-left);
  background:
    radial-gradient(90% 70% at 50% 0%, #f7fafd 0%, transparent 60%),
    linear-gradient(180deg, #eef3f9 0%, #e4ecf6 100%);
}

.staff-feed__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.staff-feed__head {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.staff-feed__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boratti-blue-soft);
}

.staff-feed__title {
  margin-top: 0.4rem;
  font-size: clamp(1.55rem, 5.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0b1f3d;
}

.staff-feed__lead {
  max-width: 34rem;
  margin: 0.7rem auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #4a5d78;
}

.staff-feed__slider {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.staff-feed__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}

.staff-feed__viewport::-webkit-scrollbar {
  display: none;
}

.staff-feed__track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  padding-block: 0.7rem 1.35rem;
  padding-inline: 0 0.35rem;
}

.staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 0 0 min(16.25rem, calc(100cqi - 1.4rem));
  width: min(16.25rem, calc(100cqi - 1.4rem));
  max-width: 100cqi;
  overflow: visible;
  perspective: 1400px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: staff-enter 0.85s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 0.1s);
  transition: transform 0.45s var(--ease-soft);
}

.staff-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-soft);
}

.staff-card.is-flipped .staff-card__inner {
  transform: rotateY(180deg);
}

.staff-card.is-flipped .staff-card__face--front {
  z-index: 0;
}

.staff-card.is-flipped .staff-card__face--back {
  z-index: 2;
}

.staff-card__face {
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(26, 95, 180, 0.12);
  box-shadow: 0 22px 48px -24px rgba(8, 30, 62, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.staff-card__face--front {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.staff-card__face--front::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 5px;
  background: linear-gradient(180deg, var(--boratti-blue) 0%, var(--boratti-red) 100%);
}

.staff-card__face--back {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.95rem 0.85rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(226, 36, 40, 0.22) 0%, transparent 46%),
    linear-gradient(165deg, #0b1f3d 0%, #123a6c 58%, #1a6fe8 140%);
  color: #ffffff;
  transform: rotateY(180deg);
}

.staff-card--flip {
  cursor: pointer;
}

.staff-card:hover {
  z-index: 2;
  transform: translateY(-6px);
}

.staff-card.is-flipped:hover {
  transform: none;
}

.staff-card:hover .staff-card__face {
  box-shadow: 0 28px 56px -18px rgba(26, 95, 180, 0.42);
}

.staff-card:hover .staff-card__photo img {
  transform: scale(1.06);
}

.staff-card.is-flipped:hover .staff-card__photo img {
  transform: none;
}

.staff-card__photo {
  position: relative;
  height: clamp(11.5rem, 28vw, 14.5rem);
  overflow: hidden;
  background: linear-gradient(180deg, #e8eef8 0%, #d5e0ef 100%);
}

.staff-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: staff-shine 4.2s var(--ease-soft) 1.1s infinite;
  pointer-events: none;
}

.staff-card__badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.7rem);
}

.staff-card__badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e22428 0%, #ff5a7a 100%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px -10px rgba(226, 36, 40, 0.9);
}

.staff-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7b90ad;
}

.staff-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease-soft),
    transform 0.7s var(--ease-soft);
}

.staff-card__photo img.is-ready {
  opacity: 1;
}

.staff-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.75rem 0.9rem 0.45rem;
}

.staff-card__name {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.12;
}

.staff-card__apellido {
  font-size: clamp(1.05rem, 3.2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--boratti-blue);
  white-space: nowrap;
}

.staff-card__given {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2d4d;
}

.staff-card__spec {
  font-size: 0.875rem;
  color: #6b7d96;
}

.staff-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5c6f88;
}

.staff-card__meta svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.staff-card__meta a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: inherit;
}

.staff-card__meta a:hover {
  color: var(--boratti-blue);
}

.staff-card__foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.5rem 0.9rem 0.7rem;
  border-top: 1px solid #eef2f7;
}

.staff-card__likes,
.staff-card__comments {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.staff-card__likes {
  color: var(--boratti-red);
}

.staff-card__comments {
  color: #4a5d78;
}

.staff-card__likes svg,
.staff-card__comments svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.staff-card__flip-hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 31, 61, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.staff-card__back-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.staff-card__back-title {
  margin: 0.4rem 0 0.95rem;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: capitalize;
}

.staff-card__back-body {
  display: grid;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.staff-card__back-sec + .staff-card__back-sec {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.staff-card__back-sec-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.staff-card__back-status {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.staff-card__dato {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

a.staff-card__dato:hover span {
  color: #ffffff;
}

.staff-card__dato svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #9ec0ff;
}

.staff-card__dato span {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.staff-card__dato strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.staff-card__dato--horario span {
  white-space: pre-line;
}

.staff-card__back-hint {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.staff-card--skeleton {
  min-height: 20rem;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(90deg, #eef3f9 0%, #f7fafd 50%, #eef3f9 100%);
  background-size: 200% 100%;
  animation: staff-shimmer 1.4s ease infinite;
}

@keyframes staff-shimmer {
  to { background-position: -200% 0; }
}

@keyframes staff-enter {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(2.2rem) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes staff-shine {
  0%, 58% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.staff-feed__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(26, 95, 180, 0.14);
  color: #0b1f3d;
  box-shadow: 0 8px 24px -14px rgba(8, 30, 62, 0.35);
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.staff-feed__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #f7fafd;
}

.staff-feed__arrow:disabled {
  opacity: 0.35;
}

.staff-feed__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}

.staff-feed__empty,
.staff-feed__error {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #5c6f88;
}

.staff-feed__error button {
  margin-left: 0.35rem;
  color: var(--boratti-blue);
  font-weight: 600;
}

.staff-feed__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
}

.staff-feed__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--boratti-blue);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.staff-feed__more:hover {
  background: var(--boratti-blue-soft);
}

@media (min-width: 768px) {
  .staff-feed__head {
    text-align: left;
  }

  .staff-feed__lead {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-card,
  .staff-card--skeleton,
  .staff-feed__arrow,
  .staff-card__photo::after {
    animation: none;
    transition: none;
  }

  .staff-card {
    transform: none;
  }

  .staff-card__inner {
    transition: none;
  }

  .staff-card.is-flipped .staff-card__inner {
    transform: none;
  }

  .staff-card.is-flipped .staff-card__face--front {
    display: none;
  }

  .staff-card.is-flipped .staff-card__face--back {
    position: relative;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-slide.is-active {
    animation: none;
  }

  .ig-word {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .ig-feed__skeleton {
    animation: none;
  }

  .os-carousel__track {
    transition: none;
  }

  .os-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------- *\
   16. Obras sociales — carrusel de logos
\* -------------------------------------------------------------------- */

.os-carousel {
  position: relative;
  z-index: 1;
  padding:
    clamp(2.75rem, 7vw, 4.5rem)
    var(--pad-right)
    clamp(3rem, 8vw, 5rem)
    var(--pad-left);
  background:
    radial-gradient(90% 70% at 50% 0%, #f7fafd 0%, transparent 60%),
    linear-gradient(180deg, #eef3f9 0%, #e4ecf6 100%);
}

.os-carousel__inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.os-carousel__head {
  margin-bottom: clamp(1.75rem, 6vw, 2.75rem);
  text-align: center;
}

.os-carousel__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boratti-blue-soft);
}

.os-carousel__title {
  margin-top: 0.55rem;
  font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0b1f3d;
}

.os-carousel__lead {
  margin-top: 0.75rem;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.55;
  color: rgba(11, 31, 61, 0.68);
}

.os-carousel__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.os-carousel__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}

.os-carousel__track {
  display: flex;
  transition: transform 0.55s var(--ease-soft);
  will-change: transform;
}

.os-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 3vw, 1.25rem);
  padding: 0.15rem;
}

.os-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(8.15rem, 28vw, 10.15rem);
  padding: clamp(0.8rem, 3vw, 1.1rem);
  border-radius: 1.15rem;
  background: #ffffff;
  border: 1px solid rgba(26, 95, 180, 0.12);
  box-shadow: 0 12px 28px -20px rgba(8, 30, 62, 0.32);
}

.os-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 5px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--boratti-blue) 0%, var(--boratti-red) 100%);
}

.os-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(90%, 16.5rem);
  max-height: clamp(4.4rem, 20vw, 6.1rem);
  object-fit: contain;
}

.os-card__name {
  position: relative;
  z-index: 1;
  max-width: 90%;
  padding: 0 0.85rem;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  color: #0b1f3d;
}

.os-card--consalud {
  min-height: clamp(11.25rem, 38vw, 14.25rem);
  padding: 0.45rem;
}

.os-card--consalud img {
  width: 100%;
  max-width: 100%;
  max-height: clamp(9.75rem, 34vw, 12.75rem);
}

.os-carousel__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.6rem, 10vw, 3.25rem);
  height: clamp(2.6rem, 10vw, 3.25rem);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 95, 180, 0.14);
  color: #0b1f3d;
  box-shadow: 0 8px 24px -14px rgba(8, 30, 62, 0.35);
  cursor: pointer;
  transition:
    background 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft);
}

.os-carousel__arrow:hover {
  background: #ffffff;
  color: var(--boratti-blue);
  transform: translateY(-2px);
}

.os-carousel__arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

.os-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.os-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 95, 180, 0.22);
  cursor: pointer;
  transition:
    width 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft);
}

.os-carousel__dot.is-active {
  width: 1.6rem;
  background: var(--boratti-blue);
}

.os-carousel__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.os-carousel__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--boratti-blue) 0%, var(--boratti-blue-soft) 100%);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(26, 95, 180, 0.85);
  transition:
    transform 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.os-carousel__more:visited {
  color: #ffffff;
}

.os-carousel__more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(26, 95, 180, 0.95);
  color: #ffffff;
}

.os-carousel__more:focus-visible {
  outline: 2px solid var(--boratti-blue);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .os-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-card {
    min-height: clamp(7.6rem, 16vw, 9.35rem);
  }

  .os-card img {
    max-height: clamp(4.2rem, 11vw, 5.5rem);
  }

  .os-card--consalud {
    min-height: clamp(11rem, 24vw, 13.5rem);
  }

  .os-card--consalud img {
    max-height: clamp(9.5rem, 22vw, 12.25rem);
  }
}

@media (min-width: 1024px) {
  .os-slide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .os-card {
    min-height: 8.85rem;
  }

  .os-card img {
    max-height: 5.35rem;
  }

  .os-card--consalud {
    min-height: 12.75rem;
  }

  .os-card--consalud img {
    max-height: 11.5rem;
  }
}

@media (min-width: 768px) {
  .os-carousel__head {
    text-align: left;
  }
}

/* --- Listado de obras sociales (vista overlay) ---------------------- */

#view-obras .view__body {
  max-width: 100%;
  min-width: 0;
}

.os-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.85rem;
}

.os-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 6.25rem;
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: srv-in 0.62s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition:
    transform 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft),
    background 0.45s var(--ease-soft);
}

.os-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.os-item__logo {
  flex: 0 0 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: #ffffff;
  overflow: hidden;
}

.os-item__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.os-item__inicial {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--boratti-blue);
}

.os-item__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.os-item__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-item__detalle {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-item__link {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--boratti-blue-soft);
  transition: color 0.35s var(--ease-soft);
}

.os-item__link:hover {
  color: #ffffff;
}

@media (min-width: 640px) {
  .os-item {
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }

  .os-item__logo {
    flex-basis: 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (min-width: 900px) {
  .os-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .os-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-item {
    animation: none;
  }
}

/* -------------------------------------------------------------------- *\
   17. Pie de página
\* -------------------------------------------------------------------- */

.footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #071336;
}

.footer__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #071336;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 9vw, 4rem);
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 10vw, 4.5rem) var(--pad-right) clamp(2rem, 7vw, 3rem) var(--pad-left);
}

.footer__logo {
  display: block;
  height: clamp(2.75rem, 11vw, 3.75rem);
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.footer__claim {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 5.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Columnas de enlaces */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 7vw, 3rem);
}

.footer__col-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.footer__list a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.74);
  transition:
    color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.footer__list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Franja inferior */
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 2rem) var(--pad-right) calc(var(--pad-bottom) + 0.75rem) var(--pad-left);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  transition:
    background 0.4s var(--ease-soft),
    transform 0.4s var(--ease-soft),
    color 0.4s var(--ease-soft);
}

.footer__socials a:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer__socials a.is-wa {
  background: var(--boratti-blue);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.footer__socials a.is-wa:hover {
  background: var(--boratti-blue-soft);
}

.footer__socials svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer__copy {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 560px) {
  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 6rem);
  }

  .footer__brand {
    flex: 0 1 22rem;
  }

  .footer__cols {
    flex: 0 1 auto;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .footer__logo {
    height: 4.25rem;
  }
}

/* -------------------------------------------------------------------- *\
   18. WhatsApp flotante
\* -------------------------------------------------------------------- */

.wa-fab {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  z-index: 140;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 50%;
  background: var(--slide-color);
  color: #ffffff;
  box-shadow:
    0 12px 28px -10px color-mix(in srgb, var(--slide-color) 85%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    transform 0.4s var(--ease-soft),
    background var(--carousel-duration) var(--ease-soft),
    box-shadow var(--carousel-duration) var(--ease-soft),
    filter 0.3s var(--ease-soft);
}

.wa-fab svg {
  width: 1.7rem;
  height: 1.7rem;
}

.wa-fab:hover {
  filter: brightness(1.1);
  transform: translateY(-3px) scale(1.04);
}

body.is-loading .wa-fab {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }

  .wa-fab:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------------- *\
   19. Escritorio — refinamiento 1280px → 1920px
\* -------------------------------------------------------------------- */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@media (min-width: 1280px) {
  :root {
    --logo-h: clamp(3.15rem, 3.6vw, 4.25rem);
  }

  .header__inner,
  .main,
  .hero-footer,
  .ig-feed__inner,
  .staff-feed__inner,
  .feature-cards__grid,
  .home-historia__inner,
  .os-carousel__inner,
  .footer__inner,
  .footer__bottom {
    max-width: 88rem;
  }

  .hero-bg img {
    filter: blur(3px) saturate(1.08);
  }

  .nav {
    gap: clamp(1.1rem, 1.8vw, 2rem);
  }

  .nav > a,
  .nav-drop__btn {
    font-size: 0.76rem;
    letter-spacing: 0.13em;
  }

  .nav-drop__btn--areas {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .circle {
    width: min(30vw, 58svh, 32rem);
    height: min(30vw, 58svh, 32rem);
    box-shadow:
      0 32px 100px -24px color-mix(in srgb, var(--slide-color) 70%, transparent),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .portrait {
    width: min(24vw, 48svh, 24rem);
  }

  .portrait--wide {
    width: min(32vw, 54svh, 29rem);
  }

  .headline__title {
    font-size: clamp(3.6rem, 4.6vw, 5.75rem);
    letter-spacing: -0.038em;
  }

  .headline__lead {
    font-size: 1.2rem;
    max-width: 26rem;
  }

  .stage__dots {
    width: 5.5rem;
    height: 7.25rem;
    left: -11%;
  }
}

@media (min-width: 1440px) {
  :root {
    --pad-left: max(3.5rem, env(safe-area-inset-left));
    --pad-right: max(3.5rem, env(safe-area-inset-right));
    --portrait-scale: 1.18;
  }

  .header__inner,
  .main,
  .hero-footer,
  .ig-feed__inner,
  .staff-feed__inner,
  .feature-cards__grid,
  .home-historia__inner,
  .os-carousel__inner,
  .footer__inner,
  .footer__bottom {
    max-width: 92rem;
  }

  .headline__title {
    font-size: clamp(4rem, 4.4vw, 6.15rem);
  }

  .btn-turno {
    padding: 0.82rem 1.3rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --pad-top: max(2.75rem, env(safe-area-inset-top));
    --pad-bottom: max(2.75rem, env(safe-area-inset-bottom));
    --pad-left: max(4rem, env(safe-area-inset-left));
    --pad-right: max(4rem, env(safe-area-inset-right));
  }

  .circle {
    width: min(28vw, 60svh, 36rem);
    height: min(28vw, 60svh, 36rem);
  }

  .portrait {
    width: min(24vw, 50svh, 26rem);
  }

  .portrait--wide {
    width: min(30vw, 56svh, 31rem);
  }
}

@media (min-width: 1920px) {
  .header__inner,
  .main,
  .hero-footer,
  .ig-feed__inner,
  .feature-cards__grid,
  .home-historia__inner,
  .os-carousel__inner,
  .footer__inner,
  .footer__bottom {
    max-width: 96rem;
  }

  .headline__title {
    font-size: 6.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline__cta:hover,
  .btn-turno:hover {
    transform: none;
  }
}

