/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIOS · Grid de videos verticales + modal
   ═══════════════════════════════════════════════════════════════════════════ */

.testi-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding: 2rem 5%;
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(35,33,30,.92);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.testi-grid-wrap {
  padding: 3rem 5% 6rem;
  background: var(--dark);
}
.testi-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.testi-card {
  cursor: pointer;
  opacity: 0;
  animation: cardFadeIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.testi-video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--dark2);
}
.testi-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.82);
  transition: filter .4s, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.testi-card:hover .testi-video {
  filter: brightness(1);
  transform: scale(1.03);
}
.testi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.testi-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(232,180,179,.92);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  opacity: 0;
  transition: opacity .4s, transform .4s;
}
.testi-card:hover .testi-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.testi-play svg { width: 22px; height: 22px; margin-left: 3px; }
.testi-caption {
  padding: 1rem .2rem;
}
.testi-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.1;
}
.testi-role {
  font-family: 'DM Sans', sans-serif;
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
}

@media (max-width: 1100px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  {
  .testi-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testi-grid-wrap { padding: 2rem 1rem 5rem; }
  .testi-filtros { padding: 1.4rem 1rem; }
}

/* Modal */
.testi-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,13,11,.96);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.testi-modal.open { opacity: 1; pointer-events: all; }
.testi-modal-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .35s;
  z-index: 2;
}
.testi-modal-close:hover { background: var(--salmon); color: var(--dark); border-color: var(--salmon); }
.testi-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 90vw;
}
.testi-modal-content video {
  max-height: 78vh;
  max-width: 440px;
  width: auto;
  aspect-ratio: 9/16;
  background: #000;
}
.testi-modal-caption { text-align: center; }
.testi-modal-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--white);
}
.testi-modal-role {
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .4rem;
}
@media (max-width: 500px) {
  .testi-modal-content video { max-width: 92vw; max-height: 70vh; }
}
