:root {
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.3);
    --view-transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-base: #0B0E14;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --bg-glass-light: rgba(255, 255, 255, 0.15);
    --bg-surface: rgba(26, 32, 44, 0.65);
    --bg-surface-hover: rgba(36, 44, 60, 0.8);
    --border-glass: rgba(255, 255, 255, 0.1);
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --accent: #10B981;
    --accent-hover: #059669;
    --danger: #EF4444;
    --text-main: #F9FAFB;
    --text-dim: #9CA3AF;
    --text-dimmer: #6B7280;
    --calendar-invert: invert(1);
    --bg-calendar-header: rgba(99, 102, 241, 0.15);
    --bg-calendar-grid: rgba(0, 0, 0, 0.2);
}

/* TEMA CLARO */
[data-theme='light'] {
    --bg-base: #F3F4F6;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-surface-hover: rgba(243, 244, 246, 0.9);
    --border-glass: rgba(0, 0, 0, 0.1);
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --accent: #059669;
    --accent-hover: #047857;
    --danger: #DC2626;
    --text-main: #111827;
    --text-dim: #4B5563;
    --text-dimmer: #9CA3AF;
    --calendar-invert: invert(0);
    --bg-calendar-header: rgba(79, 70, 229, 0.08);
    --bg-calendar-grid: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-border: rgba(0, 0, 0, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --input-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* TEMA RUBÍ (Blanco Dominante) */
[data-theme='ruby'] {
    --bg-base: #FFFFFF;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-surface-hover: rgba(255, 230, 230, 0.9);
    --border-glass: rgba(225, 29, 72, 0.1);
    --primary: #E11D48;
    --primary-hover: #BE123C;
    --accent: #E11D48;
    --accent-hover: #BE123C;
    --danger: #DC2626;
    --text-main: #2D0707;
    --text-dim: #E11D48;
    --text-dimmer: #9F1239;
    --calendar-invert: invert(0);
    --bg-calendar-header: rgba(225, 29, 72, 0.05);
    --bg-calendar-grid: rgba(255, 255, 255, 0.7);
    --input-bg: rgba(225, 29, 72, 0.05);
    --input-border: rgba(225, 29, 72, 0.15);
    --bg-glass: rgba(255, 255, 255, 0.95);
    --input-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23BE123C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    height: 100dvh;
    transition: opacity 0.5s ease;
    overflow: hidden;
    position: relative;
}

/* Background animated shapes */
.bg-shape {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    animation: drift 20s infinite alternate;
}
.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.15;
    top: -200px;
    left: -100px;
}
.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.1;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}
.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.1);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
