/* =========================================================
   Clínica Dental Doctora Ayet · ajustes comunes (demo_0_3)
   Va detrás de tailwind.css en todas las páginas. Tailwind está
   precompilado: aquí se corrigen tokens y estados sin tocar el CSS
   generado.
   ========================================================= */

/* ---------- Contraste (WCAG AA) ---------- */
/* Azul de texto: #017DB1 da 4,1:1 sobre el fondo claro (mist). Para texto
   pequeño se usa un tono un punto más oscuro; los titulares en cursiva
   (grandes) conservan el azul de marca. */
.text-ayet-blue,
.hover\:text-ayet-blue:hover,
.group:hover .group-hover\:text-ayet-blue { color: #016C9A; }
.serif-it.text-ayet-blue { color: #017DB1; }

/* Texto secundario: los tonos al 40-60 % no llegaban a 4,5:1. */
.text-ayet-navy\/40, .text-ayet-navy\/45, .text-ayet-navy\/50,
.text-ayet-navy\/55, .text-ayet-navy\/60, .text-ayet-navy\/65 { color: rgb(11 42 60 / .68); }
/* Los números de índice del menú son decorativos (aria-hidden): se quedan suaves. */
.tabular-nums[aria-hidden].text-ayet-navy\/40 { color: rgb(11 42 60 / .42); }

/* Sobre los fondos oscuros (pie, navy) */
.text-white\/40, .text-white\/45, .text-white\/50 { color: rgb(255 255 255 / .64); }

/* Sobre el azul de marca solo el blanco pleno llega a 4,5:1 */
.bg-ayet-blue :is(.text-white\/60, .text-white\/70, .text-white\/75, .text-white\/80, .text-white\/85, .text-white\/90),
.bg-ayet-blue:is(.text-white\/80, .text-white\/85) { color: #fff; }

/* Campos del formulario «Te llamamos» sobre azul */
.bg-ayet-blue .bg-white\/15 { background-color: rgb(6 27 40 / .26); }
.bg-ayet-blue .focus\:bg-white\/25:focus { background-color: rgb(6 27 40 / .4); }
.bg-ayet-blue .placeholder-white\/70::placeholder { color: rgb(255 255 255 / .92); }
.bg-ayet-blue select option { color: #0B2A3C; }

/* WhatsApp: el verde #25D366 con texto blanco da 2:1. Verde más profundo, 5:1. */
.bg-\[\#25D366\] { background-color: #12813F; }
.text-\[\#25D366\] { color: #12813F; }
.wa-fab { box-shadow: 0 12px 28px -10px rgb(18 129 63 / .6); }
.wa-fab::after { border-color: #12813F; }

/* ---------- Foco visible ---------- */
:focus-visible { outline: 2px solid #016C9A; outline-offset: 3px; border-radius: 6px; }
.bg-ayet-blue :focus-visible, .bg-ayet-navy :focus-visible, .bg-ayet-deep :focus-visible,
#inicio :focus-visible, #site-nav:not(.scrolled) .nav-links :focus-visible, .wa-fab:focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: #0B2A3C; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: .9rem; font-weight: 500; box-shadow: 0 10px 30px -12px rgb(11 42 60 / .5);
  transition: top .2s ease-out;
}
.skip-link:focus { top: 12px; outline-color: #fff; }

/* ---------- Superficies del navegador ---------- */
::selection { background: #CFE3EE; color: #0B2A3C; }
.bg-ayet-navy ::selection, .bg-ayet-deep ::selection, .bg-ayet-blue ::selection { background: #8FD0EE; color: #061B28; }
html { scrollbar-color: #9CC3D8 #F2F8FB; caret-color: #017DB1; }
a { text-underline-offset: .2em; text-decoration-thickness: from-font; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: #016C9A; flex-shrink: 0; }
.bg-ayet-blue input[type="checkbox"] { accent-color: #0B2A3C; }

/* ---------- Objetivos táctiles (mínimo 24 px) ---------- */
.site-header a[href^="tel:"] { padding-block: 7px; }
#site-nav .nav-lang a, #menu-dd .border-t a { display: inline-block; padding: 6px 5px; }
footer .space-y-2 > a { padding-block: 3px; }
footer .space-y-2 > * + * { margin-top: .35rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .fade-up, .card-in, .trust-card, .trust-pop, .trust-icon, [data-op-anim], .tx-fade, .tx-row .tx-in, .tx-body > div > div { opacity: 1 !important; transform: none !important; filter: none !important; }
  .m-line > span, .tx-line > span, .img-reveal img { transform: none !important; }
  .img-reveal, .tx-media { clip-path: none !important; }
  .wa-fab::after { display: none; }
}

/* Selector de idioma con el menú blanco */
#site-nav.scrolled .nav-lang { color: rgb(11 42 60 / .68); }
/* Texto translúcido sobre las tarjetas azules y verdes (contacto) */
.bg-ayet-blue :is(.opacity-70, .opacity-75, .opacity-80), .bg-\[\#25D366\] :is(.opacity-70, .opacity-75, .opacity-80) { opacity: 1; }
/* Enlaces legales del pie: objetivo táctil de 24 px */
footer .flex-wrap.gap-4 > a { padding-block: 4px; }

/* Placeholders y errores de los formularios */
input::placeholder, textarea::placeholder { color: rgb(11 42 60 / .66); opacity: 1; }
.text-red-600 { color: #B91C1C; }
.bg-ayet-blue select option { background: #fff; }
