.ig-section{
  padding: 20px 10px;
  text-align: center;
  background: linear-gradient(90deg, #0e2144 0%, #1c3f77 50%, #2b67b6 100%);
}

.ig-pill{
  display: inline-block;
  background: #1a1f6b;
  color: #fff;
  font-weight: 900;
  font-size: clamp(18px,2.5vw,28px);
  padding: 10px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  margin-bottom: 35px;
}

.ig-feed{
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.ig-feed a{
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  width: 380px;
  height: 420px;
  flex: 0 0 auto;
}

.ig-feed img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ig-feed a:hover img{
  transform: scale(1.08);
}

.redes-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 26px 0 18px;
}

.redes-socials a {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  background: #111;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  text-decoration: none;
}

/* TikTok glow */
.redes-socials a.tiktok:hover {
  color: #000;
  background: #fff;
  box-shadow: 0 0 18px #ff0050, 0 0 28px #00f2ea;
}

/* Instagram glow */
.redes-socials a.instagram:hover {
  background: #fff;
  color: #e1306c;
  box-shadow: 0 0 18px #e1306c, 0 0 28px #f77737, 0 0 36px #fd1d1d;
}

/* Facebook glow */
.redes-socials a.facebook:hover {
  background: #fff;
  color: #1877f2;
  box-shadow: 0 0 18px #1877f2, 0 0 28px #42b0ff;
}

.ig-hero-title{
  display:inline-block;
  padding:16px 28px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(30,30,60,.55), rgba(30,30,60,.25));
  backdrop-filter: blur(2px);
  color:#fff;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.ig-hero-title .top{
  display:block;
  font-weight:400;
  font-size:clamp(16px,1.6vw,22px);
  letter-spacing:.08em;
}

.ig-hero-title .bottom{
  display:block;
  font-weight:900;
  font-size:clamp(28px,4vw,46px);
  line-height:1.05;
  margin-top:2px;
  letter-spacing:.02em;
  text-shadow:0 2px 6px rgba(0,0,0,.35);
}

/* Sección de Instagram */
.ig-section {
    padding: 40px 10px;
}

/* Título Hero */
.ig-hero-title {
    text-align: center;
    margin-bottom: 60px;
}

.ig-hero-title .top,
.ig-hero-title .bottom {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
    letter-spacing: 2px;
}

.ig-hero-title .top {
    margin-bottom: -10px;
}

/* Grid de Instagram */
.ig-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contenedor de cada item - SIN overflow hidden */
.ig-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-item:hover {
    transform: translateY(-8px);
}

/* Embeds de Instagram - Altura automática */
.instagram-media {
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    width: 100% !important;
    max-width: 400px !important;
    background: white !important;
}

.instagram-media:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .ig-feed {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .ig-hero-title .top,
    .ig-hero-title .bottom {
        font-size: 3rem;
    }
    
    .instagram-media {
        max-width: 380px !important;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .ig-section {
        padding: 40px 15px;
    }
    
    .ig-feed {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .ig-hero-title {
        margin-bottom: 40px;
    }
    
    .ig-hero-title .top,
    .ig-hero-title .bottom {
        font-size: 2.5rem;
    }
    
    .instagram-media {
        max-width: 100% !important;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .ig-section {
        padding: 30px 10px;
    }
    
    .ig-hero-title .top,
    .ig-hero-title .bottom {
        font-size: 2rem;
    }
}

/* Animación de carga */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ig-item {
    animation: fadeIn 0.6s ease-out;
}

.ig-item:nth-child(1) {
    animation-delay: 0.1s;
}

.ig-item:nth-child(2) {
    animation-delay: 0.2s;
}

.ig-item:nth-child(3) {
    animation-delay: 0.3s;
}