/* Landing Aura — Impeccable critique r1 (2026-11-03). Solo presentación; sin cambios de enlaces ni datos. */

/* Marca: estado activo/hover de enlaces en navy (AA 7.6:1); subrayado activo en cyan */
html body .text-teal-600,
html body .hover\:text-teal-500:hover,
html body .hover\:text-teal-600:hover { color: var(--aura-navy); }
html body .border-teal-600 { border-color: var(--aura-cyan); }

/* Sin desbordes laterales a 768 */
html body { overflow-x: clip; }

/* Botones: sin escala 95% en reposo; respuesta al presionar */
html body nav .scale-95 { --tw-scale-x: 1; --tw-scale-y: 1; transform: none; }
html body a.rounded-md { transition: transform var(--duration-quick) var(--ease-smooth-out), background-color var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out); }
html body a.rounded-md:active { transform: scale(var(--scale-medium)); }
html body a.rounded-md:focus-visible,
html body .nav-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Botón secundario del hero: superficie por tono, no por línea de 1px */
html body #inicio a[href="#servicios"] { border-color: transparent; background: var(--panel-2); }
html body #inicio a[href="#servicios"]:hover { background: color-mix(in oklab, var(--panel-2) 85%, var(--aura-navy)); }

/* Tarjetas: superficie por tono, sin contorno de 1px */
html body #nosotros .border.border-outline-variant\/20,
html body section .bg-surface-container-lowest.border { border-color: transparent; }
html body #nosotros .rounded-full.border { border-color: transparent; background: color-mix(in oklab, var(--panel-2) 60%, var(--bg)); }

/* Hero: foto a plena opacidad, enfoque firme */
html body #inicio h1 { text-wrap: balance; }
html body h2 { text-wrap: balance; }

/* Móvil: titulares en dos o tres líneas, no cinco */
@media (max-width: 767px) {
  html body main h2.text-4xl,
  html body main h2.text-3xl { font-size: 1.75rem; line-height: 1.15; }
  html body #inicio h1 { font-size: 2.125rem; line-height: 1.08; }
  html body #contacto h2 { font-size: 1.875rem; line-height: 1.15; }
  html body #inicio p.text-lg { font-size: 1.0625rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html body #contacto h2 { font-size: 2.5rem; }
}

/* Movimiento: transitions-dev "texts reveal" (t-stagger). Solo se oculta si el JS marcó html.t-motion. */
html.t-motion .t-stagger-line {
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  transition-delay: calc(var(--t-i, 0) * 70ms);
}
/* will-change solo mientras espera la entrada; en reposo se libera (optimize.md) */
html.t-motion .t-stagger:not(.is-shown) .t-stagger-line { will-change: transform, opacity, filter; }
html.t-motion .t-stagger.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Imagen del hero: deriva lenta (una imagen en movimiento) */
@keyframes aura-drift { from { transform: scale(1.04); } to { transform: scale(1); } }
html.t-motion #inicio img.object-cover { animation: aura-drift 1600ms var(--ease-smooth-out) both; }

@media (prefers-reduced-motion: reduce) {
  html.t-motion .t-stagger-line { opacity: 1; transform: none; filter: none; transition: none !important; }
  html.t-motion #inicio img.object-cover { animation: none; }
  /* Se quita el movimiento, se conserva la retroalimentación de color (animate.md) */
  html body a.rounded-md, html body a.rounded-md:active { transition-property: color, background-color, border-color, box-shadow; transform: none; }
  html body .aura-cat-card img { transition: none; transform: none !important; }
}

/* Tablet 768–1023: la barra no se desborda ni parte los botones */
@media (min-width: 768px) and (max-width: 1023px) {
  html body #navbar > div { padding-left: 2rem; padding-right: 2rem; gap: 1rem; }
  html body #navbar .space-x-10 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.25rem; }
  html body #navbar a.rounded-md { padding-left: 1rem; padding-right: 1rem; white-space: nowrap; font-size: 0.9375rem; }
  html body #navbar .nav-link { font-size: 0.9375rem; }
}
html { overflow-x: clip; }

/* Hero ≥1024: el titular toma todo el ancho (dos líneas, tamaño de display) y domina la primera pantalla */
@media (min-width: 1024px) {
  html body #inicio > div.grid { grid-template-rows: auto auto 1fr; row-gap: 2rem; align-items: start; }
  html body #inicio > div.grid > .lg\:col-span-7 { display: contents; }
  html body #inicio h1 { grid-column: 1 / -1; grid-row: 1; font-size: clamp(4rem, 5.6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 0.5rem; max-width: 18ch; }
  html body #inicio h1 + p { grid-column: 1 / 8; grid-row: 2; margin-bottom: 0; }
  html body #inicio h1 + p + div { grid-column: 1 / 8; grid-row: 3; align-self: start; }
  html body #inicio > div.grid > .lg\:col-span-5 { grid-column: 8 / -1; grid-row: 2 / 4; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html body #inicio h1 { font-size: 3.125rem; line-height: 1.05; }
}
html body #nosotros .rounded-full.border:hover { background: var(--aura-navy); color: #ffffff; }

/* Superficies del navegador con la paleta (craft-floor: browser surfaces) */
::selection { background: var(--aura-navy); color: #ffffff; }
html body { caret-color: var(--aura-navy); accent-color: var(--aura-navy); }
html body a { text-underline-offset: 3px; }
html body a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* r2 — texto corrido sin palabras huérfanas (typeset.md) */
html body main p, html body footer p { text-wrap: pretty; }

/* r2 — tarjetas de categoría: fondo marino de respaldo si la foto no carga,
   así el título blanco conserva contraste (harden.md) */
html body .aura-cat-card { background-color: var(--aura-ink); }

/* r2 — objetivo táctil del botón de menú ≥ 44px (audit.md) */
html body #mobile-menu-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { html body #mobile-menu-btn { display: none; } }

/* logo r2 — logo del header más legible; alto fijo, ancho automático (sin distorsión) */
html body #navbar > div > a:first-child > img { height: 36px; width: auto; max-width: none; }
@media (min-width: 768px) { html body #navbar > div > a:first-child > img { height: 40px; } }
@media (min-width: 1024px) { html body #navbar > div > a:first-child > img { height: 48px; } }
