/* ============================================
   footer.css
   ============================================ */
footer {
  background: #1a0e14;
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waPulse 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
  animation: none;
}

@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* ============================================
   ANIMACIONES SCROLL
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   PREGUNTAS FRECUENTES (FAQ)
   ============================================ */

#faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open {
  border-color: var(--sand);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-item.open .faq-question {
  background: var(--cream);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--sand);
  transform: rotate(45deg);
}

.faq-icon svg {
  stroke: var(--terra);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================
   UTILIDADES
   ============================================ */

.gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

.gold-line.left {
  margin-left: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  section {
    padding: 72px 0;
  }

  .container {
    padding: 0 32px;
  }

  .about-inner,
  .local-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .about-badge {
    right: 0;
  }

  /* En tablet el hero ocupa menos alto */
  #hero {
    min-height: 90vh;
  }

  .hero-text-wrap {
    max-width: 520px;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  section {
    padding: 56px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* En mobile el overlay es más oscuro para fotos con sujetos centrados */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(26, 20, 16, 0.65) 0%,
      rgba(26, 20, 16, 0.55) 100%
    );
  }

  .hero-text-wrap {
    max-width: 100%;
  }

  /* placeholder heredado — ya no existe en el código */
  .hero-image-overlay {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-ornament {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
