/*
 * Psiquiatría — dirección de movimiento "clinical editorial"
 * Capas visuales y microinteracciones progresivas, sin dependencias.
 */

@property --psy-orbit-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.psychiatry-document {
  overflow-x: clip;
}

.psychiatry-page {
  --psy-navy: #173d3a;
  --psy-teal: #2f8f80;
  --psy-mint: #a9dfc1;
  --psy-coral: #e89274;
  --psy-violet: #8b7bc5;
  --psy-canvas: #f7faf5;
  --psy-ease-out: cubic-bezier(.16, 1, .3, 1);
  --psy-ease-spring: cubic-bezier(.2, 1.4, .4, 1);
  --psy-progress: 0;
  background:
    radial-gradient(circle at 13% 2%, rgba(169, 223, 193, .16), transparent 31rem),
    var(--bg);
  overflow-x: clip;
}

/* ---------- Progreso de lectura ---------- */
.psy-scroll-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .18);
}

.psy-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--psy-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--psy-teal), var(--psy-mint), var(--psy-coral));
  box-shadow: 0 0 16px rgba(47, 143, 128, .42);
  will-change: transform;
}

/* ---------- Navegación editorial ---------- */
.psychiatry-page .site-header {
  transition: box-shadow .45s ease, background .45s ease, border-color .45s ease;
}

.psychiatry-page.psy-has-scrolled .site-header {
  background: color-mix(in oklab, var(--bg) 78%, white);
  border-color: rgba(47, 143, 128, .18);
  box-shadow: 0 18px 42px rgba(23, 61, 58, .08);
}

.psychiatry-page .main-nav a {
  position: relative;
}

.psychiatry-page .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 99px;
  background: var(--psy-teal);
  transition: right .45s var(--psy-ease-out);
}

.psychiatry-page .main-nav a:hover::after,
.psychiatry-page .main-nav a.psy-nav-active::after {
  right: 0;
}

/* ---------- Hero inmersivo ---------- */
.psychiatry-page .hero {
  isolation: isolate;
  min-height: min(780px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  padding-block: clamp(72px, 9vw, 118px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .64), rgba(247, 250, 245, .1) 48%, rgba(169, 223, 193, .12)),
    radial-gradient(circle at 80% 28%, rgba(139, 123, 197, .12), transparent 32%),
    radial-gradient(circle at 64% 72%, rgba(232, 146, 116, .12), transparent 28%);
}

.psychiatry-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 143, 128, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 143, 128, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000 88%, transparent);
}

.psychiatry-page .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(360px, 46vw, 720px);
  aspect-ratio: 1;
  right: -13%;
  top: -35%;
  border-radius: 50%;
  border: 1px solid rgba(47, 143, 128, .12);
  box-shadow:
    0 0 0 68px rgba(169, 223, 193, .045),
    0 0 0 136px rgba(139, 123, 197, .025);
  pointer-events: none;
}

.psychiatry-page .hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: clamp(48px, 7vw, 96px);
}

.psychiatry-page .hero h1 {
  max-width: 680px;
  font-size: clamp(2.65rem, 5.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.042em;
}

.psychiatry-page .hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--psy-teal);
  background: none;
  white-space: nowrap;
}

.psychiatry-page .hero h1 em::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -.04em;
  right: -.04em;
  bottom: .06em;
  height: .16em;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(232, 146, 116, .2), rgba(232, 146, 116, .72), rgba(169, 223, 193, .45));
  transform: scaleX(0);
  transform-origin: left;
}

.psychiatry-page.psy-motion-ready .hero h1 em::after {
  animation: psyLineDraw 1.05s .92s var(--psy-ease-out) forwards;
}

.psychiatry-page .hero-sub {
  max-width: 590px;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
}

.psychiatry-page .hero-ctas .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: transform .32s var(--psy-ease-out), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

.psychiatry-page .site-header .btn {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: transform .32s var(--psy-ease-out), box-shadow .3s ease, background .3s ease;
}

.psychiatry-page .hero-ctas .btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 48px;
  height: 220%;
  top: -60%;
  left: -90px;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, .28);
  transition: left .8s var(--psy-ease-out);
}

.psychiatry-page .hero-ctas .btn:hover::before {
  left: calc(100% + 60px);
}

.psychiatry-page .hero-chips {
  max-width: 610px;
  gap: 10px;
  margin-top: 28px;
}

.psychiatry-page .hero-chip {
  position: relative;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(47, 143, 128, .16);
  box-shadow: 0 8px 28px rgba(23, 61, 58, .045);
  backdrop-filter: blur(12px);
  transition: transform .35s var(--psy-ease-out), border-color .35s ease, box-shadow .35s ease;
}

.psychiatry-page .hero-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 143, 128, .42);
  box-shadow: 0 14px 32px rgba(23, 61, 58, .09);
}

.psychiatry-page .hero-chip::before {
  background: var(--psy-teal);
  box-shadow: 0 0 0 4px rgba(47, 143, 128, .12);
}

.psychiatry-page .hero-visual {
  min-height: 520px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.psy-aurora {
  position: absolute;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from var(--psy-orbit-angle), rgba(169, 223, 193, .64), rgba(139, 123, 197, .34), rgba(232, 146, 116, .38), rgba(169, 223, 193, .64));
  filter: blur(42px);
  opacity: .36;
  transform: translate3d(calc(var(--psy-mx, 0) * -12px), calc(var(--psy-my, 0) * -12px), -40px) scale(.88);
  transition: transform .6s var(--psy-ease-out);
  animation: psyAuroraRotate 18s linear infinite;
  pointer-events: none;
}

.psy-orbit-system {
  position: absolute;
  width: min(520px, 116%);
  aspect-ratio: 1;
  overflow: visible;
  opacity: .72;
  transform: translate3d(calc(var(--psy-mx, 0) * 10px), calc(var(--psy-my, 0) * 10px), -10px) rotate(-7deg);
  transition: transform .7s var(--psy-ease-out);
  pointer-events: none;
}

.psy-orbit-ring,
.psy-orbit-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.psy-orbit-ring {
  stroke: rgba(47, 143, 128, .23);
  stroke-width: 1;
  stroke-dasharray: 3 10;
  transform-origin: 260px 260px;
}

.psy-orbit-ring-1 { animation: psyOrbitSpin 32s linear infinite; }
.psy-orbit-ring-2 { animation: psyOrbitSpinReverse 24s linear infinite; }

.psy-orbit-flow {
  stroke: rgba(47, 143, 128, .34);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 9 11;
  animation: psyDashTravel 10s linear infinite;
}

.psy-orbit-nodes circle {
  fill: #fff;
  stroke: var(--psy-teal);
  stroke-width: 2;
  filter: drop-shadow(0 4px 8px rgba(47, 143, 128, .3));
  transform-box: fill-box;
  transform-origin: center;
  animation: psyNodePulse 3.2s ease-in-out infinite;
}

.psy-orbit-nodes circle:nth-child(2) { animation-delay: .8s; }
.psy-orbit-nodes circle:nth-child(3) { animation-delay: 1.6s; }

.psychiatry-page .hero-visual .blob {
  filter: blur(4px);
  mix-blend-mode: multiply;
}

.psychiatry-page .hero-visual .blob-1 {
  width: 390px;
  height: 390px;
  opacity: .26;
}

.psychiatry-page .hero-visual .blob-3 {
  width: 190px;
  height: 190px;
  opacity: .28;
}

.psychiatry-page .hero-photo {
  width: min(430px, 86vw);
  position: relative;
  z-index: 4;
  padding: 8px;
  border-radius: 34px;
  background: rgba(255, 255, 255, .7);
  box-shadow:
    0 34px 80px rgba(23, 61, 58, .2),
    0 10px 24px rgba(23, 61, 58, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  transform:
    translate3d(calc(var(--psy-mx, 0) * 8px), calc(var(--psy-my, 0) * 7px), 26px)
    rotateX(calc(var(--psy-my, 0) * -2.4deg))
    rotateY(calc(var(--psy-mx, 0) * 3.2deg));
  transition: transform .5s var(--psy-ease-out), box-shadow .5s ease;
  will-change: transform;
}

.psychiatry-page .hero-photo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: 36px;
  padding: 2px;
  background: conic-gradient(from var(--psy-orbit-angle), transparent 12%, rgba(47, 143, 128, .75), transparent 40%, rgba(232, 146, 116, .6), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: psyFrameSpin 12s linear infinite;
}

.psychiatry-page .hero-photo .hero-img {
  width: 100% !important;
  height: clamp(340px, 38vw, 450px) !important;
  border: 0;
  border-radius: 27px;
  object-position: 55% 20%;
  box-shadow: none;
  filter: saturate(.88) contrast(1.02) sepia(.04);
  transform: scale(1.035);
  transition: transform 1.1s var(--psy-ease-out), filter .6s ease;
}

.psychiatry-page .hero-photo:hover .hero-img {
  transform: scale(1.07);
  filter: saturate(1) contrast(1.03);
}

.psy-photo-label {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 61, 58, .58);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(23, 61, 58, .14);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.psy-photo-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bcebc8;
  box-shadow: 0 0 0 4px rgba(188, 235, 200, .22);
  animation: psyStatusPulse 2.2s ease-in-out infinite;
}

.psy-photo-sheen {
  position: absolute;
  z-index: 2;
  inset: 8px;
  overflow: hidden;
  border-radius: 27px;
  pointer-events: none;
}

.psy-photo-sheen::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(112deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(-80%) rotate(8deg);
  animation: psyPhotoSheen 8s 1.4s var(--psy-ease-out) infinite;
}

.psy-float-card {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 194px;
  padding: 12px 15px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 17px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 42px rgba(23, 61, 58, .15);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: translate3d(calc(var(--psy-mx, 0) * var(--psy-shift-x, 8px)), calc(var(--psy-my, 0) * var(--psy-shift-y, 8px)), 55px);
  transition: transform .55s var(--psy-ease-out), box-shadow .4s ease;
  will-change: transform;
}

.psy-float-card strong,
.psy-float-card small {
  display: block;
  line-height: 1.25;
}

.psy-float-card strong { color: var(--psy-navy); font-size: .78rem; }
.psy-float-card small { color: var(--ink-soft); font-size: .66rem; margin-top: 3px; }

.psy-float-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.psy-float-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.psy-float-card-care {
  --psy-shift-x: -13px;
  --psy-shift-y: -9px;
  top: 12%;
  right: -6%;
}

.psy-float-card-care .psy-float-icon {
  color: var(--psy-teal);
  background: rgba(169, 223, 193, .4);
}

.psy-float-card-team {
  --psy-shift-x: 11px;
  --psy-shift-y: 14px;
  left: -9%;
  bottom: 9%;
}

.psy-float-card-team .psy-float-icon {
  color: var(--psy-violet);
  background: rgba(139, 123, 197, .14);
}

/* Secuencia de entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  .psychiatry-page.psy-motion-enabled .hero-grid > .reveal:first-child > * {
    opacity: 0;
    transform: translateY(22px);
  }

  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > * {
    animation: psyEditorialEnter .9s var(--psy-ease-out) forwards;
  }

  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > :nth-child(1) { animation-delay: .1s; }
  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > :nth-child(2) { animation-delay: .2s; }
  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > :nth-child(3) { animation-delay: .34s; }
  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > :nth-child(4) { animation-delay: .48s; }
  .psychiatry-page.psy-motion-ready .hero-grid > .reveal:first-child > :nth-child(5) { animation-delay: .62s; }

  .psychiatry-page.psy-motion-enabled .psy-depth-card {
    opacity: 0;
    clip-path: inset(12% 12% 12% 12% round 34px);
  }

  .psychiatry-page.psy-motion-ready .psy-depth-card {
    animation: psyPhotoReveal 1.25s .3s var(--psy-ease-out) forwards;
  }

  .psychiatry-page.psy-motion-enabled .psy-float-card {
    opacity: 0;
  }

  .psychiatry-page.psy-motion-ready .psy-float-card-care {
    animation: psyFloatCardIn .85s .92s var(--psy-ease-spring) forwards, psyCardBreathe 5.5s 1.8s ease-in-out infinite;
  }

  .psychiatry-page.psy-motion-ready .psy-float-card-team {
    animation: psyFloatCardIn .85s 1.08s var(--psy-ease-spring) forwards, psyCardBreathe 6.2s 2s ease-in-out infinite reverse;
  }
}

/* ---------- Franja de confianza ---------- */
.psychiatry-page .trust-strip {
  position: relative;
  overflow: hidden;
  background: rgba(239, 245, 234, .68);
  backdrop-filter: blur(12px);
}

.psychiatry-page .trust-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .75) 48%, transparent 74%);
  transform: translateX(-100%);
  animation: psyTrustSweep 9s 2s var(--psy-ease-out) infinite;
}

.psychiatry-page .trust-item {
  position: relative;
  z-index: 1;
  transition: transform .35s var(--psy-ease-out), color .35s ease;
}

.psychiatry-page .trust-item:hover {
  color: var(--psy-navy);
  transform: translateY(-3px);
}

.psychiatry-page .trust-item .dot {
  transition: transform .5s var(--psy-ease-spring), box-shadow .4s ease;
}

.psychiatry-page .trust-item:hover .dot {
  transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 8px 22px rgba(23, 61, 58, .12);
}

/* ---------- Ritmo de secciones ---------- */
.psychiatry-page section:not(.hero):not(.final-cta):not(.eq-section) {
  position: relative;
  isolation: isolate;
}

.psychiatry-page section:not(.hero):not(.final-cta):not(.eq-section)::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: max(-180px, calc((100vw - 1080px) / 2 - 280px));
  top: 12%;
  background: radial-gradient(circle, rgba(169, 223, 193, .13), transparent 70%);
  pointer-events: none;
}

.psychiatry-page .section-head h2 {
  letter-spacing: -.024em;
}

.psychiatry-page .section-head .eyebrow {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

/* ---------- Tarjetas con luz interactiva ---------- */
.psychiatry-page .signal,
.psychiatry-page .step,
.psychiatry-page .area,
.psychiatry-page .faq-item,
.psychiatry-page .eq-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.psychiatry-page .signal::after,
.psychiatry-page .step::after,
.psychiatry-page .area::after,
.psychiatry-page .faq-item::after,
.psychiatry-page .eq-card::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 240px;
  left: calc(var(--spot-x, 50%) - 120px);
  top: calc(var(--spot-y, 50%) - 120px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 223, 193, .24), transparent 66%);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .35s ease, transform .55s var(--psy-ease-out);
  pointer-events: none;
}

.psychiatry-page .signal > *,
.psychiatry-page .step > *,
.psychiatry-page .area > *,
.psychiatry-page .faq-item > *,
.psychiatry-page .eq-card > * {
  position: relative;
  z-index: 1;
}

.psychiatry-page .signal:hover::after,
.psychiatry-page .step:hover::after,
.psychiatry-page .area:hover::after,
.psychiatry-page .faq-item:hover::after,
.psychiatry-page .eq-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.psychiatry-page .signal {
  box-shadow: 0 6px 24px rgba(23, 61, 58, .035);
  transition: transform .4s var(--psy-ease-out), border-color .3s ease, background .3s ease, box-shadow .4s ease;
}

.psychiatry-page .signal:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 18px 42px rgba(23, 61, 58, .09);
}

.psychiatry-page .signal .check {
  position: relative;
  overflow: visible;
}

.psychiatry-page .signal.psy-signal-pulse .check::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--psy-teal);
  animation: psyCheckRipple .65s ease-out forwards;
}

.psychiatry-page .signal-result.is-visible {
  box-shadow: 0 24px 60px rgba(139, 123, 197, .12);
  animation: psyResultReveal .65s var(--psy-ease-spring);
}

/* ---------- Línea de proceso ---------- */
.psychiatry-page .steps-grid {
  position: relative;
}

.psychiatry-page .steps-grid::before,
.psychiatry-page .steps-grid::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 48px;
  left: 10%;
  width: 80%;
  height: 2px;
  border-radius: 99px;
}

.psychiatry-page .steps-grid::before {
  background: linear-gradient(90deg, var(--sage), var(--terra), var(--lav), var(--sage));
  opacity: .35;
}

.psychiatry-page .steps-grid::after {
  background: linear-gradient(90deg, var(--psy-teal), var(--psy-coral), var(--psy-violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s .22s var(--psy-ease-out);
}

.psychiatry-page .steps-grid.psy-sequence-in::after { transform: scaleX(1); }

.psychiatry-page .step {
  z-index: 1;
  border-color: rgba(47, 143, 128, .12);
  box-shadow: 0 14px 38px rgba(23, 61, 58, .07);
  transform-style: preserve-3d;
}

.psychiatry-page .step .num {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .84);
  transition: transform .45s var(--psy-ease-spring), box-shadow .45s ease;
}

.psychiatry-page .step:hover .num {
  transform: translateY(-3px) rotate(-6deg) scale(1.1);
  box-shadow: 0 10px 24px rgba(23, 61, 58, .14), 0 0 0 8px rgba(255, 255, 255, .9);
}

/* ---------- Áreas: numeración editorial ---------- */
.psychiatry-page .area {
  min-height: 170px;
  padding-top: 34px;
  border-top-width: 0;
  border: 1px solid rgba(47, 143, 128, .12);
  box-shadow: 0 12px 36px rgba(23, 61, 58, .055);
}

.psychiatry-page .area::before {
  content: counter(psy-area, decimal-leading-zero);
  counter-increment: psy-area;
  position: absolute;
  top: 15px;
  right: 18px;
  color: rgba(23, 61, 58, .14);
  font: 700 .68rem/1 var(--font-body);
  letter-spacing: .12em;
}

.psychiatry-page .area-grid { counter-reset: psy-area; }

.psychiatry-page .area h3::before {
  content: '';
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--psy-teal), var(--psy-mint));
  transition: width .55s var(--psy-ease-out);
}

.psychiatry-page .area:nth-child(3n + 2) h3::before {
  background: linear-gradient(90deg, var(--psy-coral), var(--terra));
}

.psychiatry-page .area:nth-child(3n + 3) h3::before {
  background: linear-gradient(90deg, var(--psy-violet), var(--lav));
}

.psychiatry-page .area:hover h3::before { width: 70px; }

/* ---------- Mitos más cinematográficos ---------- */
.psychiatry-page .myth { perspective: 1600px; }

.psychiatry-page .myth-inner {
  transition: transform .82s var(--psy-ease-out);
}

.psychiatry-page .myth:not(.is-flipped):hover .myth-inner {
  filter: drop-shadow(0 18px 30px rgba(23, 61, 58, .08));
}

.psychiatry-page .myth-face {
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(23, 61, 58, .06);
}

.psychiatry-page .myth-face::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .09;
  box-shadow: 0 0 0 24px currentColor, 0 0 0 52px currentColor;
}

.psychiatry-page .myth.is-flipped .myth-back {
  box-shadow: 0 24px 62px rgba(47, 143, 128, .17);
}

/* ---------- FAQ, mapa y equipo ---------- */
.psychiatry-page .faq-item {
  transition: transform .35s var(--psy-ease-out), border-color .35s ease, box-shadow .35s ease;
}

.psychiatry-page .faq-item:hover,
.psychiatry-page .faq-item.is-open {
  transform: translateX(5px);
  border-color: rgba(47, 143, 128, .34);
  box-shadow: 0 16px 38px rgba(23, 61, 58, .07);
}

.psychiatry-page .map-panel {
  border-color: rgba(47, 143, 128, .14);
  box-shadow: 0 30px 80px rgba(23, 61, 58, .11);
  transition: transform .7s var(--psy-ease-out), box-shadow .5s ease;
}

.psychiatry-page .map-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 90px rgba(23, 61, 58, .15);
}

.psychiatry-page .map-tab {
  transition: transform .35s var(--psy-ease-out), border-color .3s ease, background .3s ease, box-shadow .35s ease;
}

.psychiatry-page .map-tab:hover { transform: translateX(5px); }

.psychiatry-page .map-frame-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(169, 223, 193, .12), transparent 48%, rgba(232, 146, 116, .08));
  mix-blend-mode: multiply;
}

.psychiatry-page .map-frame-wrap iframe {
  transition: opacity .42s ease, transform .42s var(--psy-ease-out), filter .42s ease;
}

.psychiatry-page .map-frame-wrap.psy-map-switching iframe {
  opacity: .36;
  transform: scale(.985);
  filter: saturate(.6);
}

.psychiatry-page .eq-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 10%, rgba(169, 223, 193, .18), transparent 26rem),
    var(--bg);
}

.psychiatry-page .eq-card {
  transition: transform .55s var(--psy-ease-out), box-shadow .45s ease;
}

.psychiatry-page .eq-card:hover {
  transform: translateY(-9px) rotateX(1.5deg);
  box-shadow: 0 28px 64px rgba(23, 61, 58, .13);
}

.psychiatry-page .eq-photo {
  transition: transform .9s var(--psy-ease-out), filter .5s ease;
}

.psychiatry-page .eq-card:hover .eq-photo {
  transform: scale(1.045);
  filter: saturate(1.04);
}

/* ---------- Cierre de alto impacto ---------- */
.psychiatry-page .final-cta {
  min-height: 520px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(23, 61, 58, .97), rgba(47, 143, 128, .9)),
    var(--psy-navy);
  color: #fff;
}

.psychiatry-page .final-cta::before,
.psychiatry-page .final-cta::after {
  opacity: .16;
  filter: blur(2px);
  animation: psyCtaOrb 12s ease-in-out infinite alternate;
}

.psychiatry-page .final-cta::before {
  background: var(--psy-coral);
  box-shadow: 0 0 0 80px rgba(232, 146, 116, .12), 0 0 0 160px rgba(232, 146, 116, .06);
}

.psychiatry-page .final-cta::after {
  background: var(--psy-mint);
  animation-delay: -5s;
}

.psychiatry-page .final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 4rem);
  letter-spacing: -.035em;
  max-width: 780px;
}

.psychiatry-page .final-cta p { color: rgba(255, 255, 255, .76); }

.psychiatry-page .final-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
}

.psychiatry-page .final-cta .btn-ghost:hover {
  background: #fff;
  color: var(--psy-navy);
}

/* ---------- Secuencias observadas ---------- */
@media (prefers-reduced-motion: no-preference) {
  .psychiatry-page .psy-stagger-item {
    opacity: 0;
    transform: translateY(24px) scale(.98);
    filter: blur(5px);
    transition:
      opacity .75s var(--psy-ease-out),
      transform .85s var(--psy-ease-out),
      filter .75s ease;
    transition-delay: calc(var(--psy-index, 0) * 70ms);
  }

  .psychiatry-page .psy-sequence-in > .psy-stagger-item,
  .psychiatry-page .psy-stagger-item.psy-sequence-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Keyframes ---------- */
@keyframes psyEditorialEnter {
  from { opacity: 0; transform: translateY(22px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes psyPhotoReveal {
  0% { opacity: 0; clip-path: inset(12% 12% 12% 12% round 34px); filter: blur(12px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 34px); filter: none; }
}

@keyframes psyFloatCardIn {
  from { opacity: 0; transform: translate3d(0, 22px, 55px) scale(.86); }
  to { opacity: 1; }
}

@keyframes psyCardBreathe {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

@keyframes psyLineDraw { to { transform: scaleX(1); } }
@keyframes psyFrameSpin { to { --psy-orbit-angle: 360deg; } }
@keyframes psyAuroraRotate { to { --psy-orbit-angle: 360deg; } }
@keyframes psyOrbitSpin { to { transform: rotate(360deg); } }
@keyframes psyOrbitSpinReverse { to { transform: rotate(-360deg); } }
@keyframes psyDashTravel { to { stroke-dashoffset: -200; } }

@keyframes psyNodePulse {
  0%, 100% { transform: scale(.9); opacity: .65; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes psyStatusPulse {
  0%, 100% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes psyPhotoSheen {
  0%, 58% { transform: translateX(-80%) rotate(8deg); }
  78%, 100% { transform: translateX(80%) rotate(8deg); }
}

@keyframes psyTrustSweep {
  0%, 58% { transform: translateX(-100%); }
  82%, 100% { transform: translateX(100%); }
}

@keyframes psyCheckRipple {
  from { opacity: .75; transform: scale(1); }
  to { opacity: 0; transform: scale(2.1); }
}

@keyframes psyResultReveal {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes psyCtaOrb {
  from { transform: translate3d(-20px, -12px, 0) scale(.92); }
  to { transform: translate3d(28px, 18px, 0) scale(1.08); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .psychiatry-page .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr);
    gap: 42px;
  }

  .psy-float-card-care { right: -1%; }
  .psy-float-card-team { left: -2%; }
}

@media (max-width: 920px) {
  .psychiatry-page .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .psychiatry-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .psychiatry-page .hero-visual {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .psychiatry-page .hero-photo { width: min(440px, 82vw); }
  .psychiatry-page .steps-grid::before,
  .psychiatry-page .steps-grid::after { display: none; }
}

@media (max-width: 600px) {
  .psy-scroll-progress { height: 2px; }

  .psychiatry-page .hero {
    padding: 48px 0 70px;
    background:
      radial-gradient(circle at 88% 54%, rgba(139, 123, 197, .13), transparent 34%),
      radial-gradient(circle at 18% 4%, rgba(169, 223, 193, .18), transparent 35%),
      var(--bg);
  }

  .psychiatry-page .hero::before {
    background-size: 44px 44px;
    opacity: .2;
  }

  .psychiatry-page .hero h1 {
    font-size: clamp(2.35rem, 11.2vw, 3.25rem);
    line-height: 1.02;
  }

  .psychiatry-page .hero h1 em { white-space: normal; }
  .psychiatry-page .hero-sub { font-size: 1rem; line-height: 1.62; }

  .psychiatry-page .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  .psychiatry-page .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .psychiatry-page .hero-chip {
    padding: 7px 11px;
    font-size: .72rem;
  }

  .psychiatry-page .hero-visual {
    min-height: 440px;
    width: calc(100% + 12px);
    margin-left: -6px;
  }

  .psychiatry-page .hero-photo {
    width: min(350px, 86vw);
    padding: 6px;
    border-radius: 28px;
  }

  .psychiatry-page .hero-photo .hero-img {
    height: 360px !important;
    border-radius: 23px;
    object-position: 55% 20%;
  }

  .psy-photo-sheen { inset: 6px; border-radius: 23px; }
  .psy-photo-label { top: 18px; left: 18px; font-size: .61rem; }

  .psy-orbit-system { width: 470px; max-width: 122vw; }

  .psy-float-card {
    min-width: 168px;
    padding: 10px 12px 10px 10px;
    border-radius: 15px;
  }

  .psy-float-card strong { font-size: .7rem; }
  .psy-float-card small { font-size: .6rem; }
  .psy-float-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .psy-float-icon svg { width: 17px; height: 17px; }
  .psy-float-card-care { top: 4%; right: 0; }
  .psy-float-card-team { left: -1%; bottom: 4%; }

  .psychiatry-page .trust-strip .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .psychiatry-page .trust-item { font-size: .77rem; line-height: 1.3; }
  .psychiatry-page .trust-item .dot { width: 30px; height: 30px; }

  .psychiatry-page .area { min-height: 150px; }
  .psychiatry-page .faq-item:hover,
  .psychiatry-page .faq-item.is-open { transform: none; }

  .psychiatry-page .final-cta {
    min-height: 560px;
    padding-block: 88px;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .psychiatry-page *,
  .psychiatry-page *::before,
  .psychiatry-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .psychiatry-page .psy-stagger-item,
  .psychiatry-page.psy-motion-enabled .hero-grid > .reveal:first-child > *,
  .psychiatry-page.psy-motion-enabled .psy-depth-card,
  .psychiatry-page.psy-motion-enabled .psy-float-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .psychiatry-page .hero-photo,
  .psy-orbit-system,
  .psy-aurora,
  .psy-float-card {
    --psy-mx: 0;
    --psy-my: 0;
  }

  .psychiatry-page .signal::after,
  .psychiatry-page .step::after,
  .psychiatry-page .area::after,
  .psychiatry-page .faq-item::after,
  .psychiatry-page .eq-card::after { display: none; }
}
