/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* Utilidades de flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Espaciado */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-3 {
    padding-top: 0.75rem;
}

/* Colores de fondo */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-white {
    background-color: #ffffff;
}

.bg-blue-600 {
    background-color: #2563eb;
}

/* Colores de texto */
.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

/* Tamaños de texto */
.text-sm {
    font-size: 0.875rem;
}

.text-2xl {
    font-size: 1.5rem;
}

/* Estilos de fuente */
.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* Alineación de texto */
.text-center {
    text-align: center;
}

/* Ancho y alto */
.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.min-h-screen {
    min-height: 100vh;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

/* Bordes */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-300 {
    border-color: #d1d5db;
}

/* Sombras */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Display */
.block {
    display: block;
}

/* Estados interactivos */
.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:text-blue-800:hover {
    color: #1e40af;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-500:focus {
    --ring-color: #3b82f6;
    box-shadow: 0 0 0 2px var(--ring-color);
}

.focus\:ring-offset-2:focus {
    outline-offset: 2px;
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

/* Transiciones */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Media queries para responsive */
@media (max-width: 640px) {
    .p-8 {
        padding: 1.5rem;
    }
    
    .max-w-md {
        max-width: 100%;
    }
}

/* Estilos específicos para elementos de formulario */
input[type="text"],
input[type="password"] {
    outline: none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

a {
    text-decoration: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* Color rojo */
.text-red-300 {
    color: #fca5a5;
}

.text-red-500 {
    color: #dc2626;
}

.text-red-600 {
    color: #b91c1c;
}

/* Color verde */
.text-green-500 {
    color: #16a34a;
}

.text-yellow-500 {
    color: #f59e0b;
}

/* Color indigo */
.text-indigo-200 {
    color: #c7d2fe;
}

.text-indigo-300 {
    color: #a855f7;
}

.text-indigo-500 {
    color: #6366f1;
}

.font-normal {
    font-weight: normal;
}

.italic {
    font-style: italic;
}

