/* Custom styles for Rescate Animal Tunja landing page */

/* Example: Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Optional: Custom font for a more elegant look */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Hide focus outline for mouse users, keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Custom styles for Rescate Animal Tunja premium landing page */

body {
  background: #fff;
}

/* Animación fade-in para fallback si no hay AOS */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), transform 0.8s cubic-bezier(.4, 0, .2, 1);
}

.fade-in-visible {
  opacity: 1;
  transform: none;
}

/* Parallax imagen hero */
.hero-parallax {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  max-width: 1600px;
  margin: 0 auto;
}

/* Ajuste de imagen principal hero */
.hero-parallax img,
.hero-parallax {
  max-width: 100vw;
  height: auto;
}

/* Hero image responsive */
@media (max-width: 1024px) {

  .hero-parallax img,
  .hero-parallax {
    max-width: 100vw;
  }
}

@media (max-width: 640px) {

  .hero-parallax img,
  .hero-parallax {
    max-width: 100vw;
    min-height: 220px;
  }
}

/* FAQ estilos */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  margin-top: 0.5rem;
}

/* Social icons */
.social-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.social-icon:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* Cards beneficios y proceso */
@media (max-width: 767px) {

  .grid-cols-1>div,
  .sm\:grid-cols-2>div {
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
  }

  .bg-gray-50 {
    padding: 1.25rem !important;
  }
}

/* Cards y secciones */
section,
.faq-item,
.bg-gray-50 {
  box-sizing: border-box;
}

/* FAQ y cards padding para mobile */
@media (max-width: 640px) {

  .faq-item,
  .bg-gray-50 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Limitar ancho máximo de imágenes en cards y hero */
img.max-w-lg,
.max-w-lg img {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer social icons y texto centrado */
.social-icon {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  display: inline-block;
}

footer .flex.justify-center {
  justify-content: center !important;
}

/* Ajuste de paddings generales */
@media (max-width: 640px) {

  section,
  footer {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}