/* ═══════════════════════════════════════════════════
   SECCIÓN REDES SOCIALES
═══════════════════════════════════════════════════ */
#redes {
  padding: 6rem 2rem 5rem;
  position: relative;
}
#redes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,55,41,0.15), rgba(208,93,62,0.35), rgba(27,55,41,0.15), transparent);
}
.redes-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.redes-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.redes-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(208,93,62,0.40));
}
.redes-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.75;
}

/* Grid: 1 featured grande + 4 normales */
.redes-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

/* Tarjeta base — blanca sobre arena */
.red-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.2rem 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(27,55,41,0.08);
  background: var(--white);
  box-shadow: 0 2px 16px rgba(27,55,41,0.05);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
  gap: 0.7rem;
}
.red-card:hover { transform: translateY(-7px); }

.red-card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  margin: 0;
  line-height: 1.3;
}
.red-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* Círculo de icono */
.red-icon-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.red-card:hover .red-icon-circle { transform: scale(1.1); }

/* Decoración SVG de fondo */
.red-deco {
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}
.red-card:hover .red-deco { opacity: 1.0; }

/* YouTube featured — mantiene identidad de marca */
.red-card--featured {
  background: linear-gradient(145deg, #170303, #240707);
  border: 2px solid rgba(255,50,50,0.45);
  box-shadow: 0 0 0 0 rgba(255,0,0,0);
  animation: yt-pulse 3.5s ease-in-out infinite;
  padding: 2.4rem 1.6rem;
  color: rgba(255,255,255,0.85);
}
.red-card--featured h3 { font-size: 1.3rem; color: #ff5252; }
.red-card--featured p  { color: rgba(255,255,255,0.60); }
.red-card--featured:hover { border-color: rgba(255,50,50,0.8); box-shadow: 0 20px 55px rgba(255,0,0,0.2); }
@keyframes yt-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,0,0,0.10); }
  50%       { box-shadow: 0 0 26px rgba(255,0,0,0.22); }
}

/* Badge +1M */
.red-badge {
  position: absolute;
  top: 11px; right: 11px;
  background: #ff0000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
}

/* Colores de iconos — identidad de cada red */
.red-icon-circle--yt { background: #ff0000; box-shadow: 0 4px 18px rgba(255,0,0,0.45); }
.red-icon-circle--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 18px rgba(253,89,73,0.45);
}
.red-icon-circle--li { background: #0A66C2; box-shadow: 0 4px 18px rgba(10,102,194,0.45); }
.red-icon-circle--tt { background: #111; border: 1.5px solid rgba(105,201,208,0.4); box-shadow: 0 4px 18px rgba(0,0,0,0.5); }
.red-icon-circle--fb { background: #1877F2; box-shadow: 0 4px 18px rgba(24,119,242,0.45); }

/* Hover por red — mantiene brand colors */
.red-card--youtube:hover   { border-color: rgba(255,0,0,0.35);    box-shadow: 0 16px 45px rgba(255,0,0,0.10); }
.red-card--instagram:hover { border-color: rgba(214,36,159,0.35); box-shadow: 0 16px 45px rgba(214,36,159,0.10); }
.red-card--linkedin:hover  { border-color: rgba(10,102,194,0.35); box-shadow: 0 16px 45px rgba(10,102,194,0.10); }
.red-card--tiktok:hover    { border-color: rgba(105,201,208,0.35);box-shadow: 0 16px 45px rgba(105,201,208,0.08); }
.red-card--facebook:hover  { border-color: rgba(24,119,242,0.35); box-shadow: 0 16px 45px rgba(24,119,242,0.10); }

/* Nombres de red en color de marca */
.red-card--instagram h3 { color: #fd5949; }
.red-card--linkedin h3  { color: #0A66C2; }
.red-card--tiktok h3    { color: #69c9d0; }
.red-card--facebook h3  { color: #1877F2; }

@media (max-width: 950px) {
  .redes-grid { grid-template-columns: 1fr 1fr; }
  .red-card--featured { grid-column: span 2; flex-direction: row; text-align: left; padding: 2rem 2.5rem; }
  .red-card--featured .red-icon-circle { flex-shrink: 0; }
}
@media (max-width: 560px) {
  .redes-grid { grid-template-columns: 1fr 1fr; }
  .red-card--featured { grid-column: span 2; flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .redes-grid { grid-template-columns: 1fr; }
  .red-card--featured {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.2rem;
  }
}
