/* =========================================================================
   CD TERUEL — Carrusel "CD Teruel en redes" (embeds de Instagram)
   ========================================================================= */
.redes-sec { background: var(--papel-2); }

/* Bloque "Síguenos en redes": título + texto + iconos, centrado */
.redes-cta { text-align: center; max-width: 620px; }
.redes-cta { margin-left: auto; margin-right: auto; }
.redes-cta h2 { margin-bottom: .6rem; }
.redes-cta p { color: var(--texto-sec); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.6rem; }

/* Fila de iconos "Síguenos en redes" */
.redes-social { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.redes-social a {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: #fff; border: 1px solid var(--linea);
  color: var(--marino); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.redes-social a:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); transform: translateY(-3px); }
.redes-social .icon { width: 24px; height: 24px; }

/* Carrusel horizontal */
.redes-carousel { position: relative; }
.redes-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; align-items: flex-start;   /* alineados arriba, sin estirar */
}
.redes-track::-webkit-scrollbar { display: none; }

/* Cada tarjeta: ancho fijo, altura natural del embed */
.redes-slide { flex: 0 0 clamp(300px, 82vw, 328px); scroll-snap-align: start; min-width: 0; }
.redes-slide .instagram-media {
  width: 100% !important; min-width: 0 !important; margin: 0 !important;
}
.redes-slide iframe { width: 100% !important; }

/* Flechas */
.redes-nav {
  position: absolute; top: 130px; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--linea); color: var(--rojo);
  box-shadow: var(--sombra-sm); transition: background var(--dur) var(--ease), transform .18s var(--ease);
}
.redes-nav:hover { background: var(--rojo); color: #fff; }
.redes-nav:active { transform: translateY(-50%) scale(.92); }
.redes-nav .icon { width: 20px; height: 20px; }
.redes-nav--prev { left: -10px; }
.redes-nav--next { right: -10px; }
@media (max-width: 760px) { .redes-nav { display: none; } }

/* Estado vacío / error */
.redes-empty {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  background: #fff; border: 1px dashed var(--linea-fuerte);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; color: var(--gris-500);
}
