/**
 * CALCUS.APP - Stylesheet
 * Calculadoras Financieras Online
 */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    
    /* Secondary */
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    
    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Neutrals - Light Mode */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Theme Colors */
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-card: var(--white);
    --text: var(--gray-800);
    --text-light: var(--gray-600);
    --text-muted: var(--gray-500);
    --border: var(--gray-200);
    --border-light: var(--gray-100);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    
    /* Spacing */
    --header-height: 72px;
    --container: 1200px;
    --gap: 1.5rem;
    
    /* Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* Transitions */
    --transition: 200ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --primary-bg: rgba(37, 99, 235, 0.15);
}

/* ===========================================
   RESET
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ===========================================
   UTILITIES
   =========================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ===========================================
   HEADER
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15,23,42,0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo-text .logo-accent {
    color: var(--primary);
}

.logo-text .logo-tld {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    color: white;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-accent {
    color: var(--primary);
}

.logo-tld {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9em;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.has-dropdown:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.dropdown-col h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-col h4 svg {
    width: 14px;
    height: 14px;
}

.dropdown-col a {
    display: block;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text);
    transition: color 0.2s ease;
}

.dropdown-col a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-col a:hover {
    color: var(--primary);
}

.dropdown-col a:hover::before {
    width: 100%;
}

.dropdown-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary);
}

[data-theme="dark"] .btn-icon:hover {
    background: var(--gray-700);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Theme Toggle */
#themeToggle .icon-dark,
[data-theme="dark"] #themeToggle .icon-light {
    display: none;
}

[data-theme="dark"] #themeToggle .icon-dark {
    display: block;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================================
   MOBILE MENU
   =========================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@media (min-width: 481px) {
    .mobile-menu {
        max-width: 420px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    }
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    text-align: left;
}

.mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-toggle .toggle-arrow {
    margin-left: auto;
    transition: transform var(--transition);
}

.mobile-nav-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 0.5rem 2.5rem;
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu a {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    border-radius: var(--radius);
}

.mobile-submenu a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.mobile-submenu .view-all {
    color: var(--primary);
    font-weight: 500;
}

/* Mobile Submenu Sections */
.mobile-submenu-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-submenu-section:last-of-type {
    border-bottom: none;
}

.mobile-submenu-title {
    display: block;
    padding: 0 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.mobile-submenu-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: var(--radius);
}

.mobile-submenu-all svg {
    width: 16px;
    height: 16px;
}

/* Mobile Popular Section */
.mobile-popular {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-popular h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mobile-popular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.mobile-popular-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.mobile-popular-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.mobile-popular-item:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
}

/* Theme Switch Options */
.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-switch > span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.theme-switch-options {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-theme-toggle span {
    font-weight: 500;
    color: var(--text);
}

.mobile-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: all var(--transition);
}

.mobile-social a:hover {
    background: var(--primary);
    color: white;
}

.mobile-social a svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Mobile Search */
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.mobile-search svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
}

.mobile-search input::placeholder {
    color: var(--text-muted);
}

/* Mobile Nav Item */
.mobile-nav-item {
    margin-bottom: 0.25rem;
}

.mobile-nav-item .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-nav-item .mobile-nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.mobile-nav-item .mobile-nav-link svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-item .submenu-arrow {
    margin-left: auto;
    transition: transform var(--transition);
}

.mobile-nav-item .mobile-nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-nav-item .mobile-submenu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 0.75rem 2.75rem;
    margin-top: 0.25rem;
}

.mobile-nav-item .mobile-submenu.active {
    display: flex;
}

.mobile-nav-item .mobile-submenu a {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-nav-item .mobile-submenu a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.mobile-submenu-all {
    color: var(--primary) !important;
    font-weight: 500;
}

/* Mobile Quick Calculators */
.mobile-quick {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-quick h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mobile-quick-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    transition: all var(--transition);
}

.mobile-quick-grid a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.mobile-quick-grid a svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg) 100%);
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Animated Grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Glowing Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -150px;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 40%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ===========================================
   CARDS
   =========================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .card-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.card-link:hover svg {
    transform: translateX(4px);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.card-meta svg {
    width: 14px;
    height: 14px;
}

/* ===========================================
   CALCULATOR
   =========================================== */
.calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.calculator-header {
    margin-bottom: 2rem;
}

.calculator-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calculator-title svg {
    color: var(--primary);
}

.calculator-description {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: 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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-prefix,
.input-suffix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.input-prefix {
    left: 1rem;
}

.input-suffix {
    right: 1rem;
}

.input-group .form-input {
    padding-left: 2.5rem;
}

/* Results */
.calculator-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.result-item {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}

.result-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-item-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    color: var(--warning);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,0.9);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: white;
}

.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter h5 {
    font-size: 0.875rem;
    color: white;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    color: white;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form .btn {
    padding: 0.625rem;
}

.newsletter-form .btn svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-legal a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.footer-developer img {
    height: 16px;
    width: auto;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.footer-developer img:hover {
    opacity: 1;
}

/* ===========================================
   COOKIE BANNER
   =========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===========================================
   BREADCRUMB
   =========================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-light);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb svg,
.breadcrumb i svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item svg {
    width: 14px;
    height: 14px;
}

/* ===========================================
   LEAD MAGNET
   =========================================== */
.lead-magnet {
    background: linear-gradient(135deg, var(--primary-bg), var(--bg));
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.lead-magnet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    color: white;
}

.lead-magnet-icon svg {
    width: 32px;
    height: 32px;
}

.lead-magnet-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lead-magnet-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.lead-magnet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

/* ===========================================
   CATEGORY GRID
   =========================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-title {
    font-size: 1.125rem;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.category-links a:last-child {
    border-bottom: none;
}

.category-links a:hover {
    color: var(--primary);
}

.category-links a span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 580px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-stat {
        flex: 1 1 40%;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
    }
    
    .calculator {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stat {
        flex: none;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animate on scroll */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   CALCULATOR PAGE STYLES
   =========================================== */
.calculator-hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg) 100%);
    padding: 2rem 0;
}

[data-theme="dark"] .calculator-hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.calculator-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.calculator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.calculator-badge svg {
    width: 14px;
    height: 14px;
}

.calculator-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.calculator-subtitle {
    color: var(--text-light);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.calculator-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.calculator-category-badge svg,
.calculator-category-badge i svg {
    width: 14px;
    height: 14px;
}

.calculator-stats {
    display: flex;
    gap: 2rem;
}

.calculator-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.calculator-stats .stat svg,
.calculator-stats .stat i svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.calculator-hero-description {
    color: var(--text-light);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.calculator-hero-stats {
    display: flex;
    gap: 2rem;
}

.calculator-hero-stats .hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.calculator-hero-stats .hero-stat svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.calculator-section {
    padding: 3rem 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.calculator-card-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.calculator-card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    margin: 0;
}

.calculator-card-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.calculator-form {
    padding: 1.5rem;
}

.form-group-lg input {
    font-size: 1.25rem;
    padding: 1rem;
}

.input-currency {
    position: relative;
}

.input-currency input {
    padding-right: 5rem;
}

.currency-symbol {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-btn:hover,
.quick-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.radio-buttons {
    display: flex;
    gap: 0.5rem;
}

.radio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
}

.radio-btn span {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.radio-btn input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.form-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.number-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.number-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.number-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.number-btn svg {
    width: 16px;
    height: 16px;
}

.number-input input {
    width: 60px;
    text-align: center;
}

/* Calculator Sidebar */
.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-card h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.sidebar-card-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sidebar-card-cta h4 {
    color: white;
}

.sidebar-card-cta p {
    font-size: 0.875rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.sidebar-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.related-calculators {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-calculators li {
    border-bottom: 1px solid var(--border-light);
}

.related-calculators li:last-child {
    border-bottom: none;
}

.related-calculators a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.related-calculators a:hover {
    color: var(--primary);
}

.related-calculators svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Formula Box */
.formula-box {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.formula-box p {
    margin: 0;
}

.formula-box p:first-child {
    font-family: monospace;
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.formula-box ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.formula-box li {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.data-table td {
    color: var(--text-light);
}

.data-table tbody tr:hover {
    background: var(--bg-alt);
}

.data-table td strong {
    color: var(--text);
    font-weight: 600;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.info-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Comparison Box */
.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.comparison-item h4 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.comparison-item ul {
    margin: 0;
    padding-left: 1.25rem;
}

.comparison-item li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, var(--primary-bg), var(--bg-card));
    border: 1px solid var(--primary);
}

.tips-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.tips-card h3 svg {
    width: 18px;
    height: 18px;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* Results Display */
.results-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-main-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.result-main-card .result-label {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-main-card .result-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.result-main-card .result-period {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.results-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-item {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}

.result-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-item-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.result-item-value.positive {
    color: var(--success);
}

.result-item-value.negative {
    color: var(--danger);
}

/* Comparison bars */
.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.comparison-item span:first-child {
    width: 100px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.comparison-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.comparison-item.active .bar-fill {
    background: var(--success);
}

.comparison-item span:last-child {
    width: 100px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Content sections */
.content-section {
    padding: 4rem 0;
    background: var(--bg);
}

.content-section.alt {
    background: var(--bg-alt);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.content-main {
    min-width: 0;
}

.calculator-article {
    color: var(--text);
    line-height: 1.7;
}

.calculator-article h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.calculator-article h2:first-child {
    margin-top: 0;
}

.calculator-article h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.calculator-article p {
    margin-bottom: 1rem;
}

.calculator-article ul,
.calculator-article ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.calculator-article li {
    margin-bottom: 0.5rem;
}

.calculator-article ul li {
    list-style: disc;
}

.calculator-article ol li {
    list-style: decimal;
}

.section-explanation {
    background: var(--bg-alt);
}

.content-two-columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.content-main h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.content-main h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.content-main p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.styled-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.styled-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.styled-list li::marker {
    color: var(--primary);
}

.irpf-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.irpf-table table {
    width: 100%;
    border-collapse: collapse;
}

.irpf-table th,
.irpf-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.irpf-table th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.875rem;
}

.irpf-table td {
    font-size: 0.9375rem;
}

.irpf-table small {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* AI Assistant */
.ai-assistant-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.ai-assistant-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-assistant-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.ai-assistant-header h4 {
    margin: 0;
    font-size: 1rem;
}

.ai-assistant-card > p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.ai-chat-input {
    display: flex;
    gap: 0.5rem;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg);
    color: var(--text);
}

.ai-response {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: none;
}

.ai-response.active {
    display: block;
}

/* Tooltip */
.tooltip-trigger {
    display: inline-flex;
    cursor: help;
    color: var(--text-muted);
}

.tooltip-trigger svg {
    width: 16px;
    height: 16px;
}

/* Article Content */
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1rem; line-height: 1.7; color: var(--text-light); }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.6; color: var(--text-light); }
.article-content li strong { color: var(--text); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { text-decoration: none; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-content th, .article-content td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.article-content th { background: var(--bg-alt); font-weight: 600; }

/* Alert boxes */
.alert {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Responsive Calculator */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .content-two-columns {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .calculator-hero h1 {
        font-size: 1.5rem;
    }
    
    .calculator-hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .results-breakdown {
        grid-template-columns: 1fr;
    }
    
    .result-main-card .result-value {
        font-size: 2.25rem;
    }
    
    .quick-amounts {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-btn {
        flex-shrink: 0;
    }
}

/* ===========================================
   HEADER ELEMENTS (MOBILE & DESKTOP)
   =========================================== */

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-700);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-dark {
    display: block;
}

/* Header Search Button */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.header-search-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

[data-theme="dark"] .header-search-btn:hover {
    background: var(--gray-700);
}

.header-search-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
    background: var(--gray-700);
}

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-form > svg,
.search-form > i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-form > svg,
.search-form > i svg {
    width: 20px;
    height: 20px;
}

.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
}

.search-close:hover {
    background: var(--gray-100);
    color: var(--text);
}

/* Desktop Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
    transition: all var(--transition);
}

.submenu li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.has-submenu .nav-link svg {
    transition: transform var(--transition);
}

.has-submenu:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Mobile Menu Close */
.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.mobile-menu-close:hover {
    background: var(--gray-100);
    color: var(--danger);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Mobile Search */
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.mobile-search svg,
.mobile-search i svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
}

.mobile-search input:focus {
    outline: none;
}

.mobile-search input::placeholder {
    color: var(--text-muted);
}

/* Mobile Nav Item */
.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-item.has-submenu > button {
    width: 100%;
    text-align: left;
}

.mobile-nav-item .submenu-arrow {
    margin-left: auto;
    transition: transform var(--transition);
}

.mobile-nav-item.expanded .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-nav-item .mobile-submenu {
    display: none;
    padding: 0.5rem 0 0.5rem 2.5rem;
}

.mobile-nav-item.expanded .mobile-submenu {
    display: block;
}

.mobile-submenu-all {
    color: var(--primary) !important;
    font-weight: 500;
}

/* Mobile Quick Calculators */
.mobile-quick {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-quick h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mobile-quick-grid a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    transition: all var(--transition);
}

.mobile-quick-grid a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.mobile-quick-grid a svg,
.mobile-quick-grid a i svg {
    width: 18px;
    height: 18px;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-theme-toggle > span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Mobile Social */
.mobile-social {
    display: flex;
    gap: 0.75rem;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.mobile-social a:hover {
    background: var(--primary);
    color: white;
}

.mobile-social a svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-search-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Calculator responsive */
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .calculator-hero h1 {
        font-size: 1.5rem;
    }
    
    .calculator-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Content responsive */
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-two-columns {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        order: -1;
    }
    
    .calculator-article h2 {
        font-size: 1.5rem;
    }
    
    .calculator-article h3 {
        font-size: 1.125rem;
    }
    
    /* Tables responsive */
    .data-table {
        font-size: 0.8125rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.625rem 0.75rem;
    }
    
    /* FAQ responsive */
    .faq-question {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }
    
    /* Info cards responsive */
    .info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .mobile-menu,
    .mobile-overlay,
    .hero-bg {
        display: none !important;
    }
    
    .main {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===========================================
   CALCULADORA UNIFICADA - ESTILOS PREMIUM
   =========================================== */

/* Calculator Page Base */
.calc-page {
    background: var(--bg-alt);
    min-height: 100vh;
}

/* Calculator Header with Gradient */
.calc-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    padding: 2rem 0 3rem;
}

.calc-header .breadcrumb a,
.calc-header .breadcrumb span {
    color: rgba(255,255,255,0.9);
}

.calc-header .breadcrumb svg {
    color: rgba(255,255,255,0.6);
}

.calc-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.calc-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    max-width: 600px;
}

.calc-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.8125rem;
}

.calc-badge svg {
    width: 14px;
    height: 14px;
}

/* Calculator Layout */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: -1rem;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

/* Calculator Form Card */
.calc-form-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.calc-form-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calc-form-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.calc-form-header svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.calc-form-body {
    padding: 1.5rem;
}

/* Main Input Styling */
.main-input-group {
    margin-bottom: 2rem;
}

.main-input-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.main-input-wrapper {
    position: relative;
}

.main-input {
    width: 100%;
    padding: 1.25rem 1rem;
    padding-right: 5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}

.main-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.main-input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quick Selection Buttons */
.quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}

.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Form Sections */
.form-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.section-title-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title-sm svg {
    width: 16px;
    height: 16px;
}

/* Toggle Buttons Group */
.toggle-group {
    display: flex;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 2.5rem;
    font-size: 0.9375rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    transition: all 0.15s;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
}

.custom-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.custom-select-arrow svg {
    width: 18px;
    height: 18px;
}

/* Form Row Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Counter Input */
.counter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-label {
    flex: 1;
    font-size: 0.9375rem;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}

.counter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.counter-btn svg {
    width: 18px;
    height: 18px;
}

.counter-value {
    width: 48px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Calculate Submit Button */
.calc-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.calc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.calc-submit svg {
    width: 20px;
    height: 20px;
}

/* Results Card */
.calc-results-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    height: fit-content;
}

.results-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
}

.results-header h3 {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 0.25rem;
}

.results-main-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.results-monthly {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.results-body {
    padding: 1.5rem;
}

/* Results Breakdown */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-radius: 10px;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breakdown-label svg {
    width: 16px;
    height: 16px;
}

.breakdown-value {
    font-size: 0.9375rem;
    font-weight: 600;
}

.breakdown-item.deduction .breakdown-value {
    color: #ef4444;
}

.breakdown-item.total {
    background: var(--primary-bg);
    margin-top: 0.5rem;
}

.breakdown-item.total .breakdown-label {
    font-weight: 600;
    color: var(--text);
}

/* Chart Section */
.chart-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.chart-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.chart-bar {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.chart-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    transition: width 0.5s ease;
    min-width: 30px;
}

.chart-segment.neto { background: #10b981; }
.chart-segment.ss { background: #f59e0b; }
.chart-segment.irpf { background: #8b5cf6; }

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.neto { background: #10b981; }
.legend-dot.ss { background: #f59e0b; }
.legend-dot.irpf { background: #8b5cf6; }

/* Action Buttons */
.results-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Guide Section */
.guide-section {
    background: var(--bg);
    padding: 4rem 0;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.guide-header p {
    color: var(--text-light);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Visual Explainer */
.visual-explainer {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.explainer-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Salary Flow Diagram */
.salary-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-box {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
}

.flow-box.bruto {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.flow-box.deduccion {
    background: #fef3c7;
    border: 2px dashed #f59e0b;
}

.flow-box.neto {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.flow-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.flow-box-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.flow-arrow svg {
    width: 32px;
    height: 32px;
}

/* Field Guide Cards */
.field-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.field-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.field-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.field-icon svg {
    width: 24px;
    height: 24px;
}

.field-card-header h3 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.field-card-header .field-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.field-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.field-example {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.875rem;
}

.field-example-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.field-example-content {
    color: var(--text);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tip-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

.tip-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.tip-card h4 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.tip-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Input with Unit */
.input-with-unit {
    position: relative;
}

.input-with-unit input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 5rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.15s;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-unit .unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.15s;
}

.radio-card-content svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.radio-card-content span {
    font-size: 0.875rem;
    font-weight: 500;
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.radio-card input:checked + .radio-card-content svg {
    color: var(--primary);
}

/* Number Input Group */
.number-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.number-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}

.number-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.number-input-group input {
    width: 60px;
    text-align: center;
    padding: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
}

/* Tooltip */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    cursor: help;
}

.tooltip-trigger svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* Calculator Responsive */
@media (max-width: 1024px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }
    
    .calc-results-card {
        order: -1;
    }
}

@media (max-width: 640px) {
    .calc-title {
        font-size: 1.5rem;
    }
    
    .main-input {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-main-value {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .salary-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .radio-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .field-guide {
        grid-template-columns: 1fr;
    }
}
