/*
 * KINOS REAL ESTATE — reset.css
 * Reset moderno + normalización para el sistema de diseño Kinos.
 * Basado en Andy Bell's Modern CSS Reset + Josh Comeau's CSS Reset.
 * Mobile-first por defecto.
 */

/* ── Box sizing universal ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

/* ── Body ── */
body {
  min-height: 100vh;
  line-height: var(--leading-normal, 1.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Media ── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* ── Inputs heredan tipografía ── */
input,
button,
textarea,
select {
  font: inherit;
}

/* ── Overflow en párrafos largos ── */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ── Listas sin estilo por defecto ── */
ul,
ol {
  list-style: none;
}

/* ── Tablas ── */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ── Botones ── */
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ── Anclas ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Fieldset ── */
fieldset {
  border: none;
}

/* ── Abbr ── */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* ── Focus visible — accesibilidad ── */
:focus-visible {
  outline: 2px solid var(--color-gold, #C8A96E);
  outline-offset: 2px;
}

/* ── Selección de texto ── */
::selection {
  background-color: rgba(200, 169, 110, 0.20);
  color: var(--surface-authority, #06184A);
}

/* ── Scrollbar sutil (Webkit) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-neutral, #F7F8FA);
}
::-webkit-scrollbar-thumb {
  background: var(--border-default, #E2E4EF);
  border-radius: var(--radius-full, 9999px);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-kinos-blue-25, #C4C0DC);
}

/* ── Placeholder ── */
::placeholder {
  color: var(--text-placeholder, #9CA3AF);
  opacity: 1;
}

/* ── Disabled ── */
[disabled],
[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Hidden ── */
[hidden] {
  display: none !important;
}

/* ── Skip to main content (accesibilidad) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4, 1rem);
  z-index: var(--z-header, 100);
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  background: var(--surface-authority, #06184A);
  color: var(--text-on-dark-primary, #F8FAFC);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border-radius: var(--radius-base);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4, 1rem);
}
