/* ==========================
   ESTILOS PRINCIPALES: CHEF
========================== */

.chef {
  font-family: 'Montserrat', sans-serif;
  background-color: #fffefb;
  color: #1a1a1a;
  padding: 4rem 2rem;
}

/* =============================
   SECCIÓN 1: BIO DEL CHEF
============================= */

.chef-bio {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 6rem;
}

.chef-bio-img {
  flex: 1 1 320px;
  max-width: 500px;
}

.chef-bio-img img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.chef-bio-texto {
  flex: 1 1 400px;
  max-width: 700px;
}

.chef-bio-texto h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.chef-bio-texto p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #333;
}

.chef-bio-texto em {
  font-style: italic;
  color: #777;
}

.chef-bio-texto strong {
  font-weight: 600;
}

/* ================================
   SECCIÓN 2: GALERÍA INSTAGRAM
================================ */

.chef-instagram {
  text-align: center;
}

.chef-instagram h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  font-weight: 700;
}

.chef-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Siempre 3 columnas */
  gap: 2rem;
  margin-bottom: 4rem;
}

.chef-post {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chef-post img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 1rem;
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
}

.heart {
  font-size: 1.4rem;
  color: #cd212a;
  padding-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ==================
   BOTÓN FINAL
================== */

.chef-instagram-footer {
  text-align: center;
}

.btn-instagram {
  display: inline-block;
  font-size: 1.6rem;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s ease;
}

.btn-instagram:hover {
  transform: scale(1.1);
}

/* ====================
   RESPONSIVE EXTRA
==================== */

@media (max-width: 768px) {
  .chef {
    padding: 3rem 1.5rem;
  }

  .chef-bio {
    flex-direction: column;
    gap: 2rem;
  }

  .chef-bio-img {
    margin-top: 6rem;
    margin-bottom: -1rem;
  }

  .chef-bio-texto {
    text-align: center;
    margin-top: -1.5rem;
  }

  .chef-bio-texto p {
    font-size: 1rem;
  }

  .chef-instagram-grid {
    grid-template-columns: 1fr;
  }

  .chef-instagram h2 {
    font-size: 2rem;
  }

  .btn-instagram {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .chef-bio-texto h1 {
    font-size: 1.8rem;
  }

  .chef-bio-texto p {
    font-size: 0.95rem;
  }

  .caption {
    font-size: 0.85rem;
  }

  .btn-instagram {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }
}
