/* ============================================================
   ESTILOS DE PÁGINA: PORTADA (index.html)
   ============================================================ */

@property --ta {
  syntax: '<color>';
  inherits: true;
  initial-value: #3a2f66;
}
@property --tb {
  syntax: '<color>';
  inherits: true;
  initial-value: #c9a45c;
}

#sobre, #metodo {
  scroll-margin-top: 3.6rem;
}

/* ============================================================
   SECCIÓN HERO & ABANICO CELESTIAL
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: clamp(2rem, 5svh, 3.4rem);
  background: radial-gradient(60% 50% at 50% 38%, #3b2d6b 0, transparent 70%), var(--ink);
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(55% 46% at 50% 72%, rgba(20, 16, 42, .86) 0, rgba(20, 16, 42, .4) 65%, transparent 100%);
}

#hero .eyebrow {
  position: relative;
  z-index: 3;
}

#hero h1 {
  font-size: min(clamp(2.6rem, 7.5vw, 6.8rem), 13.5svh);
  position: relative;
  z-index: 3;
  max-width: 15ch;
  margin-bottom: .85rem;
}

#hero p {
  position: relative;
  z-index: 3;
  margin: 0 auto 1.6rem;
  color: var(--mist);
  opacity: .88;
  max-width: 48ch;
}

#hero .hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.fan {
  position: absolute;
  left: 50%;
  bottom: -6vh;
  width: 0;
  height: 0;
  z-index: 1;
}

.fan .c {
  position: absolute;
  width: min(clamp(130px, 19vw, 245px), 32svh);
  aspect-ratio: 748/1033;
  left: calc(min(clamp(130px, 19vw, 245px), 32svh) / -2);
  bottom: 0;
  transform-origin: 50% 120%;
  border-radius: 12px;
  transform: rotate(0) translateY(0);
  transition: transform 1.8s cubic-bezier(.16, .8, .2, 1) calc(var(--i) * 90ms + 450ms), filter .5s;
  filter: brightness(.55) saturate(.92);
  overflow: hidden;
  box-shadow: 0 20px 50px #0009;
  border: 1px solid #cfa96855;
}

.fan .c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan.open .c {
  transform: rotate(calc((var(--i) - 4) * 12deg)) translateY(-30svh);
}

.fan.open .c:hover {
  filter: brightness(.98) saturate(1);
}

.back {
  background: #292733;
  border: 1px solid #cfa96870;
  box-shadow: 0 20px 50px #0008;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

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

/* ============================================================
   SECCIÓN: SOBRE EL MAZO & DIMENSIONES
   ============================================================ */
#sobre {
  background: linear-gradient(180deg, var(--ink), var(--ink2));
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.sobre-copy p + p {
  margin-top: 1rem;
}

.sobre-vis {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
}

.sobre-cards-stage {
  position: relative;
  width: min(100%, 430px);
  height: clamp(380px, 44vw, 470px);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.sobre-cards-halo {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 104, 0.22) 0%, rgba(76, 93, 163, 0.16) 45%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 7s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.sobre-card-item {
  position: absolute;
  width: clamp(195px, 22vw, 245px);
  aspect-ratio: 748 / 1033;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(207, 169, 104, 0.45);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s ease, border-color .4s ease, filter .3s ease;
}

.sobre-card-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.sobre-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.sobre-card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%, rgba(207, 169, 104, 0.14) 100%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity .4s ease;
}

.card-back-item {
  z-index: 1;
  transform: translate3d(-26px, 34px, -10px) rotate(15deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(220, 179, 27, 0.18);
  animation: floatBackCard 7.8s ease-in-out infinite;
}

.card-front-item {
  z-index: 2;
  transform: translate3d(26px, -34px, 25px) rotate(24deg);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.75), 0 0 28px rgba(76, 93, 163, 0.32);
  animation: floatFrontCard 6.2s ease-in-out infinite;
}

@keyframes floatFrontCard {
  0%, 100% {
    transform: translate3d(26px, -34px, 25px) rotate(24deg);
  }
  50% {
    transform: translate3d(22px, -48px, 40px) rotate(21.5deg);
  }
}

@keyframes floatBackCard {
  0%, 100% {
    transform: translate3d(-26px, 34px, -10px) rotate(15deg);
  }
  50% {
    transform: translate3d(-22px, 22px, 5px) rotate(17.5deg);
  }
}

.sobre-cards-stage:hover .card-front-item {
  transform: translate3d(32px, -46px, 55px) rotate(21deg) scale(1.03);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 38px rgba(76, 93, 163, 0.45);
  border-color: rgba(207, 169, 104, 0.85);
}

.sobre-cards-stage:hover .card-back-item {
  transform: translate3d(-38px, 44px, 0px) rotate(17deg) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(220, 179, 27, 0.3);
  border-color: rgba(220, 179, 27, 0.7);
}

.sobre-card-item:hover {
  filter: brightness(1.06);
}

.sobre-card-item:hover .sobre-card-sheen {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .sobre-cards-stage {
    height: 350px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-front-item,
  .card-back-item,
  .sobre-cards-halo {
    animation: none !important;
  }
}

.levels-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: .65rem .9rem;
  margin-top: 1.8rem;
  max-width: 560px;
}

.lvl-tag {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .8rem;
  border-radius: 10px;
  background: #ffffff08;
  border: 1px solid #ffffff12;
  font-size: .86rem;
  color: var(--mist);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: background .3s, border-color .3s, transform .3s;
}

.lvl-tag:hover {
  background: #ffffff14;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.lvl-swatch {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background: var(--sw);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--sw);
}

.dim-card {
  margin: 4.5rem auto 0;
  max-width: 1180px;
  border: 1px solid #cfa96845;
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  background: linear-gradient(160deg, #ffffff0c, #ffffff03);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dim-card p + p {
  margin-top: 1rem;
}

.dim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}

.dim-pills span {
  font-size: .82rem;
  padding: .35rem .9rem;
  border-radius: 99px;
  border: 1px solid #cfa96850;
  color: var(--mist);
  background: #cfa96812;
}

.dim-wheel {
  display: flex;
  justify-content: center;
}

.dim-wheel img {
  width: min(100%, 330px);
  filter: drop-shadow(0 20px 44px #0007);
}

@media(min-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1.2fr .9fr;
    gap: 4.5rem;
  }
  .dim-card {
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
  }
}

/* ============================================================
   SECCIÓN CARTAS: EXPLORADOR EDITORIAL 3D
   ============================================================ */
#cartas {
  --ta: #3a2f66;
  --tb: #c9a45c;
  transition: --ta 1.2s ease, --tb 1.2s ease;
  background: radial-gradient(75% 65% at 25% 28%, var(--ta), transparent 72%),
              radial-gradient(65% 65% at 75% 72%, var(--tb), transparent 72%),
              var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.2rem, 4svh, 4.2rem) clamp(.5rem, 2vw, 1.5rem) clamp(2.4rem, 4svh, 3.8rem);
  position: relative;
  overflow: hidden;
}

.cartas-top {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto clamp(1.4rem, 2.8svh, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  position: relative;
  z-index: 50;
}

.cartas-top-hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.cartas-top-hd h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.06;
}

.cartas-top-hd p {
  font-size: .84rem;
  color: var(--mist);
  opacity: .8;
  max-width: 54ch;
  line-height: 1.4;
}

.filters {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .3rem 1rem .4rem;
  max-width: 100%;
  justify-content: center;
  margin-top: .25rem;
  position: relative;
  z-index: 50;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 1.5rem, black calc(100% - 1.5rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 1.5rem, black calc(100% - 1.5rem), transparent 100%);
}

.filters::-webkit-scrollbar {
  display: none;
}

@media(max-width: 880px) {
  .filters {
    justify-content: flex-start;
  }
}

.fbtn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  padding: .42rem .95rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(20, 16, 42, .7);
  color: var(--mist);
  font-family: var(--sans);
  font-size: .8rem;
  cursor: pointer;
  transition: all .25s ease;
}

.fbtn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .45);
}

.fbtn.active {
  background: var(--mist);
  color: var(--ink);
  border-color: var(--mist);
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  transform: translateY(-1px);
}

.fbtn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--c);
}

/* Full-bleed Banner Slider Container */
.stage-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: clamp(560px, 68svh, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flechas de navegación */
.slide-arr {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  z-index: 60;
  width: clamp(46px, 4.4vw, 56px);
  height: clamp(46px, 4.4vw, 56px);
  border-radius: 50%;
  border: 1px solid rgba(207, 169, 104, .45);
  background: rgba(20, 16, 42, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .28s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .6);
}

.slide-arr.slide-prev {
  left: clamp(.8rem, 3.2vw, 3.2rem);
}

.slide-arr.slide-next {
  right: clamp(.8rem, 3.2vw, 3.2rem);
}

.slide-arr:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 18px 45px rgba(207, 169, 104, .45);
}

.slide-arr:active {
  transform: translateY(-50%) scale(.95);
}

/* 3D Cover Flow Stage */
.stage {
  position: absolute;
  inset: 0;
  perspective: 1300px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.stage:active {
  cursor: grabbing;
}

.ccard {
  position: absolute;
  left: 50%;
  top: 43%;
  width: clamp(210px, 23vw, 280px);
  aspect-ratio: 748/1033;
  margin-left: calc(clamp(210px, 23vw, 280px) / -2);
  margin-top: calc(clamp(210px, 23vw, 280px) * 1.381 / -2);
  perspective: 1200px;
  will-change: transform, filter, opacity;
  cursor: pointer;
}

.ccard-in {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.ccard.flipped .ccard-in {
  transform: rotateY(180deg);
}

.cside {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(207, 169, 104, .45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .75);
  background: #f3efe6;
}

.cside.cback {
  transform: rotateY(180deg);
}

.cside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Botón minimalista para voltear carta */
.cartas-flip-action {
  position: absolute;
  bottom: clamp(1.8rem, 3.8svh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cgp-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 2.2rem;
  border-radius: 99px;
  border: 1px solid rgba(207, 169, 104, .55);
  background: rgba(20, 16, 42, .85);
  color: #fff;
  font-size: .95rem;
  font-family: var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .65), 0 0 18px rgba(207, 169, 104, .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .28s cubic-bezier(.2, .7, .2, 1);
  white-space: nowrap;
}

.cgp-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(207, 169, 104, .5);
}

.cgp-btn:active {
  transform: translateY(0) scale(.97);
}

@media(max-width: 640px) {
  .cartas-top {
    margin-bottom: 1rem;
    gap: .35rem;
  }
  .stage-slider-wrap {
    height: 510px;
  }
  .ccard {
    top: 41%;
    width: clamp(190px, 52vw, 230px);
  }
  .slide-arr {
    top: 41%;
    width: 42px;
    height: 42px;
  }
  .slide-arr.slide-prev {
    left: .35rem;
  }
  .slide-arr.slide-next {
    right: .35rem;
  }
  .cartas-flip-action {
    bottom: 1.5rem;
  }
  .cgp-btn {
    font-size: .85rem;
    padding: .65rem 1.7rem;
  }
}

/* ============================================================
   SECCIÓN: MAPA MDH / METODOLOGÍA & PRINCIPIOS
   ============================================================ */
#metodo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink2);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 1100px;
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}

.metodo-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metodo-header .eyebrow {
  margin-bottom: .45rem;
}

.metodo-header h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  margin-bottom: 1.1rem;
}

.metodo-header p {
  color: var(--mist);
  opacity: .9;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto;
}

/* ============================================================
   MANDALA INTERACTIVO Y ANIMADO DEL MDH (SECCIÓN #metodo)
   ============================================================ */
.mdh-interactive-mandala {
  position: relative;
  width: min(94vw, 680px);
  margin: 0 auto clamp(1.8rem, 3.5vw, 2.8rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  overflow: visible;
}

.mdh-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(207, 169, 104, 0.26) 0%, rgba(124, 92, 191, 0.18) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(35px);
  z-index: 1;
  animation: mandalaAmbientPulse 7s ease-in-out infinite;
}

@keyframes mandalaAmbientPulse {
  0%, 100% {
    transform: translate(-50%, -20%) scale(0.95);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -20%) scale(1.08);
    opacity: 0.95;
  }
}

.mdh-base-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.65));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
  animation: mandalaFloat 6s ease-in-out infinite;
  border-radius: 50%;
}

.mdh-base-img.mdh-revealing {
  transition: clip-path .68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
}

.mdh-interactive-mandala:hover .mdh-base-img {
  filter: drop-shadow(0 24px 60px rgba(207, 169, 104, 0.28)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

@keyframes mandalaFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Capa vectorial SVG sobrepuesta exactamente sobre el mandala */
.mdh-mandala-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  animation: mandalaFloat 6s ease-in-out infinite;
}

/* Anillos orbitales giratorios decorativos */
.mdh-orbit {
  transform-origin: 800px 800px;
  transform-box: fill-box;
}
.mdh-orbit-cw {
  animation: orbitRotateCW 55s linear infinite;
}
.mdh-orbit-ccw {
  animation: orbitRotateCCW 75s linear infinite;
}

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

/* Onda expansiva de respiración meditativa */
.mdh-breathe-ring {
  fill: none;
  stroke: rgba(207, 169, 104, 0.7);
  stroke-width: 4;
  filter: url(#mdhGlow);
  transform-origin: 800px 800px;
  transform-box: fill-box;
  animation: breatheWave 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes breatheWave {
  0% {
    r: 148px;
    opacity: 0;
    stroke: rgba(255, 255, 255, 0.9);
  }
  15% {
    opacity: 0.9;
    stroke: rgba(207, 169, 104, 0.85);
  }
  50% {
    r: 636px;
    opacity: 0.55;
    stroke: rgba(154, 72, 145, 0.75);
    stroke-width: 5;
  }
  75% {
    opacity: 0.15;
  }
  100% {
    r: 660px;
    opacity: 0;
    stroke: rgba(255, 255, 255, 0);
  }
}

/* Puntos cardinales de luz en S, N, E, O */
.mdh-cardinal-beacon {
  fill: #fff;
  filter: drop-shadow(0 0 10px var(--gold));
  animation: cardinalPulse 3.5s ease-in-out infinite;
}
@keyframes cardinalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
    fill: var(--gold);
  }
}

/* Anillos interactivos táctiles y hover */
.mdh-ring-hit {
  pointer-events: auto;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2, .7, .2, 1);
}

.mdh-ring-hit:hover,
.mdh-ring-hit.active {
  stroke-opacity: 0.45 !important;
  filter: url(#mdhGlow);
}

#mdhRing0:hover, #mdhRing0.active {
  fill: rgba(255, 255, 255, 0.22) !important;
  stroke: rgba(255, 255, 255, 0.8) !important;
}

#mdhRing1:hover, #mdhRing1.active { stroke: rgba(224, 75, 55, 0.48) !important; }
#mdhRing2:hover, #mdhRing2.active { stroke: rgba(217, 130, 36, 0.48) !important; }
#mdhRing3:hover, #mdhRing3.active { stroke: rgba(220, 179, 27, 0.48) !important; }
#mdhRing4:hover, #mdhRing4.active { stroke: rgba(102, 176, 103, 0.48) !important; }
#mdhRing5:hover, #mdhRing5.active { stroke: rgba(29, 154, 198, 0.48) !important; }
#mdhRing6:hover, #mdhRing6.active { stroke: rgba(76, 93, 163, 0.48) !important; }
#mdhRing7:hover, #mdhRing7.active { stroke: rgba(154, 72, 145, 0.48) !important; }

#mdhRevealWave {
  pointer-events: none;
  transform-origin: 800px 800px;
  transform-box: fill-box;
  transition: r .75s cubic-bezier(0.22, 1, 0.36, 1), stroke .5s ease, stroke-width .5s ease, opacity .65s ease-out;
}

.mdh-interactive-hint {
  text-align: center;
  font-size: .84rem;
  letter-spacing: .08em;
  color: var(--gold);
  opacity: .75;
  margin: -0.5rem auto clamp(3rem, 5vw, 4.5rem) auto;
  font-style: italic;
  user-select: none;
  transition: opacity .3s ease;
}

/* ============================================================
   MODAL DE EJE / NIVEL DEL MDH (DIALOG NATIVO) - COMPACTO & SUAVE
   ============================================================ */
dialog#mdhLevelModal {
  margin: auto;
  border: 1px solid rgba(207, 169, 104, 0.45);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 22, 54, 0.88), rgba(16, 12, 34, 0.94));
  color: var(--mist);
  padding: clamp(1.15rem, 2.6vw, 1.45rem);
  max-width: min(92vw, 410px);
  width: 100%;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  overflow: visible;

  /* Transición suave de apertura y cierre */
  opacity: 0;
  transform: scale(0.93) translateY(10px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              overlay 0.32s allow-discrete,
              display 0.32s allow-discrete;
}

dialog#mdhLevelModal[open],
dialog#mdhLevelModal.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

dialog#mdhLevelModal.is-closing {
  opacity: 0 !important;
  transform: scale(0.93) translateY(10px) !important;
}

@starting-style {
  dialog#mdhLevelModal[open] {
    opacity: 0;
    transform: scale(0.93) translateY(10px);
  }
}

/* Fondo translúcido con efecto de desenfoque suave (fondo borroso) */
dialog#mdhLevelModal::backdrop {
  background-color: rgba(10, 8, 24, 0.46);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              overlay 0.32s allow-discrete,
              display 0.32s allow-discrete;
}

dialog#mdhLevelModal[open]::backdrop,
dialog#mdhLevelModal.is-open::backdrop {
  opacity: 1;
}

dialog#mdhLevelModal.is-closing::backdrop {
  opacity: 0 !important;
}

@starting-style {
  dialog#mdhLevelModal[open]::backdrop {
    opacity: 0;
  }
}

.mdh-modal-wrap {
  display: flex;
  flex-direction: column;
}

.mdh-modal-wrap .modal-hd {
  margin-bottom: .45rem;
  gap: .6rem;
}

.mdh-modal-wrap .modal-hd h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-style: italic;
  line-height: 1.15;
  margin-top: .15rem;
}

.mdh-modal-wrap .modal-meta {
  font-size: .68rem;
  letter-spacing: .14em;
}

.mdh-modal-wrap .modal-close {
  width: 30px;
  height: 30px;
  font-size: .82rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.mdh-modal-dims {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .45rem 0 .7rem;
}

.mdh-modal-dims span {
  font-size: .74rem;
  padding: .2rem .58rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  letter-spacing: .02em;
}

.mdh-modal-desc {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: .25rem;
}

@media(max-width: 640px) {
  .mdh-interactive-mandala {
    width: min(94vw, 380px);
    margin-bottom: 1.5rem;
  }
  .mdh-interactive-hint {
    margin-bottom: 2.5rem;
    font-size: .78rem;
  }
}

@media(prefers-reduced-motion: reduce) {
  .mdh-base-img,
  .mdh-mandala-svg,
  .mdh-orbit-cw,
  .mdh-orbit-ccw,
  .mdh-breathe-ring,
  .mdh-cardinal-beacon,
  .mdh-ambient-glow,
  .mdh-revealing,
  #mdhRevealWave {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   PRINCIPIOS DEL MÉTODO CASERTA (CUADRÍCULA ELEGANTE 2x2)
   ============================================================ */
.metodo-principles-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.metodo-principles-grid,
#metodo ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 2.8vw, 2.2rem);
  counter-reset: prin;
}

@media(min-width: 780px) {
  .metodo-principles-grid,
  #metodo ol {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.6rem;
  }
}

.metodo-principles-grid li,
#metodo li {
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(207, 169, 104, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  counter-increment: prin;
  position: relative;
  transition: transform .32s cubic-bezier(.2, .7, .2, 1), border-color .32s ease, background .32s ease, box-shadow .32s ease;
  display: flex;
  flex-direction: column;
}

.metodo-principles-grid li:hover,
#metodo li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(207, 169, 104, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(207, 169, 104, 0.15);
}

.metodo-principles-grid li::before,
#metodo li::before {
  content: "Principio 0" counter(prin);
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
  font-weight: 500;
}

.metodo-principles-grid li h3,
#metodo li h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  margin-bottom: .75rem;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}

.metodo-principles-grid li p,
#metodo li p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--dim);
  margin: 0;
}

/* ============================================================
   SECCIÓN: CIERRE & FLOR DE LOTO INTERACTIVA
   ============================================================ */
#cierre {
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 5rem;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #4a3a85 0, #14102a 48%);
}

#cierre canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#cierre .eyebrow,
#cierre h2,
#cierre p,
#cierre .cierre-quote,
#cierre .hero-actions {
  position: relative;
}

#cierre h2 {
  font-size: min(clamp(2.5rem, 7vw, 5.8rem), 12svh);
  max-width: 15ch;
  margin-bottom: .75rem;
}

#cierre p {
  color: var(--mist);
  opacity: .9;
  margin: 0 auto 1rem;
}

#cierre .cierre-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  color: var(--gold);
  max-width: 44ch;
  margin: 0 auto 1.8rem;
  line-height: 1.4;
}

.lotus {
  position: relative;
  width: min(clamp(190px, 28vw, 320px), 26svh);
  margin-bottom: .9rem;
}

.lotus svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 26px #e3b3bd66);
}

.lotus.open svg {
  animation: breathe 6s ease-in-out 3s infinite;
}

.petal {
  transform-origin: 120px 140px;
  transform: rotate(0) scale(.25);
  opacity: 0;
  transition: transform 2.4s cubic-bezier(.2, .8, .2, 1) calc(var(--d) * .3s), opacity 1.8s ease calc(var(--d) * .3s);
}

.lotus.open .petal {
  transform: rotate(var(--r)) scale(var(--s));
  opacity: 1;
}

.lotus .halo {
  opacity: 0;
  transition: opacity 3s ease 1.2s;
}

.lotus.open .halo {
  opacity: 1;
}

@keyframes breathe {
  50% {
    transform: scale(1.04) translateY(-4px);
  }
}

/* ============================================================
   MODAL DE CARTA (DIALOG NATIVO)
   ============================================================ */
dialog#cardModal {
  margin: auto;
  border: 1px solid #cfa96866;
  border-radius: 22px;
  background: linear-gradient(165deg, #1e1839, #120e26);
  color: var(--mist);
  padding: clamp(1.25rem, 3.5vw, 2.2rem);
  max-width: min(94vw, 840px);
  width: 100%;
  box-shadow: 0 30px 90px #000c;
}

dialog#cardModal::backdrop {
  background-color: rgba(10, 8, 22, .82);
  backdrop-filter: blur(8px);
}

.modal-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.modal-hd h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-style: italic;
}

.modal-meta {
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  background: #ffffff10;
  color: var(--mist);
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--gold);
  color: var(--ink);
}

.modal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.modal-cards figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.modal-cards img {
  width: 100%;
  max-width: 330px;
  max-height: 70svh;
  object-fit: contain;
  aspect-ratio: 748/1033;
  border-radius: 14px;
  border: 1px solid #cfa96855;
  box-shadow: 0 18px 40px #0008;
  background: #f3efe6;
}

.modal-cards figcaption {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   PUNTO DE LUZ MÍSTICO DEL CURSOR (.glow)
   ============================================================ */
.glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  background: radial-gradient(circle, rgba(227, 179, 189, .17) 0, rgba(207, 169, 104, .07) 35%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}

.glow.on {
  opacity: 1;
}

@media(pointer: coarse) {
  .glow {
    display: none;
  }
}
