/* Informative sections of the Snoezelen page: term origin, sensory basics and systems. */
.term-origin {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(169, 142, 230, 0.2);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 240, 248, 0.85), rgba(234, 253, 249, 0.8));
}

.term-origin p {
  margin-bottom: 12px;
}

.term-words {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.term-words div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(8, 92, 150, 0.06);
}

.term-words dt {
  color: var(--azul-profundo);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.term-words dd {
  margin: 2px 0 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.term-part {
  color: #c2468a;
}

.sensory-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reason-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: reasons;
}

.reason-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--texto-suave);
  line-height: 1.55;
  counter-increment: reasons;
}

.reason-list li::before {
  content: counter(reasons);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--azul), var(--rosa));
  font-size: 0.9rem;
  font-weight: 900;
}

.learning-base-text {
  position: relative;
  padding-left: clamp(18px, 3vw, 28px);
}

.learning-base-text::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--azul), var(--menta) 52%, var(--lila));
}

.learning-base-text p:last-child,
.system-point p:last-child {
  margin-bottom: 0;
}

/* Each system keeps the color of its photo card in the senses grid. */
.systems-list {
  display: grid;
  gap: 20px;
}

.system-panel {
  --system-color: var(--azul);
  --system-tint: #e8f9ff;
  --system-ink: var(--azul-profundo);
  display: grid;
  grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(191, 239, 255, 0.96);
  border-top: 3px solid var(--system-color);
  border-radius: var(--radio);
  background: linear-gradient(135deg, var(--system-tint), rgba(255, 255, 255, 0.94) 72%);
  box-shadow: 0 10px 32px rgba(8, 92, 150, 0.065);
  scroll-margin-top: 100px;
}

.system-panel--auditivo {
  --system-color: var(--rosa);
  --system-tint: #fff0f8;
  --system-ink: #b0346f;
}

.system-panel--tactil {
  --system-color: var(--menta);
  --system-tint: #e9fdf9;
  --system-ink: #19756b;
}

.system-panel--olfativo {
  --system-color: var(--durazno);
  --system-tint: #fff0e7;
  --system-ink: #a8572a;
}

.system-panel--gustativo {
  --system-color: var(--amarillo);
  --system-tint: #fff6ca;
  --system-ink: #8a6510;
}

.system-panel--vestibular {
  --system-color: var(--lila);
  --system-tint: #f4efff;
  --system-ink: #6a4fb3;
}

.system-panel-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--system-ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.system-panel h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.system-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.system-points--single {
  grid-template-columns: minmax(0, 1fr);
}

.system-point {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(8, 92, 150, 0.05);
}

.system-point h4 {
  margin: 0 0 8px;
  color: var(--azul-profundo);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.system-point p {
  color: var(--texto-suave);
  line-height: 1.62;
}

.system-points--single .system-point p {
  font-size: 1.04rem;
}

@media (max-width: 1040px) {
  .system-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .sensory-basics,
  .system-points,
  .system-points--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .term-origin {
    padding: 16px;
  }

  .term-words {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-panel {
    padding: 18px;
  }

  .system-panel h3 {
    font-size: 1.15rem;
  }

  .system-point {
    padding: 16px;
  }

  .system-points--single .system-point p {
    font-size: 0.94rem;
  }
}
