.system-earth-medicine {
  --em-mint: #8fddbd;
  --em-mint-bright: #c8ffe3;
  --em-gold: #dfbf73;
  --em-gold-bright: #ffe5a1;
}
.em-hero {
  width: min(calc(100% - 32px), 1260px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 0 36px;
  text-align: center;
}
.em-hero .system-title {
  max-width: none;
  margin: 14px auto 0;
  color: var(--text);
  background: none;
  font: 800 clamp(46px, 7vw, 84px) / 1 var(--font-b);
  letter-spacing: -0.05em;
  text-transform: none;
  -webkit-text-fill-color: var(--text);
}
.em-hero .system-lead {
  width: min(900px, 100%);
  margin: 24px auto 0;
  line-height: 1.75;
}
.em-date {
  width: fit-content;
  margin: 23px auto 0;
  padding: 10px 17px;
  border: 1px solid rgba(223, 191, 115, 0.24);
  border-radius: 999px;
  color: #ece3ce;
  background: rgba(223, 191, 115, 0.07);
  font-size: 14px;
  font-weight: 750;
}
.em-date::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--em-gold-bright);
  box-shadow: 0 0 12px var(--em-gold-bright);
  content: "";
}
.em-experience {
  width: min(calc(100% - 32px), 1420px);
  margin: 0 auto clamp(80px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(350px, 0.76fr);
  gap: 24px;
  align-items: start;
}
.em-card,
.em-panel {
  border: 1px solid rgba(143, 221, 189, 0.13);
  background: linear-gradient(
    155deg,
    rgba(12, 30, 23, 0.94),
    rgba(4, 10, 7, 0.97)
  );
  box-shadow: 0 25px 85px rgba(0, 0, 0, 0.43);
  backdrop-filter: blur(15px);
}
.em-card {
  min-width: 0;
  padding: 20px;
  border-radius: 30px;
  overflow: hidden;
}
.em-wheel-wrap {
  position: relative;
  width: min(100%, 840px);
  margin: auto;
  aspect-ratio: 1;
}
.em-wheel-wrap::before {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(63, 145, 111, 0.15),
    transparent 67%
  );
  filter: blur(26px);
  content: "";
  pointer-events: none;
}
#emWheel {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.35));
}
.em-disc {
  fill: rgba(3, 11, 7, 0.76);
  stroke: rgba(223, 191, 115, 0.5);
  stroke-width: 2;
}
.em-season-sector {
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}
.em-season-sector[data-season="Invierno"] {
  fill: rgba(91, 135, 144, 0.09);
}
.em-season-sector[data-season="Primavera"] {
  fill: rgba(100, 183, 127, 0.085);
}
.em-season-sector[data-season="Verano"] {
  fill: rgba(219, 173, 78, 0.08);
}
.em-season-sector[data-season="Otoño"] {
  fill: rgba(190, 103, 64, 0.09);
}
.em-season-sector.active {
  filter: brightness(2) drop-shadow(0 0 15px rgba(143, 221, 189, 0.16));
}
.em-season-label {
  fill: rgba(221, 227, 214, 0.56);
  font: 800 9px var(--font-h);
  letter-spacing: 0.18em;
  text-anchor: middle;
}
.em-month-tick {
  stroke: rgba(239, 216, 157, 0.25);
  stroke-width: 1;
}
.em-month-label {
  fill: #989f93;
  font: 800 8px var(--font-h);
  letter-spacing: 0.08em;
  text-anchor: middle;
}
.em-ring-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.2;
}
.em-animal-sector {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  cursor: pointer;
  outline: none;
  transition:
    fill 0.25s,
    filter 0.25s;
}
.em-animal:hover .em-animal-sector,
.em-animal:focus-visible .em-animal-sector {
  fill: rgba(143, 221, 189, 0.08);
}
.em-animal.active .em-animal-sector {
  fill: rgba(223, 191, 115, 0.2);
  filter: drop-shadow(0 0 15px rgba(223, 191, 115, 0.26));
}
.em-animal-name {
  fill: #cbcfc5;
  font: 800 8.7px var(--font-h);
  letter-spacing: 0.075em;
  text-anchor: middle;
  pointer-events: none;
}
.em-animal.active .em-animal-name {
  fill: var(--em-gold-bright);
  filter: drop-shadow(0 0 5px rgba(255, 225, 145, 0.75));
}
.em-animal-icon {
  fill: none;
  stroke: #c9d6cc;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition:
    stroke 0.25s,
    filter 0.25s,
    transform 0.3s;
  transform-box: fill-box;
  transform-origin: center;
}
.em-animal.active .em-animal-icon {
  stroke: #fff0b9;
  filter: drop-shadow(0 0 5px #f0cf79)
    drop-shadow(0 0 14px rgba(223, 191, 115, 0.75));
  transform: scale(1.22);
  animation: em-breathe 2.5s ease-in-out 0.4s infinite;
}
.em-element-sector {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
}
.em-element-sector.earth {
  fill: rgba(133, 152, 96, 0.1);
}
.em-element-sector.air {
  fill: rgba(127, 192, 190, 0.09);
}
.em-element-sector.water {
  fill: rgba(91, 137, 180, 0.11);
}
.em-element-sector.fire {
  fill: rgba(198, 106, 70, 0.1);
}
.em-animal.active .em-element-sector {
  fill: rgba(143, 221, 189, 0.2);
}
.em-element-glyph {
  fill: #d9c684;
  font:
    700 23px Georgia,
    serif;
  text-anchor: middle;
  pointer-events: none;
}
.em-element-label {
  fill: #81988d;
  font: 800 6.5px var(--font-h);
  letter-spacing: 0.1em;
  text-anchor: middle;
  pointer-events: none;
}
.em-animal.active .em-element-glyph,
.em-animal.active .em-element-label {
  fill: var(--em-mint-bright);
  filter: drop-shadow(0 0 7px rgba(143, 221, 189, 0.8));
}
.em-date-marker {
  color: var(--em-gold-bright);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.em-date-marker path,
.em-date-marker circle {
  fill: currentColor;
  filter: drop-shadow(0 0 8px #ffe2a0);
}
.em-date-marker line {
  stroke: url(#emBeam);
  stroke: rgba(255, 226, 160, 0.45);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
}
.em-center-outer {
  fill: #030907;
  stroke: rgba(223, 191, 115, 0.43);
  stroke-width: 2;
}
.em-center-inner {
  fill: url(#emCenterGlow);
  stroke: rgba(143, 221, 189, 0.35);
  stroke-width: 1.5;
}
.em-center-icon {
  fill: none;
  stroke: #f8e8b8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#emSoftGlow);
  transform-box: fill-box;
  transform-origin: center;
}
.em-center-name {
  fill: #fff6dc;
  font: 800 28px var(--font-b);
  text-anchor: middle;
}
.em-center-title {
  fill: #9de0c3;
  font: 800 9px var(--font-h);
  letter-spacing: 0.12em;
  text-anchor: middle;
}
.em-center-period {
  fill: #b7bbae;
  font: 700 8px var(--font-h);
  letter-spacing: 0.08em;
  text-anchor: middle;
}
.em-center-pulse {
  animation: em-center-pop 0.42s ease;
}
.em-controls {
  padding: 24px 22px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.em-date-box {
  padding: 20px;
  border: 1px solid rgba(143, 221, 189, 0.13);
  border-radius: 20px;
  background: rgba(5, 17, 12, 0.63);
}
.em-control-kicker {
  color: var(--em-mint);
  font: 800 9px var(--font-h);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.em-date-box h2 {
  margin-top: 6px;
  color: #f2f0e7;
  font: 800 20px var(--font-b);
}
.em-date-box > div > p:last-child {
  margin-top: 7px;
  color: #929d94;
  font-size: 13px;
  line-height: 1.55;
}
.em-date-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
}
.em-date-row input {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: #e7eee8;
  color-scheme: dark;
  background: #06100c;
  font-weight: 700;
}
.em-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e8ebe6;
  background: #111914;
  cursor: pointer;
  font-weight: 750;
}
.em-button:hover,
.em-button:focus-visible {
  border-color: rgba(143, 221, 189, 0.5);
  background: #16251d;
}
.em-button.primary {
  border-color: transparent;
  color: #092019;
  background: linear-gradient(135deg, #70cda9, #ccf5df);
  box-shadow: 0 6px 22px rgba(75, 177, 137, 0.17);
}
.em-cycle-head {
  margin: 22px 0 13px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #eeeee7;
}
.em-cycle-head span {
  color: #e9cc7c;
  font-weight: 800;
}
.em-scrub {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.em-scrub input {
  width: 100%;
  accent-color: #75c9a9;
}
.em-timeline {
  position: relative;
  height: 65px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}
.em-timeline-month {
  z-index: 1;
  padding: 34px 5px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
  color: #737f76;
  font: 700 8px var(--font-h);
  text-align: center;
}
.em-timeline-month:first-of-type {
  border-left: 0;
}
.em-timeline-period {
  position: absolute;
  z-index: 0;
  top: 9px;
  height: 15px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(
    90deg,
    rgba(223, 191, 115, 0.25),
    rgba(255, 224, 147, 0.75)
  );
  box-shadow: 0 0 12px rgba(223, 191, 115, 0.2);
  transition:
    left 0.35s,
    width 0.35s;
}
.em-timeline-marker {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff1ba;
  box-shadow: 0 0 8px #efd075;
  transition: left 0.35s;
}
.em-panel {
  position: sticky;
  top: 88px;
  padding: 28px;
  border-radius: 30px;
}
.em-panel-kicker {
  color: var(--em-gold-bright);
  font: 800 11px var(--font-h);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.em-panel-heading {
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.em-panel-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 191, 115, 0.24);
  border-radius: 50%;
  background: rgba(223, 191, 115, 0.06);
}
.em-panel-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: #f8e7b2;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(223, 191, 115, 0.5));
}
.em-panel h2 {
  color: #fff;
  font: 800 clamp(31px, 3vw, 43px) / 1 var(--font-b);
}
.em-panel-heading p {
  margin-top: 8px;
  color: #a3ddc3;
  font-weight: 800;
}
.em-facts {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.em-facts > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.em-facts span {
  display: block;
  color: #829087;
  font: 700 8px var(--font-h);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.em-facts strong {
  display: block;
  margin-top: 7px;
  color: #eee;
  font-size: 13px;
}
.em-explanation {
  margin-top: 22px;
  color: #aeb7b0;
  font-size: 14px;
  line-height: 1.75;
}
.em-traits {
  margin-top: 21px;
  display: grid;
  gap: 12px;
}
.em-traits section {
  padding: 15px;
  border: 1px solid rgba(143, 221, 189, 0.1);
  border-radius: 14px;
  background: rgba(143, 221, 189, 0.045);
}
.em-traits section.challenges {
  border-color: rgba(218, 135, 99, 0.12);
  background: rgba(218, 135, 99, 0.045);
}
.em-traits h3 {
  color: #9ee0c4;
  font: 800 9px var(--font-h);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.em-traits .challenges h3 {
  color: #e3b082;
}
.em-traits ul {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.em-traits li {
  padding: 6px 8px;
  border-radius: 8px;
  color: #c5cec7;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
}
.em-context {
  margin-top: 22px;
  padding: 17px;
  border-left: 3px solid var(--em-gold);
  border-radius: 0 12px 12px 0;
  color: #aeb6af;
  background: rgba(223, 191, 115, 0.07);
  font-size: 12px;
  line-height: 1.7;
}
.em-context strong {
  color: #f0d58c;
}
.em-source {
  margin-top: 17px;
  color: #748078;
  font-size: 10px;
  line-height: 1.6;
}
.em-method {
  max-width: 1080px;
}
.em-method-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: em-step;
}
.em-method-grid p {
  padding: 22px;
  border-top: 1px solid rgba(143, 221, 189, 0.25);
  counter-increment: em-step;
}
.em-method-grid p::before {
  display: block;
  margin-bottom: 13px;
  color: var(--em-mint);
  font: 800 11px var(--font-h);
  content: "0" counter(em-step);
}
.em-method-grid strong,
.em-method-grid span {
  display: block;
}
.em-method-grid strong {
  color: #f0eee5;
  font: 700 14px var(--font-h);
}
.em-method-grid span {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
@keyframes em-breathe {
  0%,
  100% {
    transform: scale(1.22) translateY(0);
  }
  50% {
    transform: scale(1.29) translateY(-2px);
  }
}
@keyframes em-center-pop {
  0% {
    opacity: 0.3;
    transform: scale(0.84);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 980px) {
  .em-experience {
    grid-template-columns: 1fr;
  }
  .em-panel {
    position: static;
  }
  .em-method-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .em-hero {
    overflow: hidden;
  }
  .em-hero .system-title {
    font-size: clamp(38px, 12vw, 54px);
  }
  .em-date {
    font-size: 12px;
  }
  .em-card {
    padding: 7px;
    border-radius: 20px;
  }
  .em-animal-name {
    font-size: 7.5px;
    letter-spacing: 0.02em;
  }
  .em-element-glyph {
    font-size: 20px;
  }
  .em-season-label {
    font-size: 7px;
  }
  .em-month-label {
    display: none;
  }
  .em-controls {
    padding: 18px 12px 10px;
  }
  .em-date-row {
    grid-template-columns: 1fr 1fr;
  }
  .em-date-row input {
    grid-column: 1/-1;
  }
  .em-scrub {
    grid-template-columns: auto 1fr auto;
  }
  .em-scrub #emPlay {
    grid-column: 1/-1;
  }
  .em-panel {
    padding: 22px;
    border-radius: 20px;
  }
  .em-method-grid {
    grid-template-columns: 1fr;
  }
  .em-center-name {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .em-animal-sector,
  .em-animal-icon,
  .em-date-marker,
  .em-timeline-marker,
  .em-timeline-period {
    transition: none;
  }
  .em-animal.active .em-animal-icon {
    animation: none;
  }
}
@media (forced-colors: active) {
  .em-card,
  .em-panel {
    border: 1px solid CanvasText;
    background: Canvas;
  }
}
@media (max-width: 640px) {
  .em-hero {
    width: min(calc(100% - 48px), 1260px);
  }
  .em-hero .system-title {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.04;
  }
  .em-hero .system-lead {
    font-size: 14px;
  }
  .em-cycle-head {
    font-size: 14px;
  }
  .em-cycle-head span {
    font-size: 12px;
    text-align: right;
  }
}
/* El foco se dibuja en el sector; no como un rectángulo ajeno a la rueda. */
.em-animal {
  outline: none;
}
.em-animal:focus {
  outline: none;
}
.em-animal:focus-visible .em-animal-sector {
  stroke: #c8ffe3;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(143, 221, 189, 0.65));
}
.em-button.is-playing {
  border-color: rgba(255, 224, 147, 0.62);
  color: #fff0bc;
  background: rgba(223, 191, 115, 0.14);
  box-shadow: 0 0 16px rgba(223, 191, 115, 0.16);
}
