/* Global Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --background-color: #f8fafc;
    --text-color: #333;
    
    /* High contrast variables */
    --text-on-dark: #f8fafc;       /* Slate-50: Bright white-ish for dark backgrounds */
    --text-muted-on-dark: #cbd5e1; /* Slate-300: Lighter grey for dark backgrounds */
    --text-on-light: #1e293b;      /* Slate-800: Dark color for light backgrounds */
    --text-muted-on-light: #475569;/* Slate-600: Muted dark for light backgrounds */
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header y navegación */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Dynamic content section */
.dynamic-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dynamic-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* HTMX indicator */
.htmx-indicator {
    display: none;
    margin-left: 1rem;
    color: #667eea;
}

.htmx-request .htmx-indicator {
    display: inline;
}

#users-list {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
}

/* About page */
.about {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about h1 {
    color: #667eea;
    margin-bottom: 1rem;
}

.about h2 {
    color: #333;
    margin: 1.5rem 0 0.5rem;
}

.about ul {
    list-style-position: inside;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    margin-top: 2rem;
}
