/* ============================================================
   INQUIFY MVP - Custom Styles
   Bootstrap 5 + WCAG 2.2 AA
   ============================================================ */

/* --- 1. CSS Custom Properties --- */
:root {
  --iq-bg: #e8f5e9;
  --iq-bg-light: #f1f8f2;
  --iq-bg-dark: #c8e6c9;
  --iq-primary: #2e7d32;
  --iq-primary-dark: #1b5e20;
  --iq-primary-light: #4caf50;
  --iq-logo: #2e7d32;
  --iq-white: #ffffff;
  --iq-text: #333333;
  --iq-text-light: #555555;
  --iq-text-muted: #636363;
  --iq-border: #4a9e4e;
  --iq-border-light: #c8e6c9;
  --iq-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --iq-focus: #1b5e20;
  --iq-error: #d32f2f;
  --iq-error-bg: #fce4ec;
  --iq-success: #2e7d32;
  --iq-success-bg: #e8f5e9;
  --iq-warning: #f9a825;
  --iq-radius: 12px;
  --iq-radius-sm: 8px;
  --iq-radius-lg: 16px;
}

/* --- 2. Accessibility --- */

/* Skip to content */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 24px;
  background-color: var(--iq-primary);
  color: var(--iq-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 var(--iq-radius-sm) var(--iq-radius-sm);
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  outline: 3px solid var(--iq-focus);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus visible - WCAG 2.4.7, 2.4.11 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--iq-focus);
  outline-offset: 3px;
}

/* --- 3. Base --- */
body {
  margin: 0;
  padding: 0;
  background-color: var(--iq-bg);
  color: var(--iq-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Override Bootstrap .text-muted for WCAG AA contrast */
.text-muted {
  color: var(--iq-text-muted) !important;
}

/* Links - ensure WCAG AA contrast on all backgrounds */
a {
  color: var(--iq-primary);
}

a:hover {
  color: var(--iq-primary-dark);
}

/* --- 4. Header --- */
.inquify-header {
  background-color: var(--iq-bg);
  padding: 12px 0;
}

.inquify-header .navbar {
  padding: 0;
}

.inquify-logo {
  display: inline-block;
  background-color: var(--iq-logo);
  color: var(--iq-white);
  font-weight: 700;
  font-size: 18px;
  padding: 8px 20px;
  border-radius: var(--iq-radius-sm);
  letter-spacing: 1px;
  text-decoration: none;
}

.inquify-header .navbar-brand:hover .inquify-logo {
  background-color: var(--iq-primary);
}

.inquify-header .nav-link {
  color: var(--iq-text);
  font-size: 15px;
  padding: 8px 16px;
}

.inquify-header .nav-link:hover {
  color: var(--iq-primary);
}

.inquify-header .navbar-toggler {
  border-color: var(--iq-border);
  min-width: 44px;
  min-height: 44px;
}

/* User dropdown */
.inquify-header .dropdown-toggle {
  font-weight: 600;
  color: var(--iq-primary);
}

.inquify-header .dropdown-toggle::after {
  margin-left: 6px;
}

.inquify-header .dropdown-menu {
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 200px;
}

.inquify-header .dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--iq-text);
}

.inquify-header .dropdown-item:hover,
.inquify-header .dropdown-item:focus {
  background-color: var(--iq-bg);
  color: var(--iq-primary);
}

/* Registro card */
.registro-card {
  transition: box-shadow 0.2s ease;
}

.registro-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- 5. Footer --- */
.inquify-footer {
  background-color: var(--iq-bg-dark);
  padding: 40px 0 32px;
  margin-top: 60px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--iq-text);
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--iq-text);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--iq-primary);
  text-decoration: underline;
}

/* --- 6. Home / Hero --- */
.hero-section {
  padding: 60px 0 40px;
}

.hero-card {
  background-color: var(--iq-white);
  border-radius: var(--iq-radius-lg);
  padding: 60px 40px;
  box-shadow: var(--iq-card-shadow);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-card h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--iq-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-card .hero-subtitle {
  font-size: 1.15rem;
  color: var(--iq-text-light);
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--iq-text);
  margin-top: 32px;
}

.hero-whatsapp {
  font-size: 0.95rem;
  color: var(--iq-text-muted);
  margin-top: 16px;
}

/* --- 7. Buttons --- */
.btn-inquify {
  display: inline-block;
  background-color: var(--iq-primary);
  color: var(--iq-white);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.btn-inquify:hover,
.btn-inquify:focus {
  background-color: var(--iq-primary-dark);
  color: var(--iq-white);
}

.btn-inquify-secondary {
  display: inline-block;
  background-color: var(--iq-white);
  color: var(--iq-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: 2px solid var(--iq-border);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s ease;
}

.btn-inquify-secondary:hover,
.btn-inquify-secondary:focus {
  border-color: var(--iq-primary);
  color: var(--iq-primary);
}

.btn-inquify-danger {
  display: inline-block;
  background-color: var(--iq-error);
  color: var(--iq-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: 2px solid var(--iq-error);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-inquify-danger:hover,
.btn-inquify-danger:focus {
  background-color: var(--iq-white);
  color: var(--iq-error);
  border-color: var(--iq-error);
}

.btn-inquify-sm {
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* --- 8. Cards --- */
.inquify-card {
  background-color: var(--iq-white);
  border-radius: var(--iq-radius);
  padding: 32px;
  box-shadow: var(--iq-card-shadow);
  margin-bottom: 24px;
  width: 100%;
}

.inquify-card-light {
  background-color: var(--iq-bg-light);
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-radius);
  padding: 24px;
  margin-bottom: 16px;
}

/* --- 9. Forms --- */
.inquify-form .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--iq-text);
  margin-bottom: 6px;
}

.inquify-form .form-control,
.inquify-form .form-select {
  border: 2px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  background-color: var(--iq-white);
  min-height: 44px;
}

.inquify-form .form-control:focus,
.inquify-form .form-select:focus {
  border-color: var(--iq-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.inquify-form .form-control.is-invalid {
  border-color: var(--iq-error);
}

.inquify-form .invalid-feedback {
  color: var(--iq-error);
  font-size: 0.875rem;
}

.inquify-form .form-text {
  color: var(--iq-text-muted);
  font-size: 0.875rem;
}

.inquify-form .form-check-input {
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.inquify-form .form-check-input:checked {
  background-color: var(--iq-primary);
  border-color: var(--iq-primary);
}

/* --- 10. Wizard Progress Bar --- */
.wizard-progress {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

.wizard-progress-bar {
  background-color: #ddd;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}

.wizard-progress-fill {
  background-color: var(--iq-logo);
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.wizard-progress-text {
  font-size: 0.9rem;
  color: var(--iq-text-muted);
  margin-top: 8px;
}

/* --- 11. Wizard Steps --- */
.wizard-step {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.wizard-step h1 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.wizard-step .wizard-intro {
  text-align: center;
  color: var(--iq-text-light);
  margin-bottom: 32px;
}

.wizard-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --- 12. Photo Upload --- */
.photo-upload-zone {
  border: 2px dashed var(--iq-border);
  border-radius: var(--iq-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background-color: var(--iq-bg-light);
}

.photo-upload-zone:hover {
  border-color: var(--iq-primary);
}

.photo-upload-zone.dragover {
  border-color: var(--iq-primary);
  background-color: var(--iq-bg-dark);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.photo-preview-item {
  position: relative;
  border-radius: var(--iq-radius-sm);
  overflow: hidden;
  border: 1px solid var(--iq-border-light);
  background-color: var(--iq-white);
}

.photo-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.photo-preview-item .photo-name-input {
  padding: 8px;
  font-size: 0.8rem;
  border: none;
  border-top: 1px solid var(--iq-border-light);
  width: 100%;
}

.photo-preview-item .photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--iq-error);
  color: var(--iq-white);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
}

.photo-counter {
  font-size: 0.9rem;
  color: var(--iq-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* --- 13. Enlaces multimedia --- */
.enlace-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.enlace-row .form-control {
  flex: 1;
}

.enlace-row .btn-remove-enlace {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--iq-error);
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- 14. Participantes --- */
.participante-row {
  background-color: var(--iq-bg-light);
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.participante-row .participante-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--iq-text-muted);
  margin-bottom: 8px;
}

.btn-add-participante {
  background: none;
  border: 2px dashed var(--iq-border);
  border-radius: var(--iq-radius-sm);
  padding: 12px 20px;
  color: var(--iq-text-muted);
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color 0.2s ease;
}

.btn-add-participante:hover {
  border-color: var(--iq-primary);
  color: var(--iq-primary);
}

/* --- 15. Resumen --- */
.resumen-card {
  background-color: var(--iq-bg-light);
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}

.resumen-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--iq-text-muted);
  margin-bottom: 8px;
}

.resumen-declaration {
  background-color: var(--iq-white);
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  padding: 20px;
  margin-top: 24px;
}

/* --- 16. Revision --- */
.revision-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.revision-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.revision-intro {
  text-align: center;
  color: var(--iq-text-light);
  margin-bottom: 32px;
}

.desacuerdo-form {
  background-color: var(--iq-white);
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius);
  padding: 24px;
  margin-top: 24px;
}

/* --- 17. Estado --- */
.estado-section {
  padding: 40px 0;
}

.estado-timeline {
  border-left: 3px solid var(--iq-border);
  padding-left: 20px;
  margin-top: 16px;
}

.estado-timeline-item {
  position: relative;
  padding-bottom: 16px;
  font-size: 0.9rem;
}

.estado-timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--iq-logo);
  border: 2px solid var(--iq-white);
}

.estado-timeline-item .timeline-date {
  color: var(--iq-text-muted);
  font-size: 0.85rem;
}

/* --- 18. Auth Pages --- */
.auth-section {
  padding: 60px 0;
}

.auth-card {
  background-color: var(--iq-white);
  border-radius: var(--iq-radius-lg);
  padding: 40px;
  box-shadow: var(--iq-card-shadow);
  max-width: 480px;
  margin: 0 auto;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

/* --- 19. FAQs --- */
.faqs-section {
  padding: 40px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.faqs-section h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.faqs-section .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--iq-text);
  background-color: var(--iq-white);
  min-height: 44px;
}

.faqs-section .accordion-button:not(.collapsed) {
  background-color: var(--iq-bg-light);
  color: var(--iq-primary);
}

.faqs-section .accordion-button:focus {
  box-shadow: none;
  outline: 3px solid var(--iq-focus);
  outline-offset: 2px;
}

.faqs-section .accordion-body {
  font-size: 0.95rem;
  color: var(--iq-text-light);
  line-height: 1.7;
}

/* --- 20. Legal Pages --- */
.legal-section {
  padding: 40px 0 60px;
}

.legal-card {
  background-color: var(--iq-white);
  border-radius: var(--iq-radius-lg);
  padding: 40px;
  box-shadow: var(--iq-card-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.legal-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--iq-text-light);
}

/* --- 21. Alert messages --- */
.inquify-alert {
  padding: 16px 20px;
  border-radius: var(--iq-radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.inquify-alert-success {
  background-color: var(--iq-success-bg);
  color: var(--iq-success);
  border: 1px solid var(--iq-border);
}

.inquify-alert-error {
  background-color: var(--iq-error-bg);
  color: var(--iq-error);
  border: 1px solid #f8bbd0;
}

/* --- 22. Sections --- */
.inquify-section {
  padding: 48px 0;
}

.inquify-section--alt {
  background-color: var(--iq-bg-light);
}

/* --- 23. Hero (home) --- */
.inquify-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.inquify-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--iq-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.inquify-hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--iq-text-light);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 24. Step Number (home) --- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--iq-logo);
  color: var(--iq-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Caja "warning" del hero */
.hero-warning {
  max-width: 540px;
  margin: 24px auto 32px;
  padding: 18px 24px;
  background-color: #fff;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  text-align: left;
}
.hero-warning-title {
  font-weight: 700;
  color: #000;
  margin: 0 0 8px;
}
.hero-warning-quote {
  margin: 2px 0;
  color: #555;
  font-style: italic;
}
.hero-warning-end {
  margin: 8px 0 0;
  color: #555;
  font-weight: 600;
}

/* Flechitas entre los pasos "Como funciona" */
.paso-flecha {
  position: absolute;
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--iq-logo);
  z-index: 1;
  line-height: 1;
}
@media (max-width: 767.98px) {
  .paso-flecha { display: none; }
}

/* Checklist de ventajas */
.ventajas-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ventajas-checklist li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--iq-border);
  font-size: 1.05rem;
}
.ventajas-checklist li:last-child {
  border-bottom: 0;
}
.ventajas-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--iq-logo);
  color: var(--iq-white);
  font-weight: 700;
  text-align: center;
  line-height: 24px;
  font-size: 0.85rem;
}

/* Frase reflexion sobre el CTA final */
.cta-frase {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--iq-logo);
  margin-bottom: 16px;
}

/* --- 25. Auth pages --- */
.inquify-auth {
  padding: 60px 0;
}

.inquify-auth .inquify-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
}

.inquify-auth .form-control,
.inquify-auth .form-select {
  border: 2px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  min-height: 44px;
}

.inquify-auth .form-control:focus,
.inquify-auth .form-select:focus {
  border-color: var(--iq-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.inquify-auth label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* --- 26. Wizard pages --- */
.inquify-wizard {
  padding: 20px 0 60px;
}

.inquify-wizard h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.inquify-wizard fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.inquify-wizard legend {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--iq-text);
}

.inquify-wizard .form-control,
.inquify-wizard .form-select {
  border: 2px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  min-height: 44px;
}

.inquify-wizard .form-control:focus,
.inquify-wizard .form-select:focus {
  border-color: var(--iq-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.inquify-wizard label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.wizard-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wizard-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1rem;
}

.wizard-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--iq-primary);
  font-weight: 700;
}

/* --- 27. Card muted variant --- */
.inquify-card--muted {
  background-color: var(--iq-bg-light);
  border: 1px solid var(--iq-border-light);
  box-shadow: none;
}

/* --- 28. Photo upload (paso3) --- */
.photo-upload-dropzone {
  border: 2px dashed var(--iq-border);
  border-radius: var(--iq-radius);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  background-color: var(--iq-bg-light);
}

.photo-upload-dropzone:hover,
.photo-upload-dropzone.dragover {
  border-color: var(--iq-primary);
  background-color: var(--iq-bg-dark);
}

.photo-upload-input {
  display: none;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--iq-error);
  color: var(--iq-white);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
}

.photo-preview-remove:hover {
  background-color: #b71c1c;
}

.photo-preview-name {
  display: block;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--iq-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--iq-border-light);
}

.photo-preview-item input[name="nombres_estancias[]"] {
  border: none;
  border-top: 1px solid var(--iq-border-light);
  border-radius: 0;
  font-size: 0.75rem;
  padding: 6px 8px;
}

/* --- 29. Legal pages --- */
.inquify-legal {
  padding: 40px 0 60px;
}

.inquify-legal .inquify-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.inquify-legal h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.inquify-legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

.inquify-legal p,
.inquify-legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--iq-text-light);
}

/* --- 30. Timeline (estado) --- */
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background-color: var(--iq-border);
}

.timeline-marker {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background-color: var(--iq-border);
  margin-top: 3px;
}

.timeline-marker--active {
  background-color: var(--iq-logo);
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--iq-text-muted);
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--iq-text);
  margin-bottom: 0;
}

/* --- 31. Error page (404) --- */
.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--iq-border);
  line-height: 1;
  margin-bottom: 16px;
}

/* --- 32. Accordion (FAQs) --- */
.inquify-section .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--iq-text);
  background-color: var(--iq-white);
  min-height: 44px;
}

.inquify-section .accordion-button:not(.collapsed) {
  background-color: var(--iq-bg-light);
  color: var(--iq-primary);
  box-shadow: none;
}

.inquify-section .accordion-button:focus {
  box-shadow: none;
  outline: 3px solid var(--iq-focus);
  outline-offset: 2px;
}

.inquify-section .accordion-body {
  font-size: 0.95rem;
  color: var(--iq-text-light);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .inquify-hero {
    padding: 48px 0 40px;
  }

  .inquify-hero h1 {
    font-size: 1.6rem;
  }

  .inquify-section {
    padding: 32px 0;
  }

  .btn-inquify {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .btn-inquify-secondary,
  .btn-inquify-danger {
    width: 100%;
    text-align: center;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .inquify-card {
    padding: 24px 20px;
  }

  .inquify-auth .inquify-card {
    padding: 32px 24px;
  }

  .inquify-legal .inquify-card {
    padding: 32px 24px;
  }

  .photo-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .photo-upload-dropzone {
    padding: 24px 16px;
  }

  .inquify-footer {
    text-align: center;
  }

  .error-code {
    font-size: 4rem;
  }
}

/* --- 23. Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .wizard-progress-fill {
    transition: none;
  }
}

/* --- WhatsApp flotante --- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background-color: #1ebe57;
  transform: scale(1.1);
  outline: 3px solid var(--iq-primary);
  outline-offset: 2px;
}

/* Photo lightbox trigger (cards en cuadrícula) */
.photo-preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.photo-preview-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview-trigger:hover,
.photo-preview-trigger:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  outline: 3px solid var(--iq-primary);
  outline-offset: 2px;
}

/* Photo lightbox modal */
.photo-lightbox .modal-dialog {
  max-width: 95vw;
}
.photo-lightbox .modal-header .h6 {
  font-weight: 500;
}
.photo-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
  background: #fff;
  outline: 3px solid var(--iq-primary);
  outline-offset: 2px;
}
.photo-lightbox-prev { left: 12px; }
.photo-lightbox-next { right: 12px; }

@media (max-width: 576px) {
  .photo-lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
  .photo-lightbox-img { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-preview-trigger { transition: none; }
  .photo-preview-trigger:hover,
  .photo-preview-trigger:focus-visible { transform: none; }
}
