/* =========================================================================
   ADEYC — Opiniones
   Columnas en marquesina vertical continua, veladas arriba y abajo.
   Sin fotografías de personas: el testimonio se atribuye al cargo y al tipo
   de edificio, nunca a un rostro. Marca por monograma, no por retrato.
   ========================================================================= */

.op {
  overflow: hidden;
}
.op__wrap {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-height: 44rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
}
@media (min-width: 760px) {
  .op__wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .op__wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.op__col--md {
  display: none;
}
.op__col--lg {
  display: none;
}
@media (min-width: 760px) {
  .op__col--md {
    display: block;
  }
}
@media (min-width: 1100px) {
  .op__col--lg {
    display: block;
  }
}

.op__track {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  /* El relleno inferior iguala al gap: sin él, el bucle salta al reiniciar */
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  animation: opRun var(--dur, 42s) linear infinite;
  will-change: transform;
}
@keyframes opRun {
  to {
    transform: translateY(-50%);
  }
}
/* La marquesina no se detiene al pasar el cursor: el movimiento continuo es
   parte del pulso de la sección. Sí cede ante el foco de teclado, porque ahí
   detenerse no es un capricho estético sino la única forma de leer. */
.op__wrap:focus-within .op__track {
  animation-play-state: paused;
}

/* ---------- Tarjeta ------------------------------------------------------ */
.op-card {
  position: relative;
  margin: 0;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  border: var(--rule) solid var(--hair-2);
  background: var(--papel);
  display: grid;
  gap: 1.15rem;
  align-content: start;
}
.op-card blockquote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--fg);
  text-wrap: pretty;
}
.op-card blockquote::before {
  content: "«";
  color: var(--accent);
  padding-right: 0.15em;
}
.op-card blockquote::after {
  content: "»";
  color: var(--accent);
  padding-left: 0.15em;
}
.op-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: var(--rule) solid var(--hair);
}
.op-card__mono {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: var(--rule) solid var(--hair-2);
}
.op-card__mono svg {
  width: 15px;
  height: 18.75px;
}
.op-card__mono svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.op-card__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.op-card__who b {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.op-card__who small {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  line-height: 1.3;
}
.op-card .tag {
  justify-self: start;
}

/* ---------- Sin movimiento ----------------------------------------------- */
.op--fija {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.op--fija .op__track {
  animation: none;
  padding-bottom: 0;
}
.op--fija .op__dup {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .op__track {
    animation: none;
    padding-bottom: 0;
  }
  .op__wrap {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .op__dup {
    display: none;
  }
}
