/* === PORTFOLIO === */
.portfolio {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  padding: 5rem 1rem;
  color: #1e293b;
  font-family: 'Segoe UI', sans-serif;
}

.portfolio-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f766e;
  margin-bottom: 0.5rem;
}

.portfolio-description {
  font-size: 1.2rem;
  text-align: center;
  color: #475569;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === FILTROS === */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: #e0f2f1;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  color: #0f766e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus {
  background-color: #0f766e;
  color: #ffffff;
  outline: 3px solid #0891b2;
}

.filter-btn.active {
  background-color: #0f766e;
  color: white;
}

/* === GALERÍA === */
.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
}

.portfolio-card {
  display: block;
  position: relative;
  border-radius: 12px;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 118, 110, 0.9);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .portfolio-title {
    font-size: 2rem;
  }

  .portfolio-description {
    font-size: 1rem;
  }
}

/* WhatsApp flotante */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1000;
  transition: background 0.3s;
}

.floating-whatsapp-btn:hover {
  background: #1ebc5c;
}

/* === POPUP CENTRADO === */
.popup {
  position: fixed;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('../assets/anuncio-popup.png'); /* Ruta de tu imagen */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.93);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.popup h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-popup {
  display: block;
  background-color: #d32f2f;
  color: white;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.btn-popup:hover {
  background-color: #b71c1c;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hidden {
  display: none;
}

