/* KKTurismo v3 — additional styles not handled by Tailwind utilities */

/* Material Symbols default config */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Smooth scroll + reduced motion respect */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Body baseline */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8f9ff;
  color: #0b1c30;
  -webkit-font-smoothing: antialiased;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d-1 { transition-delay: 0.08s; }
.reveal-d-2 { transition-delay: 0.16s; }
.reveal-d-3 { transition-delay: 0.24s; }
.reveal-d-4 { transition-delay: 0.32s; }

/* WhatsApp pulse */
@keyframes wapulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}
.wa-sticky {
  animation: wapulse 2.5s ease-in-out infinite;
}
.wa-sticky:hover { animation: none; }

/* FAQ open icon rotation */
details[open] .faq-toggle { transform: rotate(180deg); }
.faq-toggle { transition: transform 0.3s ease; }

/* Form feedback */
.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}
.form-feedback.is-success { display: block; background: #DCFCE7; color: #166534; }
.form-feedback.is-error { display: block; background: #FEE2E2; color: #991B1B; }

/* Has-error visual (legacy + v3 data-invalid) */
.has-error input,
.has-error select,
.has-error textarea,
input[data-invalid="true"],
select[data-invalid="true"],
textarea[data-invalid="true"] {
  border-color: #ba1a1a !important;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.12) !important;
  background-color: #fef2f2 !important;
}
.form-error-msg {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: #ba1a1a;
}
.has-error .form-error-msg { display: block; }
/* Auto-clear data-invalid when user starts typing/changing the field */
input[data-invalid="true"]:focus,
select[data-invalid="true"]:focus,
textarea[data-invalid="true"]:focus {
  background-color: white !important;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: #131b2e; color: #fff;
  padding: 10px 16px; border-radius: 8px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Material Symbols hairline-correction (CDN load shim) */
.material-symbols-outlined { user-select: none; }

/* Smooth fade for img onerror replacement */
img.broken { display: none; }
