ideas = {
	country = {
		SPR_pragmatica_sancion = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			picture = SPR_pragmatic_sanction
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				stability_factor = -0.1
			}
		}
		
		SPR_a_divided_country = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				political_power_gain = -0.4
				stability_factor = -0.4
				war_support_factor = -0.4
			}
		}
		
		SPR_a_divided_country_ii = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				political_power_gain = -0.3
				stability_factor = -0.3
				war_support_factor = -0.3
			}
		}
		
		SPR_a_divided_country_iii = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				political_power_gain = -0.55
				stability_factor = -0.55
				war_support_factor = -0.55
			}
		}
		
		SPR_a_divided_country_iv = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				political_power_gain = -0.5
				stability_factor = -0.5
				war_support_factor = -0.5
			}
		}
		
		SPR_the_carlist_threat = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			picture = SPR_Carlist_Menace
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				political_power_gain = -0.2
				stability_factor = -0.2
				war_support_factor = -0.2
			}
		}
		
		SPR_the_madozs_confiscation = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			picture = spr_appropriate_church_riches
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				consumer_goods_expected_value = -0.05
			}
		}
		
		SPR_mayorazgo = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				consumer_goods_expected_value = 0.02
				stability_factor = 0.05
			}
		}
		
		SPR_holy_war = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				army_attack_factor = 0.15
				army_defence_factor = 0.15
				army_org = 10
			}
		}
		
		SPR_desperate_defense = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				army_defence_factor = 0.10
			}
		}
		
		SPR_rigged_quinta = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = no
			}

			modifier = {
				stability_factor = -0.1
				consumer_goods_expected_value = -0.1
			}
		}
		
		SPR_fair_quinta = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = no
			}

			modifier = {
				stability_factor = -0.05
				consumer_goods_expected_value = -0.05
			}
		}

		SPR_cuban_trading_boom = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			
			allowed_civil_war = {
				always = no
			}

			modifier = {
				consumer_goods_expected_value = -0.05
			}
		}
		
		SPR_banco_de_bilbao = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = FRA_VIN_war
			
			modifier = {
				consumer_goods_expected_value = -0.02
			}
		}
		SPR_banco_de_oviedo = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = FRA_VIN_war
			
			modifier = {
				consumer_goods_expected_value = -0.02
			}
		}
		
		#Economic Ideas
		SPR_idea_national_roads_plan = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_production_bonus
			
			modifier = {
				production_speed_infrastructure_factor = 0.15
			}
		}
		SPR_idea_mining_revolution_1 = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_pp_unity_bonus
			
			modifier = {
				local_resources_factor = 0.1
			}
		}
		SPR_idea_mining_revolution_2 = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_pp_unity_bonus
			
			modifier = {
				local_resources_factor = 0.15
				production_speed_coal_mine_factor = 0.25
			}
		}
		SPR_idea_mining_revolution_3 = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_pp_unity_bonus
			
			modifier = {
				local_resources_factor = 0.1
				production_speed_steel_mill_factor = 0.15
			}
		}
		SPR_idea_mining_revolution_4 = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_pp_unity_bonus
			
			modifier = {
				local_resources_factor = 0.15
				production_speed_coal_mine_factor = 0.25
				production_speed_steel_mill_factor = 0.15
			}
		}
		SPR_idea_currency_reform = {
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			picture = generic_goods_red_bonus
			
			modifier = {
				political_power_factor = -0.05
				consumer_goods_expected_value = -0.05
				min_export = 0.05
			}
		}
		
		#Construction Bonuses
		SPR_idea_boost_steel = {
			allowed = {
				original_tag = SPR
			}
			
			cancel = {
				SPR = {
					NOT = {
						has_variable = steel_total_bonus
					}
				}
			}
			
			allowed_civil_war = {
				OR = {
					has_government = autocracy
					has_government = ideology_radical_socialism
					has_government = traditional_conservatism
				}
			}
			
			removal_cost = -1
			
			modifier = {
                production_speed_steel_mill_factor = 0.25
			}
		}
		
		SPR_idea_boost_infra_1 = {
			allowed = {
				original_tag = SPR
			}
			
			cancel = {
				SPR = {
					OR = {
						NOT = {
							has_decision = SPR_decision_madrid_zaragoza_railway_concession
						}
						NOT = {
							has_variable = infra_total_bonus
						}
					}
				}
			}
			
			allowed_civil_war = {
				OR = {
					has_government = autocracy
					has_government = ideology_radical_socialism
					has_government = traditional_conservatism
				}
			}
			
			removal_cost = -1
			
			modifier = {
                production_speed_infrastructure_factor = 0.75
			}
		}
		
		SPR_idea_boost_infra_2 = {
			allowed = {
				original_tag = SPR
			}
			
			cancel = {
				SPR = {
					OR = {
						NOT = {
							has_decision = SPR_decision_valladolid_burgos_railway_concession
						}
						NOT = {
							has_variable = infra_total_bonus
						}
					}
				}
			}
			
			allowed_civil_war = {
				OR = {
					has_government = autocracy
					has_government = ideology_radical_socialism
					has_government = traditional_conservatism
				}
			}
			
			removal_cost = -1
			
			modifier = {
                production_speed_infrastructure_factor = 0.75
			}
		}
		
		#Navy Ideas
		SPR_idea_plan_de_escuadra = {
			allowed = { original_tag = SPR }
			available = {}
			cancel = {}
			picture = SPR_plan_de_escuadra
			
			allowed_civil_war = {
				always = yes
			}

			modifier = {
				industrial_capacity_dockyard  = 0.1
				production_speed_dockyard_factor = 0.1
			}
		}
		
		SPR_idea_geostat_institute = {
			picture = generic_pp_unity_bonus
			
			modifier = {
				recon_factor = 0.05
				land_reinforce_rate = 0.01
			}
		}
		SPR_downfallingcountry = {	
			picture = generic_pp_unity_bonus
			modifier ={
				political_power_gain = -0.4
				autocracy_drift = 0.02
				stability_factor = -0.5
				war_support_factor = -0.5
				conscription_factor = -0.4
			}
		}
		SPR_easingcountry = {	
			picture = generic_pp_unity_bonus  
			modifier ={
				political_power_gain = -0.1
				autocracy_drift = 0.01
				stability_factor = -0.3
				war_support_factor = -0.3
				conscription_factor = -0.2
			}
		}
			SPR_militarisingcountry = {	
				picture = generic_pp_unity_bonus
				modifier ={
						political_power_gain = -0.1
						stability_factor = -0.3
						war_support_factor = -0.2
						conscription_factor = -0.1
					}
				}
			SPR_easingagaincountry = {	
				picture = generic_pp_unity_bonus
				modifier ={
						political_power_gain = -0.1
						stability_factor = -0.2
						war_support_factor = -0.25
						conscription_factor = -0.1
					}
				}
			SPR_eightrevolution = {	
				picture = SPR_Revolution_1855
				modifier ={
						stability_factor = -0.1
						production_factory_max_efficiency_factor = -0.02
					}
				}
			SPR_carlistmenace = {	
				picture = SPR_Carlist_Menace
				modifier ={
						stability_factor = -0.1
						army_attack_factor = -0.1
						army_defence_factor = -0.1
						conscription_factor = -0.05
					}
				}
			SPR_carlistwar = {	
				picture = SPR_Carlist_War
				modifier ={
						stability_factor = -0.2
						army_attack_factor = -0.2
						army_defence_factor = -0.2
						conscription_factor = -0.05
					}
				}
			SPR_carlosocho = {	
				picture = generic_pp_unity_bonus
				modifier ={
						stability_factor = -0.2
						army_attack_factor = -0.1
						army_defence_factor = -0.1
						conscription_factor = -0.03
					}
				}
			SPR_parlamentariancarlism = {	
				picture = generic_pp_unity_bonus
				modifier ={
						stability_factor = 0.02
						stability_weekly = 0.001
					}
				}	
		SPR_murillohacienda = {	
			picture = generic_pp_unity_bonus
			modifier ={
				production_speed_industrial_complex_factor = 0.05 
			}
		}	
		SPR_stronghandofthequeen = {	
			picture = generic_pp_unity_bonus
			modifier ={
				production_speed_industrial_complex_factor = 0.05 
			}
		}
		SPR_sociedadcientifica = {	
			picture = generic_pp_unity_bonus
			modifier ={
				research_speed_factor = 0.03
			}
		}
		SPR_narvaezreforms = {	
			picture = generic_pp_unity_bonus
			modifier ={
				research_speed_factor = 0.03
				production_speed_industrial_complex_factor = 0.05 
			}
		}
		SPR_populationgrumbling = {
			picture = generic_pp_unity_bonus
			modifier ={
				stability_weekly = -0.005
				political_power_gain = -0.1
				stability_factor = -0.2
				war_support_factor = -0.25
				conscription_factor = -0.2
			}
		}
		SPR_expandagriculture = {
			picture = RUS_idea_agrarian	   
			modifier ={
					production_speed_buildings_factor = 0.1
					industrial_capacity_factory = 0.05
			}
		}	
		SPR_reformcoins = {
			picture = money_bad	
			modifier = {
				production_factory_efficiency_gain_factor = 0.05
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
			}
		}	
		SPR_electrifyspain = {
			picture = generic_pp_unity_bonus	
			modifier = {
				consumer_goods_expected_value = -0.02
				production_speed_buildings_factor = -0.05
				industrial_capacity_factory = -0.05
				industrial_capacity_dockyard = -0.05
			}
		}	
		SPR_guerradeafrica = {
			picture = SPR_Morroco_War
			modifier = {
				stability_factor = -0.05
				planning_speed = 0.1
				army_org_factor = 0.1
				army_infantry_attack_factor = 0.07
				army_infantry_defence_factor = 0.07
			}
		}
		SPR_despgun_idea = {
			allowed_civil_war = {
				always = yes
			}
			
			modifier = {
				industrial_capacity_factory = 0.2
			}
		}
	}
	
	hidden_ideas = {
		SPR_factory_boost = { 
			modifier = {
				production_speed_industrial_complex_factor = 0.25
			}
		}
		SPR_dockyard_boost = {
			modifier = {
				production_speed_dockyard_factor = 0.2
			}
		}
	}
	
######################################################
	
	
	political_advisor = {
		SPR_Jose_de_Salamanca = {
			allowed = {
				original_tag = SPR
			}

			traits = { 
				railroad_tycoon 
				neutral_party
			}
		}
		SPR_Aureliano_Maestre_de_San_Juan = {
			allowed = {
				original_tag = SPR
			}

			traits = { 
				ingenious_scientist 
				neutral_party
			}
		}
		SPR_Rafael_Perez_del_Alamon = {
			allowed = {
				original_tag = SPR
			}
			
			picture = SPR_Rafael_Perez_del_Alamo

			traits = { 
				controversial_figure
				neutral_party
			}
		}
		SPR_Leopoldo_O_Donnell = {
			allowed = {
				original_tag = SPR
			}

			traits = { 
				determined_expansionist 
				neutral_party
			}
		}
		SPR_Praxedes_Mateo_Sagasta = {
			allowed = {
				original_tag = SPR
			}

			traits = { 
				great_urbanizer 
				neutral_party
			}
		}
		SPR_Manuel_Garcia_Barzanallana = {
			allowed = {
				original_tag = SPR
			}

			traits = { 
				industrial_promoter 
				neutral_party
			    }
		    }	
	    }	
	
	naval_manufacturers = {

		designer = yes

		SPR_Ferrol_Arsenal = {

			allowed = {
				original_tag = SPR
			}

			cost = 150
			removal_cost = 10

			research_bonus = {
				naval_equipment = 0.10
			}

			traits = { eoanb_naval_manufacturer_light }
			
			equipment_bonus = {
				ship_hull_frigate = {
					build_cost_ic = -0.05
                    instant = yes					
		        }
				ship_hull_gunboat = {
					build_cost_ic = -0.05
                    instant = yes					
		        }
	        }
		}
	}
	
	industrial_concern = {
	
		SPR_cchne = {

            picture = generic_industrial_concern_1

            allowed = {
                original_tag = SPR
            }
			
			available = { 
				has_completed_focus = SPR_railway_concessions
			}
			
            cost = 150
            removal_cost = 10

            research_bonus = {
                transport_tech = 0.05
            }
			
			modifier = {
                production_speed_infrastructure_factor = 0.1
            }

            traits = { industrial_concern_1 }
        }
		
		SPR_rio_tinto_company_limited = {

            picture = generic_industrial_concern_1

            allowed = {
                original_tag = SPR
            }
			
			available = { 
			    has_completed_focus = SPR_mining_revolution
                owns_state = 169						
			}			

            cost = 150
            removal_cost = 10

            research_bonus = {
                resource_extraction_tech = 0.10
            }
			
			modifier = {
                production_speed_coal_mine_factor = 0.05
            }

            traits = { industrial_concern_1 }
        }
		
		SPR_acero_toledano = {

		    picture = generic_industrial_concern_1

			allowed = {
				original_tag = SPR
			}
			
			available = {
				has_completed_focus = SPR_popularize_acero_toledano
				owns_state = 175
				175 = { steel_mill > 0 }
			}
			
			cost = 150
            removal_cost = 10

			research_bonus = {
				process_engineering_tech = 0.05
			}
			
			modifier = {
                production_speed_steel_mill_factor = 0.05
            }

			traits = { industrial_concern_1 }
		}
	}
	
	materiel_manufacturers = {

        designer = yes

		SPR_Toledo_Arms_Factory = {

            allowed = {
                TAG = SPR
            }

            cost = 150
            removal_cost = 10

            research_bonus = {
                infantry_weapons = 0.02
				tech_category_uniforms = 0.02
            }

            traits = { infantry_equipment_manufacturer_1 }
			
			equipment_bonus = {
				infantry_equipment = {
					build_cost_ic = -0.05
                    instant = yes					
		        }
	        }
        }

        SPR_Trubia_Arms_Factory = {

            allowed = {
                TAG = SPR
            }

            cost = 150
            removal_cost = 10

            research_bonus = {
                artillery = 0.05
            }

            traits = { artillery_manufacturer_1 }
			
			equipment_bonus = {
				artillery = {
					build_cost_ic = -0.05
                    instant = yes					
		        }
	        }
        }
    }
}