/* Tarjetas de reels (reemplazan los embeds de Instagram) */
.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
}
.reel {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--dark-gray);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px -12px rgb(0 0 0 / .25);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, transparent 22%, transparent 45%, rgb(0 0 0 / .85) 100%);
}
.reel:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -16px rgb(0 0 0 / .35); }
.reel:hover img { transform: scale(1.04); }
.reel:focus-visible { outline: 3px solid var(--france-blue); outline-offset: 3px; }

.reel-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reel-ig {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  opacity: .9;
}
.reel-ig svg, .reel-play svg { width: 100%; height: 100%; display: block; }

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  padding: 20px 18px 20px 22px;
  border-radius: 50%;
  translate: -50% -50%;
  background: rgb(255 255 255 / .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .35);
  transition: background .3s, scale .3s;
}
.reel:hover .reel-play { background: var(--france-blue); border-color: transparent; scale: 1.08; }

.reel-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reel-title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.reel-sub {
  font-size: 13px;
  font-weight: 500;
  opacity: .8;
}

/* Celular: carrusel horizontal que deja ver la siguiente tarjeta */
@media (max-width: 767px) {
  .reels {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 72%; scroll-snap-align: center; }
}
