/* ============================================================
   Accessibility Fixes — Focus indicators, touch targets, contrast
   Se carga DESPUÉS del CSS inline y mobile.css para sobrescribir
   ============================================================ */

/* FOCUS INDICATORS — Visible for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
[role="button"]:focus {
  outline: 2px solid var(--amber, #D97706);
  outline-offset: 2px;
}

/* Navigation links focus */
.nv a:focus {
  color: var(--g9, #111827);
  outline: 2px solid var(--amber, #D97706);
  outline-offset: 0;
}

/* Form inputs already have focus styles but ensure they're visible */
.form__input:focus,
.form__textarea:focus {
  outline: 2px solid var(--amber, #D97706);
  outline-offset: 2px;
}

/* TOUCH TARGET SIZES — Minimum 44x44px for mobile */

/* Hamburger menu button — solo visible en móvil */
.mb {
  padding: 0.65rem;
  min-width: 44px;
  min-height: 44px;
}

.mb svg {
  width: 26px;
  height: 26px;
  pointer-events: none;
}

/* Phone button in header */
.nv__ph {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer links — improve contrast */
.ft li a {
  color: #d1d5db;
  transition: color 0.2s;
}

.ft li a:hover,
.ft li a:focus {
  color: #f3f4f6;
}

/* Legal links in footer */
.ft__lgl a {
  color: #9ca3af;
  transition: color 0.2s;
}

.ft__lgl a:hover,
.ft__lgl a:focus {
  color: #d1d5db;
}

/* Remove outline from focus but add underline for footer links */
.ft a:focus {
  outline-offset: 0;
}

.ft a:focus {
  text-decoration: underline;
}

/* FORM STATES — Better visual feedback for disabled */
.form__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* HERO STATS — Center and display inline */
.hero__stats {
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stat {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CENTER BUTTONS */
.hero__btns {
  justify-content: center;
}

.cta__b {
  justify-content: center;
}

/* CONTACT PAGE - Center buttons */
.contact__left > div[style*="display:flex"] {
  justify-content: center !important;
}

/* FOOTER — Logo y descripción centrados */
.ft__g > div:first-child {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ft__desc {
  text-align: center;
  margin: 0 auto;
}
.ft__g > div:first-child > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Logo footer — fondo blanco con bordes redondeados para fondo oscuro */
.ft__g > div:first-child a img {
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  .ft__g > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ft__g > div:first-child a img {
    max-width: 120px;
  }
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 640px) {

  /* Ensure touch targets on mobile are at least 44x44px */
  .mb {
    padding: 0.65rem;
  }

  /* Hamburger icon size stays reasonable */
  .mb svg {
    width: 24px;
    height: 24px;
  }

  /* WhatsApp button adequate size */
  .wa {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Ensure form buttons are large enough */
  .form__button {
    min-height: 44px;
    padding: 0.85rem;
  }

  /* Navigation links in mobile menu */
  .nv.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Phone button in mobile menu */
  .nv.open a.nv__ph {
    min-height: 44px;
  }

}

/* SKIP LINK — For keyboard users to skip to main content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #D97706;
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* REDUCED MOTION — Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* HIGH CONTRAST MODE — Support Windows High Contrast */
@media (prefers-contrast: more) {
  a:focus,
  button:focus,
  input:focus,
  textarea:focus {
    outline-width: 3px;
  }
}

/* FOOTER ACCORDION — Mobile collapsible sections */
.ft-accordion-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

@media (max-width: 640px) {
  .ft-accordion-content {
    max-height: 0;
  }

  .ft-accordion-content.open {
    max-height: 500px;
  }
}

/* SERVICES TABLE — Clean table style */
.feat-svc__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.feat-svc__table tr {
  border-bottom: 1px solid #e5e7eb;
}

.feat-svc__table tr:last-child {
  border-bottom: none;
}

.feat-svc__table td {
  padding: 0.9rem 0;
  vertical-align: top;
}

.feat-svc__table td:first-child {
  width: 40%;
  padding-right: 1.5rem;
  font-weight: 500;
}

.feat-svc__table td:last-child {
  color: #6b7280;
  font-size: 0.95rem;
}

/* BRANDS — Center Anova logo */
.anova-featured__logo {
  margin-left: auto !important;
  margin-right: auto !important;
}

.anova-featured__logo img {
  display: block;
  margin: 0 auto;
}
