/* 
 * DJN Habitat v3.0 - Theme Design System
 * Paleta de colores oficial y sistema de diseño premium
 */

:root {
    /* Ultra-Premium Brand Palette */
    --brand-blue: #0f172a;
    /* Navy profundo para autoridad */
    --brand-blue-accent: #3b82f6;
    /* Azul eléctrico para interactivos */
    --brand-lime: #a3e635;
    /* El verde lima vibrante de Stitch */
    --brand-cyan: #06b6d4;
    /* Cyan para degradados suaves */

    /* Surface & Background (Modern Glass) */
    --bg-main: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);

    /* Text Typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-lime: #65a30d;

    /* Status Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Shadows & Effects (High Definition) */
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Spacing & Borders */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 32px;
    --radius-xl: 50px;
    /* Para píldoras y botones cápsula */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
    /* Base standardized */
}

@media (max-width: 430px) {
    body {
        font-size: 14px;
        /* Slightly smaller for high-density content */
    }
}

/* Tipografía Escala Premium */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: -0.025em;
}

@media (max-width: 430px) {
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
}

/* Bento Forms & Inputs */
.bento-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bento-form label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-form input,
.bento-form select,
.bento-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.bento-form input:focus,
.bento-form select:focus {
    outline: none;
    border-color: var(--brand-blue-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}