/* Fase 14 · accesibilidad y ergonomía de la web pública y controles compartidos */

.tesvera-site button,
.tesvera-site a {
  touch-action: manipulation;
}

.tesvera-site button {
  min-height: 44px;
  min-width: 44px;
}

.tesvera-site :is(button, a):focus-visible {
  outline: 3px solid #3968ff;
  outline-offset: 3px;
}

.tesvera-site .brand {
  min-height: 44px;
  padding: 6px 4px;
}

.tesvera-site footer button {
  padding: 10px 8px;
}

.tesvera-site .feature-grid article,
.tesvera-site .pricing-grid article,
.tesvera-site .product-shot {
  min-width: 0;
}

.tesvera-site .shot-grid span,
.tesvera-site footer > span {
  color: #4b5563;
}

.tesvera-site footer > div > button {
  color: #374151 !important;
}

.tesvera-site .pricing-grid .premium-price > span {
  color: #593900 !important;
  background: #ffe5a0 !important;
}

.tesvera-site .premium-price > h3,
.tesvera-site .premium-price > strong {
  color: #17233a;
}

.tesvera-site .premium-price > p,
.tesvera-site .premium-price > ul > li,
.tesvera-site .premium-price > strong small {
  color: #4b5563;
}

#public-language-selector {
  min-height: 44px;
  min-width: 44px;
}

.fintrack-v2 .tesvera-movement-select {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  cursor: pointer;
}

.fintrack-v2 .tesvera-movement-select input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
}

html[data-tesvera-design="signature"] .fintrack-v2 .v2-choice-buttons button span,
html[data-tesvera-design="signature"] .fintrack-v2 .v2-choice-buttons button small,
html[data-tesvera-design="signature"] .fintrack-v2 .v2-presets button,
html[data-tesvera-design="signature"] .fintrack-v2 .v2-disclaimer {
  color: #d9d7d0 !important;
}

html[data-tesvera-design="signature"] .fintrack-v2 .v2-field input,
html[data-tesvera-design="signature"] .fintrack-v2 .v2-field select {
  color: #f4efe5 !important;
  -webkit-text-fill-color: #f4efe5;
}

@media (max-width: 760px) {
  .tesvera-site .site-nav {
    min-height: 68px;
    height: auto;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
  }

  .tesvera-site .site-nav nav {
    gap: 4px;
  }

  .tesvera-site .site-nav nav > button:not(.login):not(.cta-button) {
    display: none;
  }

  .tesvera-site .site-nav .login,
  .tesvera-site .site-nav .cta-button {
    padding-inline: 12px;
  }

  .tesvera-site .hero {
    padding-top: 56px;
    gap: 42px;
  }

  .tesvera-site .hero h1 {
    overflow-wrap: anywhere;
  }

  .tesvera-site .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tesvera-site .hero-actions button,
  .tesvera-site .pricing-grid button,
  .tesvera-site .final-cta button {
    width: 100%;
  }

  .tesvera-site .floating-card {
    right: 8px;
    bottom: -24px;
  }

  .tesvera-site footer {
    align-items: flex-start;
    gap: 18px;
  }

  .tesvera-site footer > div {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .tesvera-site footer > div button {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tesvera-site *,
  .tesvera-site *::before,
  .tesvera-site *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
