/* ========================================
   NETOCALC — CALCULADORA FISCAL 2026
   Dark Luxury Tech Design System
   ======================================== */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;
    --bg-elevated: #1C1C1F;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.10);
    --border-green: rgba(34, 197, 94, 0.20);
    --border-green-h: rgba(34, 197, 94, 0.45);

    /* Primary Accent — Neon Green */
    --primary-300: #86EFAC;
    --primary-400: #4ADE80;
    --primary-500: #22C55E;
    --primary-600: #16A34A;
    --primary-glow: rgba(34, 197, 94, 0.35);

    /* Secondary Accent — Amber */
    --amber-400: #FBBF24;
    --amber-500: #F59E0B;

    /* Status Colors */
    --red-400: #F87171;
    --orange-400: #FB923C;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-muted: #71717A;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-green: 0 0 20px rgba(34, 197, 94, 0.35);
    --shadow-green-lg: 0 0 40px rgba(34, 197, 94, 0.55);

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.25s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

input,
select,
button,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   3. LAYOUT UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--spacing-lg);
}

/* ========================================
   4. HEADER & NAV
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1140px;
    margin-inline: auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.Todo-title {
    color: var(--primary-500);
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--primary-500);
    font-size: 1.4rem;
    line-height: 1;
    margin-left: -3px;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.logo-icon {
    font-size: 1.2rem;
}

.logo-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-500);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--border-green);
    padding: 1px 6px;
    border-radius: 999px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Active nav link */
.nav-links a.nav-active {
    color: var(--primary-400);
    background: rgba(34, 197, 94, 0.10);
}

/* Badge "Próximamente" */
.nav-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.4;
    flex-shrink: 0;
}

.nav-links .nav-cta {
    color: var(--primary-400);
    border: 1px solid var(--border-green);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
}

.nav-links .nav-cta:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-green);
}

/* ========================================
   4b. INVERSA PAGE — SPECIFIC STYLES
   ======================================== */

/* Hero inversa */
.inversa-hero {
    position: relative;
    padding: 64px 0 40px;
    text-align: center;
    overflow: hidden;
}

.inversa-hero .hero-glow {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.04) 40%, transparent 70%);
}

/* Calculator main result */
.result-statement {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-statement strong {
    color: var(--text-tertiary);
}

.result-base-amount {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 0 50px rgba(34, 197, 94, 0.45);
    transition: color 0.3s ease;
}

.result-base-amount.inv-counting {
    animation: counter-flash 0.15s ease-out;
}

.result-currency-symbol {
    font-size: 0.55em;
    vertical-align: super;
    opacity: 0.8;
}

.result-iva-line {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.result-iva-line .highlight {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Thermometer / Rentabilidad */
.thermometer-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.4s ease;
}

.thermometer-card.th-red {
    border-color: rgba(248, 113, 113, 0.4);
}

.thermometer-card.th-yellow {
    border-color: rgba(251, 191, 36, 0.4);
}

.thermometer-card.th-green {
    border-color: rgba(34, 197, 94, 0.4);
}

.thermometer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.thermometer-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.thermometer-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.4s ease;
}

.thermometer-price.th-red {
    color: #F87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

.thermometer-price.th-yellow {
    color: #FBBF24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.thermometer-price.th-green {
    color: var(--primary-400);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.thermometer-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.thermometer-bar-fill {
    height: 100%;
    border-radius: 999px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.thermometer-bar-fill.th-red {
    background: linear-gradient(90deg, #DC2626, #F87171);
}

.thermometer-bar-fill.th-yellow {
    background: linear-gradient(90deg, #D97706, #FBBF24);
}

.thermometer-bar-fill.th-green {
    background: linear-gradient(90deg, #16A34A, #4ADE80);
}

.thermometer-verdict {
    font-size: 0.8rem;
    font-weight: 600;
}

.thermometer-verdict.th-red {
    color: #F87171;
}

.thermometer-verdict.th-yellow {
    color: #FBBF24;
}

.thermometer-verdict.th-green {
    color: var(--primary-400);
}

/* Copy button */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.10);
    color: var(--primary-400);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-green);
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: -0.01em;
}

.btn-copy:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-green);
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy.copied {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--primary-500);
    color: var(--primary-300);
}

/* Breakdown rows for inversa */
.inv-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.inv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.inv-row-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.inv-row-label .row-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inv-row-value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-secondary);
}

.inv-row-value.negative {
    color: var(--red-400);
}

.inv-row-value.positive {
    color: var(--primary-400);
}

/* Afiliados card */
.affiliates-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.07) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(8px);
}

.affiliates-card .aff-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-500);
    opacity: 0.85;
}

.affiliates-card .aff-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
}

.affiliates-card .aff-highlight {
    color: var(--primary-400);
}

/* Results placeholders before first calculation */
.result-placeholder {
    opacity: 0.35;
}

/* Cuota hint */
.cuota-hint {
    font-size: 0.77rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -4px;
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid var(--border-green);
    color: var(--primary-400);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-500);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    margin-inline: auto;
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-400);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-medium);
}

/* ========================================
   6. CALCULATOR SECTION
   ======================================== */
.calculator-section {
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* --- INPUTS PANEL --- */
.inputs-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.panel-header {
    margin-bottom: var(--spacing-sm);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.panel-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.label-icon {
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 14px 16px 14px 36px;
    outline: none;
    transition: var(--transition-smooth);
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15), var(--shadow-green);
    background: rgba(34, 197, 94, 0.04);
}

.form-input:hover:not(:focus) {
    border-color: var(--border-green);
}

.input-help {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* SELECT */
.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 44px 14px 16px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
}

.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.1rem;
}

/* IRPF BADGE in label */
.irpf-badge {
    background: var(--primary-500);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-left: auto;
    min-width: 46px;
    text-align: center;
    transition: var(--transition-base);
}

/* SLIDER */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-elevated);
    outline: none;
    cursor: pointer;
}

.form-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary-500) 0%, var(--primary-500) var(--slider-pct, 53.3%), var(--bg-elevated) var(--slider-pct, 53.3%), var(--bg-elevated) 100%);
}

.form-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-elevated);
}

.form-slider::-moz-range-progress {
    height: 6px;
    border-radius: 999px 0 0 999px;
    background: var(--primary-500);
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-500);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    cursor: pointer;
    margin-top: -7px;
    transition: box-shadow 0.2s ease;
}

.form-slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    background: var(--primary-500);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    cursor: pointer;
}

.form-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 14px rgba(34, 197, 94, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.73rem;
    color: var(--text-muted);
}

.slider-labels em {
    font-style: normal;
    color: var(--text-muted);
    opacity: 0.7;
}

/* DISCLAIMER BOX */
.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: auto;
}

.disclaimer-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.disclaimer-box p {
    font-size: 0.8rem;
    color: var(--amber-400);
    line-height: 1.5;
}

/* --- RESULTS PANEL --- */
.results-panel {
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.glass-panel {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-400);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-500);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* THE STAR NUMBER */
.neto-display {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.neto-currency {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-400);
}

.neto-amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    letter-spacing: -0.03em;
    transition: color 0.3s ease;
}

.neto-amount.negative {
    color: var(--red-400);
    text-shadow: 0 0 40px rgba(248, 113, 113, 0.3);
}

/* PROGRESS BAR */
.neto-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.neto-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.neto-bar-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -8px;
}

/* BREAKDOWN LIST */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.breakdown-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green {
    background: var(--primary-500);
}

.dot-green-bright {
    background: var(--primary-400);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.dot-red {
    background: var(--red-400);
}

.dot-orange {
    background: var(--orange-400);
}

.breakdown-name {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.breakdown-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
}

.breakdown-value.positive {
    color: var(--primary-400);
}

.breakdown-value.negative {
    color: var(--red-400);
}

.breakdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.breakdown-total .breakdown-name {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.total-value {
    font-size: 1.0625rem;
}

/* IVA INFO BOX */
.iva-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iva-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.iva-icon {
    font-size: 0.9rem;
}

.iva-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.iva-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
}

.iva-value.positive {
    color: var(--primary-400);
}

.iva-value.negative {
    color: var(--red-400);
}

.iva-total-row {
    border-top: 1px solid var(--border-subtle);
    padding-top: 6px;
    margin-top: 2px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8375rem;
}

.iva-total-row .iva-value {
    color: var(--amber-400);
}

/* ========================================
   7. SPONSOR / MONETIZATION SECTION
   ======================================== */
.sponsor-section {
    padding: var(--spacing-xl) 0;
}

.gradient-border-card {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400), #00D4AA, var(--primary-600));
    background-size: 300% 300%;
    animation: gradient-rotate 5s ease infinite;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.sponsor-inner {
    background: var(--bg-tertiary);
    border-radius: calc(var(--radius-2xl) - 2px);
    padding: var(--spacing-xl) var(--spacing-xl);
}

.sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--border-green);
    color: var(--primary-400);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sponsor-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-xl);
    align-items: center;
}

.sponsor-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.sponsor-desc {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.65;
    margin-bottom: var(--spacing-lg);
}

.sponsor-desc strong {
    color: var(--primary-400);
}

.sponsor-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sponsor-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 240px;
}

.discount-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-600);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-green-lg);
}

.discount-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.discount-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sponsor-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   8. BUTTONS
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--primary-500);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--primary-400);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    font-size: 1.0625rem;
    padding: 16px 36px;
}

/* PULSE ANIMATION */
.btn-pulse {
    animation: btn-pulse-anim 2.5s ease-in-out infinite;
}

.btn-pulse:hover {
    animation: none;
}

@keyframes btn-pulse-anim {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 50px rgba(34, 197, 94, 0.7), 0 0 80px rgba(34, 197, 94, 0.3);
    }
}

/* ========================================
   9. SECTION GENERIC STYLES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-badge {
    display: inline-block;
    color: var(--primary-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    max-width: 540px;
    margin-inline: auto;
}

/* ========================================
   10. FAQ SECTION
   ======================================== */
.faq-section {
    padding: var(--spacing-3xl) 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.active {
    border-color: var(--border-green);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    padding: var(--spacing-lg) var(--spacing-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-400);
}

.faq-item.active .faq-question {
    color: var(--primary-400);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid var(--border-green);
    color: var(--primary-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s ease, background 0.25s ease;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: rgba(34, 197, 94, 0.20);
}

.faq-answer {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.faq-answer p+p {
    margin-top: var(--spacing-md);
}

.faq-answer ul {
    list-style: none;
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-answer ul li::before {
    content: '›';
    color: var(--primary-400);
    font-weight: 700;
    margin-right: 8px;
}

.faq-answer strong {
    color: var(--text-secondary);
}

/* Accordion animation */
.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper {
    max-height: 600px;
}

/* ========================================
   11. SECOND CTA
   ======================================== */
.second-cta-section {
    padding-bottom: var(--spacing-3xl);
}

.second-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.10) 0%, rgba(9, 9, 11, 0.8) 60%);
    border: 1px solid var(--border-green);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.second-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.second-cta-desc {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
    margin-inline: auto;
    position: relative;
}

.second-cta-desc strong {
    color: var(--primary-400);
}

/* ========================================
   12. FOOTER
   ======================================== */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-tagline {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 280px;
}

.footer-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links-group a:hover {
    color: var(--primary-400);
}

.footer-disclaimer {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-disclaimer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.footer-disclaimer strong {
    color: var(--amber-400);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   13. SCROLLBAR CUSTOM
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* ========================================
   14. COUNTER ANIMATION
   ======================================== */
@keyframes counter-flash {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.neto-amount.counting {
    animation: counter-flash 0.15s ease-out;
}

/* ========================================
   15. SELECTION
   ======================================== */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: var(--text-primary);
}

/* ========================================
   16. RESPONSIVE — TABLET (≤ 900px)
   ======================================== */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .results-panel {
        position: static;
    }

    .sponsor-content {
        grid-template-columns: 1fr;
    }

    .sponsor-cta-block {
        min-width: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ========================================
   17. RESPONSIVE — MOBILE (≤ 620px)
   ======================================== */
@media (max-width: 620px) {
    :root {
        --spacing-xl: 28px;
        --spacing-2xl: 48px;
        --spacing-3xl: 72px;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .stat-divider {
        display: none;
    }

    .inputs-panel,
    .results-panel {
        padding: var(--spacing-lg);
    }

    .sponsor-inner {
        padding: var(--spacing-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .neto-amount {
        font-size: 3rem;
    }

    .second-cta-card {
        padding: var(--spacing-xl);
    }
}