.seccion--redes {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background-color: #ffffff;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  width: 100%;
  height: fit-content;
}
.contenedor--details {
  width: 320px;
  margin: 2rem auto;
  font-family: Arial, sans-serif;
}

details {
  border: 1px solid #4a90e2;
  border-radius: 0.4rem;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  background-color: #f9fbff;
}

details[open] {
  background-color: #e6f0ff;
}

summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  background-color: #4a90e2;
  color: white;
  font-weight: bold;
  border-radius: 0.4rem 0.4rem 0 0;
  user-select: none;
  list-style: none;
  min-height: 316px;
  width: 100%;
  background-position: center;
  background-size: 35%;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 53, 133, 0.358),
    rgba(255, 255, 255, 0.1)
  );
  z-index: 0;
  opacity: 0.2; /* estado base */
  border-radius: inherit;
}

/* Al hacer hover o al abrir details */
summary:hover::before,
details[open] summary::before {
  opacity: 1;
}

.summary__texto,
summary::after {
  position: relative;
  z-index: 1;
}

summary::after {
  content: "▶";
  display: block;
  margin-top: auto;
  font-size: 1.2rem;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.summary--instagram {
  background-image: url(../../IMG/contactos/icons_contactos/instagram.webp);
}
.summary--correo {
  background-image: url(../../IMG/contactos/icons_contactos/correo.webp);
  background-size: 40%;
}
.summary--facebook {
  background-image: url(../../IMG/contactos/icons_contactos/facebook.webp);
}
.summary--tiktok {
  background-image: url(../../IMG/contactos/icons_contactos/tiktok.webp);
}

.summary::marker {
  content: "";
}

/* texto separado del fondo */
.summary__texto {
  margin-top: 55%;
  position: absolute;
  font-size: clamp(1rem, 5dvw, 1.5rem);
}

summary::marker {
  content: "";
}

details[open] > summary::after {
  transform: rotate(-90deg);
}

/*Contenedor info*/
.contenedor--info {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #4a90e2, #2f68c4, #16398a);
  color: #ffffff;
  border-radius: 0 0 0.6rem 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 1.15rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}

/* Opcional: efecto brillo interno sutil */
.contenedor--info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.contenedor--info p {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fefefe;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.015em;
  max-width: 65ch;
  margin-inline: auto;
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
}

.btn-seguir {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4em 0.9em;
  border-radius: 0.5em;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(3px);
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
}

.btn-seguir:hover {
  background-color: white;
  color: #113b8a;
}
