/* ---------- Afiliados ---------- */
.flight-banner {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flight-banner img {
  width: 706px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.affiliate-amazon iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.affiliates-summary {
  background: #f5f5f5;
  padding: 2rem 1rem;
  text-align: center;
}

.affiliates-summary h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.affiliates-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.affiliate-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding-bottom: 1rem;
  transition: transform 0.2s;
}

.affiliate-card:hover {
  transform: scale(1.02);
}

.affiliate-card img {
  width: 100%;
  height: auto;
}

.affiliate-card h3 {
  background-color: #2c3e50;
  color: white;
  padding: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
}

.affiliate-card p {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #444;
}

.action-btn {
  background-color: #0078a0;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.action-btn:hover {
  background-color: #005f7a;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .flight-banner {
    top: 80px;
    max-width: 95%;
  }

  .flight-banner img {
    width: 100%;
    height: auto;
  }

  .affiliate-card,
  .affiliate-amazon iframe {
    width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .flight-banner {
    top: 100px;
  }

  .affiliate-card p {
    font-size: 0.85rem;
  }

  .affiliate-card h3 {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}

.flight-banner {
  position: absolute;
  top: 140px; /* más separación del menú */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 706px;
  max-width: 95%;
}

.flight-widget-box {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.flight-widget-title {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}


@media screen and (max-width: 480px) {
  .flight-banner {
    top: 100px;
  }

  .flight-widget-title {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .flight-banner {
    display: block !important; /* fuerza que se muestre */
    position: absolute;
    top: 200px;   /* ajusta según altura de tu menú hamburguesa */
    left: 50%;
    transform: translateX(-50%);
    max-width: 95%;
    z-index: 2;   /* debajo del menú (que suele tener z-index mayor) */
  }

  .flight-widget-box {
    width: 100%;
    padding: 12px;
  }

  .flight-widget-box form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .flight-widget-box form button {
    width: 100%;
  }
}
