/* ============================================================
 * ICCASA · Tema Oscuro Moderno (estilo Gracia CDMX)
 * ============================================================ */

:root {
    --bg: #0a0a0a;
    --bg-surface: #121212;
    --bg-warm: #1a1a1a;
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --accent-light: #c084fc;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border: #262626;
    --border-light: #1f1f1f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-purple: 0 4px 20px rgba(168,85,247,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html.dark {
    --bg: #faf7f2;
    --bg-surface: #ffffff;
    --bg-warm: #f5ede3;
    --accent: #8b5e3c;
    --accent-hover: #6d4528;
    --accent-light: #c49a6c;
    --text-primary: #1e1e1e;
    --text-secondary: #5c5c5c;
    --text-muted: #8a8a8a;
    --border: #e8e0d5;
    --border-light: #f0eae2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-purple: 0 4px 20px rgba(139,94,60,0.2);
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-purple);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-purple);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--accent);
}

.navbar {
    background: rgba(13,13,13,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(168,85,247,0.1);
    color: var(--accent-light);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.7;
}