/* Shared interaction and accessibility fixes for the public TastyCat pages. */
:root {
  --text-muted: #5a6687;
  --coral-dark: #85452e;
  --focus-ring: #087d6c;
  --focus: #087d6c;
  --focus-halo: #fff;
}
html,
body { max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: #2b3764;
  color: #fff;
  font: 700 1rem/1.3 system-ui, sans-serif;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.footer :focus-visible { outline-color: #00cfaf; }
.footer .footer__col h4 { font-size: 14px !important; }
#newsletter-form #newsletter-email:focus-visible { outline: 3px solid #00cfaf !important; outline-offset: 3px; }
#contact-form > button[type="submit"].btn-primary { color: #0d0d1f; }
#main-content { scroll-margin-top: 5rem; }
.nav__inner { position: relative; }
.nav__links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links li { margin: 0; }
.nav__new-badge { font-size: 14px; }
.legal-page .nav__inner { max-width: 1280px; padding: 0 24px; gap: 16px; }
.tastydog-page .nav__links a:hover,
.tastydog-page .nav__links a.active { color: var(--dog-dark); }
.grid-2 > * { min-width: 0; }
.grid-2 .card a { overflow-wrap: anywhere; }
.nav__burger,
.nav__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 12px;
  color: var(--navy, var(--text, #2b3764));
  background: transparent;
  cursor: pointer;
}
.nav__burger span,
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav__links a,
.nav__cta a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav__cta a { min-width: 44px; font-size: 16px !important; }
.footer__col a { display: flex; align-items: center; min-height: 44px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__menu { display: contents; }
.footer__top { min-width: 0; }
.footer__brand img {
  display: block;
  width: auto !important;
  max-width: min(100%, 220px) !important;
  height: auto !important;
  max-height: 52px;
  object-fit: contain;
}
.footer__social a { min-width: 44px; min-height: 44px; }
#newsletter-form input[type="email"],
#newsletter-form button[type="submit"] {
  min-height: 44px;
  font-size: 16px !important;
}
#newsletter-form button[type="submit"] { min-width: 44px; }
#notify-email,
.cta-nl__input { font-size: 16px !important; }
#newsletter-result { min-height: 1.5em; font-size: 14px !important; }
#newsletter-result[hidden] { display: none; }
.field-validation-message {
  display: block;
  margin-top: 0.35rem;
  color: #8b1e16;
  font-size: 0.9rem;
  line-height: 1.4;
}
.label,
.eyebrow,
[class*="__eyebrow"] { color: var(--coral-dark, #85452e); }
.form-group label,
.form-label { color: var(--navy, #404766); }
form :is(input, select, textarea, button) { max-width: 100%; }
.field-validation-message a,
#newsletter-result a { color: inherit; text-decoration: underline; }

@media (max-width: 1200px) {
  .nav__burger,
  .nav__mobile-toggle { display: flex !important; }
  .nav__inner { min-width: 0; }
  .nav__menu {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(43, 55, 100, 0.18);
    background: #f4f6fd;
    box-shadow: 0 12px 24px rgba(25, 35, 65, 0.15);
    max-height: min(75vh, 38rem);
    overflow-y: auto;
  }
  .nav__menu.open { display: flex; top: 100%; }
  .nav__menu .nav__links,
  .nav__menu .nav__cta {
    display: flex !important;
    position: static !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .nav__menu .nav__links {
    list-style: none;
  }
  .nav__menu .nav__links a,
  .nav__menu .nav__cta a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: normal;
  }
  .nav__menu .nav__cta .btn { justify-content: center; }
  .nav:has(.nav__logo img[src*="logo-white"]) .nav__menu.open {
    color: #eee;
    background: #131325;
    border-color: rgba(255,255,255,.2);
  }
  .nav:has(.nav__logo img[src*="logo-white"]) .nav__menu.open a { color: #eee; }
}

@media (max-width: 480px) {
  .flavor-nav { width: 100%; max-width: 100vw; overflow-x: auto; }
  .hero { max-width: 100%; }
  .footer > div:first-child > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #newsletter-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  #newsletter-form input[type="email"] { width: min(100%, 22rem) !important; }
  .footer__top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
    width: 100%;
  }
  .footer__brand { grid-column: 1 / -1; min-width: 0; }
  .footer__col,
  .footer__col ul,
  .footer__bottom { min-width: 0; overflow-wrap: anywhere; }
}

body:has(.nav__logo img[src*="logo-white"]) {
  --muted: #a9a9c1;
  --coral-dark: #ffb79b;
  --focus-ring: #00cfaf;
}
body:has(.nav__logo img[src*="logo-white"]) .form-group label,
body:has(.nav__logo img[src*="logo-white"]) .form-label { color: var(--text, #eee); }
body:has(.nav__logo img[src*="logo-white"]) .field-validation-message { color: #ffb4ab; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .reveal { opacity: 1 !important; transform: none !important; }
}


/* Contacto usa la paleta TastyCat clara del resto del sitio. */
body.contact-page {
  --bg: #f4f6fd;
  --bg2: #fff;
  --card: #fff;
  --text: #2b3764;
  --muted: #5a6687;
  --primary: #e8855f;
  --teal: #087d6c;
  --border: rgba(43, 55, 100, .14);
  --focus: #087d6c;
  --focus-halo: #fff;
  color: var(--text);
  background: var(--bg);
}
body.contact-page .nav { background: #fff; color: #2b3764; border-bottom: 1px solid var(--border); }
body.contact-page .nav__links a { color: #2b3764; }
body.contact-page .nav__logo img { max-width: 180px; max-height: 52px; object-fit: contain; }
body.contact-page .nav__burger { color: #2b3764; }
body.contact-page .page-hero { color: #2b3764; background: #fff; }
body.contact-page .section { color: #2b3764; background: #f4f6fd; }
body.contact-page .card { color: #2b3764; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(43,55,100,.08); }
body.contact-page .footer { color: #eef1fa; background: #2b3764; }
body.contact-page .footer a { color: #fff; }
body.contact-page .footer :focus-visible { outline-color: #00cfaf; }
body.contact-page .form-group label,
body.contact-page .form-label { color: #2b3764; }
body.contact-page input,
body.contact-page select,
body.contact-page textarea { color: #2b3764; background: #fff; border-color: #68749b; }
body.contact-page .field-validation-message { color: #8b1e16; }
body.contact-page .btn--primary { color: #401900; }
body.contact-page .btn--outline { color: #2b3764; border-color: #68749b; }
body.contact-page #newsletter-form input[type="email"] { color: #2b3764; background: #fff; }
@media (max-width: 480px) {
  body.contact-page .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
form :is(input, select, textarea) { font-size: 16px !important; }
@media (max-width: 480px) {
  .benefits__grid,
  .stats__inner { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 480px) {
  body:has(.page-hero__mascots) .page-hero__mascots { display: none; }
  .section .container > .reveal[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
  }
}
.footer__brand p,
.footer__col ul li a,
.footer__bottom,
footer { font-size: 16px !important; }
.footer :is(p, a, li),
footer :is(p, a, li) { font-size: 16px !important; }
:root { --muted: #5a6687; }
.flavor-pill { min-height: 44px; }
:is(.hero__sub, .hero__coming-text, .why p, .why-card p, .page__header p) { color: #5a6687 !important; }
main a[href^="mailto:"],
main a[href*="aviso-privacidad"],
#tc-consent a { color: #85452e !important; }

/* Revisión UX 2026-10-23: reglas efectivas para navegación, texto y controles. */
.nav__cta { display:flex; align-items:center; gap:12px; }
.nav__cta .btn { padding:9px 18px; line-height:1.25; white-space:nowrap; }
body.contact-page .page-hero h1 span,
body.contact-page main a[href="distribuidores.html"] { color:var(--coral-dark,#85452e) !important; }
body.contact-page .footer__brand p { color:#eef1fa !important; }
.event-card__tag { color:#5c1800 !important; }
main .product-card__desc { font-size:16px !important; }
main :is(.tag,.event-card__tag,.form-group label,.form-label) { font-size:14px !important; }
main a[href],#tc-consent a { display:inline-flex;align-items:center;min-height:44px;min-width:44px; }
body button,body summary { min-height:44px;min-width:44px; }
body summary { display:flex;align-items:center;padding-block:8px; }

/* Contrastes efectivos del contenido sobre las superficies existentes. */
main [style*="color:var(--primary)"],main [style*="color: var(--primary)"] { color:#85452e !important; }
.footer :is(p,a,li),footer :is(p,a,li) { color:#eef1fa !important; }
.stat-item__label { color:var(--navy,#2b3764) !important; }
.stat-item__number.text-teal,.check { color:#176653 !important; }
.stat-item__number.text-yellow { color:#795300 !important; }
.hf-btn,.flavor-pill,.flavor-nav a,.flavor-badge,.btn--flavor { color:#2b3764 !important; }
.historia__year { color:#85452e !important; }
.hero__form button { background:#2b3764; color:#fff; }
.hero__form button:hover { background:#1e2848; }
.family__chip,.hero__note { color:#2b3764 !important; }
.hero__title [style*="color:var(--dog-primary)"] { color:#2b3764 !important; }
.btn-teal { background:#176653 !important; }
main .label[style*="color:var(--teal)"] { color:#176653 !important; }
.nav__logo { min-height:44px;display:flex;align-items:center; }
main :is(.hf-btn,.hero__badge,.flavor-pill,.page-hero__tag,.flavor-nav a,.flavor-badge,
 .label,.stat-item__label,.event-card__month,.event-card__loc,.badge,.hero__eyebrow,.hero__note) { font-size:14px !important; }
@media(max-width:768px){
 main h4,main div:not([class])[style*="font-size:13px"],main div:not([class])[style*="font-size: 13px"] { font-size:14px !important; }
}

.event-card__date,.family__text :is(h2,p) { color:#151b2d !important; }
main .form-label span { color:#85452e !important; }
.hero__title em { color:#2b3764 !important; }
main p,main li { font-size:16px !important; }
main h4[style*="0.85rem"],main div:not([class])[style*="font-size:13px"],
main div:not([class])[style*="font-size: 13px"],main a[href*="aviso-privacidad"] { font-size:14px !important; }

/* [UX-A11Y] Computed gradient surfaces need stronger text than the solid-page token. */
body .benefit-card__desc { color:#4a5574 !important; }
body .cta-nl__desc { color:#eef1fa !important; }
body .character-credit { color:#4a5574 !important; }
#donde-comprar .tag { background:rgba(255,163,136,.08) !important; }
