.seccion_redes {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f0f4f8, #dfeeff);
}

.contenedor_redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card_red {
  background-color: var(--grismedio);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
  flex: 1 1 350px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s ease;
  overflow: hidden;
  position: relative; 
}

@media screen and (max-width: 768px) {
  .card_red {
    padding: 3rem 2rem;
    min-height: 700px; 
  }
}
.card_red:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card_red h2 {
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.card_red .icono_red {
  font-size: 3rem;
  color: var(--celeste) !important;
  display: inline-block;
}

.card_red p {
  font-size: 1.7rem;
  color: var(--azul-oscuro);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 2rem;
}

.card_red .btn_red {
  font-size: 1.5rem;
  padding: 0.8rem 2rem;
  border: 2px solid var(--secundario);
  color: var(--secundario);
  border-radius: 3rem;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 1rem;
}

.card_red .btn_red:hover {
  background-color: var(--celeste);
  color: var(--blanco);
}

.preview_red {
  width: 100%;
  margin-top: 2rem;
  text-align: center;
  border-radius: 1rem;
  overflow: hidden; 
  background-color: #fff; 
  padding: 0.5rem; 
}

.preview_red iframe,
.preview_red blockquote.instagram-media,
.preview_red img {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  min-height: 480px;
  border: none;
  display: block;
  background-color: #fff !important;
  border-radius: 0.5rem;
}

.whatsapp .preview_red img {
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #fff;
  padding: 0.5rem;
}

/* Celulares */
@media screen and (max-width: 768px) {
  .contenedor_redes {
    flex-direction: column;
    align-items: center;
  }

  .card_red {
    max-width: 100%;
  }

  .card_red h2 {
    font-size: 2.2rem;
  }

  .card_red p {
    font-size: 1.6rem;
  }

  .preview_red {
    padding: 0.8rem;
  }

  .preview_red iframe,
  .preview_red blockquote.instagram-media {
    min-height: 650px; /* más alto en móvil */
    transform: scale(1);
    background-color: #fff !important;
  }
}
