/* MexiCool Tours - Estilos personalizados */

html { scroll-behavior: smooth; }

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 104, 71, 0.55) 50%,
    rgba(47, 47, 47, 0.85) 100%
  );
}

/* Patrón sutil mexicano (banderola) */
.bandera-bar {
  background: linear-gradient(
    90deg,
    #006847 0% 33.3%,
    #FFFFFF 33.3% 66.6%,
    #CE1126 66.6% 100%
  );
}

/* Card hover */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
}

/* CTA button base */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #CE1126;
  color: #fff;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -8px rgba(206, 17, 38, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #b80f21;
  box-shadow: 0 14px 30px -8px rgba(206, 17, 38, 0.75);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #006847;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: 0.75rem;
  border: 2px solid #006847;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: #006847;
  color: #fff;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #D4AF37;
  color: #2F2F2F;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: #c39d2c;
}

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.55);
  z-index: 60;
  animation: waEnter 0.8s ease-out 0.6s backwards, waPulse 2.5s ease-in-out infinite 1.5s;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 35px -5px rgba(37, 211, 102, 0.75);
}
@keyframes waEnter {
  0% { opacity: 0; transform: translateY(40px) scale(0.5); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.7); }
  50% { box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.55), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* FAQ accordion */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker { display: none; }
details summary .faq-icon { transition: transform 0.3s ease; }
details[open] summary .faq-icon { transform: rotate(45deg); }

/* Reveal animation on scroll (CSS-only via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form field */
.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus {
  outline: none;
  border-color: #006847;
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.15);
}
.field-input.is-error {
  border-color: #CE1126;
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.12);
}
.field-error {
  display: none;
  color: #CE1126;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.field-error.is-visible { display: block; }

/* Sticky header shadow */
.header-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Underline animation for nav */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #CE1126;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Image lazy fade */
img[loading="lazy"] { transition: opacity 0.5s ease; }
