*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--fondo);
    color: var(--texto);
    font-family: var(--fuente-texto);
    font-size: var(--texto-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--fuente-titulo);
    font-weight: 700;
    line-height: 1.25;
    color: var(--texto);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--primario);
    text-decoration: none;
    transition: color var(--duracion-rapida) var(--curva);
}

a:hover {
    color: var(--primario-hover);
}

img,
svg,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

ul,
ol {
    margin: 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--foco);
    border-radius: var(--radio-sm);
}

::selection {
    background: var(--marca-200);
    color: var(--tinta-950);
}

[hidden] {
    display: none !important;
}

.ti,
.bi {
    line-height: 1;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--tinta-300) transparent;
}

.num {
    font-family: var(--fuente-mono);
    font-variant-numeric: tabular-nums;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-none { max-width: none; }
.ml-auto { margin-left: auto; }
.relative { position: relative; }

.gap-1 { gap: var(--esp-1); }
.gap-2 { gap: var(--esp-2); }
.gap-3 { gap: var(--esp-3); }
.gap-4 { gap: var(--esp-4); }
.gap-5 { gap: var(--esp-5); }
.space-y-1 > * + * { margin-top: var(--esp-1); }
.space-y-3 > * + * { margin-top: var(--esp-3); }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-7 { grid-column: span 7 / span 7; }

.mt-1 { margin-top: var(--esp-1); }
.mt-2 { margin-top: var(--esp-2); }
.mt-4 { margin-top: var(--esp-4); }
.mt-5 { margin-top: var(--esp-5); }
.mt-6 { margin-top: var(--esp-6); }
.mb-0\.5 { margin-bottom: 2px; }
.mb-1 { margin-bottom: var(--esp-1); }
.mb-2 { margin-bottom: var(--esp-2); }
.mb-3 { margin-bottom: var(--esp-3); }
.mb-4 { margin-bottom: var(--esp-4); }
.mb-5 { margin-bottom: var(--esp-5); }
.mb-6 { margin-bottom: var(--esp-6); }
.pt-2 { padding-top: var(--esp-2); }
.pt-6 { padding-top: var(--esp-6); }
.pl-5 { padding-left: var(--esp-5); }
.p-3 { padding: var(--esp-3); }
.p-4 { padding: var(--esp-4); }
.p-6 { padding: var(--esp-6); }
.px-3 { padding-left: var(--esp-3); padding-right: var(--esp-3); }
.px-4 { padding-left: var(--esp-4); padding-right: var(--esp-4); }
.py-2 { padding-top: var(--esp-2); padding-bottom: var(--esp-2); }
.py-3 { padding-top: var(--esp-3); padding-bottom: var(--esp-3); }
.py-6 { padding-top: var(--esp-6); padding-bottom: var(--esp-6); }
.py-10 { padding-top: var(--esp-10); padding-bottom: var(--esp-10); }

.text-xs { font-size: var(--texto-xs); }
.text-sm { font-size: var(--texto-sm); }
.text-lg { font-size: var(--texto-lg); }
.text-xl { font-size: var(--texto-xl); }
.text-2xl { font-size: var(--texto-2xl); }
.text-4xl { font-size: var(--texto-3xl); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.list-disc { list-style: disc; }

.text-white { color: #fff; }
.text-primary { color: var(--primario); }
.text-gray-300 { color: var(--tinta-300); }
.text-gray-400 { color: var(--texto-tenue); }
.text-gray-500 { color: var(--texto-suave); }
.text-gray-600,
.text-gray-700 { color: var(--texto-medio); }
.text-gray-900 { color: var(--texto); }
.text-red-500,
.text-red-700 { color: var(--peligro-600); }
.text-green-700 { color: var(--exito-700); }

.bg-white { background: var(--superficie); }
.bg-gray-50 { background: var(--superficie-suave); }
.bg-gray-100 { background: var(--superficie-hundida); }
.bg-primary { background: var(--primario); }
.bg-red-50 { background: var(--peligro-50); }
.bg-green-50 { background: var(--exito-50); }

.border { border: 1px solid var(--borde); }
.border-t { border-top: 1px solid var(--borde-suave); }
.border-b { border-bottom: 1px solid var(--borde-suave); }
.border-gray-100 { border-color: var(--borde-suave); }
.border-gray-200,
.border-gray-300 { border-color: var(--borde); }
.border-red-200 { border-color: var(--peligro-200); }
.border-green-200 { border-color: var(--exito-200); }
.rounded,
.rounded-md { border-radius: var(--radio-sm); }
.rounded-lg { border-radius: var(--radio); }
.rounded-xl { border-radius: var(--radio-lg); }
.rounded-full { border-radius: var(--radio-total); }
.shadow-sm { box-shadow: var(--sombra-sm); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:text-primary:hover { color: var(--primario); }
.hover\:text-red-600:hover { color: var(--peligro-600); }
.hover\:bg-gray-50:hover { background: var(--superficie-suave); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}
